OSDN Git Service

* MAINTAINERS (Responsible Maintainers): Add Yao Qi as
[pf3gnuchains/pf3gnuchains4x.git] / gdb / ChangeLog
1 2011-12-07  Stan Shebs  <stan@codesourcery.com>
2
3         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
4         maintainer of the tic6x target.
5
6 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
7
8         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
9         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
10         (arm_deal_with_atomic_sequence_raw): Likewise.
11         (arm_deal_with_atomic_sequence): Likewise.
12         (arm_software_single_step): Call it.
13         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
14
15 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
16
17         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
18         where appropriate.
19         * s390-tdep.h: Likewise.
20
21 2011-12-07  Tristan Gingold  <gingold@adacore.com>
22
23         * machoread.c (macho_symtab_read): Do not consider N_OPT as
24         a debugging stab.  Improve complaint message.
25
26 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
27
28         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
29         load adjustment if still within the prologue.
30
31 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
32
33         * mips-tdep.c (mips32_next_pc): Fix floating point condition
34         code mask.
35
36 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
37
38         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
39         of BLTZ* and BGEZ* instructions.
40
41 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
42
43         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
44         performed to determine whether an address refers to standard
45         MIPS or MIPS16 code.
46         (mips16_next_pc): Use mips_pc_is_mips16 instead of
47         is_mips16_addr.
48
49 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
50
51         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
52         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
53         memory writes too.
54         * breakpoint.h (breakpoint_restore_shadows): Delete.
55         (breakpoint_xfer_memory): Declare.
56         * mem-break.c (default_memory_insert_breakpoint)
57         (default_memory_remove_breakpoint): Use target_write_raw_memory.
58         (memory_xfer_partial): Rename to ...
59         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
60         here.
61         (memory_xfer_partial): New.
62         (target_write_raw_memory): New.
63         * target.h (target_write_raw_memory): New.
64
65 2011-12-06  Doug Evans  <dje@google.com>
66
67         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
68
69 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
70
71         * language.h (struct language_defn): Add new component
72         la_symbol_name_compare.
73         * symfile.h (struct quick_symbol_functions): Update the profile
74         of parameter "name_matcher" for the expand_symtabs_matching
75         method.  Update the documentation accordingly.
76         * ada-lang.h (ada_name_for_lookup): Add declaration.
77         * ada-lang.c (ada_name_for_lookup): New function, extracted out
78         from ada_iterate_over_symbols.
79         (ada_iterate_over_symbols): Do not encode symbol name anymore.
80         (ada_expand_partial_symbol_name): Adjust profile.
81         (ada_language_defn): Add value for la_symbol_name_compare field.
82         * linespec.c: #include "ada-lang.h".
83         (iterate_name_matcher): Add language parameter. Replace call
84         to strcmp_iw by call to language->la_symbol_name_compare.
85         (decode_variable): Encode COPY if current language is Ada.
86         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
87         of name_matcher parameter.  Adjust call to name_matcher.
88         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
89         (expand_partial_symbol_names): Update profile of parameter "fun".
90         * psymtab.h (expand_partial_symbol_names): Update profile of
91         parameter "fun".
92         * symtab.c (demangle_for_lookup): Update function documentation.
93         (search_symbols_name_matches): Add language parameter.
94         (expand_partial_symbol_name): Likewise.
95         * c-lang.c (c_language_defn, cplus_language_defn)
96         (asm_language_defn, minimal_language_defn): Add value for
97         la_symbol_name_compare field.
98         * d-lang.c (d_language_defn): Likewise.
99         * f-lang.c (f_language_defn): Ditto.
100         * jv-lang.c (java_language_defn): Ditto.
101         * m2-lang.c (m2_language_defn): Ditto.
102         * objc-lang.c (objc_language_defn): Ditto.
103         * opencl-lang.c (opencl_language_defn): Ditto.
104         * p-lang.c (pascal_language_defn): Ditto.
105         * language.c (unknown_language_defn, auto_language_defn)
106         (local_language_defn): Ditto.
107
108 2011-12-06  Tom Tromey  <tromey@redhat.com>
109
110         * linespec.c (iterate_over_all_matching_symtabs): Use
111         LA_ITERATE_OVER_SYMBOLS.
112         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
113         (find_function_symbols, decode_variable): Remove Ada special
114         case.
115         * language.h (struct language_defn) <la_iterate_over_symbols>: New
116         field.
117         (LA_ITERATE_OVER_SYMBOLS): New macro.
118         * language.c (unknown_language_defn, auto_language_defn)
119         (local_language_defn): Update.
120         * c-lang.c (c_language_defn, cplus_language_defn)
121         (asm_language_defn, minimal_language_defn): Update.
122         * d-lang.c (d_language_defn): Update.
123         * f-lang.c (f_language_defn): Update.
124         * jv-lang.c (java_language_defn): Update.
125         * m2-lang.c (m2_language_defn): Update.
126         * objc-lang.c (objc_language_defn): Update.
127         * opencl-lang.c (opencl_language_defn): Update.
128         * p-lang.c (pascal_language_defn): Update.
129         * ada-lang.c (ada_iterate_over_symbols): New function.
130         (ada_language_defn): Update.
131
132 2011-12-06  Tom Tromey  <tromey@redhat.com>
133             Joel Brobecker  <brobecker@acacore.com>
134
135         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
136         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
137         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
138         PR shlibs/8929, PR shlibs/7393:
139         * python/py-type.c (compare_maybe_null_strings): Rename from
140         compare_strings.
141         (check_types_equal): Update.
142         * utils.c (compare_strings): New function.
143         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
144         location changes.
145         * tracepoint.c (scope_info): Update.
146         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
147         * symtab.h (iterate_over_minimal_symbols)
148         (iterate_over_some_symtabs, iterate_over_symtabs)
149         (find_pcs_for_symtab_line, iterate_over_symbols)
150         (demangle_for_lookup): Declare.
151         (expand_line_sal): Remove.
152         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
153         (lookup_symtab_callback): New functions.
154         (lookup_symtab): Rewrite.
155         (demangle_for_lookup): New function, extract from
156         lookup_symbol_in_language.
157         (lookup_symbol_in_language): Use it.
158         (iterate_over_symbols): New function.
159         (find_line_symtab): Update.
160         (find_pcs_for_symtab_line): New functions.
161         (find_line_common): Add 'start' argument.
162         (decode_line_spec): Update.  Change argument to 'flags', change
163         interpretation.
164         (append_expanded_sal): Remove.
165         (append_exact_match_to_sals): Remove.
166         (expand_line_sal): Remove.
167         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
168         Remove.
169         <map_symtabs_matching_filename>: New field.
170         * stack.c (func_command): Only look in the current program space.
171         Use DECODE_LINE_FUNFIRSTLINE.
172         * source.c (line_info): Set pspace on sal.  Check program space in
173         the loop.  Use DECODE_LINE_LIST_MODE.
174         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
175         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
176         * python/python.c (gdbpy_decode_line): Update.
177         * psymtab.c (partial_map_expand_apply): New function.
178         (partial_map_symtabs_matching_filename): Rename from
179         lookup_partial_symbol.  Update arguments.
180         (lookup_symtab_via_partial_symtab): Remove.
181         (psym_functions): Update.
182         * objc-lang.h (parse_selector, parse_method): Don't declare.
183         (find_imps): Update.
184         * objc-lang.c (parse_selector, parse_method): Now static.
185         (find_methods): Change arguments.  Fill in a vector of symbol
186         names.
187         (uniquify_strings): New function.
188         (find_imps): Change arguments.
189         * minsyms.c (iterate_over_minimal_symbols): New function.
190         * linespec.h (enum decode_line_flags): New.
191         (struct linespec_sals): New.
192         (struct linespec_result) <canonical>: Remove.
193         <pre_expanded, addr_string, sals>: New fields.
194         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
195         (decode_line_full): Declare.
196         (decode_line_1): Update.
197         * linespec.c (struct address_entry, struct linespec_state, struct
198         collect_info): New types.
199         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
200         (eq_address_entry, maybe_add_address): New functions.
201         (total_number_of_methods): Remove.
202         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
203         functions.
204         (find_methods): Change arguments.  Don't canonicalize input.
205         Simplify logic.
206         (add_matching_methods, add_constructors)
207         (build_canonical_line_spec): Remove.
208         (filter_results, convert_results_to_lsals): New functions.
209         (decode_line_2): Change arguments.  Rewrite for new data
210         structures.
211         (decode_line_internal): Rename from decode_line_1.  Change
212         arguments.  Add cleanups.  Update for new data structures.
213         (linespec_state_constructor, linespec_state_destructor)
214         (decode_line_full, decode_line_1): New functions.
215         (decode_indirect): Change arguments.  Update.
216         (locate_first_half): Use skip_spaces.
217         (decode_objc): Change arguments.  Update for new data structures.
218         Simplify logic.
219         (decode_compound): Change arguments.  Add cleanups.  Remove
220         fallback code, replace with error.
221         (struct decode_compound_collector): New type.
222         (collect_one_symbol): New function.
223         (lookup_prefix_sym): Change arguments.  Update.
224         (compare_symbol_name, add_all_symbol_names_from_pspace)
225         (find_superclass_methods ): New functions.
226         (find_method): Rewrite.
227         (struct symtab_collector): New type.
228         (add_symtabs_to_list, collect_symtabs_from_filename): New
229         functions.
230         (symtabs_from_filename): Change API.  Rename from
231         symtab_from_filename.
232         (collect_function_symbols): New function.
233         (find_function_symbols): Change API.  Rename from
234         find_function_symbol.  Rewrite.
235         (decode_all_digits): Change arguments.  Rewrite.
236         (decode_dollar): Change arguments.  Use decode_variable.
237         (decode_label): Change arguments.  Rewrite.
238         (collect_symbols): New function.
239         (minsym_found): Change arguments.  Rewrite.
240         (check_minsym, search_minsyms_for_name)
241         (add_matching_symbols_to_info): New function.
242         (decode_variable): Change arguments.  Iterate over all symbols.
243         (symbol_found): Remove.
244         (symbol_to_sal): New function.
245         (init_linespec_result, destroy_linespec_result)
246         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
247         New functions.
248         (decode_digits_list_mode, decode_digits_ordinary): New functions.
249         * dwarf2read.c (dw2_map_expand_apply): New function.
250         (dw2_map_symtabs_matching_filename): Rename from
251         dw2_lookup_symtab.  Change arguments.
252         (dwarf2_gdb_index_functions): Update.
253         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
254         * defs.h (compare_strings): Declare.
255         * cli/cli-cmds.c (compare_strings): Move to utils.c.
256         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
257         filter_sals.
258         (compare_symtabs, filter_sals): New functions.
259         * breakpoint.h (struct bp_location) <line_number, source_file>:
260         New fields.
261         (struct breakpoint) <line_number, source_file>: Remove.
262         <filter>: New field.
263         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
264         (momentary_breakpoint_from_master, add_location_to_breakpoint):
265         Update for changes to locations.
266         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
267         breakpoint.
268         (create_breakpoint_sal): Add 'filter' argument.
269         (remove_sal, expand_line_sal_maybe): Remove.
270         (create_breakpoints_sal): Remove 'sals' argument.  Handle
271         pre-expanded sals and the filter.
272         (parse_breakpoint_sals): Use decode_line_full.
273         (check_fast_tracepoint_sals): Use get_sal_arch.
274         (create_breakpoint): Create a linespec_sals.  Update.
275         (break_range_command): Use decode_line_full.  Update.
276         (until_break_command): Update.
277         (clear_command): Update match conditions for linespec.c changes.
278         Use DECODE_LINE_LIST_MODE.
279         (say_where): Update for changes to locations.
280         (bp_location_dtor): Free 'source_file'.
281         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
282         (update_static_tracepoint): Update for changes to locations.
283         (update_breakpoint_locations): Disable ranged breakpoint if too
284         many locations match.  Update.
285         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
286         PCs.
287         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
288         (decode_line_spec_1): Update.  Change argument name to 'flags',
289         change interpretation.
290         * block.h (block_containing_function): Declare.
291         * block.c (block_containing_function): New function.
292         * skip.c (skip_function_command): Update.
293         (skip_re_set): Update.
294         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
295         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
296         * NEWS: Add entry.
297
298 2011-12-06  Tom Tromey  <tromey@redhat.com>
299
300         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
301         breakpoint's pspace to be NULL.
302         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
303         * breakpoint.c (init_raw_breakpoint): Conditionally set
304         breakpoint's pspace.
305         (init_breakpoint_sal): Don't set breakpoint's pspace.
306         (prepare_re_set_context): Conditionally switch program space.
307         (addr_string_to_sals): Check executing_startup on location's
308         program space.
309
310 2011-12-06  Tom Tromey  <tromey@redhat.com>
311
312         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
313         * breakpoint.c (should_be_inserted): Explicitly check if program
314         space is executing startup.
315         (describe_other_breakpoints): Update.
316         (disable_breakpoints_before_startup): Change executing_startup
317         earlier.  Remove loop.
318         (enable_breakpoints_after_startup): Likewise.
319         (init_breakpoint_sal): Don't use bp_startup_disabled.
320         (create_breakpoint): Don't use bp_startup_disabled.
321         (update_global_location_list): Use should_be_inserted.
322         (bkpt_re_set): Update.
323
324 2011-12-06  Tom Tromey  <tromey@redhat.com>
325
326         * python/lib/gdb/command/pretty_printers.py
327         (InfoPrettyPrinter.invoke1): Remove extra double quote.
328
329 2011-12-06  Tom Tromey  <tromey@redhat.com>
330
331         * NEWS: Add MI news.
332
333 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
334
335         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
336         (S390_LAST_BREAK_REGNUM): Likewise.
337         (S390_SYSTEM_CALL_REGNUM): Likewise.
338         (S390_NUM_REGS): Update.
339
340         (s390_regmap_last_break): Add declaration.
341         (s390x_regmap_last_break): Likewise.
342         (s390_regmap_system_call): Likewise.
343
344         (tdesc_s390_linux32v1): Add declaration.
345         (tdesc_s390_linux32v2): Likewise.
346         (tdesc_s390_linux64v1): Likewise.
347         (tdesc_s390_linux64v2): Likewise.
348         (tdesc_s390x_linux64v1): Likewise.
349         (tdesc_s390x_linux64v2): Likewise.
350
351         * s390-tdep.c: Include new target description files
352         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
353         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
354         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
355         (s390_cannot_store_register): New function.
356         (s390_write_pc): Likewise.
357         (s390_dwarf_regmap): Add fields for new registers.
358         (s390_regmap_gregset): Likewise.
359         (s390x_regmap_gregset): Likewise.
360         (s390_regmap_fpregset): Likewise.
361         (s390_regmap_upper): Likewise.
362         (s390_regmap_last_break): New variable.
363         (s390x_regmap_last_break): Likewise.
364         (s390_regmap_system_call): Likewise.
365         (s390_last_break_regset): Likewise.
366         (s390x_last_break_regset): Likewise.
367         (s390_system_call_regset): Likewise.
368         (s390_upper_regset_sections): Rename to ...
369         (s390_linux64_regset_sections): ... this.
370         (s390_linux32_regset_sections): New variable.
371         (s390x_linux64_regset_sections): Likewise.
372         (s390_linux32v1_regset_sections): Likewise.
373         (s390_linux32v2_regset_sections): Likewise.
374         (s390_linux64v1_regset_sections): Likewise.
375         (s390_linux64v2_regset_sections): Likewise.
376         (s390x_linux64v1_regset_sections): Likewise.
377         (s390x_linux64v2_regset_sections): Likewise.
378         (s390_regset_from_core_section): Handle .reg-s390-last-break and
379         .reg-s390-system-call core file sections.
380         (s390_core_read_description): Check for presence of
381         .reg-s390-last-break and .reg-s390-system-call core file
382         sections and return appropriate target description.
383         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
384         "last_break" and "system_call" in target description.  Install
385         appropriate gdbarch_core_regset_sections array.
386         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
387         (_initialize_s390_tdep): Initialize additional target descriptions.
388
389         * s390-nat.c: Include "elf/common.h".
390         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
391         (have_regset_last_break): New static variable.
392         (have_regset_system_call): Likewise.
393         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
394         (s390_native_collect): Likewise.
395         (fetch_regset, store_regset, check_regset): New functions.
396         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
397         and S390_SYSTEM_CALL_REGNUM.
398         (s390_linux_store_inferior_registers): Likewise.
399         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
400         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
401
402         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
403         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
404         (s390-linux32v1-expedite): Define.
405         (s390-linux32v2-expedite): Likewise.
406         (s390-linux64v1-expedite): Likewise.
407         (s390-linux64v2-expedite): Likewise.
408         (s390x-linux64v1-expedite): Likewise.
409         (s390x-linux64v2-expedite): Likewise.
410
411         * features/s390-linux32.xml: Add orig_r2 register.
412         * features/s390-linux64.xml: Likewise.
413         * features/s390x-linux64.xml: Likewise.
414         * features/s390-linux32v1.xml: New file.
415         * features/s390-linux32v2.xml: Likewise.
416         * features/s390-linux64v1.xml: Likewise.
417         * features/s390-linux64v2.xml: Likewise.
418         * features/s390x-linux64v1.xml: Likewise.
419         * features/s390x-linux64v2.xml: Likewise.
420
421         * features/s390-linux32.c: Regenerate.
422         * features/s390-linux64.c: Likewise.
423         * features/s390x-linux64.c: Likewise.
424         * features/s390-linux32v1.c: New generated file.
425         * features/s390-linux32v2.c: Likewise.
426         * features/s390-linux64v1.c: Likewise.
427         * features/s390-linux64v2.c: Likewise.
428         * features/s390x-linux64v1.c: Likewise.
429         * features/s390x-linux64v2.c: Likewise.
430
431         * regformats/s390-linux32.dat: Regenerate.
432         * regformats/s390-linux64.dat: Regenerate.
433         * regformats/s390x-linux64.dat: Regenerate.
434         * regformats/s390-linux32v1.dat: New generated file.
435         * regformats/s390-linux32v2.dat: Likewise.
436         * regformats/s390-linux64v1.dat: Likewise.
437         * regformats/s390-linux64v2.dat: Likewise.
438         * regformats/s390x-linux64v1.dat: Likewise.
439         * regformats/s390x-linux64v2.dat: Likewise.
440
441 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
442
443         * linux-nat.c (resume_stopped_resumed_lwps): Call
444         registers_changed.
445
446 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
447
448         * breakpoint.c: Include record.h.
449         (breakpoints_always_inserted_mode): Return false when the record
450         target is in use.
451
452 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
453
454         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
455         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
456         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
457         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
458
459 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
460
461         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
462         `i'(-Wshadow).
463
464 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
465
466         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
467
468 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
469
470         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
471         of `tdep'(-Wshadow).
472
473 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
474
475         Fix compilation --without-expat.
476         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
477         from ...
478         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
479
480 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
481             Jan Kratochvil  <jan.kratochvil@redhat.com>
482
483         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
484         * features/library-list-svr4.dtd: New file.
485         * remote.c (PACKET_qXfer_libraries_svr4): New.
486         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
487         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
488         * solib-svr4.c (struct svr4_library_list): New.
489         [HAVE_LIBEXPAT]: Include xml-support.h.
490         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
491         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
492         [HAVE_LIBEXPAT] (svr4_library_list_children)
493         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
494         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
495         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
496         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
497         (svr4_read_so_list): Extend the corruption message by addresses.
498         (svr4_current_sos): New variable library_list, call
499         svr4_current_sos_via_xfer_libraries.
500         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
501
502 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
503
504         PR threads/13448
505         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
506         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
507
508 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
509
510         PR breakpoints/13346
511         * dwarf2read.c (process_psymtab_comp_unit): Set
512         PSYMTABS_ADDRMAP_SUPPORTED.
513         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
514         validity.  New field psymtabs_addrmap_supported.
515         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
516         psymtabs_addrmap_supported.
517         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
518         !PSYMTABS_ADDRMAP_SUPPORTED.
519         (dump_psymtab, maintenance_info_psymtabs): Print also
520         psymtabs_addrmap_supported.
521
522 2011-12-01  Doug Evans  <dje@google.com>
523
524         * python/py-type.c (type_object_methods): Fix "array" doc string.
525
526 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
527
528         * source.c (print_source_lines_base): Fix missing braces on else
529         clause leading to additional output.
530
531 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
532
533         * s390-nat.c (SUBOFF): Remove.
534         (s390_native_supply, s390_native_collect): New functions.
535         (supply_gregset, supply_fpregset): Use s390_native_supply.
536         (fill_gregset, fill_fpregset): Use s390_native_collect.
537
538         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
539         (s390_unwind_pseudo_register): New function.
540         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
541         registers instead of PC and CC.
542         (s390_backchain_frame_unwind_cache): Likewise.
543         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
544         full GPR pseudos.
545         (s390_trad_frame_prev_register): New function.
546         (s390_frame_prev_register): Use it.
547         (s390_sigtramp_frame_prev_register): Likewise.
548         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
549         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
550         special callback to unwind any pseudo.
551
552         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
553         * features/s390-core64.xml: Likewise.
554         * features/s390x-core64.xml: Likewise.
555         * features/s390-linux32.c: Regenerate.
556         * features/s390-linux64.c: Likewise.
557         * features/s390x-linux64.c: Likewise.
558
559 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
560
561         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
562
563 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
564
565         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
566         instruction.  Add more diagnostic output.
567
568 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
569
570         * MAINTAINERS (Write After Approval): Add myself to the list.
571
572 2011-11-29  Sanjoy Das  <sdas@igalia.com>
573
574         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
575         (jit_bfd_try_read_symtab): Fix comments.
576
577 2011-11-28  DJ Delorie  <dj@redhat.com>
578
579         * NEWS: Mention RL78 simulator.
580
581 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
582
583         * symfile.h (struct quick_symbol_functions): Fix the documentation
584         of field map_matching_symbols, as symbols are sorted using
585         strcmp_iw_ordered, not strcmp_iw.
586
587 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
588
589         * symfile.h (struct quick_symbol_functions): Update the
590         documentation for field map_matching_symbols.
591
592 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
593
594         * ada-lang.c (compare_names): Fix wrong return value in case
595         string1 starts with the same contents as string2, followed
596         by an underscore that do not start a symbol name suffix.
597
598 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
599
600         PR python/13369
601         PR python/13374
602
603         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
604         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
605         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
606         exceptions.
607         * python/py-type.c (typy_strip_typedefs): Ditto.
608         (typy_legacy_template_argument): Ditto.
609         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
610         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
611
612 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
613
614         * remote.c (remote_get_tracepoint_status): Delete addrbuf
615         local variable.  Avoid use of sprintf_vma.
616
617 2011-11-27  Sanjoy Das  <sdas@igalia.com>
618
619         Fix regression in jit.exp.
620         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
621         (jit_register_code): Set the jit_objfile_data field to the correct
622         value.
623
624 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
625
626         * alpha-tdep.c (br_opcode): New.
627         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
628         (alpha_deal_with_atomic_sequence): New function.
629         (alpha_gdbarch_init): Handle single stepping of atomic sequences
630         with alpha_deal_with_atomic_sequence.
631
632 2011-11-24  Tristan Gingold  <gingold@adacore.com>
633
634         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
635         fields.  Add oso_sym, end_sym and nbr_syms.
636         (macho_register_oso): Change interface.
637         (macho_symtab_add_minsym): New function.
638         (macho_symtab_read): Rewritten.
639         (get_archive_prefix_len): Remove trailing blanks.
640         (oso_el_compare_name): Add comment.
641         (struct macho_sym_hash_entry): New structure.
642         (macho_relocate_common_syms): Remove.
643         (macho_sym_hash_newfunc): New function.
644         (macho_resolve_oso_sym_with_minsym): Likewise.
645         (macho_add_oso_symfile): Rewritten.
646         (macho_symfile_read_all_oso): Remove trailing blanks.
647         Adjust code to free oso vector.
648         (macho_symfile_read): Likewise.
649         Move code to initialize minimal symbol
650
651 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
652
653         * mips-tdep.c (extended_offset): Fix formatting.
654
655 2011-11-23  Doug Evans  <dje@google.com>
656
657         * dwarf2read.c (dw2_lookup_symtab): Add comment.
658         (dw2_expand_symtabs_with_filename): Ditto.
659         (dw2_expand_symtabs_matching): Ditto.
660         (dw2_map_symbol_filenames): Ditto.
661
662 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
663
664         * ada-lang.c (assign_aggregate): Minor reformatting.
665
666 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
667
668         * ada-lang.c (assign_aggregate): Remove declaration of local
669         variable `i' which is shadowing another variable with the same
670         name declared in the outer scope.
671
672 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
673
674         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
675         calls throughout this file.
676
677 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
678
679         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
680         FormatMessage.
681
682 2011-11-22  Tom Tromey  <tromey@redhat.com>
683
684         PR mi/8444:
685         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
686         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
687         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
688         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
689         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
690         (print_it_catch_syscall, print_it_catch_exec)
691         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
692         (bpstat_print): Add 'kind' argument.  Handle
693         TARGET_WAITKIND_LOADED.
694         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
695         handle TARGET_WAITKIND_LOADED here.
696         * breakpoint.h (bpstat_print): Update.
697
698 2011-11-22  Tom Tromey  <tromey@redhat.com>
699
700         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
701
702 2011-11-22  Tom Tromey  <tromey@redhat.com>
703
704         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
705         Use static_assert to check the size of
706         async_reason_string_lookup.
707         * common/gdb_assert.h (static_assert): New macro.
708
709 2011-11-22  Alan Modra  <amodra@gmail.com>
710
711         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
712         destination calculation.  Don't expect >> to sign extend.  Don't
713         add a break if branch lands inside the sequence anywhere.
714
715 2011-11-21  Keith Seitz  <keiths@redhat.com>
716
717         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
718         -var-evaluate-expression of an enumeration and fix expected result.
719         * gdb.mi/mi2-varvdisplay.exp: Likewise.
720
721 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
722
723         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
724         the case where osdata->items is empty.  Rename column names to a
725         canonical form to avoid problems with unusual column names.
726
727 2011-11-21  Yao Qi  <yao@codesourcery.com>
728
729         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
730
731 2011-11-20  Stan Shebs  <stan@codesourcery.com>
732
733         * NEWS: Mention tracepoint additions.
734         * breakpoint.h (struct tracepoint): New field traceframe_usage.
735         * breakpoint.c (print_one_breakpoint_location): Identify
736         tracepoints as such when reporting hit counts, report
737         trace buffer usage.
738         (create_tracepoint_from_upload): Copy status info.
739         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
740         add fields user_name, notes, start_time, stop_time.
741         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
742         * tracepoint.c (trace_user): New global.
743         (trace_notes): New global.
744         (trace_stop_notes): New global.
745         (start_tracing): Add argument and trace note handling.
746         (stop_tracing): Ditto.
747         (trace_start_command): Add notes argument.
748         (trace_stop_command): Ditto.
749         (trace_status_command): Report additional status info.
750         (trace_status_mi): Similarly.
751         (trace_save): Update, record tracepoint status.
752         (set_disconnected_tracing): Call target method directly.
753         (send_disconnected_tracing_value): Remove.
754         (set_trace_user): New function.
755         (set_trace_notes): New function.
756         (set_trace_stop_notes): New function.
757         (parse_trace_status): Handle additional status.
758         (parse_tracepoint_status): New function.
759         (parse_tracepoint_definition): Call it.
760         (tfile_get_tracepoint_status): New function.
761         (init_tfile_ops): Use it.
762         (_initialize_tracepoint): Add new setshows.
763         * target.h (struct target_ops): New methods to_get_tracepoint_status
764         and to_set_trace_notes.
765         (target_get_tracepoint_status): New macro.
766         (target_set_trace_notes): New macro.
767         * target.c (update_current_target): Add new methods.
768         * remote.c (remote_get_tracepoint_status): New function.
769         (remote_set_trace_notes): New function.
770         (init_remote_ops): Add them.
771         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
772         (mi_cmd_trace_stop): Ditto.
773
774 2011-11-20  Sanjoy Das  <sdas@igalia.com>
775
776         * jit.c: Include regcache.h.
777         (jit_gdbarch_data, jit_frame_unwind): New static variables.
778         (jit_unwind_reg_set_impl, free_reg_value_impl)
779         (jit_unwind_reg_get_impl, jit_frame_sniffer)
780         (jit_frame_unwind_stop_reason, jit_frame_this_id)
781         (jit_frame_prev_register, jit_dealloc_cache)
782         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
783         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
784         jit_prepend_unwinder.
785         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
786
787 2011-11-20  Sanjoy Das  <sdas@igalia.com>
788
789         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
790         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
791         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
792         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
793         (finalize_symtab, jit_object_close_impl)
794         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
795         (free_objfile_data): New functions.
796         (_initialize_jit): Register jit_objfile_data with a proper cleanup
797         function.
798
799 2011-11-20  Sanjoy Das  <sdas@igalia.com>
800
801         * jit.c: Include gdb-dlfcn.h.
802         (loaded_jit_reader, reader_init_fn_sym): New static variables.
803         (jit_reader_load, jit_reader_load_command)
804         (jit_reader_unload_command): New functions.
805         (_initialize_jit): Add commands "jit-reader-load" and
806         "jit-reader-unload".
807
808 2011-11-20  Sanjoy Das  <sdas@igalia.com>
809
810         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
811         * config.in: Add new #define HAVE_LIBDL.
812         * configure.ac: Add check for -ldl.
813         * configure: Re-generated by autoconf.
814         * gdb-dlfcn.c: New file.
815         * gdb-dlfcn.h: New file.
816
817 2011-11-20  Sanjoy Das  <sdas@igalia.com>
818
819         * config.in: Add new #defines: JIT_READER_DIR and
820         JIT_READER_DIR_RELOCATABLE.
821         * configure.ac: New GDB directory entry for jit-reader-dir.
822         * configure: Re-generated by autoconf.
823         * jit.c: New static variable: const char *jit_reader_dir.
824         (_initialize_jit): Relocate jit_reader_dir.
825
826 2011-11-20  Sanjoy Das  <sdas@igalia.com>
827
828         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
829         $(includedir)/gdb.
830         * configure.ac: Generate a correct value for TARGET_PTR for
831         jit-reader.h.  Tell configure to generate jit-reader.h from
832         jit-reader.in.
833         * configure: Re-generated by autoconf.
834         * jit-reader.in: New file.
835         * jit.c: Include jit-reader.h.
836
837 2011-11-20  Sanjoy Das  <sdas@igalia.com>
838
839         * MAINTAINERS (Write After Approval): Add myself to the list.
840
841 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
842
843         * findvar.c (read_frame_register_value): Respect value_offset
844         of the register value.  Remove big-endian special case.
845
846 2011-11-18  Tom Tromey  <tromey@redhat.com>
847
848         PR build/7196:
849         * remote.c (putpkt_for_catch_errors): New function.
850         (remote_kill): Use it.
851
852 2011-11-18  Yao Qi  <yao@codesourcery.com>
853
854         * breakpoint.c (create_breakpoint): Produce query message according to
855         breakpoint's type.
856         Allocate tracepoint per correct type.
857         Don't check SALs for pending fast tracepoints.
858         * tracepoint.c (process_tracepoint_on_disconnect): New.
859         (disconnect_tracing): Call process_tracepoint_on_disconnect.
860
861 2011-11-18  Yao Qi  <yao@codesourcery.com>
862
863         * breakpoint.c (install_breakpoint):  Add one more parameter so that
864         update_global_location_list is called conditionally.
865         (create_fork_vfork_event_catchpoint): Update.
866         (create_syscall_event_catchpoint): Update.
867         (create_breakpoint_sal): Update.
868         (create_breakpoint_sal): Update. Call do_cleanups before
869         install_breakpoint.
870         * ada-lang.c (create_ada_exception_catchpoint): Update.
871         * breakpoint.h (install_breakpoint): Update declaration.
872
873 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
874
875         * spu-tdep.c (spu_return_value): Fix handling of
876         TYPE_CALLING_CONVENTION annotation.
877
878 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
879
880         * skip.c (skip_function_command): Work around uninitialized
881         variable warning.
882
883 2011-11-16  David S. Miller  <davem@davemloft.net>
884
885         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
886         'tv_usec' to long for printf since these fields have a type which
887         varies.
888
889 2011-11-15  Doug Evans  <dje@google.com>
890
891         * buildsym.c (add_symbol_to_list): Delete outdated comment.
892
893 2011-11-15  Paul Koning  <paul_koning@dell.com>
894
895         * python/py-type.c (typy_get_composite): New function.
896         (typy_nonzero): New function.
897         (typy_values): Rename from typy_fields.
898         (typy_fields): New function.
899         (typy_length): Raise exception if not struct, union, or enum type.
900         (typy_getitem): Ditto.
901         (typy_has_key): Ditto.
902         (typy_make_iter): Ditto.
903
904 2011-11-15  Doug Evans  <dje@google.com>
905
906         * NEWS: Mention new parameter basenames-may-differ.
907         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
908         ! basenames_may_differ.
909         * psymtab.c (lookup_partial_symtab): Ditto.
910         * symtab.c (lookup_symtab): Ditto.
911         (basenames_may_differ): New global.
912         (_initialize_symtab): New parameter basenames-may-differ.
913         * symtab.h (basenames_may_differ): Declare.
914
915 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
916             Luis Machado  <lgustavo@codesourcery.com>
917
918         * auxv.c: Include observer.h.
919         (auxv_inferior_data_cleanup): New.
920         (invalidate_auxv_cache_inf): New.
921         (invalidate_auxv_cache): New.
922         (get_auxv_inferior_data): New.
923         (auxv_inferior_data): New static global.
924         (auxv_info): New structure.
925         (target_auxv_search): Use get_auxv_inferior_data instead of
926         target_read_alloc and don't free cached buffers.
927         (fprint_target_auxv): Likewise
928         (_initialize_auxv): Register per-inferior auxv cache and register
929         observers to invalidate auxv cache when needed.
930
931 2011-11-14  Doug Evans  <dje@google.com>
932
933         Make "!" an alias for "shell".
934         * NEWS: Add mention.
935         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
936         adding "!" command, always add it.
937         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
938         command of length one.
939
940 2011-11-14  Stan Shebs  <stan@codesourcery.com>
941             Kwok Cheung Yeung  <kcy@codesourcery.com>
942
943         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
944         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
945         the minimum instruction size for fast tracepoints.
946         * target.h (struct target_ops): Add new method
947         to_get_min_fast_tracepoint_insn_len.
948         (target_get_min_fast_tracepoint_insn_len): New.
949         * target.c (update_current_target): Set up new target operation.
950         * remote.c (remote_write_bytes_aux): Fix typo.
951         (remote_get_min_fast_tracepoint_insn_len): New.
952         (init_remote_ops): Initialize new field.
953
954 2011-11-14  Tom Tromey  <tromey@redhat.com>
955
956         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
957         (encode_actions): Likewise.
958
959 2011-11-14  Yao Qi  <yao@codesourcery.com>
960
961         * remote.c (struct remote_state): <install_in_trace> new field.
962         (PACKET_InstallInTrace): New enum value.
963         (remote_install_in_trace_feature): Support InstallInTrace.
964         (remote_supports_install_in_trace): Likewise.
965         (remote_protocol_features): Likewise.
966         (_initialize_remote): Likewise.
967         (remote_can_download_tracepoint): New.
968         * target.h (struct target): New field
969         `to_can_download_tracepoint'.
970         (target_can_download_tracepoint): New macro.
971         * target.c (update_current_target): Update.
972         * breakpoint.h (struct bp_location): Add comment on field
973         `duplicate'.
974         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
975         and tracepoint.
976         (remove_breakpoints): Don't remove tracepoints.
977         (tracepoint_locations_match ): New.
978         (breakpoint_locations_match): Call it.
979         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
980         (download_tracepoint_locations): New.
981         (update_global_location_list): Call it.
982         * tracepoint.c (find_matching_tracepoint): Delete.
983         (find_matching_tracepoint_location): Renamed from
984         find_matching_tracepoint.  Return bp_location rather than
985         tracepoint.
986         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
987         tracepoint is found.
988
989 2011-11-14  Yao Qi  <yao@codesourcery.com>
990
991         * target.h (struct target): <to_download_tracepoint> Change type
992         of parameter from tracepoint to bp_location.
993         * target.c (update_current_target): Update.
994         * tracepoint.c (start_tracing): Update.
995         * remote.c (remote_download_tracepoint): Remove loop for each location
996         of a tracepoint.
997
998 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
999
1000         * i386-nat.c (i386_insert_hw_breakpoint): Call
1001         i386_update_inferior_debug_regs.
1002         (i386_remove_hw_breakpoint): Likewise.
1003
1004 2011-11-14  Yao Qi  <yao@codesourcery.com>
1005
1006         * breakpoint.c (init_raw_breakpoint): Call
1007         add_location_to_breakpoint to replace duplicated code.
1008         (add_location_to_breakpoint): Adjust the breakpoint's
1009         address prior to allocating a location.
1010
1011 2011-11-12  Matt Rice  <ratmice@gmail.com>
1012
1013         * macrocmd.c (macro_no_macro_info): New function.
1014         (macro_expand_command): Use macro_no_macro_info.
1015         (macro_expand_once_command): Ditto.
1016         (info_macro_command): Add argument processing,
1017         move info_definitions_command here.
1018         (_initialize_macrocmd): Remove info definitions command.
1019         Add arguments to info macro help text.
1020         * NEWS: Replace info definitions command with new info macro options.
1021
1022 2011-11-11  Keith Seitz  <keiths@redhat.com>
1023
1024         PR gdb/12843
1025         * linespec.c (locate_first_half): Keep ':' if it looks
1026         like it could be part of a Windows path starting with
1027         a drive letter.
1028
1029 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1030
1031         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1032         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1033
1034 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1035
1036         * target.c (target_waitstatus_to_string): Handle
1037         TARGET_WAITKIND_NO_RESUMED.
1038
1039 2011-11-10  Doug Evans  <dje@google.com>
1040
1041         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1042         `need_fullname'.
1043         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1044         (map_partial_symbol_filenames): Ditto.  All callers updated.
1045         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1046         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1047         parameter need_fullname.
1048
1049         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1050         * source.c (symtab_to_fullname): Ditto.
1051
1052         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1053         * gdb-demangle.h: ... here.  New file.
1054         * demangle.c: #include "gdb-demangle.h".
1055         (_initialize_demangler): Use initialize_file_ftype for prototype.
1056         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1057         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1058         from utils.c
1059         * utils.c: Update. #include "gdb-demangle.h".
1060         * symtab.h (asm_demangle): Delete.
1061         (demangle): Move declaration next to use.
1062         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1063         * dwarf2read.c: #include "gdb-demangle.h".
1064         * gnu-v2-abi.c: Ditto.
1065         * jv-typeprint.c: Ditto.
1066         * mdebugread.c: Ditto.
1067         * p-typeprint.c: Ditto.
1068         * stabsread.c: Ditto.
1069         * printcmd.c: Ditto.
1070         (asm_demangle): Delete declaration.
1071         * tui/tui-stack.c: #include "gdb-demangle.h".
1072
1073         * python/py-type.c (typy_fields_items): Call check_typedef.
1074
1075 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1076
1077         * findvar.c (read_frame_register_value): Read the correct bytes
1078         from registers on big-endian architectures.
1079
1080 2011-11-10  Tom Tromey  <tromey@redhat.com>
1081
1082         * procfs.c (load_syscalls): Make a cleanup.
1083         (open_procinfo_files): fd==0 is ok.
1084
1085 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1086
1087         * procfs.c (iterate_over_mappings): Call do_cleanups before
1088         returning.
1089
1090 2011-11-09  Doug Evans  <dje@google.com>
1091
1092         * gdbtypes.c (check_typedef): Document that this function can
1093         throw an exception.
1094
1095 2011-11-09  Tom Tromey  <tromey@redhat.com>
1096
1097         PR c++/13342:
1098         * valops.c (value_full_object): Return early if real type is
1099         smaller than the enclosing type.
1100
1101 2011-11-08  Yao Qi  <yao@codesourcery.com>
1102
1103         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1104
1105 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1106
1107         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1108         register when the frame can't be determined.
1109         * arm-tdep.c (arm_analyze_prologue): Ditto.
1110
1111 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1112
1113         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1114
1115 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1116
1117         * infrun.c (handle_inferior_event): Minor reformatting.
1118
1119 2011-11-05  Doug Evans  <dje@google.com>
1120
1121         * source.c (forget_cached_source_info_for_objfile): Move call to
1122         objfile->sf->qf->forget_cached_source_info outside of
1123         ALL_OBJFILE_SYMTABS loop.
1124         (forget_cached_source_info): Delete unused variable `s'.
1125
1126 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1127
1128         * i386-nat.c (dr_ref_count): Remove unused variable.
1129
1130 2011-11-05  Doug Evans  <dje@google.com>
1131
1132         * main.c (captured_main): Set lim_at_start before calling
1133         make_command_stats_cleanup.
1134
1135 2011-11-04  Doug Evans  <dje@google.com>
1136
1137         * utils.c: #include "timeval-utils.h".
1138         (cmd_stats): Rename start_time to start_cpu_time.
1139         New member start_wall_time.
1140         (report_command_stats): Report wall time.
1141         (make_command_stats_cleanup): Record start wall time.
1142
1143 2011-11-04  Tom Tromey  <tromey@redhat.com>
1144
1145         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1146
1147 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1148
1149         * coff-pe-read.c: Include defs.h before bfd.h.
1150
1151 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1152
1153         PR Python/13345
1154
1155         * python/python.c (python_run_simple_file): Expand tilde in path.
1156
1157 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1158
1159         PR Python/13363
1160
1161         * python/py-type.c (typy_lookup_type): Do not return a type in
1162           an exception handler.
1163
1164 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1165             Eli Zaretskii  <eliz@gnu.org>
1166
1167         * linux-nat.c (_initialize_linux_nat): Improve help
1168         for `info proc stat', `info proc status', `info proc cwd',
1169         `info proc cmdline' and `info proc exe'.
1170
1171 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1172
1173         String collection for tracepoints.
1174         * NEWS: Mention string collection.
1175         * common/ax.def (tracenz): New bytecode.
1176         * ax-gdb.h (trace_string_kludge): Declare.
1177         * ax-gdb.c: Include valprint.h and c-lang.h.
1178         (trace_string_kludge): New global.
1179         (gen_traced_pop): Add string case.
1180         (agent_command): Add string case.
1181         * tracepoint.h (decode_agent_options): Declare.
1182         * tracepoint.c: Include cli-utils.h.
1183         (decode_agent_options): New function.
1184         (validate_actionline): Call it.
1185         (encode_actions_1): Ditto.
1186         * target.h (struct target_ops): New method to_supports_string_tracing.
1187         (target_supports_string_tracing): New macro.
1188         * target.c (update_current_target): Add to_supports_string_tracing.
1189         * remote.c (struct remote_state): New field string_tracing.
1190         (remote_string_tracing_feature): New function.
1191         (remote_protocol_features): New feature tracenz.
1192         (remote_supports_string_tracing): New function.
1193         (init_remote_ops): Set to_supports_string_tracing.
1194
1195 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1196             Jan Kratochvil  <jan.kratochvil@redhat.com>
1197
1198         * linux-nat.c: Include cli/cli-utils.h.
1199         (enum info_proc_what): New.
1200         (linux_nat_info_proc_cmd): Rename to ...
1201         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1202         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1203         status_f and stat_f from WHAT.  Throw error on extra parameters.
1204         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1205         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1206         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1207         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1208         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1209         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1210         `info proc cmdline', `info proc exe' and `info proc all' as real
1211         subcommands of `info proc'.
1212
1213 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1214
1215         * Makefile.in: (SFILES): Add skip.c.
1216         (HFILES_NO_SRCDIR): Add skip.h.
1217         (COMMON_OBS): Add skip.o.
1218         * skip.h, skip.c: New.
1219         * breakpoint.h (set_default_breakpoint): Remove.
1220         (get_sal_arch): Declare.
1221         * breakpoint.c: Remove default_breakpoint_valid,
1222         default_breakpoint_address, default_breakpoint_symtab,
1223         default_breakpoint_line, default_breakpoint_pspace variables.
1224         (get_sal_arch): Make public.
1225         (set_default_breakpoint): Remove.
1226         (parse_breakpoint_sals, create_breakpoint, clear_command,
1227         decode_line_spec_1): Remove uses of default_breakpoint variables;
1228         replaced with function calls into stack.c.
1229         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1230         * cli/cli-cmds.c: Add skiplist.
1231         (init_cmd_lists): Initialize skiplist.
1232         (init_cli_cmds): Fix comment (classes of commands appear in
1233         alphabetical order).
1234         * infrun.c (handle_inferior_event): Add check that we don't step into
1235         a function whose pc is marked for skip.
1236         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1237         last_displayed_addr, last_displayed_symtab, last_displayed_line
1238         variables.
1239         (set_last_displayed_sal): New static function.
1240         (print_frame_info): Switch call to set_default_breakpoint to call to
1241         set_last_displayed_sal.
1242         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1243         get_last_displayed_pspace, get_last_displayed_addr,
1244         get_last_displayed_symtab, get_last_displayed_line,
1245         get_last_displayed_sal): New public functions.
1246         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1247         get_last_displayed_pspace, get_last_displayed_addr,
1248         get_last_displayed_symtab, get_last_displayed_line,
1249         get_last_displayed_sal): Declare.
1250
1251 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1252
1253         * MAINTAINERS (Write After Approval): Add myself to the list.
1254
1255 2011-10-29  Yao Qi  <yao@codesourcery.com>
1256
1257         * infcmd.c (disconnect_command): Call disconnect_tracing.
1258
1259 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1260
1261         Code cleanup.
1262         * symtab.c (skip_prologue_sal): Code reformatting.
1263
1264 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1265
1266         PR symtab/13208
1267         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1268         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1269         SAI.
1270
1271 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1272
1273         * linux-nat.c (linux_nat_filter_event): Remove `options'
1274         parameter, and dead code that used it.  If we're handling a
1275         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1276         in our lwp list, re-add it.
1277         (check_zombie_leaders): New.
1278         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1279         wait for children with WNOHANG, and always wait for all children.
1280         Don't check for no resumed children upfront.  Simplify wait loop.
1281         Check for zombie thread group leaders after handling all wait
1282         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1283         unwaited-for children left.
1284         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1285         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1286         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1287         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1288
1289 2011-10-28  Sterling Augustine  <saugustine@google.com>
1290
1291         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1292         * symtab.c (free_completion_list): New function.
1293         (do_free_completion_list): Likewise.
1294         (default_make_symbol_completion_list_break_on): New variable
1295         back_to. Call make_cleanup and discard_cleanups.
1296         (make_source_files_completion_list): Likewise.
1297
1298 2011-10-28  Paul Koning  <paul_koning@dell.com>
1299
1300         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1301         * NEWS: Mention deep_items.
1302
1303 2011-10-28  Alen Skondro  <askondro@gmail.com>
1304
1305         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1306         defined.
1307
1308 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1309
1310         * MAINTAINERS (Write After Approval): Add myself to the list.
1311
1312 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1313
1314         * value.h (read_frame_register_value): Add declaration.
1315         * findvar.c (read_frame_register_value): New function.
1316         (value_from_register): Use read_frame_register_value
1317         instead of get_frame_register_value + value_contents_copy
1318         to get value contents.
1319
1320 2011-10-27  Doug Evans  <dje@google.com>
1321
1322         * cli/cli-cmds.c (source_script_with_search): Pass full path to
1323         source_script_from_stream if it may have been found on the search path.
1324         * python/py-auto-load.c (source_section_scripts): Pass full path to
1325         source_python_script_for_objfile.
1326         * python/python.c (source_python_script): Delete stream parameter.
1327         All callers updated.
1328         (source_python_script_for_objfile): Ditto.
1329         * python/python-internal.h (source_python_script_for_objfile): Update.
1330         * python/python.h (source_python_script): Update.
1331
1332 2011-10-27  Tom Tromey  <tromey@redhat.com>
1333
1334         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1335         (ada_sals_for_line): Remove declarations.
1336
1337 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
1338
1339         Move unwind reasons to an external .def file
1340         * frame.c (frame_stop_reason_string): Rewrite using
1341         unwind_stop_reasons.def.
1342         * frame.h (enum unwind_stop_reason): Likewise.
1343         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1344         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1345         constants for bound-checking.
1346         * unwind_stop_reasons.def: New file.
1347         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1348         instead of a distinct value.
1349
1350 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1351
1352         PR python/13331
1353
1354         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1355         (convert_values_to_python): Return on Python tuple allocation
1356         failure.  Return NULL on value conversion error.
1357
1358 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1359
1360         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1361         (bppy_set_task): Ditto.
1362         (bppy_delete_breakpoint): Ditto.
1363         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1364         (gdbpy_lookup_global_symbol): Ditto.
1365         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1366         * python/py-frame.c (frapy_is_valid): Ditto.
1367         (frame_info_to_frame_object): Ditto.
1368         * python/py-type.c (typy_lookup_type): Ditto.
1369         (typy_getitem): Ditto.
1370         (typy_has_key): Ditto.
1371         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
1372
1373 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
1374
1375         * gdbarch.h: Regenerate.
1376
1377 2011-10-26  Meador Inge  <meadori@codesourcery.com>
1378
1379         * gdbarch.sh (function_list): Use 'pstring' when printing
1380         'gcore_bfd_target'.
1381         * gdbarch.c: Regenerate.
1382
1383 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1384
1385         * regcache.c (registers_changed_ptid): Invalidate thread architecture
1386         and frame caches if PTID refers to all threads of a process.
1387
1388 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1389
1390         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1391         to create_breakpoint.
1392
1393 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1394
1395         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1396         (ppc_sysv_abi_push_dummy_call): Use it.
1397         (do_ppc_sysv_return_value): Likewise.
1398         (ppc64_sysv_abi_push_dummy_call): Likewise.
1399         (ppc64_sysv_abi_return_value): Likewise.
1400
1401 2011-10-26  Paul Koning  <paul_koning@dell.com>
1402
1403         * python/lib/gdb/types.py (deepitems): New function.
1404         
1405 2011-10-25  Paul Koning  <paul_koning@dell.com>
1406
1407         PR python/13327
1408         
1409         * python/py-value.c (value_to_value_object): Remove fetching of
1410         the value if it was lazy.
1411         (valpy_get_is_lazy): New function.
1412         (valpy_fetch_lazy): New function.
1413
1414 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
1415
1416         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1417         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1418
1419 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1420
1421         * linux-nat.c (linux_handle_extended_wait): When handling a clone
1422         event, in non-stop, if not stopping, make sure the new lwp has
1423         last_resume_kind set to resume_continue.  Assert that when we're
1424         resuming the new lwp, its last_resume_kind is resume_continue.
1425
1426 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1427
1428         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1429         already set when marking the event thread as not executing in
1430         non-stop mode.
1431
1432 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1433
1434         * infrun.c (handle_inferior_event): Add debug output for
1435         TARGET_WAITKIND_NO_HISTORY.
1436
1437 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1438
1439         * NEWS: Move set/show extended-prompt to "New Options". Expand
1440         description. Fix typos.
1441
1442 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1443
1444         PR python/13310
1445
1446         * python/py-param.c (call_doc_function): Correctly deference on
1447         function exit.
1448
1449 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
1450
1451         * ada-tasks.c (print_ada_task_info): Fix computation of
1452         number of tasks displayed in command output.
1453
1454 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1455             Ulrich Weigand  <uweigand@de.ibm.com>
1456
1457         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1458         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1459         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
1460         gdbarch_pc_regnum and frame_unwind_register_unsigned by
1461         gdbarch_unwind_pc.
1462
1463 2011-10-20  Cary Coutant  <ccoutant@google.com>
1464
1465         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1466         section to...
1467         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
1468         flag.  Adjust all callers.
1469         (process_psymtab_comp_unit): Remove adjustment for type section.
1470
1471 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1472
1473         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1474         arguments by adding OBJFILE.  Instead of getting objfile from
1475         symbol's symtab, use new argument OBJFILE.
1476         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1477         arguments by adding OBJFILE.
1478         * gdb/dwarf2read.c (new_symbol_full): Change call to
1479         cp_scan_for_anonymous_namespaces to match new signature.
1480         * gdb/stabsread.c (define_symbol): Change call to
1481         cp_scan_for_anonymous_namespaces to match new signature.
1482
1483 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1484
1485         PR python/13308
1486         PR python/13309
1487
1488         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1489         leak.
1490         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1491         leak.  Delete unused variables.
1492
1493 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1494
1495         PR python/12656
1496
1497         * python/py-frame.c (frapy_read_var): Use const struct *block.
1498         * python/py-type.c (typy_lookup_typename): Likewise.
1499         (typy_lookup_type): Likewise.
1500         (typy_legacy_template_argument): Likewise.
1501         (typy_template_argument): Likewise.
1502         (gdbpy_lookup_type): Likewise.
1503         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1504         * python/py-block.c (blpy_block_object): Likewise.
1505         (blpy_iter): Likewise.
1506         (blpy_get_start): Likewise.
1507         (blpy_get_end): Likewise.
1508         (blpy_get_function): Likewise.
1509         (blpy_get_superblock): Likewise.
1510         (set_block):  Likewise.
1511         (block_to_block_object): Likewise.
1512         (block_object_to_block): Likewise.
1513         (blpy_is_valid): Likewise.
1514         (blpy_get_global_block): New function.
1515         (blpy_get_static_block): New function.
1516         (blpy_is_global): New function.
1517         (blpy_is_static): New function.
1518         * blockframe.c (block_innermost_frame): Likewise.
1519         * valops.c (value_of_variable): Likewise.
1520         * frame.h: Update prototypes.
1521         * python/python-internal.h: Likewise.
1522         * value.h: Likewise.
1523
1524 2011-10-19  Cary Coutant  <ccoutant@google.com>
1525
1526         * dwarf2read.c (create_debug_types_hash_table): Fix size of
1527         type_offset field.
1528
1529 2011-10-19  Cary Coutant  <ccoutant@google.com>
1530
1531         * dwarf2read.c (peek_abbrev_code): New function.
1532         (dw2_get_file_names): Check for dummy compilation units.
1533         (create_debug_types_hash_table): Likewise.
1534         (process_psymtab_comp_unit): Likewise.
1535         (load_partial_comp_unit): Likewise.
1536         (load_full_comp_unit): Likewise.
1537
1538 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
1539
1540         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1541         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1542         pt_phdr if PT_PHDR was found.
1543
1544 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
1545
1546         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1547         type or "<unnamed type"> when there is no name assigned.
1548         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1549         avoid a sigint when no name is assigned.
1550
1551 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1552
1553         Revert:
1554         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1555         * dwarf2expr.c (ctx_no_read_reg): New function.
1556         * dwarf2expr.h (ctx_no_read_reg): New declaration.
1557         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1558         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1559         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1560
1561 2011-10-16  Doug Evans  <dje@google.com>
1562
1563         * NEWS: Document python gdb.printing.register_pretty_printer's new
1564         `replace' parameter.
1565
1566 2011-10-14  Keith Seitz  <keiths@redhat.com>
1567
1568         PR c++/13225
1569         * eval.c (evaluate_subexp_standard): Do not construct
1570         an array of types; pass the value array directly to
1571         find_overload_match.
1572         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1573         (rank_function): Take an array of values instead of types.
1574         (rank_one_type): Add struct value * parameter.
1575         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1576         (rank_function): For each argument, pass the argument's
1577         value to rank_one_type.
1578         (rank_one_type): Add VALUE parameter.
1579         If the parameter type is a pointer and the argument type
1580         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1581         VALUE is zero.
1582         Update all calls to rank_one_type, passing NULL for new
1583         VALUE parameter.
1584         * valarith.c (value_user_defined_cpp_op): Do not construct
1585         an array of types; pass the value array directly to
1586         find_overload_match.
1587         * valops.c (find_overload_method_list): Take an array of
1588         values instead of types.
1589         Save the type of OBJP for later use.
1590         Update calls to find_oload_champ, and find_oload_champ_namespace.
1591         (find_oload_champ_namespace): Take an array of values instead
1592         of types.
1593         (find_oload_champ_namespace_loop): Likewise.
1594         (find_oload_champ): Likewise.
1595         (classify_oload_match): Inspect all arguments
1596         until INCOMPATIBLE is found. Return the worst badness found
1597         otherwise.
1598         (compare_parameters): Update call to rank_one_type.
1599         * value.h (find_overload_match): Take an array of values instead
1600         of types.
1601
1602 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1603
1604         Drop lazy lm_info reading.
1605         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
1606         l_addr_inferior, l_ld, l_next, l_prev and l_name.
1607         (lm_info_read): New function.
1608         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1609         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
1610         lm_dynamic_from_link_map.
1611         (lm_next, lm_prev, lm_name): Remove.
1612         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1613         initialization incl. read_memory.  No longer use lm_name.
1614         (svr4_free_so): Drop lm_info->lm freeing.
1615         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
1616         explicit lm_addr and lm initialization.
1617         (svr4_read_so_list): Use lm_info_read, drop the initailization of
1618         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
1619         lm_name.
1620
1621 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1622             Paul Pluzhnikov  <ppluzhnikov@google.com>
1623
1624         * defs.h (struct so_list): New forward declaration.
1625         (make_cleanup_free_so): New declaration.
1626         * solib-svr4.c (ignore_first_link_map_entry): Remove.
1627         (svr4_free_so): Move the function here from downwards.  Handle NULL
1628         so->lm_info.
1629         (svr4_free_library_list): New.
1630         (svr4_read_so_list): New, moved here code from svr4_current_sos.
1631         Use more cleanups.  Use new parameter ignore_first instead of
1632         ignore_first_link_map_entry.
1633         (svr4_current_sos): New variable ignore_first, initialize it.  New
1634         variable back_to, use it for svr4_free_library_list protection.
1635         (svr4_free_so): Remove - move upwards.
1636         * utils.c: Include solist.h.
1637         (do_free_so, make_cleanup_free_so): New functions.
1638
1639 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1640
1641         Fix internal error regression.
1642         * value.c (value_primitive_field): Handle value_optimized_out.  Move
1643         packed bitfields comment.
1644
1645 2011-10-13  Tom Tromey  <tromey@redhat.com>
1646
1647         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1648         always released.
1649
1650 2011-10-13  Tom Tromey  <tromey@redhat.com>
1651
1652         * python/py-type.c (typy_has_key): Make 'field' const.
1653
1654 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
1655
1656         * remote.c (remote_save_trace_data): Invert comparison.
1657
1658 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
1659
1660         * tracepoint.c (trace_save_command): Use filename instead of
1661         args when printing.
1662
1663 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1664
1665         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1666         if .size is 0.
1667
1668 2011-10-13  Yao Qi  <yao@codesourcery.com>
1669
1670         PR gdb/12703
1671         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1672         whether insn is a 32-bit Thumb-2 instruction.
1673         (thumb_in_function_epilogue_p): Likewise.
1674         (thumb_get_next_pc_raw): Likewise.
1675         (arm_breakpoint_from_pc): Likewise.
1676
1677 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1678
1679         Fix empty DWARF expressions DATA vs. SIZE conditionals.
1680         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1681         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1682         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1683         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1684         zero DATA.
1685         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1686         validity.
1687         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1688         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1689         clear DATA on zero SIZE.
1690
1691 2011-10-12  Doug Evans  <dje@google.com>
1692
1693         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1694         header->first_die_offset here.  All callers updated.
1695
1696 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1697
1698         Fix compatibility with texinfo versions older than 4.12.
1699         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1700         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1701         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1702         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1703         * configure: Regenerate.
1704         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1705         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1706         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1707
1708 2011-10-12  Gary Benson  <gbenson@redhat.com>
1709
1710         * breakpoint.h (pc_at_non_inline_function): Declare.
1711         * breakpoint.c (is_non_inline_function,
1712         pc_at_non_inline_function): New functions.
1713         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1714         if the stop is at a location where functions cannot be inlined.
1715
1716 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
1717
1718         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1719         the core wanted them stopped, or if they now have a pending event
1720         to report.
1721         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
1722         down to stop_and_resume_callback.
1723         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
1724         having new pending events after calling linux_nat_filter_event.
1725
1726 2011-10-11  Sterling Augustine  <saugustine@google.com>
1727
1728         * dwarf2read.c: Undo inadvertent changes in previous commit.
1729
1730 2011-10-11  Sterling Augustine  <saugustine@google.com>
1731
1732         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1733         logic.
1734
1735 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
1736
1737         * symfile.c (separate_debug_file_exists): Fix condition.
1738
1739 2011-10-11  David S. Miller  <davem@davemloft.net>
1740
1741         * regcache.c (regcache_restore): Do not write unavailable regs, mark
1742         static.
1743         * regcache.h (regcache_restore): Remove declaration.
1744
1745         * gdbarch.sh: New field 'long_long_align_bit'.
1746         * gdbarch.c, gdbarch.h: Regenerate.
1747         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1748         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1749
1750 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1751
1752         Revert this part of:
1753         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1754         Support @entry in input expressions.
1755         * c-exp.y (ENTRY, unknown_cpp_name): New.
1756         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1757         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1758         (variable: name_not_typename '@' ENTRY, name: ENTRY)
1759         (name_not_typename: ENTRY): New.
1760         (yylex): Recognize ENTRY.
1761
1762         Reimplement @entry in input expressions.
1763         * c-exp.y (ENTRY): New.
1764         (variable: name_not_typename ENTRY): New.
1765         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1766
1767 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
1768
1769         * linux-nat.c (linux_handle_extended_wait): Always dump both the
1770         parent and child's pids as soon as we detect a clone event.
1771         Adjust another debug message.
1772
1773 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
1774
1775         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1776         not zombie instead of reading the whole file.
1777
1778 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1779
1780         Fix separate debuginfo warning with "remote:" access.
1781         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1782         * symfile.c (get_file_crc): New function with the code moved from ...
1783         (separate_debug_file_exists): ... this function, specifically variables
1784         buffer and count.  New variable verified_as_different, set it.  Remove
1785         file_crc initialization.  Verify also if both files are not the same
1786         manually, if needed.
1787
1788 2011-10-11  Yao Qi  <yao@codesourcery.com>
1789
1790         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1791         to get address.
1792
1793 2011-10-10  Doug Evans  <dje@google.com>
1794
1795         * linux-thread-db.c (thread_db_new_objfile): Only try to load
1796         libthread_db when we load libpthread or the main symbol file.
1797         (thread_db_inferior_created): New function.
1798         (_initialize_thread_db): Attach inferior_created observer.
1799         * linux-nat.c (linux_child_post_attach): Remove call to
1800         check_for_thread_db.
1801         (linux_child_post_startup_inferior): Ditto.
1802         * objfiles.h (OBJF_MAINLINE): Define.
1803         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1804         allocate_objfile when appropriate.
1805
1806 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
1807
1808         PR gdb/13218
1809         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1810         Remove unused variables.
1811         (get_linux_version): Remove function.
1812         (_initialize_arm_linux_nat): Do not call it.
1813
1814 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1815
1816         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1817         new clone lwp if the core asked it to stop.  Don't pass on
1818         unexpected signals to the new clone; leave them pending instead.
1819
1820 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1821
1822         * linux-nat.c (resume_lwp): Remove redundant debug output.
1823
1824 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1825
1826         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1827         last_resume_kind before clearing it, and use the copy instead to
1828         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
1829         resume_clear_callback in the non-stop path too.
1830
1831 2011-10-09  Yao Qi  <yao@codesourcery.com>
1832
1833         * valprint.c (value_check_printable): Add one parameter OPTIONS.
1834         Honor OPTIONS and VAL's type.
1835         (common_val_print, value_print): Update to pass one more parameter.
1836
1837 2011-10-09  Doug Evans  <dje@google.com>
1838
1839         Add new "alias" command.
1840         * NEWS: Mention new command.
1841         * command.h (valid_user_defined_cmd_name_p): Declare.
1842         * defs.h (make_cleanup_dyn_string_delete): Declare.
1843         * utils.c: #include "dyn-string.h".
1844         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1845         * cli/cli-cmds.c: #include "dyn-string.h".
1846         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1847         (init_cli_cmds): Add new command.
1848         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1849
1850 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1851
1852         Fix compatibility with older GCCs.
1853         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1854         * stack.c (read_frame_arg): Initialize val_deref.
1855
1856 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1857
1858         Entry values NEWS entries, DWARF disassembly support.
1859         * NEWS: New entry values entry.
1860         (set print entry-values, show print entry-values)
1861         (set debug entry-values, show debug entry-values): New entries.
1862         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1863         indent.  Remove variable start.  Move header printing out.  Respect
1864         INDENT.  Support DW_OP_GNU_entry_value.
1865         (locexpr_describe_location_1): Move the header printing here, extend
1866         the disassemble_dwarf_expression passed parameters.
1867
1868 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1869
1870         Display @entry parameter values even for references.
1871         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1872         coerce_ref_if_computed.
1873         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1874         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1875         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1876         existing push_dwarf_reg_entry_value call.  Add new detection calling
1877         dwarf_block_to_dwarf_reg_deref.  Update the error message.
1878         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1879         * dwarf2expr.h
1880         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1881         parameter deref_size, describe it in the comment.
1882         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1883         (dwarf_block_to_dwarf_reg_deref): New declaration.
1884         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1885         deref_size, describe it in the function comment.  New variables
1886         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1887         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1888         describe it in the function comment.  Fetch the alternative block
1889         accoring to DEREF_SIZE.
1890         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1891         (entry_data_value_free_closure, entry_data_value_funcs): New.
1892         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1893         outer_val, target_val, val and addr.  Try to fetch and create also
1894         referenced value content.
1895         (pieced_value_funcs): NULL value for coerce_ref.
1896         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1897         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1898         coerce_ref_if_computed.
1899         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1900         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1901         * stack.c (read_frame_arg): Compare also dereferenced values.
1902         * value.c (value_computed_funcs): Make the parameter v const, use
1903         value_lval_const for it.
1904         (value_lval_const, coerce_ref_if_computed): New function.
1905         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
1906         * value.h (struct lval_funcs): New field coerce_ref.
1907         (value_computed_funcs): Make the parameter v const.
1908         (value_lval_const, coerce_ref_if_computed): New declarations.
1909
1910 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1911
1912         Support @entry in input expressions.
1913         * c-exp.y (ENTRY, unknown_cpp_name): New.
1914         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1915         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1916         (variable: name_not_typename '@' ENTRY, name: ENTRY)
1917         (name_not_typename: ENTRY): New.
1918         (yylex): Recognize ENTRY.
1919         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1920         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1921         Likewise.
1922         * parse.c (operator_length_standard): Likewise.
1923         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1924
1925 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1926
1927         Display referenced values in backtraces.
1928         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1929         * stack.c (print_frame_arg): Likewise.
1930
1931 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1932
1933         Make some lval_funcs methods to default on NULL.
1934         * valops.c (value_fetch_lazy): Check if lval_computed read method is
1935         NULL.
1936         (value_assign): Check if lval_computed write method is NULL.
1937         * value.h (struct lval_funcs): Comment NULL values for read and write
1938         methods.
1939
1940 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1941
1942         Display @entry parameter values (without references).
1943         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1944         New functions.
1945         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1946         New declarations.
1947         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1948         entry record.
1949         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1950         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1951         functions.
1952         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1953         (loclist_read_variable_at_entry): New function.
1954         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1955         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1956         DW_AT_location, call dwarf_block_to_sp_offset for it.
1957         * frame.h (print_entry_values_no, print_entry_values_only)
1958         (print_entry_values_preferred, print_entry_values_if_needed)
1959         (print_entry_values_both, print_entry_values_compact)
1960         (print_entry_values_default, print_entry_values): New declarations.
1961         (struct frame_arg): New field entry_kind.
1962         (read_frame_arg): New parameter entryargp.
1963         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1964         arg->entry_kind.  Optionally print the `@entry' suffix.
1965         (list_args_or_locals): New variable entryarg, initialize it.
1966         Initialize also entry_kind of arg and entryarg.  Conditionalize
1967         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
1968         xfree for entryarg.error.
1969         * stack.c (print_entry_values_no, print_entry_values_only)
1970         (print_entry_values_preferred, print_entry_values_if_needed)
1971         (print_entry_values_both, print_entry_values_compact)
1972         (print_entry_values_default, print_entry_values_choices)
1973         (print_entry_values): New variables.
1974         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
1975         print the `@entry' suffix, possibly in combination for
1976         print_entry_values_compact.
1977         (read_frame_arg): New parameter entryargp, new variables entryval,
1978         entryval_error and val_equal.  Read in also entryargp, respect
1979         print_entry_values, compare the values using val_equal, fill in also
1980         argp->entry_kind (together with entryargp->entry_kind).
1981         (print_frame_args): New variable entryarg, initialize it.
1982         Conditionalize print_frame_arg for arg, add print_frame_arg for
1983         entryarg.  Call xfree for entryarg.error.
1984         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1985         * symtab.h (struct symbol_computed_ops): New field
1986         read_variable_at_entry.
1987
1988 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1989
1990         Code reshuffle.
1991         * frame.h (struct frame_arg): New definition.
1992         (read_frame_arg): New declaration.
1993         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1994         (list_args_or_locals): ... the code here.  New variable arg, call
1995         read_frame_arg and list_arg_or_local with it.  Unify the
1996         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
1997         arg.error.
1998         * stack.c (print_frame_arg): New functiom from the code of
1999         print_frame_args.
2000         (read_frame_arg): New function.
2001         (print_frame_args): Remove variable val.  New variable arg, call
2002         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2003
2004 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2005
2006         Protect entry values against self tail calls.
2007         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2008         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2009
2010 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2011
2012         Recognize virtual tail call frames.
2013         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2014         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2015         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2016         * dwarf2-frame-tailcall.c: New file.
2017         * dwarf2-frame-tailcall.h: New file.
2018         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2019         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2020         REGS.PREV only after CIE execution.
2021         (struct dwarf2_frame_cache): New field tailcall_cache.
2022         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2023         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2024         parts, try to find entry_cfa_sp_offset.  Call
2025         dwarf2_tailcall_sniffer_first.
2026         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2027         when appropriate.
2028         (dwarf2_frame_dealloc_cache): New function.
2029         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2030         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2031         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2032         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2033         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2034         * dwarf2loc.c (func_addr_to_tail_call_list)
2035         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2036         (call_site_find_chain_1, call_site_find_chain): New.
2037         * dwarf2loc.h (struct call_site_chain): New.
2038         (call_site_find_chain): New declaration.
2039         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2040         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2041         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2042         * stack.c (frame_info): Support also TAILCALL_FRAME.
2043
2044 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2045
2046         Tail call sites reader implementation.
2047         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2048         fill in TYPE_TAIL_CALL_LIST.
2049         * gdbtypes.h (struct func_type): New field tail_call_list.
2050         (struct call_site): New field tail_call_next.
2051         (TYPE_TAIL_CALL_LIST): New definition.
2052
2053 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2054
2055         Implement basic support for DW_TAG_GNU_call_site.
2056         * block.c: Include gdbtypes.h and exceptions.h.
2057         (call_site_for_pc): New function.
2058         * block.h (call_site_for_pc): New declaration.
2059         * defs.h: Include hashtab.h.
2060         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2061         declarations.
2062         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2063         ctx_no_push_dwarf_reg_entry_value.
2064         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2065         (dwarf_block_to_dwarf_reg): New function.
2066         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2067         (ctx_no_push_dwarf_reg_entry_value): New function.
2068         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2069         push_dwarf_reg_entry_value.
2070         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2071         declarations.
2072         * dwarf2loc.c: Include gdbcmd.h.
2073         (dwarf_expr_ctx_funcs): New forward declaration.
2074         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2075         (dwarf_expr_reg_to_entry_parameter)
2076         (dwarf_expr_push_dwarf_reg_entry_value): New.
2077         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2078         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2079         (needs_dwarf_reg_entry_value): New function.
2080         (needs_frame_ctx_funcs): Install it.
2081         (_initialize_dwarf2loc): New function.
2082         * dwarf2loc.h (entry_values_debug): New declaration.
2083         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2084         (read_call_site_scope): New forward declaration.
2085         (process_full_comp_unit): Copy call_site_htab.
2086         (process_die): Support DW_TAG_GNU_call_site.
2087         (read_call_site_scope): New function.
2088         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2089         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2090         (cleanup_htab): Delete.
2091         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2092         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2093         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2094         FIELD_LOC_KIND_DWARF_BLOCK.
2095         * gdbtypes.h (enum field_loc_kind): New entry
2096         FIELD_LOC_KIND_DWARF_BLOCK.
2097         (struct main_type): New loc entry dwarf_block.
2098         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2099         (TYPE_FIELD_DWARF_BLOCK): New.
2100         * python/py-type.c: Include dwarf2loc.h.
2101         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2102         internal_error call on unknown FIELD_LOC_KIND.
2103         * symtab.h (struct symtab): New field call_site_htab.
2104         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2105         (core_addr_hash, core_addr_eq): New functions.
2106
2107 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2108
2109         Code reshuffle.
2110         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2111         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2112         calling_convention under func_stuff there.
2113         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2114         (init_type) <TYPE_CODE_FUNC>: Likewise.
2115         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2116         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2117         * gdbtypes.h (enum type_specific_kind): Change
2118         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2119         (struct main_type) <type_specific>: Change calling_convention to
2120         func_stuff.  Move calling_convention to ...
2121         (struct func_type): ... this new struct.
2122         (INIT_FUNC_SPECIFIC): New #define.
2123         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2124
2125 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2126
2127         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2128         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2129         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2130         ctx->ref_addr_size.  Handle its invalid value.
2131         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2132         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2133         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2134         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2135         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2136         (dwarf2_per_cu_ref_addr_size): New function.
2137
2138 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2139
2140         Code cleanup.
2141         * dwarf2read.c (per_cu_header_read_in): New function.
2142         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2143         variables cu_header_local and cu_headerp.
2144
2145 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2146
2147         Fix initial language detection with -readnow.
2148         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2149         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2150         searches only for global symbols.
2151
2152 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2153
2154         Fix printed anonymous struct name.
2155         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2156         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2157         (anonymous_struct_prefix): New function.
2158         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2159         (dwarf2_name): Strip for anonymous structs any prefixes.
2160
2161 2011-10-07  Doug Evans  <dje@google.com>
2162
2163         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2164         `replace'.
2165
2166         * python/lib/gdb/printing.py: Whitespace cleanup.
2167
2168         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2169         warning.
2170
2171 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2172
2173         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2174         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2175         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2176         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2177         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2178         (arm_linux_remove_watchpoint): Adjust.
2179         * i386-linux-nat.c (i386_linux_dr_set_control)
2180         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2181         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2182         (ia64_linux_remove_watchpoint): Adjust.
2183         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2184         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2185         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2186         (ppc_linux_insert_mask_watchpoint)
2187         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2188         (ppc_linux_remove_watchpoint): Adjust.
2189         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2190         Adjust.
2191
2192 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2193
2194         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2195         (clear_win32_environment): New function for Cygwin to clear out
2196         Win32 environment.
2197         (windows_create_inferior): Prepare new environment from in_env
2198         for Cygwin, too.
2199
2200 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2201
2202         PR python/13264
2203         * python/py-value.c (valpy_call): Check that arguments are
2204         a tuple.
2205         (is_intlike): Remove call to CHECK_TYPEDEF.
2206         (valpy_nonzero): Catch GDB exceptions.
2207         (valpy_absolute): Ditto.
2208         (valpy_lazy_string): Ditto.
2209         (valpy_call): Ditto.
2210         (valpy_get_is_optimized_out): Ditto.
2211         (valpy_long): Ditto.
2212         (valpy_float): Ditto.
2213         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2214         (valpy_richcompare): Ditto.
2215
2216 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2217
2218         * inferior.h (disable_randomization): Declare.
2219         * infrun.c (disable_randomization): New global variable.
2220         (show_disable_randomization): New function.
2221         (set_disable_randomization): Likewise.
2222         (_initialize_infrun): Install set/show disable-randomization
2223         commands.
2224         * linux-nat.c (disable_randomization): Remove.
2225         (show_disable_randomization): Likewise.
2226         (set_disable_randomization): Likewise.
2227         (_initialize_linux_nat): No longer install set/show
2228         disable-randomization commands here.
2229         (linux_nat_supports_disable_randomization): New function.
2230         (linux_nat_add_target): Install it.
2231         * remote.c (PACKET_QDisableRandomization): New enum value.
2232         (remote_protocol_packets): Support QDisableRandomization.
2233         (_initialize_remote): Likewise.
2234         (remote_supports_disable_randomization): New function.
2235         (init_remote_ops): Install it.
2236         (extended_remote_supports_disable_randomization): New function.
2237         (init_extended_remote_ops): Install it.
2238         (extended_remote_disable_randomization): New function.
2239         (extended_remote_create_inferior_1): Call it.
2240         * target.h (struct target_ops): Add to_supports_disable_randomization.
2241         (target_supports_disable_randomization): Add prototype.
2242         * target.c (target_supports_disable_randomization): New function.
2243         (find_default_supports_disable_randomization): Likewise.
2244         (init_dummy_target): Install it.
2245
2246 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2247
2248         Allow Python notification of new object-file loadings.
2249         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2250         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2251         Add build rule for this file.
2252         * python/py-event.h (emit_new_objfile_event): New prototype.
2253         (newobjfile): New Python event emitter.
2254         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2255         Python event registry.
2256         * python/py-inferior.c: Include objfiles.h
2257         (python_new_objfile): New function.
2258         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2259         observers.
2260         * python/py-newobjfileevent.c: New file.
2261         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2262         prototype.
2263         * python/python.c (_initialize_python): Add 
2264         gdbpy_initialize_new_objfile_event call.
2265         * NEWS: Add item for new Python event "gdb.newobjfile"
2266
2267 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2268
2269         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2270         Extract the ravenscar task name from the symbol for the atcb.
2271
2272 2011-10-04  Paul Koning  <paul_koning@dell.com>
2273
2274         * python/py-type.c (typy_make_iter): Add forward declaration.
2275         (typy_fields_items):  Use the gdb.Type iterator.
2276
2277 2011-10-04  Paul Koning  <paul_koning@dell.com>
2278
2279         * NEWS: Add entry for Python gdb.Type mapping methods.
2280
2281 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2282
2283         PR python/12691: Add the inferior to Python exited event
2284         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2285         to exited_event.
2286         * python/py-event.h (emit_exited_event): Likewise
2287         * python/-inferior.c (python_inferior_exit): Likewise
2288
2289 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2290
2291         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2292         in output of -ada-task-info GDB/MI command.
2293
2294 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2295
2296         * ada-lang.h (struct inferior): Declare.
2297         (print_ada_task_info): Add declaration.
2298         * ada-tasks.c (print_ada_task_info): Make non-static.
2299         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2300         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2301         * mi/mi-main.c: #include "ada-lang.h".
2302         (mi_cmd_list_features): Add "ada-task-info" to the list
2303         of supported features.
2304         (mi_cmd_ada_task_info): New function.
2305
2306 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2307
2308         * python/python.c (python_run_simple_file): New function.
2309         (source_python_script, source_python_script_for_objfile):
2310         Replace call to PyRun_SimpleFile by call to
2311         python_run_simple_file.
2312
2313 2011-10-03  Paul Koning  <paul_koning@dell.com>
2314
2315         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2316         (value_to_value_object): Fetch value if it was lazy.
2317
2318 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2319
2320         Code cleanup.
2321         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
2322         Rearrange the code for it.
2323
2324 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
2325
2326         * breakpoint.c (bkpt_print_recreate): Add call to
2327         print_recreate_thread.
2328
2329 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
2330
2331         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2332         PTRACE_GETFDPIC_INTERP): Define.
2333
2334 2011-09-28  Yao Qi  <yao@codesourcery.com>
2335
2336         * symfile.c (add_symbol_file_command): Update message on usage.
2337
2338 2011-09-28  Paul Koning  <paul_koning@dell.com>
2339
2340         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2341         (typy_length, typy_get, typy_has_key, typy_make_iter)
2342         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2343         (typy_iterator_iter, typy_iterator_iternext)
2344         (typy_iterator_dealloc): New functions to implement standard
2345         Python mapping methods on gdb.Type object.
2346         (gdb.TypeIterator): New Python type.
2347         * python/python-internal.h (gdbpy_iter_kind): New enum.
2348
2349 2011-09-28  David S. Miller  <davem@davemloft.net>
2350
2351         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2352         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2353         * sparc-tdep.c (sparc_complex_floating_p): New function.
2354         (sparc32_store_arguments): Handle complex floats.
2355         (sparc32_extract_return_value): Likewise.
2356         (sparc32_store_return_value): Likewise.
2357         (sparc32_stabs_argument_has_addr): Likewise.
2358         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2359         (sparc64_store_floating_fields): Handle complex floats.
2360         (sparc64_store_arguments): Likewise.
2361         (sparc64_store_return_value): Likewise.
2362
2363 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
2364
2365         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2366         before the change on 2006-12-09.
2367         (windows_create_inferior) [!__CYGWIN__]: Restore code that
2368         generates the environment block for CreateProcessA, modulo the
2369         Cygwin-specific parts that are not needed here.
2370
2371 2011-09-27  Tristan Gingold  <gingold@adacore.com>
2372
2373         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2374         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2375         (darwin_solib_get_all_image_info_addr_at_init): New function.
2376         (darwin_solib_read_all_image_info_addr): Likewise.
2377         (darwin_solib_create_inferior_hook): Use the above two functions.
2378         * darwin-nat.c (darwin_execvp): Renames retval to res.
2379         (darwin_read_write_inferior): Update comment.
2380         (darwin_read_dyld_info): New function.
2381         (darwin_xfer_partial): Handle DYLD_INFO.
2382
2383 2011-09-27  Stan Shebs  <stan@codesourcery.com>
2384
2385         Add return address collection for tracepoints.
2386         * tracepoint.c (encode_actions_1): Add case for $_ret.
2387         (validate_actionline): Check for $_ret.
2388         (trace_dump_actions): Ditto.
2389         * ax-gdb.h (gen_trace_for_return_address): Declare.
2390         * ax-gdb.c: Include arch-utils.h.
2391         (gen_trace_for_return_address): New function.
2392         (agent_command): Add return address special case.
2393         * amd64-tdep.c: Include ax.h and ax-gdb.h.
2394         (amd64_gen_return_address): New function.
2395         (amd64_init_abi): Call it.
2396         * i386-tdep.c: Include ax.h and ax-gdb.h.
2397         (i386_gen_return_address): New function.
2398         (i386_init_abi): Call it.
2399         * arch-utils.h (default_gen_return_address): Declare.
2400         * arch-utils.c (default_gen_return_address): New function.
2401         * gdbarch.sh (gen_return_address): New method.
2402         * gdbarch.h, gdbarch.c: Regenerate.
2403
2404 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
2405
2406         PR gdb/13079
2407         * i386-tdep.c (i386_frame_align): New.
2408         (i386_gdbarch_init): Use i386_frame_align.
2409
2410 2011-09-23  Yao Qi  <yao@codesourcery.com>
2411
2412         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2413         to get address.
2414
2415 2011-09-22  Tristan Gingold  <gingold@adacore.com>
2416
2417         * fork-child.c (fork_inferior): Add exec_fun parameter.
2418         Call exec_fun or execvp.
2419         * inferior.h: Adjust prototype.
2420         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2421         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2422         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2423         * procfs.c (procfs_create_inferior): Ditto.
2424         * darwin-nat.c (darwin_execvp): New function.
2425         (darwin_create_inferior): Use it.
2426
2427 2011-09-22  Yao Qi  <yao@codesourcery.com>
2428
2429         * infrun.c (context_switch): Print debug message when switching to
2430         a different thread.
2431
2432 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
2433
2434         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2435         complex and vector types.
2436         (s390_return_value_convention): Likewise.
2437
2438         (s390_value_from_register): Call check_typedef.
2439         (extend_simple_arg): Likewise.
2440         (alignment_of): Likewise.
2441         (s390_push_dummy_call): Likewise.
2442         (s390_return_value): Likewise.
2443
2444 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
2445
2446         * event-top.c (async_disconnect): If an exception is thrown from
2447         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
2448         catch_errors.
2449         * top.c (quit_cover): Return void and take no arguments.
2450         * top.h (quit_cover): Update prototype.
2451
2452 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
2453
2454         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2455         current_uiout, not uiout.
2456
2457 2011-09-19  Doug Evans  <dje@google.com>
2458
2459         * python/py-auto-load.c (source_section_scripts): Fix file
2460         descriptor leak.
2461         * python/python.c (source_python_script_for_objfile): Tweak comments.
2462
2463 2011-09-18  Yao Qi  <yao@codesourcery.com>
2464             Ulrich Weigand  <ulrich.weigand@linaro.org>
2465
2466         Support displaced stepping for Thumb 16-bit insns.
2467         * arm-tdep.c (THUMB_NOP) Define.
2468         (thumb_copy_unmodified_16bit): New.
2469         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2470         (thumb_copy_alu_reg): New.
2471         (arm_copy_svc): Move some common code to ...
2472         (install_svc): ... here.  New.
2473         (thumb_copy_svc): New.
2474         (install_pc_relative): New.
2475         (thumb_copy_pc_relative_16bit): New.
2476         (thumb_decode_pc_relative_16bit): New.
2477         (thumb_copy_16bit_ldr_literal): New.
2478         (thumb_copy_cbnz_cbz): New.
2479         (cleanup_pop_pc_16bit_all): New.
2480         (thumb_copy_pop_pc_16bit): New.
2481         (thumb_process_displaced_16bit_insn): New.
2482         (thumb_process_displaced_32bit_insn): New.
2483         (thumb_process_displaced_insn): process thumb instruction.
2484
2485         Support displaced stepping for Thumb 32-bit insns.
2486         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2487         (thumb2_copy_preload): New.
2488         (thumb2_copy_copro_load_store): New.
2489         (thumb2_copy_b_bl_blx): New.
2490         (thumb2_copy_alu_imm): New.
2491         (thumb2_copy_load_reg_imm): New.
2492         (thumb2_copy_load_literal): New
2493         (thumb2_copy_block_xfer): New.
2494         (thumb_32bit_copy_undef): New.
2495         (thumb_32bit_copy_unpred): New.
2496         (thumb2_decode_ext_reg_ld_st): New.
2497         (thumb2_decode_svc_copro): New.
2498         (decode_thumb_32bit_store_single_data_item): New.
2499         (thumb_copy_pc_relative_32bit): New.
2500         (thumb_decode_pc_relative_32bit): New.
2501         (decode_thumb_32bit_ld_mem_hints): New.
2502         (thumb2_copy_table_branch): New
2503         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2504         instructions.
2505
2506 2011-09-18  Yao Qi  <yao@codesourcery.com>
2507
2508         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2509         (install_b_bl_blx): Likewise.
2510
2511 2011-09-17  Yao Qi  <yao@codesourcery.com>
2512
2513         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2514         (install_load_store): ... this.  New.
2515         Change parameter BYTE to SIZE.
2516         (arm_copy_ldr_str_ldrb_strb): Update caller.
2517         (arm_decode_ld_st_word_ubyte): Update caller.
2518
2519 2011-09-17  Yao Qi  <yao@codesourcery.com>
2520
2521         * infrun.c (displaced_step_fixup): Move some code ...
2522         (displaced_step_restore): ... here.  New function.
2523         (handle_inferior_event): Cleanup displaced stepping state for both
2524         child and parent when get forked or vforked event.
2525         * regcache.c (get_thread_arch_aspace_regcache): New function.
2526         get_thread_arch_regcache (): Call it.
2527
2528 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2529
2530         * ada-tasks.c (print_ada_task_info): New function, merging
2531         short_task_info and info_tasks together.  Reimplement using
2532         ui-out instead of printing to stdout directly.  Move the code
2533         building and checking the task list here, instead of leaving it
2534         in info_tasks_command.
2535         (info_task): Move the code building and checking the task
2536         list here, instead of leaving it in info_tasks_command.
2537         (info_tasks_command): Delete code building and checking
2538         the task list - moved elsewhere.  Update calls to info_tasks
2539         and info_task.
2540
2541 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2542
2543         * ada-tasks.c (info_task): Delete parameter `from_tty'.
2544
2545 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2546
2547         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2548
2549 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2550
2551         * ada-lang.h (ada_build_task_list): Remove parameter
2552         `warn_if_null'.
2553         * ada-tasks.c (ada_build_task_list): Remove parameter
2554         `warn_if_null'.  Adjust implementation and documentation.
2555         (valid_task_id, ada_get_environment_task)
2556         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2557         (info_tasks_command): Adjust implementation.
2558         (task_command): Likewise.
2559         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2560         to ada_build_task_list.
2561
2562 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2563
2564         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2565         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2566         (ada_tasks_inferior_data_handle): New static global.
2567         (get_ada_tasks_inferior_data): New function.
2568         (ada_get_task_number, get_task_number_from_id, valid_task_id)
2569         (ada_get_environment_task, iterate_over_live_ada_tasks)
2570         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2571         Adjust.
2572         (ada_set_current_inferior_known_tasks_addr): New function.
2573         (read_known_tasks, ada_build_task_list, short_task_info)
2574         (info_tasks, info_task, info_tasks_command, task_command_1)
2575         (task_command, ada_task_list_changed): Adjust.
2576         (ada_tasks_invalidate_inferior_data): New function.
2577         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2578         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2579         * ada-lang.h (struct inferior): Add declaration.
2580         (ada_task_list_changed): Update profile.
2581         * remote-wtx-pd.c: #include "inferior.h".
2582         (switch_to_pd_internal): Update call to ada_task_list_changed.
2583
2584 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2585
2586         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2587         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2588         (atcb_fieldno): Delete these static globals.
2589         (struct ada_tasks_pspace_data): New struct.
2590         (ada_tasks_pspace_data_handle): New static global.
2591         (get_ada_tasks_pspace_data): New function.
2592         (ada_tasks_invalidate_pspace_data): New function.
2593         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2594         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2595         (_initialize_tasks): Create this module's per-progspace
2596         data handle.
2597
2598 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2599
2600         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2601
2602 2011-09-16  Tristan Gingold  <gingold@adacore.com>
2603
2604         * fork-child.c (fork_inferior): Update comment.  Use alloca
2605         instead of xmalloc for argv.  Move len and shell_command
2606         declarations in the block where they are used.
2607         Only call execvp.  Factorize failure code.
2608
2609 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
2610
2611         Code cleanup.
2612         * parse.c (write_exp_elt): Change argument to pass a pointer of union
2613         `exp_element' instead of an element of the same and make the function
2614         static.
2615         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2616         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2617         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2618         Change argument of `write_exp_elt' function call.
2619         Remove extra spaces from comments.
2620         * parser-defs.h (write_exp_elt): Remove prototype.
2621
2622 2011-09-15  Paul Koning  <paul_koning@dell.com>
2623
2624         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2625         count of item appended to list.
2626         * python/py-type.c (typy_fields): Likewise.
2627
2628 2011-09-15  Paul Koning  <paul_koning@dell.com>
2629
2630         * MAINTAINERS (Write After Approval): Add myself to the list.
2631
2632 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2633
2634         PR threads/12628
2635         * linux-fork.c (checkpoint_command): Disallow checkpointing of
2636         processes with multiple threads.
2637         (inf_has_multiple_thread_cb): New function.
2638         (inf_has_multiple_threads): New function.
2639
2640 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2641
2642         PR Python/12692 Add gdb.selected_inferior() to Python interface.
2643         * python/py-inferior.c (GdbMethods): New Python method definition.
2644
2645 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2646
2647         Handle multiple breakpoint hits in Python interface:
2648         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2649         variable to breakpoints.
2650         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2651         bps instead of single breakpoint. Fix some space typos.
2652         * python/py-stopevent.c (create_breakpoint_event_object): Rename
2653         variable to breakpoints.
2654
2655 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2656
2657         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2658         note if the breakpoint is internal.
2659
2660 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2661
2662         * MAINTAINERS (Write After Approval): Add myself to the list
2663
2664 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
2665
2666         * infrun.c (prepare_for_detach, wait_for_inferior)
2667         (fetch_inferior_event): Don't flush the register cache.
2668         * remote.c (struct stop_reply) <regcache>: Add comment.
2669
2670 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2671
2672         Remove excessive DWARF expressions memory duplication.
2673         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2674         for block.data.
2675         (indirect_pieced_value): Remove variable result.  Remove variable
2676         back_to and its use for baton.data.
2677         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2678         block.data.
2679         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2680         Update the function comment.
2681
2682 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
2683
2684         * inferior.h (ALL_INFERIORS): New.
2685         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2686         for a stopped thread.
2687         (thread_db_find_new_threads): Look for threads in all inferiors.
2688
2689 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
2690
2691         * breakpoint.c (update_watchpoint): Handle the case of the
2692         watchpoint to update not being in the breakpoint list yet.
2693         (hw_watchpoint_use_count): New, factored out from
2694         hw_watchpoint_used_count.
2695         (hw_watchpoint_used_count): Rename to ...
2696         (hw_watchpoint_used_count_others): ... this.  Add `except'
2697         parameter.  Don't count resources of `except'.  Use
2698         hw_watchpoint_use_count.
2699
2700 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
2701
2702         * gdbthread.h (enum thread_state): Moved here.
2703         (struct thread_info): Rename `executing_' field to `executing' and
2704         `state_' to `state'.
2705         * thread.c (enum thread_state): Moved to gdbthread.h.
2706         (new_thread, add_thread_silent, delete_thread_1)
2707         (any_live_thread_of_process, thread_alive, set_running)
2708         (set_running, is_thread_state, any_running, is_executing)
2709         (set_executing, finish_thread_state, print_thread_info)
2710         (do_captured_thread_select): Adjust.
2711
2712 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2713
2714         Fix compatibility with gcc < 4.3 and non-gcc compilers.
2715         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2716
2717 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
2718             Matt Rice  <ratmice@gmail.com>
2719
2720         PR gdb/13175
2721
2722         * interps.c (struct interp) <interpreter_out>: Delete field.
2723         (interp_new): Remove the data and uiout parameters and adjust.
2724         (interp_set): Only set the current_uiout from the interpreter's
2725         uiout after initializing the interpreter.  Adjust call to
2726         init_proc.
2727         (interp_ui_out): Adjust to call procs->ui_out_proc.
2728         (interp_data, interp_name): New.
2729         * interps.h (interp_init_ftype): Add `self' parameter.
2730         (interp_ui_out_ftype): New typedef.
2731         (struct interp_procs) <ui_out_proc>: New method pointer.
2732         (interp_new): Remove the data and uiout parameters.
2733         (interp_data, interp_name): Declare.
2734         * tui/tui-interp.c (tui_init): Adjust prototype.
2735         (tui_ui_out): New.
2736         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
2737         tui_out here.  Adjust call to interp_new.
2738         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2739         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2740         (cli_ui_out): New.
2741         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
2742         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2743         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2744         Initialize mi->uiout depending on the mi_version as extracted from
2745         the interpreter's name.
2746         (mi_ui_out): New.
2747         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
2748         interp_new.  Don't allocate the ui_out's of the interpreters here.
2749
2750 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
2751
2752         * solib.c (solib_used): New function.
2753         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2754         by another so_list object before freeing it.
2755
2756 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2757
2758         Code cleanup.
2759         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2760         values.
2761
2762 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2763
2764         Code cleanup.
2765         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2766         (amd64_skip_xmm_prologue): ... this new function.  Describe its
2767         parameters.  No longer use amd64_prologue_line_bug.
2768         * defs.h (producer_is_gcc_ge_4): New declaration.
2769         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2770         (process_full_comp_unit): Update its caller.  Remove
2771         amd64_prologue_line_bug initialization.
2772         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2773         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2774
2775 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
2776
2777         * linux-nat.h (enum resume_kind): New.
2778         (struct lwp_info) <last_resume_kind>: New field.
2779         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2780         resume_stop on the new lwp.
2781         (add_lwp): Set last_resume_kind as resume_continue by default.
2782         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2783         (resume_lwp): New, factored out from resume_callback.  Also check
2784         for pending status in lp->waitstatus.
2785         (resume_callback): Reimplement.
2786         (resume_clear_callback): Set last_resume_kind as resume_stop.
2787         (resume_set_callback): Set last_resume_kind as resume_continue.
2788         (linux_nat_resume, linux_handle_extended_wait): Set
2789         last_resume_kind.
2790         (running_callback): Also check lp->waitstatus for pending events.
2791         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2792         is resume_step.
2793         (stop_and_resume_callback): Don't re-resume if the core wanted the
2794         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
2795         using an invalidated pointer.
2796         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2797         SIGSTOPs if the core wanted the LWP to stop.
2798         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2799         wanted the lwp to stop.  If the core wanted the lwp to stop, and
2800         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2801         of TARGET_SIGNAL_STOP.
2802         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2803         here.  Instead, signal the lwp, and set the last_resume_kind to
2804         resume_stop.
2805
2806 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
2807
2808         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2809         -1 (error), if the lwp exits right after attaching.
2810
2811 2011-09-08  Doug Evans  <dje@google.com>
2812
2813         * py-cmd.c: Some minor formatting fixes.
2814         (gdbpy_parse_command_name): Rename text arg to name, make const.
2815         All callers updated.
2816         * python-internal.h (gdbpy_parse_command_name): Update.
2817
2818         * cli/cli-decode.c (add_cmd): Add comment.
2819
2820 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2821
2822         PR breakpoints/12435
2823         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2824         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
2825         * dwarf2read.c (process_full_comp_unit): Initialize
2826         amd64_prologue_line_bug.
2827         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2828
2829 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2830
2831         Fix TUI screen corruption.
2832         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2833         batch_flag.
2834
2835 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2836
2837         * findvar.c (read_var_value): Never return NULL, throw an error
2838         instead.  Update the function comment.  State symbol name in the error
2839         messages.
2840         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2841         read_var_value.
2842         * stack.c (print_frame_args): Likewise.
2843         * valops.c (value_of_variable): Likewise.
2844
2845 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2846
2847         * stack.c (print_frame_args): New variable except.  Wrap
2848         read_var_value and common_val_print into TRY_CATCH.
2849
2850 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2851
2852         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2853         caller to value_of_this.
2854         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2855         Twice.
2856         * valops.c (value_of_this): Remove parameter complain and variable ret.
2857         Update function comment.  Never return NULL by this code.
2858         (value_of_this_silent): New function.
2859         * value.h (value_of_this): Remove parameter complain.
2860         (value_of_this_silent): New declaration.
2861
2862 2011-09-07  Yao Qi  <yao@codesourcery.com>
2863
2864         * gdbthread.h (struct thread_info): Remove fields
2865         `stepping_through_solib_after_catch' and
2866         `stepping_through_solib_catchpoints'.
2867         * infrun.c (init_thread_stepping_state): Update.
2868         (process_event_stop_test, currently_stepping): Update.
2869         (currently_stepping_or_nexting_callback): Update.
2870
2871 2011-09-07  Yao Qi  <yao@codesourcery.com>
2872
2873         * gdbthread.h (struct thread_info): Comment on field
2874         `step_after_step_resume_breakpoint'.
2875
2876 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
2877
2878         * remote.c (remote_console_output): Reindent.
2879
2880 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
2881
2882         * frame.c (has_stack_frames): Check for currently selected
2883         traceframe.
2884
2885 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
2886
2887         * event-top.h (MAXPROMPTS, struct prompts): Delete.
2888         (set_async_annotation_level, set_async_prompt, pop_prompt)
2889         (push_prompt, new_async_prompt): Delete declarations.
2890         * top.h (get_prompt, set_prompt): Change prototype.
2891         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2892         declarations.
2893         * top.c (command_loop):
2894         (top_prompt): New global.
2895         (get_prefix, set_prefix, get_suffix, ): Delete.
2896         (get_prompt, set_prompt): Rewrite.
2897         (show_new_async_prompt): Rename to ...
2898         (show_prompt): ... this.
2899         (init_main): Adjust.  Don't handle --annotate=2 here.
2900         * event-top.c (new_async_prompt): Delete.
2901         (the_prompts): Delete.
2902         (more_to_come): Make static.
2903         (display_gdb_prompt): Use top_level_prompt() to compute the top
2904         level prompt, and don't notify the before_prompt observers
2905         directly here.  Always trick readline into not trying to display
2906         the prompt if sync_execution and displaying the primary prompt.
2907         If displaying a local/secondary prompt, always show it, even if
2908         sync_execution is set.
2909         (change_annotation_level): Delete.
2910         (top_level_prompt): New, based on change_annotation_level.
2911         (push_prompt, pop_prompt): Delete.
2912         (async_disable_stdin): No longer pushes prompt.
2913         (command_line_handler): No longer pushes or pops prompt.  If more
2914         input is expected, call display_gdb_prompt with an explicit empty
2915         prompt.
2916         (async_stop_sig): Adjust.
2917         (set_async_annotation_level, set_async_prompt): Delete.
2918         * python/python.c (before_prompt_hook): Adjust.
2919
2920 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
2921
2922         PR cli/13110
2923
2924         * infrun.c (fetch_inferior_event): Check if there's a selected
2925         thread before checking if the selected thread is executing.
2926
2927 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
2928
2929         * inf-loop.c (execute_command): Don't check if the current thread
2930         if running before synchronously waiting for command completion.
2931         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2932         here.
2933         (normal_stop): Call async_enable_stdin here.
2934         * inf-loop.c (inferior_event_handler): Don't call
2935         async_enable_stdin, nor handle "set exec-done-display" here.
2936
2937 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2938
2939         GDB 7.3.1 released.
2940
2941 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2942
2943         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2944
2945 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2946
2947         * NEWS: Add entry for OpenBSD/NetBSD build failure.
2948
2949 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2950
2951         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2952
2953 2011-09-02  Matt Rice  <ratmice@gmail.com>
2954
2955         PR gdb/10720
2956         * event-top.c (cli_command_loop): Replace readline setup with
2957         direct call to display_gdb_prompt.
2958         (display_gdb_prompt): Do not call observer mechanism during
2959         synchronous execution.
2960
2961 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2962
2963         * linux-nat.c (in_pid_list_p): New.
2964         (linux_record_stopped_pid): Delete.
2965         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2966         already attached to the LWP.  Return an indication if so.
2967         (linux_nat_filter_event): Adjust.
2968         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2969         returning an indication to ignore this thread.
2970
2971 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2972
2973         * top.c: Include interps.h.
2974         (execute_command): If the target can async, but the interpreter is
2975         in sync mode, synchronously wait for the command to finish before
2976         returning.
2977         (execute_command_to_string): Force the interpreter to sync mode.
2978         * infrun.c: Include interps.h.
2979         (fetch_inferior_event): Don't restore the prompt yet if the
2980         interpreter is in sync mode.
2981         * interps.c (interpreter_async): New global.
2982         * interps.h (interpreter_async): Declare.
2983         * inf-loop.c: Include interps.h.
2984         (inferior_event_handler): Don't print the language change or run
2985         breakpoint commands yet if the interpreter in is sync mode.
2986         * main.c (captured_command_loop): Flip the interpreter to async
2987         mode.
2988         * cli/cli-script.c: Include interps.h.
2989         (execute_user_command, while_command, if_command): Force the
2990         interpreter to sync mode.
2991         * python/python.c: Include interps.h.
2992         (python_command, execute_gdb_command): Force the interpreter to
2993         sync mode.
2994
2995 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2996
2997         * value.c (show_convenience): Catch errors thrown while printing
2998         each internal variable.
2999         * infrun.c (validate_siginfo_access): New function.
3000         (siginfo_value_read, siginfo_value_write): Call it.
3001
3002 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3003
3004         Revert:
3005         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3006         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3007         attribute.
3008
3009 2011-08-29  Yao Qi  <yao@codesourcery.com>
3010
3011         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3012         (cmp_name): New.
3013         (enable_break2): Update caller.
3014         * solib-frv.c (bfd_lookup_symbol): Removed.
3015         (cmp_name): New.
3016         (enable_break2): Update caller.
3017         * solib-pa64.c (bfd_lookup_symbol): Removed.
3018         (cmp_name): New.
3019         * solib-svr4.c (bfd_lookup_symbol): Removed.
3020         (cmp_name_and_sec_flags): New.
3021         (enable_break): Update caller.
3022         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3023         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3024         (gdb_bfd_lookup_symbol): New.
3025         * solib.h: Functions declarations.
3026
3027 2011-08-29  Yao Qi  <yao@codesourcery.com>
3028
3029         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3030         and solib-dsbt.o.
3031
3032 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3033
3034         Fix TUI stepi on code without symbols.
3035         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3036         current PC instead.
3037
3038 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3039
3040         Code cleanup.
3041         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3042         and the static keyword.
3043         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3044         Make prefix an array.
3045         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3046         * mi/mi-main.c (get_register): Remove stb initialization and the static
3047         keyword.
3048
3049 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3050
3051         Code cleanup - make mi_opt const.
3052         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3053         opts const.
3054         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3055         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3056         (mi_cmd_env_dir): Likewise.
3057         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3058         (mi_cmd_target_file_put): Likewise.
3059         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3060         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3061         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3062         (mi_valid_noargs): Make opts const.
3063         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3064         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3065         (mi_cmd_data_read_memory): Likewise.
3066         (mi_cmd_data_read_memory_bytes): Likewise.
3067         (mi_cmd_data_write_memory): Likewise.
3068
3069 2011-08-26  Matt Rice  <ratmice@gmail.com>
3070
3071         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3072         bcache_xmalloc,  replace bcache_xmalloc with call to
3073         psymbol_bcache_init for psymbol_cache.
3074         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3075
3076 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3077
3078         * inf-loop.c (inferior_event_handler): Add exception_print in
3079         INF_EXEC_COMPLETE.
3080
3081 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3082
3083         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3084         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3085         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3086         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3087         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3088         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3089         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3090         * infrun.c (fetch_inferior_event): Call
3091         make_bpstat_clear_actions_cleanup.
3092         * top.c (execute_command): New variable cleanup_if_error, call
3093         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3094         * utils.c (do_bpstat_clear_actions_cleanup)
3095         (make_bpstat_clear_actions_cleanup): New functions.
3096
3097 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3098
3099         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3100         either the parent or the child forks.  Rename a couple locals.
3101
3102 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3103
3104         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3105         library call.  Avoid reading the `status' local if all waitpid
3106         calls failed.
3107
3108 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3109
3110         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3111         opening /proc/PID/task always succeeds.
3112
3113 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3114
3115         * linespec.c (symtab_from_filename): Check for the end of string.
3116
3117 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3118
3119         PR mi/11912
3120         * varobj.c (cplus_describe_child): Add the keyword
3121         'class' to the output of the method when dealing 
3122         with a cast to a base class.
3123
3124 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3125
3126         No functionality change.
3127         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3128         function comment a reference, new variables tp and bs, move here code
3129         from throw_exception.
3130         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3131         describe it in the comment.
3132         * exceptions.c (throw_exception): Remove variable tp, move the code for
3133         bpstat_clear_actions to bpstat_clear_actions.
3134
3135 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3136
3137         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3138         * linux-nat.c: Include linux-procfs.h.
3139         (linux_proc_get_tgid): Move to ...
3140         * common/linux-procfs.c: ... here. New file.
3141         * common/linux-procfs.h: New file.
3142         * linux-thread-db.c: Include linux-procfs.h.
3143         * Makefile.in: Update dependencies.
3144         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3145         * config/arm/linux.mh: Likewise.
3146         * config/i386/linux.mh: Likewise.
3147         * config/i386/linux64.mh: Likewise.
3148         * config/ia64/linux.mh: Likewise.
3149         * config/m32r/linux.mh: Likewise.
3150         * config/m68k/linux.mh: Likewise.
3151         * config/mips/linux.mh: Likewise.
3152         * config/pa/linux.mh: Likewise.
3153         * config/pa/linux.mh: Likewise.
3154         * config/powerpc/linux.mh: Likewise.
3155         * config/powerpc/ppc64-linux.mh: Likewise.
3156         * config/powerpc/spu-linux.mh: Likewise.
3157         * config/sparc/linux.mh: Likewise.
3158         * config/sparc/linux64.mh: Likewise.
3159         * config/xtensa/linux.mh: Likewise.
3160
3161 2011-08-24  Hui Zhu  <teawater@gmail.com>
3162
3163         * tracepoint.c (cond_string_is_same): New function.
3164         (find_matching_tracepoint): Add condition check
3165         by cond_string_is_same.
3166
3167 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3168
3169         Fix build error in Darwin port.
3170         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3171
3172 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3173
3174         Code cleanup.
3175         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3176         (command_line_is_silent): New function.
3177         (bpstat_do_actions_1): No longer use commands_left, use
3178         command_line_is_silent for commands.
3179         (bpstat_alloc): Remove clearing of commands_left.
3180         (bpstat_stop_status): Remove initialization of commands_left, use
3181         command_line_is_silent.
3182         * breakpoint.h (struct bpstats): Remove commands_left.
3183
3184 2011-08-18  Keith Seitz  <keiths@redhat.com>
3185
3186         PR c++/12266
3187         * cp-name-parser.y (struct demangle_info): Remove unused
3188         member PREV.
3189         (d_grab): Likewise.
3190         (allocate_info): Change return type to struct demangle_info *.
3191         Always allocate a new demangle_info.
3192         Remove unused PREV pointer.
3193         (cp_new_demangle_parse_info): New function.
3194         (cp_demangled_name_parse_free): New function.
3195         (do_demangled_name_parse_free_cleanup): New function.
3196         (make_cleanup_cp_demangled_name_parse_free): New function.
3197         (cp_demangled_name_to_comp): Change return type to
3198         struct demangle_parse_info *.
3199         Allocate a new storage for each call.
3200         (main): Update usage for cp_demangled_name_to_comp
3201         API change.
3202         * cp-support.h (struct demangle_parse_info): New structure.
3203         (cp_demangled_name_to_comp): Update API change for
3204         return type.
3205         (cp_new_demangle_parse_info): Declare.
3206         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3207         (cp_demangled_name_parse_free): Declare.
3208         * cp-support.c (cp_canonicalize_string): Update API
3209         change for cp_demangled_name_to_comp.
3210         (mangled_name_to_comp): Likewise.
3211         Return struct demangle_parse_info, too.
3212         (cp_class_name_from_physname): Update mangled_name_to_comp
3213         API change.
3214         (method_name_from_physname): Likewise.
3215         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3216         (cp_remove_params): Likewise.
3217         * python/py-type.c (typy_legacy_template_argument): Likewise.
3218
3219         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3220         (cp_merge_demangle_parse_infos): Declare.
3221         * cp-support.c (ignore_typedefs): New file global.
3222         (copy_string_to_obstack): New function.
3223         (inspect_type): New function.
3224         (replace_typedefs): New function.
3225         (replace_typedefs_qualified_name): New function.
3226         (cp_canonicalize_string_no_typedefs): New function.
3227         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3228         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3229         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3230         instead of cp_canonicalize_string.
3231         (find_method): Likewise.
3232         (decode_compound): Before looking up the name, call
3233         cp_canonicalize_string_no_typedefs.
3234         (decode_variable): Likewise.
3235
3236 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3237             Tom Tromey  <tromey@redhat.com>
3238             Matt Rice <ratmice@gmail.com>
3239
3240         * python/lib/gdb/prompt.py: New file.
3241         * python/lib/gdb/command/prompt.py: New file.
3242         * NEWS: Document set extended-prompt and gdb.prompt library
3243
3244 2011-08-16  Yao Qi  <yao@codesourcery.com>
3245
3246         * tic6x-linux-tdep.c: Move const arrays definition from here...
3247         * tic6x-tdep.c: to here ...
3248
3249 2011-08-14  Yao Qi  <yao@codesourcery.com>
3250
3251         * NEWS: New port to Texas Instruments TMS320C6x.
3252
3253 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3254             Bernd Schmidt  <bernds@codesourcery.com>
3255             Yao Qi  <yao@codesourcery.com>
3256
3257         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3258         * solib-dsbt.c: New file.  Support DSBT shared object.
3259         * tic6x-linux-tdep.c: New file.
3260         * tic6x-tdep.c: New file.
3261         * tic6x-tdep.h: New file.
3262
3263 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3264             Yao Qi  <yao@codesourcery.com>
3265
3266         * remote.c (PACKET_qXfer_fdpic): New enum value.
3267         (remote_protocol_features): Add qXfer:fdpic:read packet.
3268         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3269         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3270         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3271
3272 2011-08-14  Yao Qi  <yao@codesourcery.com>
3273
3274         Target description for tic6x.
3275         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3276         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3277         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3278         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3279         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3280         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3281         * features/tic6x-c64xp-linux.xml: New.
3282         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3283         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3284         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3285         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3286         * regformats/tic6x-c64xp.dat,
3287         regformats/tic6x-c62x-linux.dat: Generated.
3288         * regformats/tic6x-c64x-linux.dat,
3289         regformats/tic6x-c64xp-linux.dat: Generated.
3290         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3291         features/tic6x-*.c files.
3292         Add regformats/tic6x-*.dat files.
3293
3294 2011-08-12  Doug Evans  <dje@google.com>
3295
3296         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3297         * python/py-symbol.c (sympy_get_type): New function.
3298         (symbol_object_getset): Add "type".
3299
3300 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3301
3302         PR tui/13073
3303
3304         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3305         empty name.
3306         (tui_show_register_group): Don't store a byte buffer in the data
3307         element's value.
3308         (tui_register_format): Skip registers with an empty name.
3309         (tui_get_register): Store a struct value in the data element's
3310         value field instead of a byte buffer holding the raw register
3311         contents.  Account for optimized-out and unavailable registers
3312         when comparing register contents.
3313
3314 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3315
3316         * printcmd.c (current_display_number): Update comment.
3317         (disable_current_display_cleanup): Delete.
3318         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
3319         catch errors thrown while evaluating and printing the display.
3320
3321 2011-08-09  Tom Tromey  <tromey@redhat.com>
3322
3323         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3324
3325 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3326
3327         * elfread.c (elf_symtab_read): Rework comments.
3328         * maint.c (maintenance_command): Ditto.
3329         * somread.c (som_symtab_read): Ditto.
3330         * solib.c (solib_find, solib_map_sections, update_solib_list)
3331         (solib_add, info_sharedlibrary_command, solib_name_from_address)
3332         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3333         (sharedlibrary_command, no_shared_libraries): Ditto.
3334         * solib-irix.c (locate_base, disable_break, enable_break)
3335         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3336         (irix_current_sos, irix_open_symbol_file_object)
3337         (irix_special_symbol_handling): Ditto.
3338         * solib-sunos.c (locate_base, first_link_map_member)
3339         (sunos_current_sos, disable_break, enable_break)
3340         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3341         Ditto.
3342         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3343         (open_symbol_file_object, svr4_current_sos, enable_break)
3344         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3345         Ditto.
3346         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3347         (frv_current_sos, enable_break, frv_special_symbol_handling)
3348         (frv_solib_create_inferior_hook): Ditto.
3349         * solist.h (struct target_so_ops): Extend the comments of the
3350         special_symbol_handling, current_sos and open_symbol_file_object
3351         methods.
3352
3353 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
3354
3355         * python/lib/gdb/__init__.py: Auto-load files in command and
3356         function directories.
3357         * python/python.c (finish_python_initialization): Use
3358         os.path.join.
3359         * python/lib/gdb/command/pretty_printers.py: Self register
3360         command.
3361         * NEWS: Document auto-loading.
3362
3363 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3364
3365         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3366         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3367         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
3368
3369 2011-08-08  Tom Tromey  <tromey@redhat.com>
3370
3371         * breakpoint.c (clean_up_filters): Remove.
3372         (catch_syscall_split_args): Use VEC_cleanup.
3373
3374 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3375
3376         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3377         (main): Uncomment "Demangling error\n".
3378
3379 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3380
3381         * solib-target.c (segment_attributes): Make them static.
3382         (section_attributes, library_children, library_attributes): Likewise.
3383         (library_list_children, library_list_attributes): Likesise.
3384         (library_list_elements): Likewise.
3385
3386 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
3387
3388         * exceptions.c (throw_exception): Don't disable the current
3389         display.
3390         * printcmd.c (disable_current_display_cleanup): New function.
3391         (do_one_display): Install a cleanup to disable the current display
3392         if doing the display throws.
3393
3394 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
3395
3396         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3397         initialization of the tp_new member to the corresponding
3398         gdbpy_initialize_* function.
3399         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3400         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3401         * python/py-function.c (gdbpy_initialize_functions): Likewise.
3402         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3403         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3404
3405 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3406
3407         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3408         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3409         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3410         references to current_uiout.
3411
3412 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3413
3414         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3415         (start_event_loop): Use TRY_CATCH instead of catch_errors.
3416         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3417         * top.c (gdb_readline_wrapper): Adjust.
3418         * tui/tui-interp.c (tui_command_loop):
3419         (_initialize_tui_interp): Don't install it.
3420
3421 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3422
3423         * ui-out.h (uiout): Rename to ...
3424         (current_uiout): ... this.
3425         * ui-out.c (uiout): Rename to ...
3426         (current_uiout): ... this.
3427         * ada-lang.c (print_it_exception, print_one_exception)
3428         (print_mention_exception): Adjust.
3429         * breakpoint.c (watchpoint_check): Adjust.
3430         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3431         (default_collect_info, watchpoints_info, print_one_catch_fork)
3432         (print_one_catch_vfork, print_one_catch_syscall)
3433         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3434         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3435         (print_it_watchpoint, print_mention_watchpoint)
3436         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3437         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3438         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3439         (bkpt_print_mention, momentary_bkpt_print_it)
3440         (tracepoint_print_mention, update_static_tracepoint)
3441         (tracepoints_info, save_breakpoints): Adjust.
3442         * cli-out.c (field_separator): Adjust.
3443         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3444         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3445         * frame.c (get_current_frame): Adjust.
3446         * infcmd.c (run_command_1, print_return_value): Adjust.
3447         * inferior.c (inferior_command, info_inferiors_command): Adjust.
3448         * infrun.c (print_end_stepping_range_reason): Adjust.
3449         (print_signal_exited_reason, print_exited_reason): Adjust.
3450         (print_signal_received_reason, print_no_history_reason): Adjust.
3451         * interps.c (interp_set): Adjust.
3452         * osdata.c (info_osdata_command): Adjust.
3453         * progspace.c (maintenance_info_program_spaces_command): Adjust.
3454         * remote-fileio.c (remote_fileio_request): Adjust.
3455         * remote.c (show_remote_cmd): Adjust.
3456         * solib.c (info_sharedlibrary_command): Adjust.
3457         * source.c (print_source_lines_base): Adjust.
3458         * stack.c (print_stack_frame): Adjust.
3459         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3460         * symfile-mem.c (add_vsyscall_page): Adjust.
3461         * symfile.c (load_progress, generic_load)
3462         (print_transfer_performance): Adjust.
3463         * thread.c (info_threads_command, restore_selected_frame)
3464         (thread_command): Adjust.
3465         * top.c (make_cleanup_restore_ui_file): Adjust.
3466         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3467         (print_one_static_tracepoint_marker): Adjust.
3468         * cli/cli-cmds.c (print_disassembly): Adjust.
3469         * cli/cli-decode.c (print_doc_line): Adjust.
3470         * cli/cli-interp.c (safe_execute_command): Adjust.
3471         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3472         (handle_redirections): Adjust.
3473         * cli/cli-script.c (show_user_1): Adjust.
3474         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3475         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3476         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3477         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3478         (mi_cmd_env_dir): Adjust.
3479         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3480         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3481         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3482         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3483         (list_args_or_locals): Adjust.
3484         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3485         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3486         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3487         (mi_cmd_var_list_children, mi_cmd_var_info_type)
3488         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3489         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3490         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3491         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3492         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3493         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3494         (list_available_thread_groups, mi_cmd_list_thread_groups)
3495         (mi_cmd_data_list_register_names)
3496         (mi_cmd_data_list_changed_registers)
3497         (mi_cmd_data_list_register_values, get_register)
3498         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3499         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3500         (mi_cmd_list_target_features, mi_cmd_add_inferior)
3501         (mi_execute_command, mi_load_progress): Adjust.
3502         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3503         * python/py-auto-load.c (print_script, info_auto_load_scripts):
3504         Adjust.
3505         * python/py-breakpoint.c (bppy_get_commands): Adjust.
3506         * tui/tui-interp.c (tui_command_loop): Adjust.
3507         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3508
3509 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3510
3511         * exceptions.c (struct catcher): Remove saved_uiout field.
3512         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3513         no longer save/resvore the global ui_out builder.
3514         (catch_exceptions_with_msg): Save/override/restore the global
3515         ui_out builder manually instead of relying on TRY_CATCH to do it.
3516         (catch_errors): Save/restore the global ui_out builder manually
3517         instead of relying on TRY_CATCH to do it.
3518         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3519         parameter.
3520         (TRY_CATCH): Adjust.
3521         * cli/cli-interp.c (safe_execute_command): Save/override/restore
3522         the global ui_out builder manually instead of relying on TRY_CATCH
3523         to do it.
3524
3525 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3526
3527         * breakpoint.c (update_global_location_list): Ensure
3528         invariant 'first loc marked not duplicated and inserted,
3529         following locs marked duplicated/not inserted' is respected
3530         for multiple locations at the same address.
3531         (unduplicated_should_be_inserted) New function.
3532         (swap_insertion) New function.
3533
3534 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3535
3536         * stack.c (print_frame_arguments_choices): Comment typo fix.
3537
3538 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3539
3540         Revert:
3541         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3542         * breakpoint.c (insert_bp_location): Remove disabled_breaks
3543         argument.  Update callers.
3544
3545 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3546
3547         PR gdb/13045
3548         * doublest.c (convert_doublest_to_floatformat): Pass correct
3549         mantissa length to put_field.
3550
3551 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3552
3553         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3554         exception_print code path.
3555         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
3556         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
3557         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
3558
3559 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3560
3561         Code cleanup.
3562         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3563         Remove, merge them into ...
3564         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
3565         variable args and its initialization.
3566         (struct print_args_args, print_args_stub): Remove, merge them into
3567         print_frame.
3568         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3569         them into ...
3570         (do_gdb_disassembly): ... here.  Remove variable args and its
3571         initialization.
3572         (print_frame): Remove variable args and its initialization, new
3573         variable gdbarch and numargs (from print_args_stub), inline here
3574         print_args_stub with a TRY_CATCH.
3575         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3576         them into ...
3577         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3578         New variable e, remove variable btargs and its initialization.
3579
3580 2011-08-01  Tristan Gingold  <gingold@adacore.com>
3581
3582         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3583
3584 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3585
3586         * breakpoint.c (insert_bp_location): Document return value.
3587         (insert_breakpoint_locations): Fix documentation.
3588         (remove_breakpoints): Add documentation.
3589
3590 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3591
3592         * breakpoint.c (insert_bp_location): Remove disabled_breaks
3593         argument.  Update callers.
3594
3595 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3596
3597         * stack.c (print_frame_info): Comment typo fix.
3598
3599 2011-07-29  Sterling Augustine  <saugustine@google.com>
3600
3601         * MAINTAINERS (Write After Approval): Add myself to the list.
3602
3603 2011-07-29  Tom Tromey  <tromey@redhat.com>
3604
3605         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3606         (library_list_start_segment): Update.
3607         (library_list_start_section): Update.
3608
3609 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
3610
3611         * varobj.c (value_get_print_value): Move hint check later into the
3612         function.  Comment function.  Free thevalue before reusing it.
3613
3614 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3615             Pedro Alves  <pedro@codesourcery.com>
3616
3617         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3618         value_one.
3619         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
3620         Assert the result kind.
3621         * value.h (value_one): Remove parameter lv.
3622
3623 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3624
3625         Fix crash on lval_computed values.
3626         * valops.c (value_zero): Use not_lval for lval_computed.
3627
3628 2011-07-27  Tom Tromey  <tromey@redhat.com>
3629
3630         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3631         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3632
3633 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3634
3635         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3636         "ptype" by their typedefs difference.
3637
3638 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3639
3640         * dwarf2expr.c (ctx_no_read_reg): New function.
3641         * dwarf2expr.h (ctx_no_read_reg): New declaration.
3642         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3643         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3644         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3645
3646 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3647
3648         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3649         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3650         file.
3651         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3652         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3653         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3654         (ctx_no_get_base_type): Move the functions here.
3655         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3656         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3657         (ctx_no_get_base_type): New declarations.
3658
3659 2011-07-27  Tom Tromey  <tromey@redhat.com>
3660
3661         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3662         entries.
3663         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3664         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3665
3666 2011-07-26  Sterling Augustine  <saugustine@google.com>
3667
3668         * cli/cli-dump.c (dump_binary_file): Change parameter type to
3669         ULONGEST.
3670         (dump_bfd_file): Likewise.
3671
3672 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3673
3674         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3675         (remote_hw_watchpoint_length_limit): New variable.
3676         (_initialize_remote) add set,show cmds for this new variable.
3677         * gdb.texinfo: document these new commands.
3678         * NEWS: Mention these new commands.
3679
3680 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
3681
3682         * breakpoint.c (works_in_software_mode_watchpoint): Also return
3683         true for software watchpoints.
3684
3685 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
3686
3687         GDB 7.3 released.
3688
3689 2011-07-26  Tom Tromey  <tromey@redhat.com>
3690
3691         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3692         * dwarf2read.c (read_indirect_string_at_offset): New function.
3693         (read_indirect_string): Use it.
3694         (dwarf_decode_macro_bytes): New function, taken from
3695         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
3696         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
3697         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3698         New functions.
3699         (struct dwarf2_per_objfile) <macro>: New field.
3700         (dwarf2_elf_names): Add .debug_macro.
3701         (dwarf2_macros_too_long_complaint): Add 'section' argument.
3702         (dwarf2_locate_sections): Handle new section.
3703         (read_file_scope): Handle DW_AT_GNU_macros.
3704         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3705
3706 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3707
3708         * NEWS: Mention dcache configuration.
3709         * dcache.c (dcache_set_list, dcache_show_list): New variables.
3710         (dcache_size, dcache_line_size): New variables.
3711         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3712         (struct dcache_block): Make it expandable.
3713         (struct dcache_struct): New field.
3714         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3715         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3716         (dcache_poke_byte, dcache_print_line): Adjust.
3717         (set_dcache_size, set_dcache_line_size): New functions.
3718         (set_dcache_command, show_dcache_command): New functions.
3719         (_initialize_dcache): Add new commands.
3720
3721 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3722
3723         * progspace.h (struct program_space): Add solib_add_generation.
3724         * infcmd.c (post_create_inferior): Only call solib_add if not
3725         already done.
3726         * solib.c (solib_add): Increment solib_add_generation.
3727
3728 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3729
3730         Fix implicit pointer offsets.
3731         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
3732         ptr.OFFSET.
3733
3734 2011-07-25  Tom Tromey  <tromey@redhat.com>
3735
3736         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3737         const.
3738         (ada_exception_sal): Make 'ops' const.
3739         (ada_decode_exception_location): Likewise.
3740         (ada_decode_assert_location): Likewise.
3741         (catch_assert_command): Update.
3742         (catch_ada_exception_command): Update.
3743         (create_ada_exception_catchpoint): Make 'ops' const.
3744         * breakpoint.c (set_raw_breakpoint_without_location)
3745         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3746         const.
3747         (create_internal_breakpoint): Update.
3748         (init_raw_breakpoint_without_location): Make 'ops' const.
3749         (init_raw_breakpoint, init_catchpoint)
3750         (create_fork_vfork_event_catchpoint)
3751         (create_syscall_event_catchpoint, init_breakpoint_sal)
3752         (create_breakpoint_sal, create_breakpoints_sal)
3753         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3754         * breakpoint.h (struct breakpoint) <ops>: Now const.
3755         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3756         const.
3757
3758 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
3759
3760         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3761
3762 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3763
3764         * breakpoint.h (print_recreate_thread): Declare.
3765         (struct breakpoint): Move step_count, pass_count,
3766         number_on_target, static_trace_marker_id,
3767         static_trace_marker_id_idx ...
3768         (struct tracepoint): ... to this new struct.
3769         (get_tracepoint, get_tracepoint_by_number_on_target)
3770         (get_tracepoint_by_number): Change return type to struct
3771         tracepoint pointer.
3772         * breakpoint.c (is_tracepoint_type): New, factored out from
3773         is_tracepoint.
3774         (is_tracepoint): Adjust.
3775         (print_one_breakpoint_location): Cast to struct tracepoint as
3776         necessary, and adjust.
3777         (print_recreate_catch_fork, print_recreate_catch_vfork)
3778         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3779         print_recreate_thread.
3780         (init_breakpoint_sal): New, factored out from
3781         create_breakpoint_sal.
3782         (create_breakpoint_sal): Reimplement.
3783         (create_breakpoint): Allocate a struct tracecepoint if the caller
3784         wanted a tracepoint.  Use init_breakpoint_sal and
3785         install_breakpoint.
3786         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3787         (print_recreate_masked_watchpoint)
3788         (print_recreate_exception_catchpoint): Call print_recreate_thread.
3789         (tracepoint_print_one_detail): Adjust.
3790         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
3791         Dump the pass count here.
3792         (update_static_tracepoint): Adjust.
3793         (addr_string_to_sals): Adjust.
3794         (create_tracepoint_from_upload): Adjust.  Change return type to
3795         struct tracepoint pointer.
3796         (trace_pass_set_count): Change parameter type to struct tracepoint
3797         pointer, and adjust.
3798         (trace_pass_command): Adjust.
3799         (get_tracepoint, get_tracepoint_by_number_on_target)
3800         (get_tracepoint_by_number): Change return type to struct
3801         tracepoint pointer, and adjust.
3802         (print_recreate_thread): New, factored out from save_breakpoints.
3803         (save_breakpoints): Don't print thread and task and passcount
3804         recreation here.
3805         * remote.c (remote_download_tracepoint): Adjust.
3806         * tracepoint.c (trace_actions_command, validate_actionline)
3807         (start_tracing, tfind_1, trace_find_tracepoint_command)
3808         (trace_dump_command): Adjust.
3809         (find_matching_tracepoint): Change return type to struct
3810         tracepoint pointer, and adjust.
3811         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3812         (tfile_trace_find, tfile_fetch_registers): Adjust.
3813         * tracepoint.h (create_tracepoint_from_upload): Change return type
3814         to struct tracepoint pointer.
3815         * ada-lang.c (print_recreate_exception): Call
3816         print_recreate_thread.
3817         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3818
3819 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3820
3821         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
3822         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3823         cond_exp_valid_block, val, val_valid, watchpoint_frame,
3824         watchpoint_thread, watchpoint_triggered ...
3825         (struct watchpoint): ... to this new struct.
3826         (is_watchpoint): Declare.
3827         (install_breakpoint): Add new `internal' parameter.
3828         * breakpoint.c (is_watchpoint): Delete declaration.
3829         (set_breakpoint_condition): Handle watchpoints.
3830         (is_watchpoint): Make public.
3831         (watchpoint_in_thread_scope): Change parameter type to struct
3832         watchpoint.
3833         (watchpoint_del_at_next_stop): Change parameter type to struct
3834         watchpoint.  Remove assertion.  Adjust.
3835         (update_watchpoint): Ditto.
3836         (insert_breakpoints, breakpoint_init_inferior)
3837         (watchpoints_triggered, watchpoint_check)
3838         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3839         (bpstat_stop_status, print_one_breakpoint_location)
3840         (print_one_breakpoint_location, watchpoint_locations_match): Cast
3841         to struct watchpoint as necessary, and adjust.
3842         (install_breakpoint): Add `internal' argument.  If true, don't
3843         mention the new breakpoint.  Use set_breakpoint_number.
3844         (create_fork_vfork_event_catchpoint)
3845         (create_syscall_event_catchpoint): Adjust.
3846         (dtor_watchpoint): New.
3847         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3848         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3849         (print_it_watchpoint, print_mention_watchpoint)
3850         (print_recreate_watchpoint, insert_masked_watchpoint)
3851         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3852         (print_one_detail_masked_watchpoint)
3853         (print_mention_masked_watchpoint)
3854         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3855         necessary, and adjust.
3856         (watch_command_1): Allocate and initialize a struct watchpoint
3857         instead of a struct breakpoint.  Use install_breakpoint.
3858         (catch_exec_command_1): Adjust.
3859         (base_breakpoint_dtor): Delete accesses to watchpoint specific
3860         fields.
3861         (delete_breakpoint, enable_breakpoint_disp)
3862         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3863         as necessary, and adjust.
3864         (initialize_breakpoint_ops): Install dtor_watchpoint as
3865         watchpoints' dtor method.
3866         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3867         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3868         to struct watchpoint as necessary, and adjust.
3869
3870 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3871
3872         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3873         the the base class ops table.
3874         (catch_exception_breakpoint_ops)
3875         (catch_exception_unhandled_breakpoint_ops)
3876         (catch_assert_breakpoint_ops): Don't statically initialize.
3877         (initialize_ada_catchpoint_ops): New.
3878         (_initialize_ada_language): Call it.
3879         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3880         (bkpt_breakpoint_ops): Forward declare.
3881         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3882         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3883         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3884         (masked_watchpoint_breakpoint_ops)
3885         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3886         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3887         base class ops table.
3888         (null_re_set, null_check_status, null_works_in_software_mode)
3889         (null_resources_needed, null_print_one_detail): Delete.
3890         (bkpt_dtor): Rename to ...
3891         (base_breakpoint_dtor): ... this.  Make static.
3892         (bkpt_allocate_location): Rename to ...
3893         (base_breakpoint_allocate_location): ... this.  Make static.
3894         (base_breakpoint_re_set): New.
3895         (internal_error_pure_virtual_called): New.
3896         (base_breakpoint_insert_location, base_breakpoint_remove_location)
3897         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3898         (base_breakpoint_works_in_software_mode)
3899         (base_breakpoint_resources_needed, base_breakpoint_print_it)
3900         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3901         (base_breakpoint_print_recreate): New functions.
3902         (base_breakpoint_ops): New global.
3903         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3904         (bkpt_breakpoint_hit): Make static.
3905         (bkpt_check_status): Delete.
3906         (bkpt_resources_needed): Make static.
3907         (bkpt_works_in_software_mode): Delete.
3908         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3909         static.
3910         (bkpt_breakpoint_ops, internal_breakpoint_ops)
3911         (momentary_breakpoint_ops): Don't statically initialize.
3912         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3913         Delete.
3914         (tracepoint_insert_location, tracepoint_remove_location)
3915         (tracepoint_check_status, tracepoint_works_in_software_mode)
3916         (tracepoint_print_it): Delete.
3917         (tracepoint_breakpoint_ops): Don't statically initialize.
3918         (initialize_breakpoint_ops): New.
3919         (_initialize_breakpoint): Call it.
3920         * breakpoint.h (null_re_set, null_works_in_software_mode)
3921         (null_resources_needed, null_check_status, null_print_one_detail):
3922         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3923         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3924         (bkpt_check_status, bkpt_resources_needed)
3925         (bkpt_works_in_software_mode, bkpt_print_it)
3926         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3927         Delete declarations.
3928         (initialize_breakpoint_ops): Declare.
3929
3930 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3931
3932         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3933         (momentary_bkpt_print_it): Simplify.
3934
3935 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3936
3937         Split internal, momentary and user breakpoints breakpoint_ops
3938         tables.
3939
3940         * breakpoint.c (internal_breakpoint_ops)
3941         (momentary_breakpoint_ops): Forward declare.
3942         (create_internal_breakpoint): Add new breakpoint_ops parameter.
3943         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3944         (create_overlay_event_breakpoint)
3945         (create_std_terminate_master_breakpoint)
3946         (create_exception_master_breakpoint): Create breakpoints with
3947         internal_breakpoint_ops vtable.
3948         (set_longjmp_breakpoint): Create momentary breakpoints with
3949         momentary_breakpoint_ops vtable, using
3950         momentary_breakpoint_from_master.
3951         (create_thread_event_breakpoint, create_jit_event_breakpoint)
3952         (create_solib_event_breakpoint): Create breakpoints with
3953         internal_breakpoint_ops vtable.
3954         (set_momentary_breakpoint): Create breakpoints with
3955         momentary_breakpoint_ops vtable.
3956         (momentary_breakpoint_from_master): New, factored out from
3957         clone_momentary_breakpoint.
3958         (clone_momentary_breakpoint): Adjust.
3959         (watch_command_1): Create scope breakpoints with
3960         momentary_breakpoint_ops vtable.
3961         (bkpt_re_set): Remove handling of internal and momentary
3962         breakpoints.
3963         (bkpt_print_mention, bkpt_print_recreate): New.
3964         (bkpt_breakpoint_ops): Adjust.
3965         (internal_bkpt_re_set, internal_bkpt_check_status)
3966         (internal_bkpt_print_it, internal_bkpt_print_mention)
3967         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3968         (momentary_bkpt_re_set, momentary_bkpt_check_status)
3969         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3970         (momentary_bkpt_print_recreate): New.
3971         (momentary_breakpoint_ops): New.
3972
3973 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3974
3975         Implement most breakpoint_ops methods for all breakpoint types,
3976         and move the default handlings to the proper callbacks.
3977
3978         * breakpoint.c (update_watchpoint): Always call the breakpoint's
3979         works_in_software_mode method.
3980         (insert_bp_location): Go through breakpoint_ops->insert_location
3981         for software and hardware watchpoints.
3982         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3983         breakpoint_ops.
3984         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3985         for software and hardware watchpoints.
3986         (print_it_typical): Delete.
3987         (print_bp_stop_message): Always call the breakpoint_ops->print_it
3988         method.
3989         (watchpoint_check): Adjust comment.
3990         (bpstat_check_location): Simply always call the breakpoint's
3991         breakpoint_hit method.
3992         (bpstat_stop_status): Always call the breakpoint's check_status
3993         method.  Remove special cases for watchpoints and internal event
3994         breakpoints from here (moved to the check_status implementations).
3995         (print_one_breakpoint_location): Assume b->ops is never NULL.
3996         Remove static tracepoint marker id printing from here (moved to
3997         the print_one_detail callback implementation of tracepoints).
3998         (init_bp_location): Assert OPS is never NULL.
3999         (allocate_bp_location): Always call the breakpoint's
4000         allocate_location method, and remove the default code from here.
4001         (free_bp_location): Always call the location's dtor method, and
4002         remove the default code from here.
4003         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4004         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4005         parameter.  Pass it down.
4006         (set_raw_breakpoint): Ditto.
4007         (print_it_catch_fork): Adjust to take a bpstat as argument.
4008         (catch_fork_breakpoint_ops): Install methods.
4009         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4010         (catch_vfork_breakpoint_ops): Install methods.
4011         (dtor_catch_syscall): Call the base dtor.
4012         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4013         (catch_syscall_breakpoint_ops): Install methods.
4014         (dtor_catch_exec): Call the base dtor.
4015         (print_it_catch_exec): Adjust to take a bpstat as argument.
4016         (catch_exec_breakpoint_ops): Install methods.
4017         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4018         the breakpoint's resources_needed method, and remove the default
4019         code from here.
4020         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4021         breakpoint_ops.
4022         (clone_momentary_breakpoint): Clone the original's ops.
4023         (mention): Always call the breakpoint's print_mention method, and
4024         remove the default code from here.
4025         (create_breakpoint_sal): Adjust to pass the ops to
4026         set_raw_breakpoint rather than setting it manually.
4027         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4028         ops to set_raw_breakpoint_without_location rather than setting it
4029         manually.
4030         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4031         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4032         (ranged_breakpoint_ops): Install methods.
4033         (break_range_command): Adjust to pass the ops to
4034         set_raw_breakpoint rather than setting it manually.
4035         (re_set_watchpoint, breakpoint_hit_watchpoint)
4036         (check_status_watchpoint, resources_needed_watchpoint)
4037         (works_in_software_mode_watchpoint, print_it_watchpoint)
4038         (print_mention_watchpoint, print_recreate_watchpoint): New
4039         functions.
4040         (watchpoint_breakpoint_ops): Install new methods.
4041         (print_it_masked_watchpoint): New function.
4042         (masked_watchpoint_breakpoint_ops): Install new methods.
4043         (watch_command_1): Adjust to pass the right breakpoint_ops to
4044         set_raw_breakpoint_without_location rather than setting it
4045         manually later.  Record the current pspace.
4046         (print_it_exception_catchpoint): Adjust to take a bpstat as
4047         argument.
4048         (gnu_v3_exception_catchpoint_ops): Install new methods.
4049         (say_where): New function.
4050         (null_re_set, null_check_status, null_works_in_software_mode)
4051         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4052         New functions.
4053         (bp_location_ops): New global.
4054         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4055         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4056         (bkpt_check_status, bkpt_resources_needed)
4057         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4058         (bkpt_print_recreate): New functions.
4059         (bkpt_breakpoint_ops): New global.
4060         (tracepoint_re_set, tracepoint_insert_location)
4061         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4062         (tracepoint_check_status, tracepoint_works_in_software_mode)
4063         (tracepoint_print_it, tracepoint_print_one_detail)
4064         (tracepoint_print_mention, tracepoint_print_recreate): New
4065         functions.
4066         (tracepoint_breakpoint_ops): New global.
4067         (delete_breakpoint): Always call the breakpoint's dtor method, and
4068         remove the default handling from here.
4069         (breakpoint_re_set_default): Make static.
4070         (breakpoint_re_set_one): Always call the breakpoints re_set
4071         method, and remove the default handling from here.
4072         (trace_command, ftrace_command, strace_command)
4073         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4074         to create_breakpoint.
4075         (save_breakpoints): Always call the breakpoint's print_recreate
4076         method, and remove the default handling from here.
4077
4078         * ada-lang.c (dtor_exception): Call the base dtor.
4079         (re_set_exception): Call the base method.
4080         (print_it_exception, print_it_catch_exception): Adjust to take a
4081         bpstat as argument.
4082         (catch_exception_breakpoint_ops): Install methods.
4083         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4084         argument.
4085         (catch_exception_unhandled_breakpoint_ops): Install methods.
4086         (print_it_catch_assert): Adjust to take a bpstat as argument.
4087         (catch_assert_breakpoint_ops): Install methods.
4088
4089         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4090         to take a bpstat as argument.
4091         (enum print_stop_action): Add describing comments to each enum
4092         value.
4093         (breakpoint_re_set_default): Delete declaration.
4094         (null_re_set, null_works_in_software_mode, null_resources_needed)
4095         (null_check_status, null_print_one_detail): Declare.
4096         (bkpt_breakpoint_ops): Declare.
4097         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4098         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4099         (bkpt_check_status, bkpt_resources_needed)
4100         (bkpt_works_in_software_mode, bkpt_print_it)
4101         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4102         Declare.
4103
4104         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4105         bkpt_breakpoint_ops.
4106         * python/py-breakpoint.c (bppy_init): Ditto.
4107
4108 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4109
4110         * MAINTAINERS (Write After Approval): Add myself to the list.
4111
4112 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4113
4114         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4115
4116 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4117
4118         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4119         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4120         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4121         adjust.
4122         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4123         (struct i386_debug_reg_state): New.
4124         (i386_init_dregs): New.
4125         (dr_mirror): New.
4126         (i386_cleanup_dregs): Use i386_init_dregs.
4127         (i386_show_dr): Add state parameter and adjust.
4128         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4129         the inferior here.
4130         (i386_remove_aligned_watchpoint): Likewise.
4131         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4132         (i386_update_inferior_debug_regs): New.
4133         (i386_insert_watchpoint): Work on a local mirror of the debug
4134         registers, and only update the inferior on success.
4135         (i386_remove_watchpoint): Ditto.
4136         (i386_region_ok_for_watchpoint): Adjust.
4137         (i386_stopped_data_address): Adjust.
4138         (i386_insert_hw_breakpoint): Adjust.
4139         (i386_remove_hw_breakpoint): Adjust.
4140
4141 2011-07-22  Tom Tromey  <tromey@redhat.com>
4142
4143         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4144         from amd64_pseudo_register_read.  Change arguments.  Call
4145         mark_value_bytes_unavailable when needed.
4146         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4147         set_gdbarch_pseudo_register_read.
4148         * sentinel-frame.c (sentinel_frame_prev_register): Use
4149         regcache_cooked_read_value.
4150         * regcache.h (regcache_cooked_read_value): Declare.
4151         * regcache.c (regcache_cooked_read_value): New function.
4152         (regcache_cooked_read): Call
4153         gdbarch_pseudo_register_read_value if available.
4154         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4155         (i386_pseudo_register_read): Remove.
4156         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4157         i386_pseudo_register_read.  Change arguments.  Call
4158         mark_value_bytes_unavailable when needed.
4159         (i386_pseudo_register_read_value): New function.
4160         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4161         not set_gdbarch_pseudo_register_read.
4162         * gdbarch.sh (pseudo_register_read_value): New method.
4163         * gdbarch.c, gdbarch.h: Rebuild.
4164         * findvar.c (value_from_register): Call get_frame_register_value.
4165
4166 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4167
4168         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4169         get_prefix.
4170         (display_gdb_prompt): Likewise.
4171         (change_annotation_level): Likewise.
4172         (push_prompt): Likewise.
4173         (pop_prompt): Likewise.
4174         (handle_stop_sig): Use get_prompt with a level.
4175         * top.c (command_loop): Use get_prompt with a level.
4176         (set_async_annotation_level): Use set_prompt with a level.
4177         (get_prefix): New function.
4178         (set_prefix): Ditto.
4179         (set_suffix): Ditto.
4180         (get_suffix): Ditto.
4181         (get_prompt): Accept a level argument.
4182         (set_prompt): Accept a level argument.  Free old prompts.  Set
4183         new_async_prompt if level is 0.
4184         (init_main): Use set_prompt with a level.  Do not set
4185         new_async_prompt.
4186         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4187         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4188         Modify set_prompt, get_prompt to account for levels.
4189         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4190         level.
4191         * python/python.c (before_prompt_hook): Use set_prompt.
4192         
4193 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4194
4195         * defs.h: Add guard against inclusion in gdbserver.
4196         (struct ptid, ptid_t): Move to common/ptid.h.
4197         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4198         xsnprintf, internal_error): Move to common/common-utils.h.
4199         (nomem): Delete.
4200         * gdb_assert.h: Move into common/ sub-directory.
4201         * gdb_locale.h: Ditto.
4202         * gdb_dirent.h: Ditto.
4203         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4204         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4205         Move into common/ptid.h.
4206         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4207         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4208         Change nomem to malloc_failure.
4209         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4210         * utils.c (nomem): Rename to malloc_failure.
4211         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4212         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4213         (gdb_buildargv): Change nomem to malloc_failure.
4214         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4215         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4216         ptid_is_pid): Move into common/ptid.c.
4217         (initialize_infrun): Delete initialization of null_ptid and
4218         minus_one_ptid.
4219         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4220         linux_common_xfer_osdata.
4221         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4222         common/ptid.c and common/buffer.c.
4223         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4224         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4225         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4226         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4227         rules.
4228         * common/gdb_assert.h: New.
4229         * common/gdb_dirent.h: New.
4230         * common/gdb_locale.h: New.
4231         * common/buffer.c: New.
4232         * common/buffer.h: New.
4233         * common/ptid.c: New.
4234         * common/ptid.h: New.
4235         * common/xml-utils.c: New.
4236         * common/xml-utils.h: New.
4237         * common/common-utils.c: New.
4238         * common/common-utils.h: New.
4239         * common/linux-osdata.c: New.
4240         * common/linux-osdata.h: New.
4241         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4242         * config/arm/linux.mh (NATDEPFILES): Ditto.
4243         * config/i386/linux.mh (NATDEPFILES): Ditto.
4244         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4245         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4246         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4247         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4248         * config/mips/linux.mh (NATDEPFILES): Ditto.
4249         * config/pa/linux.mh (NATDEPFILES): Ditto.
4250         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4251         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4252         * config/s390/s390.mh (NATDEPFILES): Ditto.
4253         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4254         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4255         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4256
4257 2011-07-21  Matt Rice  <ratmice@gmail.com>
4258
4259         * NEWS: Add info macros and info definitions commands.
4260
4261 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4262
4263         * NEWS: Document Python prompt substitution hook.
4264
4265 2011-07-18  Matt Rice  <ratmice@gmail.com>
4266
4267         PR macros/12999
4268         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4269         * macrotab.c (foreach_macro): Ditto.
4270         (foreach_macro_in_scope): Ditto.
4271         * macrocmd.c (print_macro_callback): New function.
4272         (info_macro_command): Move some code to print_macro_definition.
4273         (print_macro_definition): New function.
4274         (print_one_macro): Add new arguments to callback.
4275         (info_definitions_command): New function.
4276         (info_macros_command): Ditto.
4277         (_initialize_macrocmd): Add info macros and info definitions commands.
4278         * symtab.c (add_macro_name): Add new arguments to callback.
4279
4280 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4281             Tom Tromey  <tromey@redhat.com>
4282
4283         * top.c (set_prompt): Rewrite to free previous prompt, free
4284         asynch_new_prompt and set both on new prompts.
4285         * event-top.c (display_gdb_prompt): Add prompt substitution
4286         logic.
4287         * python/python.c (before_prompt_hook): New function.
4288
4289 2011-07-20  Matt Rice  <ratmice@gmail.com>
4290
4291         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4292         arguments to store_unsigned_integer.
4293
4294 2011-07-20  Tom Tromey  <tromey@redhat.com>
4295
4296         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4297         in some declaration-only cases.
4298
4299 2011-07-18  Tom Tromey  <tromey@redhat.com>
4300
4301         PR symtab/12984:
4302         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4303         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4304         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4305         <debug_type_section>: New field.
4306         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4307         (load_cu): Use appropriate section.
4308         (create_signatured_type_table_from_index): Add 'section'
4309         argument.
4310         (dwarf2_read_index): Only allow a single .debug_types section.
4311         (dw2_get_file_names): Use appropriate section.
4312         (read_type_comp_unit_head): Add 'section' argument.
4313         (create_debug_types_hash_table): Loop over all .debug_types
4314         sections.
4315         (init_cu_die_reader): Use appropriate section.
4316         (process_psymtab_comp_unit, load_partial_comp_unit)
4317         (load_full_comp_unit, read_die_and_children, find_partial_die)
4318         (lookup_die_type, determine_prefix, follow_die_offset): Update.
4319         (lookup_signatured_type_at_offset): Add 'section' argument.
4320         (read_signatured_type_at_offset): Add 'sect' argument.
4321         (read_signatured_type): Use appropriate section.
4322         (set_die_type, get_die_type_at_offset): Update.
4323         (dwarf2_per_objfile_free): Free all .debug_types sections, and
4324         VEC.
4325         (write_psymtabs_to_index): Don't allow index with more than one
4326         .debug_types section.
4327
4328 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4329
4330         Fix crash if referenced CU is aged out.
4331         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4332         xfree of block.data.
4333         (indirect_pieced_value): New variable back_to, use to for xfree of
4334         baton.data.
4335         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4336         block.data.
4337         * dwarf2read.c (dwarf2_find_base_address): New prototype.
4338         (load_cu): New function from ...
4339         (dw2_do_instantiate_symtab): ... the code here ...
4340         (process_full_comp_unit): ... and here.
4341         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
4342         retval.data.
4343
4344 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4345
4346         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4347         type.
4348
4349 2011-07-19  Gary Benson  <gbenson@redhat.com>
4350
4351         * infrun.c (struct execution_control_state): New member
4352         stop_func_filled_in.
4353         (clear_stop_func, fill_in_stop_func): New functions.
4354         (handle_inferior_event): Call clear_stop_func rather than
4355         manipulating the execution control state directly.
4356         Call fill_in_stop_func lazily as required rather than
4357         directly calling find_pc_partial_function in all cases.
4358
4359 2011-07-18  Tom Tromey  <tromey@redhat.com>
4360
4361         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4362         checking for variable-sized array.
4363
4364 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
4365
4366         * varobj.h (varobj_languages): Add vlang_ada definition to the list
4367         of supported languages.
4368         * varobj.c: Add top definitions and basic implementation of the
4369         following callbacks: ada_number_of_children, ada_name_of_variable,
4370         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4371         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4372         (languages): Register Ada-specific callbacks.
4373         (variable_language): Add the Ada case in the language setter switch.
4374
4375 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4376
4377         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4378
4379 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4380
4381         Code cleanup.
4382         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4383         (execute_stack_op): Use dwarf2_frame_ctx_funcs
4384         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4385         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4386         get_frame_cfa, get_tls_address and dwarf_call via funcs.
4387         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4388         (struct dwarf_expr_context_funcs): New, move here methods from ...
4389         (struct dwarf_expr_context): ... here.  New fields funcs.
4390         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4391         (dwarf_expr_ctx_funcs): New.
4392         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4393         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4394         (needs_frame_ctx_funcs): New.
4395         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4396
4397 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4398
4399         * MAINTAINERS (Write After Approval): Add myself to the list.
4400
4401 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4402
4403         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4404         that CIE pointer of an FDE really points to a CIE .
4405
4406 2011-07-15  Hui Zhu  <teawater@gmail.com>
4407
4408         * remote.c (remote_get_trace_status): Add comments.
4409
4410 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4411
4412         Code cleanup - constify struct lval_funcs.
4413         * dwarf2loc.c (pieced_value_funcs): Make it const.
4414         * infrun.c (siginfo_value_funcs): Likewise.
4415         * opencl-lang.c (opencl_value_funcs): Likewise.
4416         * valops.c (value_assign, value_ind): Make the funcs variable const.
4417         * value.c (struct value): Make location.computed.funcs target const.
4418         Rearrange the comments.
4419         (allocate_computed_value): Make the funcs parameter target const.
4420         (value_computed_funcs): Return the funcs target const.
4421         (value_free, value_copy, set_value_component_location): Make the funcs
4422         variable const.
4423         * value.h (allocate_computed_value): Make the funcs parameter target
4424         const.
4425         (value_computed_funcs): Return the funcs target const.
4426         * windows-tdep.c (tlb_value_funcs): Make it const.
4427
4428 2011-07-14  Hui Zhu  <teawater@gmail.com>
4429
4430         * remote.c (remote_get_trace_status): Initialize p.
4431
4432 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4433
4434         Work around kgdb.
4435         * remote.c (remote_get_trace_status): New variable ex.  Put
4436         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
4437
4438 2011-07-13  Tom Tromey  <tromey@redhat.com>
4439
4440         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4441         value_from_contents for final conversion.
4442
4443 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4444
4445         Code cleanup.
4446         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4447         Indent prototypes so they do not get into tags.
4448
4449 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4450
4451         Code cleanup making also optimized out values lazy.
4452         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4453         allocate_optimized_out_value.  Twice.
4454         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
4455         * findvar.c (read_var_value): Likewise.
4456         * value.c (allocate_optimized_out_value): New function.
4457         * value.h (allocate_optimized_out_value): New declaration.
4458
4459 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4460
4461         Fix occasional crash of CTRL-C during DWARF read in.
4462         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4463
4464 2011-07-11  Tom Tromey  <tromey@redhat.com>
4465
4466         * regcache.c (struct regcache_descr): Fix typo.
4467         * i387-tdep.c (i387_supply_xsave): Fix typo.
4468
4469 2011-07-11  Tom Tromey  <tromey@redhat.com>
4470
4471         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4472         (read_file_scope, read_type_unit_scope): Use it.
4473
4474 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4475
4476         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4477         `int'.
4478
4479 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4480
4481         PR python/12438
4482         * python/python.c: Set gdbpy_should_print_stack default to off.
4483         (set_python): Deprecate maint set python print-stack to
4484         class_deprecate.
4485         (_initialize_python): Deprecate maint set/show python print-stack.
4486         Add new prefix command, python.  Add new setting, print-backtrace.
4487         * NEWS: Document set python print-stack.  Document default change.
4488
4489 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4490
4491         * python/py-inferior.c (infpy_dealloc): New function.
4492         (inferior_to_inferior_object): Return a new object, or a
4493         new reference to the existing object.
4494         (find_thread_object): Cleanup references to inferior.
4495         (delete_thread_object): Ditto.
4496         * python/py-infthread.c (create_thread_object): Do not increment
4497         inferior reference count.
4498
4499 2011-07-08  Tom Tromey  <tromey@redhat.com>
4500
4501         * dwarf2loc.c (locexpr_regname): New function.
4502         (locexpr_describe_location_piece): Use it.
4503         (disassemble_dwarf_expression): Add per_cu argument.  Use
4504         locexpr_regname.
4505         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4506         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4507         New cases.
4508         (locexpr_describe_location_1): Add per_cu argument.
4509         (locexpr_describe_location): Update.
4510         (loclist_describe_location): Update.
4511
4512 2011-07-08  Tom Tromey  <tromey@redhat.com>
4513
4514         * dwarf2expr.c (execute_stack_op): Add QUIT.
4515
4516 2011-07-07  Hui Zhu  <teawater@gmail.com>
4517
4518         Revert:
4519         2011-07-06  Hui Zhu  <teawater@gmail.com>
4520         * remote.c (remote_start_remote): Add TRY_CATCH for
4521         remote_get_trace_status.
4522         * tracepoint.c (disconnect_tracing): Ditto.
4523
4524 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
4525
4526         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4527         variables as signed, not unsigned.
4528
4529 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
4530
4531         * jit.c (jit_inferior_init): Reformat forward declaration.
4532
4533 2011-07-06  Matt Rice  <ratmice@gmail.com>
4534
4535         * MAINTAINERS (Write After Approval): Add myself to the list.
4536
4537 2011-07-06  Hui Zhu  <teawater@gmail.com>
4538
4539         * remote.c (remote_start_remote): Add TRY_CATCH for
4540         remote_get_trace_status.
4541         * tracepoint.c (disconnect_tracing): Ditto.
4542
4543 2011-07-05  Tom Tromey  <tromey@redhat.com>
4544
4545         * symtab.c (operator_chars): Now static.
4546         * linespec.c (operator_chars): Don't declare.
4547
4548 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4549
4550         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4551
4552 2011-07-05  Tom Tromey  <tromey@redhat.com>
4553
4554         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4555         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4556         (TYPE_CPLUS_REALLY_JAVA): New macro.
4557         * dwarf2read.c (process_structure_scope): Set
4558         TYPE_CPLUS_REALLY_JAVA.
4559
4560 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4561
4562         * ada-lang.c: Fix typos.
4563         * amd64-tdep.c: Likewise.
4564         * breakpoint.c: Likewise.
4565         * cli/cli-decode.c: Likewise.
4566         * findcmd.c: Likewise.
4567         * inline-frame.c: Likewise.
4568         * mi/mi-main.c: Likewise.
4569         * minsyms.c: Likewise.
4570         * monitor.c: Likewise.
4571         * monitor.h: Likewise.
4572         * prologue-value.c: Likewise.
4573         * reverse.c: Likewise.
4574         * s390-tdep.c: Likewise.
4575
4576 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4577
4578         * jit.c (jit_inferior_init): Forward declare.
4579         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4580
4581 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
4582
4583         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4584
4585 2011-07-04  Tristan Gingold  <gingold@adacore.com>
4586
4587         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4588         (tcb_fieldno): Add activation_link field.
4589         (get_known_tasks_addr): Moved and rewritten.
4590         (get_tcb_types_info): Set activation_link field.
4591         (read_known_tasks_array): Add parameter.  Rewritten.
4592         (read_known_tasks_list): New function.
4593         (read_known_tasks): New function.
4594         (ada_build_task_list): Call read_known_tasks instead of
4595         read_known_tasks_array.
4596         * ravenscar-thread.c: Add first_task_name constant.
4597         (has_ravenscar_runtime): Check for task list too.
4598
4599 2011-07-04  Tristan Gingold  <gingold@adacore.com>
4600
4601         * ada-tasks.c: Renames fieldno to actb_fieldno.
4602         (ada_get_task_number): Indentation.
4603         (get_tcb_types_info): Remove all parameters.  Write directly
4604         the globals.
4605         (ptid_from_atcb_common): Adjust.
4606         (read_atcb): Adjust.
4607
4608 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4609
4610         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4611
4612 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4613
4614         * ui-out.c (ui_out_field_core_addr): Mention that the function
4615         description is in the header file.
4616         * ui-out.h (ui_out_field_core_addr): Document function.
4617
4618 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4619
4620         * ui-out.c (ui_out_get_field_separator): Remove unused function.
4621         * ui-out.h (ui_out_get_field_separator): Remove prototype.
4622
4623 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4624
4625         * symtab.c (expand_line_sal): Remove empty line.
4626
4627 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
4628
4629         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4630         same way as ELFOSABI_NONE.
4631         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4632
4633 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4634
4635         * breakpoint.c: Fix typos in comments.
4636         * linespec.c: Likewise.
4637         * symtab.c: Likewise.
4638
4639 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
4640
4641         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4642         section in separate object files.
4643
4644 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4645
4646         Fix false GCC warning.
4647         * linespec.c (decode_line_1): Initialize values.
4648
4649 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4650
4651         * linespec.c (find_method): Accept the function type automatically only
4652         if it was specified with parameter types.
4653
4654 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4655
4656         Stop on first linespec terminator instead of eating what we can.
4657         * linespec.c (is_linespec_boundary): New function.
4658         (name_end): Remove function.
4659         (keep_name_info): New parameter on_boundary, replace the body.
4660         (decode_line_1): Provide the parameter to keep_name_info.
4661         (decode_compound): Likewise.  Drop the trailing java return type
4662         handling.  Twice.
4663
4664 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4665
4666         Fall back linespec to minimal symbols.
4667         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
4668         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4669         (find_method, symbol_found): Change error to cplusplus_error.
4670
4671 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4672
4673         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4674
4675 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4676             Tom Tromey  <tromey@redhat.com>
4677
4678         * dwarf2read.c (check_physname): New variable.
4679         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4680         (show_check_physname): New function.
4681         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4682
4683 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4684
4685         * machoread.c (macho_symfile_read): Delete OBE comment.
4686
4687 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4688
4689         * machoread.c (struct macho_oso_data): Delete.
4690         (current_oso): Delete.
4691         (macho_relocate_common_syms): New function, mostly extracted
4692         out of
4693         (macho_add_oso_symfile): Call macho_relocate_common_syms.
4694         Remove code that sets and unset current_oso.
4695         (macho_symfile_relocate): Delete handling of common symbols,
4696         now moved to macho_relocate_common_syms.
4697
4698 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4699
4700         * darwin-nat.c (darwin_ptrace): Add documentation.
4701         Set errno to zero before calling ptrace.  If ptrace returns
4702         -1 and errno is zero, then change then return zero.
4703         (darwin_kill_inferior): Issue a warning instead of triggering
4704         a failed assertion when the PT_KILL ptrace operations returned
4705         nonzero.
4706
4707 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4708
4709         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4710         only when inf->private->no_ptrace.
4711
4712 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4713
4714         * ada-lang.c (print_it_exception): Print temporary catchpoints
4715         as "Temporary catchpoint".
4716         (print_mention_exception): Likewise.
4717
4718 2011-07-01  Tom Tromey  <tromey@redhat.com>
4719
4720         * jv-lang.c (java_language_defn): Use java_printchar,
4721         java_printstr.
4722         (java_get_encoding): New function.
4723         (java_emit_char): Use generic_emit_char.
4724         (java_printchar): New function.
4725         (java_printstr): Likewise.
4726
4727 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4728
4729         * ada-typeprint.c (print_record_type): If unable to decode
4730         the name of the parent type, use the encoded name.
4731
4732 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
4733
4734         * ada-typeprint.c (ada_print_type): Fix both PAD type and
4735         pointer to constrained packed array type output.
4736         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4737         packed array output.
4738
4739 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
4740
4741         * ada-typeprint.c (print_array_type): removed if condition on show
4742         being negative for bounds printing.
4743
4744 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4745
4746         * ada-lang.c (ada_identical_enum_types_p): New function.
4747         (symbols_are_identical_enums): New function.
4748         (remove_extra_symbols): Do nothing if NSYMS < 2.
4749         Use symbols_are_identical_enums.
4750
4751 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4752
4753         * ada-valprint.c (ada_value_print): Handle typedefs.
4754
4755 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4756
4757         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4758
4759 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4760
4761         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4762         (decode_constrained_packed_array): Likewise.
4763         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4764
4765 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4766
4767         * ada-exp.y (convert_char_literal): Handle typedef types.
4768
4769 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4770
4771         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4772
4773 2011-06-30  Tom Tromey  <tromey@redhat.com>
4774
4775         * varobj.c (varobj_create): Call do_cleanups on early exit path.
4776         * valops.c (find_overload_match): Call do_cleanups on early exit
4777         path.
4778         * solib.c (solib_find): Call do_cleanups on early exit path.
4779
4780 2011-06-30  Tom Tromey  <tromey@redhat.com>
4781
4782         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4783         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4784         return paths.  Defer final do_cleanups until last return.
4785         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4786         early return.
4787
4788 2011-06-30  Tom Tromey  <tromey@redhat.com>
4789
4790         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4791
4792 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
4793
4794         * MAINTAINERS (Write After Approval): Add myself to the list.
4795
4796 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4797
4798         Disable epilogue unwinders on recent GCCs.
4799         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4800         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4801         * dwarf2read.c (process_full_comp_unit): Initialize
4802         EPILOGUE_UNWIND_VALID.
4803         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4804         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4805         * symtab.h (struct symtab): New field epilogue_unwind_valid.
4806
4807 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4808
4809         Code cleanup - reformatting.
4810         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4811         (producer_is_gcc_ge_4): ... here, change the return value.
4812         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4813         interpretation.
4814
4815 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4816
4817         Fix non-only rename list for Fortran modules import.
4818         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4819         cp_add_using_directive caller.
4820         (cp_add_using_directive): New parameter excludes, describe it.  New
4821         variables ix and param.  Compare if also excludes match.  Allocate NEW
4822         with variable size, initialize EXCLUDES there.
4823         (cp_lookup_symbol_imports): New variable excludep, test
4824         current->EXCLUDES with it.
4825         * cp-support.h: Include vec.h.
4826         (struct using_direct): New field excludes, describe it.
4827         (DEF_VEC_P (const_char_ptr)): New.
4828         (cp_add_using_directive): New parameter excludes.
4829         * defs.h (const_char_ptr): New typedef.
4830         * dwarf2read.c (read_import_statement): New variables child_die,
4831         excludes and cleanups, read in excludes.
4832         (read_namespace): Adjust the cp_add_using_directive caller.
4833
4834 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4835
4836         Code cleanup.
4837         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4838         negative comparisons.
4839
4840 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
4841
4842         * mi/mi-main.c (mi_cmd_list_features): Emit
4843         breakpoint-notifications.
4844
4845 2011-06-29  Tom Tromey  <tromey@redhat.com>
4846
4847         PR fortran/10036:
4848         * valprint.h (generic_emit_char, generic_printstr): Declare.
4849         * valprint.c (wchar_printable, append_string_as_wide)
4850         (print_wchar): Move from c-lang.c.
4851         (generic_emit_char): New function; mostly taken from c_emit_char.
4852         (generic_printstr): New function; mostly taken from c_printstr.
4853         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4854         represented as arrays.
4855         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4856         type.
4857         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4858         identically to TYPE_CODE_INT.
4859         * f-lang.c (f_get_encoding): New function.
4860         (f_emit_char): Use generic_emit_char.
4861         (f_printchar): Replace comment.
4862         (f_printstr): Use generic_printstr.
4863         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4864         "character" types specially.
4865         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4866         for Fortran.
4867         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4868         Move to valprint.c
4869         (c_emit_char): Call generic_emit_char.
4870         (c_printstr): Call generic_printstr.
4871
4872 2011-06-29  Gary Benson  <gbenson@redhat.com>
4873
4874         * breakpoint.c (bpstat_what): Removed duplicated case.
4875
4876 2011-06-28  Tom Tromey  <tromey@redhat.com>
4877
4878         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4879
4880 2011-06-27  Tom Tromey  <tromey@redhat.com>
4881
4882         * valops.c (find_overload_match): Call do_cleanups before early
4883         return.
4884         * top.c (execute_command): Call do_cleanups before early return.
4885         (command_loop): Likewise.
4886         * stack.c (backtrace_command): Make a null cleanup early.  Don't
4887         conditionally call do_cleanups.
4888         * python/py-value.c (TRY_CATCH): Move cleanup handling into
4889         TRY_CATCH.
4890         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4891         so cleanups are always run.
4892         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4893         * findcmd.c (parse_find_args): Call do_cleanups on early return
4894         path.
4895         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4896         Don't conditionally call do_cleanups.
4897         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4898         later.
4899
4900 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4901
4902         * MAINTAINERS (Write After Approval): Use default email address.
4903
4904 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
4905
4906         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4907
4908 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4909
4910         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4911         saved_regs_mask and copied_regs_mask fields.
4912         (sparc_record_save_insn): New prototype.
4913         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4914         (sparc_record_save_insn): New function.
4915         (sparc_analyze_prologue): Add head comment.  Recognize store insns
4916         of call-saved registers.  Use OFFSET consistently.  Recognize flat
4917         frames and cache their settings.
4918         (sparc32_skip_prologue): Handle flat frames.
4919         (sparc_frame_cache): Add frame_offset to the base address.
4920         (sparc32_frame_cache): Adjust to new frame description.
4921         (sparc32_frame_prev_register): Likewise.
4922         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4923         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4924         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4925         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4926         frame by calling sparc_record_save_insn.
4927         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4928         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4929         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4930
4931 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4932
4933         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4934         field by map_addr and map_len.
4935         (dwarf2_read_section): Adjust for the new bfd_mmap api.
4936         (munmap_section_buffer): Likewise.
4937
4938 2011-06-24  Tom Tromey  <tromey@redhat.com>
4939
4940         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4941         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4942         * python/python.c (gdbpy_parameter): Make 'arg' const.
4943         (execute_gdb_command): Likewise.
4944         (gdbpy_decode_line): Likewise.  Copy it.
4945         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
4946         (gdbpy_write): Make 'arg' const.
4947         * python/py-type.c (typy_lookup_typename): Make 'type_name'
4948         const.
4949         (gdbpy_lookup_type): Likewise.
4950         * python/py-prettyprint.c (print_children): Make 'name' const.
4951         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
4952         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4953         Py_ssize_t.
4954         * python/py-function.c (fnpy_init): Make 'name' const.
4955         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
4956         (gdbpy_string_to_argv): Make 'input' const.
4957         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
4958         it.
4959         * gdbtypes.h (lookup_typename): Update.
4960         * gdbtypes.c (lookup_typename): Make 'name' const.
4961         (lookup_struct): Likewise.
4962         (lookup_union): Likewise.
4963         (lookup_enum): Likewise.
4964
4965 2011-06-24  Tom Tromey  <tromey@redhat.com>
4966
4967         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4968         gdb_thread_db.h.  Move all common/ entries to be together.
4969         (TAGS): Don't depend on DEPFILES.
4970
4971 2011-06-23  Yao Qi  <yao@codesourcery.com>
4972
4973         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4974         * remote.c (remote_start_remote): ... here.
4975         * monitor.c (monitor_open): ... here.
4976
4977 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
4978
4979         * gdbtypes.c (append_composite_type_field_aligned): Fix
4980         calculation of bit position based on alignment.
4981
4982 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4983
4984         * breakpoint.c (bpstat_stop_status): Call the check_status
4985         breakpoint_ops method.
4986         (print_one_breakpoint_location): Also print the condition for Ada
4987         exception catchpoints.
4988         (allocate_bp_location): New, factored out from
4989         allocate_bp_location.
4990         (allocate_bp_location): Adjust.  Call the owner breakpoint's
4991         allocate_location method, if there is one.
4992         (free_bp_location): Call the locations's dtor method, if there is
4993         one.
4994         (init_raw_breakpoint_without_location): New breakpoint_ops
4995         parameter.  Use it.
4996         (set_raw_breakpoint_without_location): Adjust.
4997         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
4998         (set_raw_breakpoint): Adjust.
4999         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5000         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5001         re_set and check_status methods.
5002         (init_catchpoint): Don't memset, initialize thread, addr_string
5003         and enable_state.  Pass the ops down to init_raw_breakpoint.
5004         (install_catchpoint): Rename to ...
5005         (install_breakpoint): ... this, and make extern.
5006         (create_fork_vfork_event_catchpoint): Adjust.
5007         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5008         re_set and check_status methods.
5009         (create_syscall_event_catchpoint): Adjust.
5010         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5011         (masked_watchpoint_breakpoint_ops): Install NULL
5012         allocate_location, re_set and check_status methods.
5013         (catch_exec_command_1): Adjust.
5014         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5015         re_set and check_status methods.
5016         (create_ada_exception_breakpoint): Rename to ...
5017         (init_ada_exception_breakpoint): ... this.  Add a struct
5018         breakpoint parameter, and delete the exp_string, cond_string and
5019         cond parameters.  Use init_raw_breakpoint, and don't install or
5020         mention the breakpoint yet.  Don't clear breakpoint fields that
5021         init_raw_breakpoint already clears.
5022         (re_set_breakpoint): Delete, split into ...
5023         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5024         functions.
5025         (breakpoint_re_set_one): Call the breakpoint's
5026         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5027         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5028         (struct bp_location_ops): New type.
5029         (struct bp_location): New field `ops'.
5030         (struct breakpoint_ops): New `allocate_location', `re_set' and
5031         `check_status' fields.  Make `breakpoint_hit''s description match
5032         reality.
5033         (init_bp_location): Declare.
5034         (breakpoint_re_set_default): Declare.
5035         (create_ada_exception_breakpoint): Rename to ...
5036         (init_ada_exception_breakpoint): ... this.  Add a struct
5037         breakpoint parameter, and delete the exp_string, cond_string and
5038         cond parameters.
5039         (install_breakpoint): Declare.
5040         * ada-lang.c: Include exceptions.h.
5041         <Ada exceptions description>: Update.
5042         (struct ada_catchpoint_location): New type.
5043         (ada_catchpoint_location_dtor): New function.
5044         (ada_catchpoint_location_ops): New global.
5045         (ada_catchpoint): New type.
5046         (create_excep_cond_exprs): New function.
5047         (dtor_exception, allocate_location_exception, re_set_exception)
5048         (should_stop_exception, check_status_exception): New functions.
5049         (print_one_exception, print_mention_exception)
5050         (print_recreate_exception): Adjust.
5051         (dtor_catch_exception, allocate_location_catch_exception)
5052         (re_set_catch_exception, check_status_catch_exception): New
5053         functions.
5054         (catch_exception_breakpoint_ops): Install them.
5055         (dtor_catch_exception_unhandled)
5056         (allocate_location_catch_exception_unhandled)
5057         (re_set_catch_exception_unhandled)
5058         (check_status_catch_exception_unhandled): New functions.
5059         (catch_exception_unhandled_breakpoint_ops): Install them.
5060         (dtor_catch_assert, allocate_location_catch_assert)
5061         (re_set_catch_assert, check_status_catch_assert): New functions.
5062         (catch_assert_breakpoint_ops): Install them.
5063         (ada_exception_catchpoint_p): Delete.
5064         (catch_ada_exception_command_split)
5065         (ada_exception_catchpoint_cond_string): Rename exp_string
5066         parameter to excep_string.  Adjust.
5067         (ada_parse_catchpoint_condition): Delete.
5068         (ada_exception_sal): Rename the exp_string parameter to
5069         excep_string.  Delete the cond_string and cond parameters.
5070         Adjust.
5071         (ada_decode_exception_location): Rename the exp_string parameter
5072         to excep_string.  Delete the cond_string and cond parameters.
5073         Adjust.
5074         (create_ada_exception_catchpoint): New function.
5075         (catch_ada_exception_command, ada_decode_assert_location)
5076         (catch_assert_command): Adjust.
5077         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5078
5079 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5080
5081         * ada-lang.c: Include arch-utils.h.
5082         (ada_decode_exception_location): Make static.
5083         (catch_ada_exception_command): Moved here from breakpoint.c.
5084         (ada_decode_assert_location): Make static.
5085         (catch_assert_command): Moved here from breakpoint.c.
5086         (_initialize_ada_lang): Install the exception and assert
5087         catchpoint commands here.
5088         * ada-lang.h (ada_decode_exception_location)
5089         (ada_decode_assert_location): Delete declarations.
5090         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5091         breakpoint.h.
5092         (create_ada_exception_breakpoint): Make extern.
5093         (catch_ada_exception_command, catch_assert_command): Moved to
5094         ada-lang.c.
5095         (add_catch_command): Make extern.
5096         (_initilize_breakpoint): Don't install the exception and assert
5097         catchpoint commands here.
5098         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5099         breakpoint.c
5100         (add_catch_command, create_ada_exception_breakpoint): Declare.
5101
5102 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5103
5104         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5105         the breakpoint to the breakpoint chain here.
5106         (set_raw_breakpoint_without_location): Add the breakpoint to the
5107         breakpoint chain here.
5108         (init_raw_breakpoint): Adjust comments.
5109         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5110         here.
5111         (init_catchpoint): Don't set the catchpoint's breakpoint number
5112         here.
5113         (install_catchpoint): New function.
5114         (create_fork_vfork_event_catchpoint)
5115         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5116         use install_catchpoint.
5117
5118 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5119
5120         * breakpoint.c (create_catchpoint_without_mention)
5121         (create_catchpoint): Delete.
5122
5123 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5124
5125         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5126         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5127         reference to exec_pathname.
5128         (struct exec_catchpoint): New type.
5129         (dtor_catch_exec): New function.
5130         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5131         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5132         (catch_exec_command_1): Adjust to use init_catchpoint.
5133         (delete_breakpoint): Remove reference to exec_pathname.
5134
5135 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5136
5137         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5138         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5139         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5140         reference to syscalls_to_be_caught.
5141         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5142         NULL `dtor'.
5143         (struct syscall_catchpoint): New type.
5144         (dtor_catch_syscall): New function.
5145         (insert_catch_syscall, remove_catch_syscall)
5146         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5147         (print_recreate_catch_syscall): Adjust.
5148         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5149         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5150         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5151         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5152         (masked_watchpoint_breakpoint_ops)
5153         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5154         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5155         there is one.  Remove references to syscalls_to_be_caught.
5156         (catching_syscall_number): Adjust.
5157         * ada-lang.c (catch_exception_breakpoint_ops)
5158         (catch_exception_unhandled_breakpoint_ops)
5159         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5160
5161 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5162
5163         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5164         field.
5165         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5166         reference to forked_inferior_pid.
5167         (struct fork_catchpoint): New type.
5168         (breakpoint_hit_catch_fork, print_it_catch_fork)
5169         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5170         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5171         (create_fork_vfork_event_catchpoint): Adjust to use
5172         init_catchpoint.
5173
5174 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5175
5176         * breakpoint.c (add_to_breakpoint_chain)
5177         (init_raw_breakpoint_without_location): New functions, factored
5178         out from ...
5179         (set_raw_breakpoint_without_location): ... this one.
5180         (init_raw_breakpoint): New function, factored out from
5181         set_raw_breakpoint and adjusted to use
5182         init_raw_breakpoint_without_location.
5183         (set_raw_breakpoint): Adjust.
5184         (init_catchpoint): New function, factored out from
5185         create_catchpoint_without_mention and adjusted to use
5186         init_raw_breakpoint.
5187         (create_catchpoint_without_mention): Adjust.
5188
5189 2011-06-22  Tom Tromey  <tromey@redhat.com>
5190
5191         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5192         argument of 0 specially.
5193
5194 2011-06-22  Yao Qi  <yao@codesourcery.com>
5195
5196         * infrun.c (handle_inferior_event): Remove write-only local variable
5197         `sw_single_step_trap_p'.
5198
5199 2011-06-20  Tom Tromey  <tromey@redhat.com>
5200
5201         * symtab.c (lookup_language_this): End loop if block is NULL.
5202
5203 2011-06-17  Tom Tromey  <tromey@redhat.com>
5204
5205         * valops.c (value_of_this): Use lookup_language_this.
5206         * symtab.h (lookup_language_this): Declare.
5207         * symtab.c (lookup_language_this): New function.
5208         (lookup_symbol_aux): Use lookup_language_this.
5209         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5210
5211 2011-06-17  Tom Tromey  <tromey@redhat.com>
5212
5213         * value.h (value_of_this): Update.
5214         (value_of_local): Remove.
5215         * valops.c (value_of_this): Rename from value_of_local.  Change
5216         parameters.
5217         * p-exp.y (exp): Update.
5218         (variable): Likewise.
5219         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5220
5221 2011-06-17  Tom Tromey  <tromey@redhat.com>
5222
5223         * valops.c (value_of_local): Complain if NAME is NULL.
5224         * std-operator.def (OP_OBJC_SELF): Remove.
5225         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5226         * objc-exp.y (name_not_typename): Use OP_THIS.
5227         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5228         name for "this".
5229         <OP_OBJC_SELF>: Remove.
5230         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5231
5232 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5233
5234         * python/py-events.h (gdb_py_events): Make it extern.
5235         * python/py-evtregistry.c (gdb_py_events): Declare.
5236
5237 2011-06-16  Hui Zhu  <teawater@gmail.com>
5238
5239         * remote.c (remote_trace_set_readonly_regions): Add check for
5240         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5241         output warning.
5242
5243 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5244
5245         * arm-linux-tdep.c: Include "auxv.h".
5246         (AT_HWCAP): Define.
5247         (ARM_LINUX_SIZEOF_VFP): Define.
5248         (arm_linux_supply_vfp): New function.
5249         (arm_linux_collect_vfp): Likewise.
5250         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5251         (arm_linux_fpa_regset_sections): New variable.
5252         (arm_linux_vfp_regset_sections): Likewise.
5253         (arm_linux_core_read_description): New function.
5254         (arm_linux_init_abi): Install arm_linux_core_read_description and
5255         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5256         appropriate for the architecture.
5257         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5258         (tdesc_arm_with_m): Declare.
5259         (tdesc_arm_with_iwmmxt): Likewise.
5260         (tdesc_arm_with_vfpv2): Likewise.
5261         (tdesc_arm_with_vfpv3): Likewise.
5262         (tdesc_arm_with_neon): Likewise.
5263         * arm-linux-nat.c: Move features/*.c includes ...
5264         * arm-tdep.c: ... here.
5265         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5266         target description data structures ...
5267         * arm-tdep.c (_initialize_arm_tdep): ... here.
5268         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5269         HWCAP_VFPv3D16): Move definitions ...
5270         * arm-linux-tdep.h: ... here.
5271
5272 2011-06-15  Hui Zhu  <teawater@gmail.com>
5273
5274         * remote.c (remote_trace_set_readonly_regions): Add a check for
5275         target_buf_size.
5276
5277 2011-06-14  Tom Tromey  <tromey@redhat.com>
5278
5279         * coffread.c (coffread_objfile): Rename from current_objfile.
5280         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5281         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5282
5283 2011-06-14  Tom Tromey  <tromey@redhat.com>
5284
5285         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5286         (class_symtab): Remove.
5287         (jv_dynamics_progspace_key): New global.
5288         (jv_per_objfile_free): Reset program space data.  Update assert.
5289         Don't clear globals.
5290         (get_dynamics_objfile): Use and set program space data.
5291         (get_java_class_symtab): Use get_dynamics_objfile.
5292         (add_class_symbol): Likewise.
5293         (java_link_class_type): Likewise.
5294         (java_object_type, jv_clear_object_type, set_java_object_type):
5295         Remove.
5296         (get_java_object_type): Update.  Don't cache result.
5297         (is_object_type): Don't call set_java_object_type.
5298         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5299         initialize jv_dynamics_progspace_key.
5300
5301 2011-06-14  Tom Tromey  <tromey@redhat.com>
5302
5303         * symtab.h (current_objfile): Don't declare.
5304         * objfiles.h (current_objfile): Don't declare.
5305         * objfiles.c (current_objfile): Remove.
5306         * mdebugread.c (current_objfile): New file-scope global.
5307         * dbxread.c (current_objfile): New file-scope global.
5308         * coffread.c (current_objfile): New file-scope global.
5309
5310 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5311
5312         * top.h (line): Rename to ...
5313         (saved_command_line): ... this.
5314         (linesize): Rename to ...
5315         (saved_command_line_size): ... this.
5316         * top.c (line): Rename to ...
5317         (saved_command_line): ... this.
5318         (linesize): Rename to ...
5319         (saved_command_line_size): ... this.
5320         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5321         * event-top.c (command_line_handler): Adjust.
5322         * main.c (captured_main): Adjust.
5323
5324 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5325
5326         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
5327         get_frame_func instead of get_frame_pc to determine the code
5328         address used to construct the frame ID.
5329         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5330         (i386_epilogue_frame_this_id): Likewise.
5331         (i386_epilogue_frame_prev_register): New function.
5332         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5333         (i386_stack_tramp_frame_sniffer): Fix coding style.
5334         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5335         (i386_gdbarch_init): Fix comments.
5336
5337 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5338
5339         * i386-tdep.c (i386_match_insn_block): Use length of the proper
5340         instruction when walking back through the instruction stream.
5341
5342 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5343
5344         * symtab.c (output_partial_symbol_filename): Exchange the filename and
5345         fullname parameters order.
5346
5347 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5348
5349         Code cleanup.
5350         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5351         for fun.
5352         * psymtab.c (map_symbol_filenames_psymtab)
5353         (map_partial_symbol_filenames): Likewise.
5354         * psymtab.h: Include symfile.h.
5355         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5356         * symfile.h (symbol_filename_ftype): New.
5357         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5358         map_symbol_filenames, clarify more the naming in comment.
5359
5360 2011-06-07  Doug Evans  <dje@google.com>
5361
5362         * cc-with-index.sh: Fix typos in comment.
5363         Look for ../../gdb, for fullname.exp.
5364
5365 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5366             Pedro Alves  <pedro@codesourcery.com>
5367
5368         * cli/cli-cmds.c (shell_escape): Use waitpid.
5369         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5370
5371 2011-06-07  Tristan Gingold  <gingold@adacore.com>
5372
5373         * xcoffread.c (dwarf2_xcoff_names): New variable.
5374         (aix_process_linenos): Add a guard.
5375         (xcoff_symfile_finish): Free dwarf2.
5376         (xcoff_initial_scan): Add dwarf2 support.
5377
5378 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
5379
5380         * infcall.c (run_inferior_call): Don't mask async.  Instead force
5381         a synchronous wait, if the target can async.
5382
5383         * target.h (struct target_ops): Delete to_async_mask.
5384         (target_async_mask): Delete.
5385         * target.c (update_current_target): Delete references to to_async_mask.
5386         * linux-nat.c (linux_nat_async_mask_value): Delete.
5387         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5388         to linux_nat_async_mask_value.
5389         (linux_nat_async_mask): Delete.
5390         (linux_nat_async, linux_nat_close): Remove references to
5391         linux_nat_async_mask_value.
5392         * record.c (record_async_mask_value): Delete.
5393         (record_async): Remove references to record_async_mask_value.
5394         (record_async_mask): Delete.
5395         (record_can_async_p, record_is_async_p): Remove references to
5396         record_async_mask_value.
5397         (init_record_ops, init_record_core_ops): Remove references to
5398         record_async_mask.
5399         * remote.c (remote_async_mask_value): Delete.
5400         (init_remote_ops): Remove reference to remote_async_mask.
5401         (remote_can_async_p, remote_is_async_p): Remove references to
5402         remote_async_mask_value.
5403         (remote_async): Remove references to remote_async_mask_value.
5404         (remote_async_mask): Delete.
5405
5406         * infrun.c (fetch_inferior_event): Don't claim registers changed
5407         if the current thread is already not executing.
5408
5409 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
5410
5411         From Stephen Kitt  <steve@sk2.org>
5412         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5413         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5414
5415 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
5416
5417         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5418         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5419
5420 2011-06-03  Tom Tromey  <tromey@redhat.com>
5421
5422         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5423         code fields.
5424         * python/py-exitedevent.c (create_exited_event_object): Change
5425         type of 'exit_code'.  Optionally add exit_code attribute.
5426         (emit_exited_event): Change type of 'exit_code'.
5427         * python/py-event.h (emit_exited_event): Update.
5428         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5429         * infrun.c (handle_inferior_event): Set exit code fields on
5430         inferior.
5431         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5432         fields.
5433         * inferior.c (exit_inferior_1): Initialize new fields.
5434
5435 2011-06-03  Tom Tromey  <tromey@redhat.com>
5436
5437         * dwarf2expr.c (get_signed_type): New function.
5438         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5439
5440 2011-06-02  Keith Seitz  <keiths@redhat.com>
5441
5442         * objc-lang.c (find_methods): Increment objfile_csym earlier.
5443
5444 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
5445
5446         * top.h (simplified_command_loop): Delete declaration.
5447
5448 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
5449
5450         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5451         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
5452
5453 2011-06-01  Yao Qi  <yao@codesourcery.com>
5454
5455         * objfiles.h (obj_section_addr): Update reference to objfile from
5456         `abfd' to `obfd'.
5457         (obj_section_endaddr): Likewise.
5458
5459 2011-06-01  Daniel Jacobowitz  <drow@false.org>
5460
5461         * MAINTAINERS: Update my email address and affiliation.  Also
5462         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
5463
5464 2010-05-31  Keith Seitz  <keiths@redhat.com>
5465
5466         PR c++/12750
5467         * linespec.c (get_search_block): New function.
5468         (find_methods): Add FILE_SYMTATB parameter and use it and
5469         get_search_block to pass an appropriate block to
5470         lookup_symbol_in_namespace.
5471         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5472         Check if *ARGPTR starts with a filename first.
5473         If it does, call locate_first_half again to locate the next
5474         "first half" of the linespec.
5475         Pass FILE_SYMTATB to decode_objc and decode_compound.
5476         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5477         (locate_first_half): Stop on the first colon seen.
5478         (decode_compound): Add FILE_SYMTAB parameter.
5479         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5480         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5481         get_search_block with lookup_symbol.
5482         (find_method): Add FILE_SYMTAB parameter and pass it to
5483         find_methods.
5484         (decode_objc): Use get_search_block.
5485
5486 2010-05-31  Keith Seitz  <keiths@redhat.com>
5487
5488         PR symtab/12704
5489         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5490         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5491         and CP_ANONYMOUS_NAMESPACE_LEN.
5492         (cp_is_anonymous): Likewise.
5493         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5494         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5495         * dwarf2read.c (namespace_name): Likewise.
5496         (fixup_partial_die): Likewise.
5497         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5498         seen in the input, keep it.
5499
5500 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5501
5502         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5503         * inf-loop.h (inferior_event_handler_wrapper): Delete.
5504         * inf-loop.c (inferior_event_handler_wrapper): Delete.
5505         (inferior_event_handler): Don't handle INF_QUIT_REQ.
5506         * remote.c (_initialize_remote): Register
5507         async_remote_interrupt_twice directly as
5508         sigint_remote_twice_token event.
5509
5510 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5511
5512         * target.h (enum inferior_event_type): Delete INF_ERROR.
5513         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5514
5515 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5516
5517         * interps.c (interp_set): Don't cancel continuations.
5518
5519 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5520
5521         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5522
5523 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5524
5525         * continuations.h (continuation_ftype): Add `err' parameter.
5526         Document parameters.
5527         (do_all_continuations, do_all_continuations_thread)
5528         (do_all_intermediate_continuations)
5529         (do_all_intermediate_continuations_thread)
5530         (do_all_inferior_continuations): Add `err' parameter.
5531         * continuations.c (do_my_continuations_1, do_my_continuations)
5532         (do_all_inferior_continuations, do_all_continuations_ptid)
5533         (do_all_continuations_thread_callback)
5534         (do_all_continuations_thread, do_all_continuations)
5535         (do_all_intermediate_continuations_thread_callback)
5536         (do_all_intermediate_continuations_thread)
5537         (do_all_intermediate_continuations): Add `err' parameter, and pass
5538         it down all the way to the continuations proper.
5539         * inf-loop.c (inferior_event_handler): If fetching an inferior
5540         event throws an error, don't pop the target, and still call the
5541         continuations, but with `err' set.  Adjust all other continuation
5542         calls.
5543         * breakpoint.c (until_break_command_continuation): Add `err'
5544         parameter.
5545         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
5546         issue another step if `err' is set.
5547         (struct until_next_continuation_args): New.
5548         (until_next_continuation): Add `err' parameter.  Adjust.
5549         (until_next_command): Adjust.
5550         (struct finish_command_continuation_args): Add `thread' field.
5551         (finish_command_continuation): Add `err' parameter.  Handle it.
5552         (finish_forward): Adjust.
5553         (attach_command_continuation): Add `err' parameter.  Handle it.
5554         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5555         cancel the continuations.
5556         * interps.c (interp_set): Adjust to cancel the continuations.
5557         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5558         continuations rather than discarding.
5559         (free_thread): Don't clear thread inferior resources here.
5560         (delete_thread_1): Do it here instead.  And do it before removing
5561         the thread from the threads list.  Tag the thread as exited before
5562         clearing thread inferior resources.
5563
5564 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
5565
5566         * infcall.c (call_function_by_hand): Rephrase error message.
5567
5568 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5569
5570         * defs.h (struct thread_info, struct inferior): Delete forward
5571         declarations.
5572         * breakpoint.h (struct thread_info): New forward declaration.
5573         * observer.sh (struct inferior): New forward declaration.
5574         * python/python-internal.h (struct inferior): New forward
5575         declaration.
5576
5577 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5578
5579         * defs.h (struct continuation, continuation_ftype)
5580         (continuation_free_arg_ftype, add_continuation)
5581         (do_all_continuations, do_all_continuations_thread)
5582         (discard_all_continuations, discard_all_continuations_thread)
5583         (add_intermediate_continuation, do_all_intermediate_continuations)
5584         (do_all_intermediate_continuations_thread)
5585         (discard_all_intermediate_continuations)
5586         (discard_all_intermediate_continuations_thread)
5587         (add_inferior_continuation, do_all_inferior_continuations)
5588         (discard_all_inferior_continuations): Move to ...
5589         * continuations.h: ... this new file.
5590         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5591         infcmd.c, inferior.c, infrun.c, interps.c: Include
5592         continuations.h.
5593
5594 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5595             Doug Evans  <dje@google.com>
5596
5597         Fix PR 10970, PR 12702.
5598         * linux-nat.c (linux_lwp_is_zombie): New function.
5599         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
5600         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
5601
5602 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5603
5604         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5605         typedefs.
5606         (add_continuation, add_intermediate_continuation)
5607         (add_inferior_continuation): Use them.
5608         * continuations.c (struct continuation): Use them.
5609         (make_continuation_ftype): Delete.
5610         (make_continuation, add_inferior_continuation, add_continuation)
5611         (add_intermediate_continuation): Use continuation_ftype and
5612         continuation_free_arg_ftype.  Rename parameters to shorter names.
5613
5614 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5615
5616         * continuations.c (make_continuation): Make it return void.
5617         (do_my_continuations): Rename to ...
5618         (do_my_continuations_1): ... this.  Remove old_chain parameter and
5619         adjust.
5620         (do_my_continuations): New.
5621         (discard_my_continuations): Rename to ...
5622         (discard_my_continuations_1): ... this.  Remove old_chain
5623         parameter and adjust.
5624         (discard_my_continuations): New.
5625         (add_inferior_continuation): Simplify.
5626         (do_all_inferior_continuations): Reimplement on top
5627         do_my_continuations.
5628         (discard_all_inferior_continuations): Simplify.
5629         (add_continuation): Simplify.
5630         (do_all_continuations_ptid): Simplify.
5631         (discard_all_continuations_thread_callback): Simplify.
5632         (add_intermediate_continuation): Simplify.
5633         (discard_all_intermediate_continuations_thread_callback):
5634         Simplify.
5635
5636 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5637
5638         * utils.c (struct continuation, add_continuation)
5639         (add_inferior_continuation)
5640         (do_all_inferior_continuations, discard_all_inferior_continuations)
5641         (restore_thread_cleanup, do_all_continuations_ptid)
5642         (do_all_continuations_thread_callback)
5643         (do_all_continuations_thread, do_all_continuations)
5644         (discard_all_continuations_thread_callback)
5645         (discard_all_continuations_thread, discard_all_continuations)
5646         (add_intermediate_continuation)
5647         (do_all_intermediate_continuations_thread_callback)
5648         (do_all_intermediate_continuations_thread)
5649         (do_all_intermediate_continuations)
5650         (discard_all_intermediate_continuations_thread_callback)
5651         (discard_all_intermediate_continuations_thread)
5652         (discard_all_intermediate_continuations): Move to ...
5653         * continuations.c: ... this new file, and adjust to no longer
5654         implement continuations on top of cleanups.
5655         * Makefile.in (SFILES): Add continuations.c.
5656         (COMMON_OBS): Add continuations.o.
5657
5658 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5659
5660         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5661         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5662         Internal error on invalid values.
5663         * reverse.c: Don't handle EXEC_ERROR.
5664         * mi/mi-main.c: Don't handle EXEC_ERROR.
5665
5666 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5667
5668         * record.c: Include event-loop.h, inf-loop.h.
5669         (record_beneath_to_async): New global.
5670         (tmp_to_async): New global.
5671         (record_async_inferior_event_token): New global.
5672         (record_open_1): Don't error out if async is enabled.
5673         (record_open): Handle to_async.  Create an async event source in
5674         the event loop.
5675         (record_close): Delete the async event source.
5676         (record_resumed): New global.
5677         (record_execution_dir): New global.
5678         (record_resume, record_core_resume): Set them.  Register the
5679         target on the event loop.
5680         (record_wait): Rename to ...
5681         (record_wait_1): ... this.  Add more debug output.  Handle
5682         TARGET_WNOHANG, and the target beneath returning
5683         TARGET_WAITKIND_IGNORE.
5684         (record_wait): Reimplement on top of record_wait_1.
5685         (record_async_mask_value): New global.
5686         (record_async, record_async_mask, record_can_async_p)
5687         (record_is_async_p, record_execution_direction): New functions.
5688         (init_record_ops, init_record_core_ops): Install new methods.
5689         * infrun.c (fetch_inferior_event): Temporarily switch the global
5690         execution direction to the direction the target was going.
5691         (execution_direction): Change type to int.
5692         * target.c (default_execution_direction): New function.
5693         (update_current_target): Inherit and de_fault
5694         to_execution_direction.
5695         * target.h (struct target_ops) <to_execution_direction>: New
5696         field.
5697         (target_execution_direction): New macro.
5698         * inferior.h (execution_direction): Change type to int.
5699
5700 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5701
5702         * infcall.c (call_function_by_hand): Don't allow calling functions
5703         in reverse execution mode.
5704
5705 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5706
5707         * infcmd.c (finish_command): Allow async finish in reverse.
5708
5709 2011-05-26  Yao Qi  <yao@codesourcery.com>
5710
5711         * gdb_thread_db.h: Delete.  Move to ...
5712         * common/gdb_thread_db.h: ... here.
5713
5714 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5715
5716         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5717         function's entry point instead of a manually managed momentary
5718         breakpoint, and only ever issue one proceed call.
5719         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5720         doing a reverse-finish, switch to stepi mode, to do another step.
5721         (insert_step_resume_breakpoint_at_sal): Make public.
5722         (normal_stop): No need to save function value return registers if
5723         going reverse.
5724         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5725
5726 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5727
5728         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5729         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5730         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
5731         at the end.
5732         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5733         step-resume breakpoints.
5734         (print_it_typical): Handle bp_hp_step_resume.
5735         (bpstat_what): Ditto.
5736         (bptype_string): Ditto.
5737         (print_one_breakpoint_location): Ditto.
5738         (allocate_bp_location): Ditto.
5739         (mention): Ditto.
5740         (breakpoint_re_set_one): Ditto.
5741         * infrun.c (handle_inferior_event): Adjust.  Split
5742         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5743         BPSTAT_WHAT_HP_STEP_RESUME.
5744         (insert_step_resume_breakpoint_at_sal): Rename to ...
5745         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
5746         parameter.  Handle it.
5747         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5748         insert_step_resume_breakpoint_at_sal_1.
5749         (insert_step_resume_breakpoint_at_frame): Rename to ...
5750         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
5751         set a high-priority step-resume breakpoint.
5752         (insert_step_resume_breakpoint_at_frame): Adjust comment.
5753         (insert_step_resume_breakpoint_at_caller): Ditto.
5754
5755 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5756
5757         * breakpoint.c (iterate_over_related_breakpoints): New.
5758         (do_map_delete_breakpoint): New.
5759         (delete_command): Pass do_map_delete_breakpoint to
5760         map_breakpoint_numbers.
5761         (do_disable_breakpoint): New.
5762         (do_map_disable_breakpoint): Iterate over the breakpoint's related
5763         breakpoints.
5764         (do_enable_breakpoint): Rename to ...
5765         (enable_breakpoint_disp): ... this.
5766         (enable_breakpoint): Adjust.
5767         (do_enable_breakpoint): New.
5768         (enable_once_breakpoint): Delete.
5769         (do_map_enable_breakpoint): New.
5770         (do_map_enable_once_breakpoint): New.
5771         (enable_once_command, enable_delete_command)
5772         (delete_trace_command): Iterate over the breakpoint's related
5773         breakpoints.
5774
5775 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5776
5777         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5778         for ALPHA_ZERO_REGNUM.
5779         (alpha_supply_int_regs): Explicitly supply zero as the value for
5780         ALPHA_ZERO_REGNUM in the register cache.
5781         * alpha-nat.c (fetch_osf_core_registers): Ditto.
5782
5783 2011-05-26  Yao Qi  <yao@codesourcery.com>
5784
5785         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5786
5787 2011-05-26  Tristan Gingold  <gingold@adacore.com>
5788
5789         * symfile.h (struct dwarf2_section_names): New type.
5790         (struct dwarf2_debug_sections): New type.
5791         (dwarf2_has_info): Add parameter.
5792         * dwarf2read.c (dwarf2_elf_names): New variable.
5793         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5794         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5795         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5796         (dwarf2_has_info): Add names parameter.  Pass names
5797         to dwarf2_locate_sections.
5798         (section_is_p): Rewrite using the names parameter.
5799         (dwarf2_locate_sections): Use section names from the names parameter.
5800         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5801         * elfread.c (read_psyms): Ditto.
5802         * machoread.c (macho_symfile_read): Ditto.
5803
5804 2011-05-25  Andreas Schwab  <schwab@redhat.com>
5805
5806         PR gdb/8677
5807         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5808
5809 2011-05-24  Keith Seitz  <keiths@redhat.com>
5810
5811         PR breakpoint/12803
5812         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5813         (decode_compound): Unconditionally call keep_name_info.
5814
5815 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
5816
5817         * breakpoint.c (watchpoint_check): If the watchpoint went out of
5818         scope, clear its command list.
5819         (map_breakpoint_numbers): Don't walk the related breakpoints list
5820         of each breakpoint.
5821
5822 2011-05-24  Tom Tromey  <tromey@redhat.com>
5823
5824         * MAINTAINERS: Move Jim Blandy to past maintainers.
5825
5826 2011-05-24  Tristan Gingold  <gingold@adacore.com>
5827
5828         * symfile.h (enum dwarf2_section_enum): New type.
5829         (dwarf2_get_section_info): New prototype.
5830         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5831         section_name by sect.  Use a switch to select the info.
5832         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5833         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5834
5835 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
5836
5837         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5838         shared library event breakpoint if there's no execution.
5839
5840 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5841
5842         * breakpont.c (remove_hw_watchpoints): Remove unused function.
5843         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5844
5845 2011-05-23  Tom Tromey  <tromey@redhat.com>
5846
5847         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5848         NULL.
5849
5850 2011-05-23  Doug Evans  <dje@google.com>
5851
5852         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5853         entry for RuntimeError to doc string.
5854
5855 2011-05-23  Jerome Guitton  <guitton@adacore.com>
5856
5857         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5858         sequence for probing loops.
5859
5860 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
5861
5862         * infrun.c (user_visible_resume_ptid): Fix typos in describing
5863         comment.
5864
5865 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
5866
5867         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5868         zero as the value for %g0 in the register cache.
5869         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5870         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5871
5872 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5873
5874         * infrun.c (proceed): Set previous_inferior_ptid here.
5875         (init_wait_for_inferior): Initialize previous_inferior_ptid from
5876         inferior_ptid, not null_ptid.
5877         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5878         (fetch_inferior_event): Nor here.
5879
5880 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5881
5882         * inf-loop.c (inferior_event_handler): Only output a message if
5883         verbose.
5884
5885 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
5886
5887         * MAINTAINERS: Update my e-mail address.
5888
5889 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5890
5891         * infrun.c (proceed): Switch the inferior event loop to
5892         INF_EXEC_COMPLETE if the target refused to resume from a
5893         vfork/fork.
5894
5895 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5896
5897         * infcmd.c: Include "inf-loop.h".
5898         (step_once): When stepping into an inline subroutine, pretend the
5899         target has run.  If the target can async, switch the inferior
5900         event loop to INF_EXEC_COMPLETE.
5901         * inferior.h (user_visible_resume_ptid): Declare.
5902         * infrun.c (user_visible_resume_ptid): New function, factored out
5903         from `resume'.
5904         (resume): Use it.
5905         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5906         that the current thread is running.  Merge async and sync
5907         branches.
5908
5909 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5910
5911         * infcmd.c (step_1): Simplify synchronous case.
5912
5913 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5914
5915         * tracepoint.c: Include exceptions.h.
5916         (TFILE_PID): Move higher in file.
5917         (tfile_open): Delay pushing the tfile target until we're assured
5918         the tfile header is present in the file.  Wrap reading the initial
5919         newline-terminated lines in TRY_CATCH.  Pop the target if the
5920         initial setup failed.  Add the tfile's thread immediately
5921         aftwards, before any non-essential setup.  Don't skip
5922         post_create_inferior if there are no traceframes present in the
5923         file.
5924         (tfile_close): Remove redundant check for null before xfree call.
5925         (tfile_thread_alive): New function.
5926         (init_tfile_ops): Register it as to_thread_alive callback.
5927
5928 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5929
5930         * tracepoint.c (tfile_open): Delete #if 0'd code.
5931
5932 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5933
5934         Fix -readnow for -gdwarf-4 unused type units.
5935         * dwarf2read.c (struct signatured_type): Remove the field offset.
5936         (create_signatured_type_table_from_index): Remove its initialization.
5937         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
5938         instead.  Add a complaint call.
5939         (process_psymtab_comp_unit): Change assignment to gdb_assert.
5940         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5941         (lookup_signatured_type_at_offset, read_signatured_type)
5942         (write_one_signatured_type): Update the field for per_cu.
5943
5944 2011-05-19  Tom Tromey  <tromey@redhat.com>
5945
5946         * python/py-inferior.c (python_inferior_exit): Use
5947         target_gdbarch.
5948         (python_on_resume): Likewise.
5949
5950 2011-05-19  Matt Rice  <ratmice@gmail.com>
5951
5952         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5953
5954 2011-05-19  Hui Zhu  <teawater@gmail.com>
5955
5956         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5957
5958 2011-05-19  Hui Zhu  <teawater@gmail.com>
5959
5960         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5961
5962 2011-05-18  Tom Tromey  <tromey@redhat.com>
5963
5964         * dwarf2read.c (dwarf2_add_field): Constify.
5965         * value.c (value_static_field): Constify.
5966         * gdbtypes.h (struct main_type) <field.field_location.physname>:
5967         Now const.
5968         * ax-gdb.c (gen_static_field): Constify
5969
5970 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5971
5972         * linux-nat.c (kill_callback): Use SIGKILL first.
5973
5974 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
5975
5976         * ada-lang.c (print_it_exception): Avoid use of sprintf.
5977
5978 2011-05-18  Tom Tromey  <tromey@redhat.com>
5979
5980         * value.c (value_fn_field): Constify.
5981         * symtab.c (gdb_mangle_name): Constify.
5982         * stabsread.c (update_method_name_from_physname): Make 'physname'
5983         argument const.
5984         * p-typeprint.c (pascal_type_print_method_args): Make arguments
5985         const.  Use explicit fputc_filtered loop.
5986         (pascal_type_print_base): Constify.
5987         * p-lang.h (pascal_type_print_method_args): Update.
5988         * linespec.c (add_matching_methods): Constify.
5989         (add_constructors): Likewise.
5990         * jv-typeprint.c (java_type_print_base): Constify.
5991         * gdbtypes.h (struct cplus_struct_type)
5992         <fn_fieldlist.fn_field.physname>: Now const.
5993         * dwarf2read.c (compute_delayed_physnames): Constify.
5994         (dwarf2_add_member_fn): Likewise.
5995         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
5996
5997 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
5998
5999         * infrun.c (resume): Mention which is the current thread, and its
6000         current PC in debug output.
6001         (prepare_to_proceed): Mention the thread switching in debug
6002         output.
6003
6004 2011-05-18  Tom Tromey  <tromey@redhat.com>
6005
6006         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6007         path check.  Use xmalloc and cleanups.
6008         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6009
6010 2011-05-17  Tom Tromey  <tromey@redhat.com>
6011
6012         * cp-valprint.c (cp_print_value_fields): Catch errors from
6013         value_static_field.
6014
6015 2011-05-17  Tom Tromey  <tromey@redhat.com>
6016
6017         * dwarf2read.c (dwarf2_get_die_type): Call
6018         get_die_type_at_offset.
6019         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6020         get_base_type function.
6021
6022 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6023
6024         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6025         trap_expected.
6026
6027 2011-05-16  Doug Evans  <dje@google.com>
6028
6029         * python/py-auto-load.c (source_section_scripts): Mention objfile
6030         name in warning.
6031
6032 2011-05-15  Doug Evans  <dje@google.com>
6033
6034         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6035         (try_thread_db_load_from_pdir): Call it.  If unable to find
6036         libthread_db in directory of libpthread, see if we're looking at
6037         the separate-debug-info copy.
6038
6039         * python/py-autoload.c (print_script): Print "Missing" instead of
6040         "No" for missing scripts.
6041         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6042
6043 2011-05-13  Doug Evans  <dje@google.com>
6044
6045         * ui-file.c (stdio_file_write_async_safe): Add comment.
6046
6047 2011-05-14  Hui Zhu  <teawater@gmail.com>
6048
6049         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6050
6051 2011-05-13  Doug Evans  <dje@google.com>
6052
6053         Support $pdir and $sdir in libthread-db-search-path.
6054         * NEWS: Mention $sdir,$pdir.
6055         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6056         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6057         (try_thread_db_load_from_sdir): New function.
6058         (try_thread_db_load_from_dir): New function.
6059         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6060         system directories if search of libthread-db-search-path fails,
6061         that is now done via $sdir.
6062         (has_libpthread): New function.
6063         (thread_db_load): Remove search for libthread_db in directory of
6064         libpthread, that is now done via $pdir.
6065
6066         * NEWS: Mention "info auto-load-scripts".
6067         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6068         script_not_found_warning_printed.
6069         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6070         all callers updated.  Initialize script_not_found_warning_printed.
6071         (get_auto_load_pspace_data_for_loading): New function.
6072         (maybe_add_script): New function.
6073         (source_section_scripts): Simplify.  Only print one warning regardless
6074         of the number of auto-load scripts not found.
6075         (clear_section_scripts): Clear script_not_found_warning_printed.
6076         (auto_load_objfile_script): Record script in hash table.
6077         (count_matching_scripts): New function.
6078         (maybe_print_script): Renamed from maybe_print_section_script, all
6079         callers updated.  Rewrite to use ui_out_*.
6080         (info_auto_load_scripts): Renamed from
6081         maintenance_print_section_scripts, all callers updated.
6082         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6083         renamed as "info auto-load-scripts".
6084
6085 2011-05-13  Tom Tromey  <tromey@redhat.com>
6086
6087         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6088         (read_sleb128): Likewise.
6089
6090 2011-05-13  Tom Tromey  <tromey@redhat.com>
6091
6092         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6093         offset display.
6094
6095 2011-05-13  Doug Evans  <dje@google.com>
6096
6097         * linux-nat.c (debug_linux_nat_async): Delete.
6098         Replace all references to use debug_linux_nat instead.
6099         (show_debug_linux_nat_async): Delete.
6100         (sigchld_handler): Call ui_file_write_async_safe instead of
6101         fprintf_unfiltered.
6102         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6103         * ui-file.c (struct ui_file): New member to_write_async_safe.
6104         (null_file_write_async_safe): New function.
6105         (ui_file_write_async_safe): New function.
6106         (set_ui_file_write_async_safe): New function.
6107         (ui_file_new): Initialize to_write_async_safe.
6108         (stdio_file_write_async_safe): New function.
6109         (struct stdio_file): New member fd.
6110         (stdio_file_new): Initialize to_write_async_safe, fd.
6111         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6112         fileno.
6113         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6114         (set_ui_file_write_async_safe): Declare.
6115         (ui_file_write_async_safe): Declare.
6116
6117 2011-05-13  Tom Tromey  <tromey@redhat.com>
6118
6119         * utils.c (do_value_free): New function.
6120         (make_cleanup_value_free): Likewise.
6121         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6122         freeing correctly.
6123         (dwarf2_loc_desc_needs_frame): Call
6124         make_cleanup_value_free_to_mark.
6125         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6126         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6127         value_free_to_mark.
6128         (new_dwarf_expr_context): Don't call value_mark.
6129         * dwarf2-frame.c (execute_stack_op): Call
6130         make_cleanup_value_free_to_mark.
6131         * defs.h (make_cleanup_value_free): Declare.
6132
6133 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6134
6135         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6136         prepare_execute_command.
6137         * top.c (prepare_execute_command): Return cleanup.
6138         (execute_command): Use cleanup from prepare_execute_command.
6139         * top.h (prepare_execute_command): Change prototype to return
6140         cleanup.
6141         * defs.h (struct value): Add opaque declaration.
6142         (make_cleanup_value_free_to_mark): Add prototype.
6143         * utils.c (do_value_free_to_mark): New function.
6144         (make_cleanup_value_free_to_mark): Likewise.
6145
6146 2011-05-12  Tom Tromey  <tromey@redhat.com>
6147
6148         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6149         cast left-hand-side to unsigned.
6150
6151 2011-05-12  Tom Tromey  <tromey@redhat.com>
6152
6153         PR gdb/12617:
6154         * value.h (value_from_contents): Declare.
6155         * value.c (value_from_contents): New function.
6156         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6157         (dwarf2_get_die_type): New function.
6158         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6159         (allocate_piece_closure): Acquire reference to values.
6160         (read_pieced_value): Update for value-based expressions.
6161         (write_pieced_value): Likewise.
6162         (free_pieced_value_closure): Call value_free as needed.
6163         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6164         Update for value-based expressions.
6165         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6166         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6167         <get_base_type>: New field.
6168         (struct dwarf_expr_piece) <v.value>: Change type.
6169         <v.regno>: New field.
6170         (struct dwarf_expr_context) <mark>: New field.
6171         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6172         (dwarf_expr_pop, dwarf_expr_push): Remove.
6173         (dwarf_expr_push_address): Declare.
6174         * dwarf2expr.c (dwarf_arch_cookie): New global.
6175         (struct dwarf_gdbarch_types): New.
6176         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6177         functions.
6178         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6179         static.
6180         (dwarf_expr_push_address): New function.
6181         (dwarf_expr_pop): Now static.
6182         (dwarf_expr_fetch): Change return type.
6183         (dwarf_require_integral): New function.
6184         (dwarf_expr_fetch): Simplify.
6185         (add_piece): Update.
6186         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6187         functions.
6188         (execute_stack_op) <sign_ext>: Remove.
6189         Use values for DWARF stack.
6190         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6191         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6192         New cases.
6193         (_initialize_dwarf2expr): New function.
6194         (add_piece): Update.
6195         (new_dwarf_expr_context): Set new field.
6196         (free_dwarf_expr_context): Call value_free_to_mark.
6197         * dwarf2-frame.c (no_base_type): New function.
6198         (execute_stack_op): Set get_base_type field.  Update.
6199
6200 2011-05-12  Tom Tromey  <tromey@redhat.com>
6201
6202         * dwarf2read.c (read_common_block): Fix formatting.
6203
6204 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6205
6206         * breakpoint.c (disable_breakpoint): Disable all locations
6207         associated with a tracepoint on target if a trace experiment is
6208         running.
6209         (disable_command): Disable a specific tracepoint location on target if
6210         a trace experiment is running.
6211         (do_enable_breakpoint): Enable all locations associated with a
6212         tracepoint on target if a trace experiment is running.
6213         (enable_command) Enable a specific tracepoint location on target if a
6214         trace experiment is running.
6215         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6216         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6217         to_disable_tracepoint.
6218         * target.h: Add declaration of struct bp_location.
6219         (struct target_ops): Add new functions
6220         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6221         to_disable_tracepoint to target operations.
6222         (target_supports_enable_disable_tracepoint): New macro.
6223         (target_enable_tracepoint): New macro.
6224         (target_disable_tracepoint): New macro.
6225         * remote.c (struct remote_state): Add new field.
6226         (remote_enable_disable_tracepoint_feature): New.
6227         (remote_protocol_features): Add new entry.
6228         (remote_supports_enable_disable_tracepoint): New.
6229         (remote_enable_tracepoint): New.
6230         (remote_disable_tracepoint): New.
6231         (init_remote_ops): Add remote_enable_tracepoint,
6232         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6233         to remote operations.
6234         * tracepoint.c (start_tracing): Allow tracing to start without any
6235         tracepoints enabled with just a warning if they can be re-enabled
6236         later.
6237         * NEWS: Add news item for the new behaviour of the enable and disable
6238         GDB commands when applied to tracepoints.
6239         Add news items for the new remote packets QTEnable and QTDisable.
6240
6241 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6242
6243         * config.in: Regenerate.
6244         * configure: Regenerate.
6245         * configure.ac <--with-system-readline> (for readline_echoing_p):
6246         Remove the test.
6247         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6248         (tui_old_rl_echoing_p): ... here.
6249         (tui_setup_io): Rename extern declaration readline_echoing_p to
6250         _rl_echoing_p.  Adjust assignments for the both renames.
6251
6252 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6253
6254         * symtab.c (lookup_symtab): Run cleanup before returning.
6255
6256 2011-05-11  Tom Tromey  <tromey@redhat.com>
6257
6258         * dwarf2read.c (handle_data_member_location): New function.
6259         (dwarf2_add_field): Use it.
6260         (read_common_block): Likewise.
6261
6262 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6263
6264         Make addrs->SECTINDEX always defined.
6265         * symfile.c (relative_addr_info_to_section_offsets): Check for
6266         SECTINDEX -1, not for zero ADDR.
6267         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6268         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6269         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6270         on its validity.
6271
6272 2011-05-10  Doug Evans  <dje@google.com>
6273
6274         * linux-thread-db.c: Whitespace cleanup.
6275         (try_thread_db_load_1): Fix comment.
6276
6277         * linux-thread-db.c (set_libthread_db_search_path): New function.
6278         (_initialize_thread_db): Add setter for libthread-db-search-path.
6279
6280 2011-05-09  Doug Evans  <dje@google.com>
6281
6282         * NEWS: Mention --with-iconv-bin.
6283         * configure.ac: New option --with-iconv-bin.
6284         * configure: Regenerate.
6285         * config.in: Regenerate.
6286         * defs.h (relocate_gdb_directory): Declare.
6287         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6288         removed progname parameter, and exported.  All callers updated.
6289         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6290
6291         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6292         adding missing call to restore_child_signals_mask.
6293
6294 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6295
6296         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6297         parameter.
6298         * infrun.c (proceed, start_remote): Adjust.
6299         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6300         and adjust to not handle it.
6301         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6302         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6303         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6304         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6305         * windows-nat.c (do_initial_windows_stuff): Adjust.
6306         * infcmd.c (attach_command): Adjust.
6307         (notice_new_inferior): Adjust.
6308
6309 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6310
6311         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6312         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6313         * spu-tdep.c (op_selb): Use correct value.
6314
6315 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6316
6317         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6318         "parent" parameter to symbol_file_add_from_bfd call.
6319
6320 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6321             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6322
6323         Implement support for PowerPC BookE masked watchpoints.
6324         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
6325         section.
6326         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6327         method.  Initialize to NULL in all existing breakpoint_ops instances.
6328         (struct breakpoint) <hw_wp_mask>: New field.
6329         * breakpoint.c (is_masked_watchpoint): Add prototype.
6330         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
6331         breakpoint's breakpoint_ops.works_in_software_mode if available.
6332         (watchpoints_triggered): Handle the case of a hardware masked
6333         watchpoint trigger.
6334         (watchpoint_check): Likewise.
6335         (works_in_software_mode_watchpoint): New function.
6336         (insert_masked_watchpoint, remove_masked_watchpoint)
6337         (resources_needed_masked_watchpoint)
6338         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6339         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6340         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6341         functions.
6342         (masked_watchpoint_breakpoint_ops): New structure.
6343         (watch_command_1): Check for the existence of the `mask' parameter.
6344         Set b->ops according to the type of hardware watchpoint being created.
6345         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6346         (ppc_linux_remove_mask_watchpoint)
6347         (ppc_linux_masked_watch_num_registers): New functions.
6348         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6349         to_remove_mask_watchpoint and to_masked_watch_num_registers.
6350         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6351         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6352         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6353         (target_masked_watch_num_registers): New functions.
6354         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6355         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6356         methods.
6357         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6358         (target_masked_watch_num_registers): Add prototypes.
6359
6360 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6361
6362         PR 12573
6363         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6364         (producer_is_gcc_ge_4_0): New function.
6365         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
6366         symtab->language code.
6367         (var_decode_location): Set cu->has_loclist.
6368         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6369         skip.  Intialize force_skip from locations_valid.  Move the prologue
6370         skipping code into two passes.
6371         * symtab.h (struct symtab): Make the primary field a bitfield.  New
6372         field locations_valid.
6373
6374 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6375
6376         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6377         (classify_inner_name): Call cp_lookup_nested_type with
6378         yylval.tsym.type.
6379         * cp-namespace.c (cp_lookup_nested_type): New variable
6380         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
6381         type_name_no_tag_or_error with saved_parent_type.
6382         * dwarf2read.c (load_partial_dies): Read in any children of
6383         DW_TAG_typedef with complaint in such case.
6384         * gdbtypes.c (type_name_no_tag_or_error): New function.
6385         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6386         * valops.c (destructor_name_p): New comment for parameter type.  Remove
6387         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
6388         * value.h (destructor_name_p): Remove type const.
6389
6390 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6391
6392         * symtab.c (compare_symbol_name): New function.
6393         (completion_list_add_name, expand_partial_symbol_name): Call it,
6394         remove the variable ncmp.
6395         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6396         gdb_assert it.
6397
6398 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6399
6400         Demote to sw watchpoint only in update_watchpoint.
6401         * breakpoint.c (update_watchpoint): Change between software and
6402         hardware watchpoint for all kinds of watchpoints, not just
6403         read/write ones.  Determine b->exact value here instead of
6404         in watch_command_1.  Error out if there are not enough resources
6405         for a read or access hardware watchpoint.
6406         (watch_command_1): Remove logic of checking whether there are
6407         enough resources available, since update_watchpoint will do that
6408         work now.  Don't set b->exact here.  Catch exceptions thrown by
6409         update_watchpoint and delete the watchpoint.
6410         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6411         Use target_exact_watchpoints instead.
6412         (delete_breakpoint): Notify observers only if deleted watchpoint
6413         has a breakpoint number assigned to it.
6414
6415 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
6416
6417         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6418
6419 2011-05-05  Jerome Guitton  <guitton@adacore.com>
6420
6421         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6422         New functions.
6423         (i386_stack_tramp_frame_unwind): New static global.
6424         (i386_match_pattern): New function, extracted from i386_match_insn.
6425         (i386_match_insn): Use i386_match_pattern.
6426         (i386_match_insn_block): New function.
6427         (i386_tramp_chain_in_reg_insns)
6428         (i386_tramp_chain_on_stack_insns): New static variables.
6429         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6430         of unwinders.
6431
6432 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
6433
6434         * configure.host (xscale*): Don't handle target.
6435         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6436         handle targets.
6437
6438 2011-05-04  Yao Qi  <yao@codesourcery.com>
6439
6440         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6441
6442 2011-05-03  Joel Brobecker <brobecker@adacore.com>
6443
6444         Revert:
6445         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6446         | * elfread.c (elf_symtab_read): Stop memory leak.
6447
6448 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6449
6450         * nto-tdep.c (nto_target): Replace deprecated call to
6451         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6452
6453 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6454
6455         Fix false GCC warning.
6456         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6457
6458 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6459
6460         * breakpoint.c (update_watchpoint): Move code to change
6461         the enable state of breakpoint from here ...
6462         (do_enable_breakpoint): ... to here.
6463
6464 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
6465
6466         * valprint.c (val_print_array_elements): Fixed poor performance
6467         of printing very large arrays with repeat_count_threshold set
6468         to unlimited.  New comment.
6469
6470 2011-04-29  Tom Tromey  <tromey@redhat.com>
6471
6472         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6473         (mi_parse): Likewise.
6474         * breakpoint.c (break_range_command): Use sizeof char*, not
6475         char**.
6476         (create_breakpoint): Likewise.
6477         (parse_breakpoint_sals): Likewise.
6478
6479 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
6480
6481         * linux-nat.c (linux_child_remove_fork_catchpoint)
6482         (linux_child_remove_vfork_catchpoint)
6483         (linux_child_remove_exec_catchpoint): New functions.
6484         (linux_target_install_ops): Install them.
6485
6486 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6487
6488         PR mi/12531
6489
6490         * varobj.c (install_default_visualizer): Do not install a
6491         visualizer if the varobj is CPLUS_FAKE_CHILD.
6492         (construct_visualizer): Likewise.
6493
6494 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6495
6496         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
6497         case insensitive comparison.
6498
6499 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
6500
6501         * infrun.c (proceed): Revert previous change.
6502         (resume): Instead, handle the case of signal delivery while stepping
6503         off a breakpoint location here, and only if software single-stepping
6504         is used.  Handle nested signals.
6505
6506 2011-04-28  Yao Qi  <yao@codesourcery.com>
6507
6508         * arm-tdep.c (copy_unmodified): Rename to ...
6509         (arm_copy_unmodified): .. this.  New.
6510         (copy_preload): Move common part to ...
6511         (install_preload): .. this.  New.
6512         (arm_copy_preload): New.
6513         (copy_preload_reg): Move common part to ...
6514         (install_preload_reg): ... this.  New.
6515         (arm_copy_preload_reg): New.
6516         (copy_b_bl_blx): Move common part to ...
6517         (install_b_bl_blx): .. this.  New.
6518         (arm_copy_b_bl_blx): New.
6519         (copy_bx_blx_reg): Move common part to ...
6520         (install_bx_blx_reg): ... this. New.
6521         (arm_copy_bx_blx_reg): New.
6522         (copy_alu_reg): Move common part to ...
6523         (install_alu_reg): ... this.  New.
6524         (arm_copy_alu_reg): New.
6525         (copy_alu_shifted_reg): Move common part to ...
6526         (install_alu_shifted_reg): ... this.  New.
6527         (copy_ldr_str_ldrb_strb): Move common part to ...
6528         (install_ldr_str_ldrb_strb): ... this.  New.
6529         (arm_copy_ldr_str_ldrb_strb): New.
6530         (copy_copro_load_store): Move some common part to ...
6531         (install_copy_copro_load_store): ... this.  New.
6532         (arm_copy_copro_load_store): New.
6533         (copy_svc): Delete.
6534         (arm_copy_svc): Renamed from copy_svc.
6535         (copy_undef): Delete.
6536         (arm_copy_undef): Renamed from copy_undef.
6537         (decode_ext_reg_ld_st): Delete.
6538         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6539         (decode_svc_copro): Delete.
6540         (arm_decode_svc_copro): Renamed from decode_svc_copro.
6541         (copy_copro_load_store, copy_alu_imm): update callers.
6542         (copy_extra_ld_st, copy_block_xfer): Likewise.
6543         (decode_misc_memhint_neon, decode_unconditional): Likewise.
6544         (decode_miscellaneous, decode_dp_misc): Likewise.
6545         (decode_ld_st_word_ubyte, decode_media): Likewise.
6546         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6547         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6548         (decode_unconditional, decode_miscellaneous): Likewise.
6549         (decode_media, decode_b_bl_ldmstm): Likewise.
6550         (arm_process_displaced_insn): Likewise..
6551         (decode_misc_memhint_neon): Delete.
6552         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6553         (decode_miscellaneous): Delete.
6554         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6555         (decode_dp_misc): Delete.
6556         (arm_decode_dp_misc): Renamed from decode_dp_misc.
6557         (decode_ld_st_word_ubyte): Delete.
6558         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6559         (decode_media): Delete.
6560         (arm_decode_media): Renamed from decode_media.
6561         (decode_b_bl_ldmstm): Delete.
6562         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6563         (decode_ext_reg_ld_st): Delete.
6564         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6565         (decode_unconditional): Delete.
6566         (arm_decode_unconditional): Renamed from decode_unconditional.
6567
6568 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6569
6570         Case insensitive lookups implementation.
6571         * dwarf2read.c: Include ctype.h.
6572         (struct mapped_index): New field version.
6573         (mapped_index_string_hash): New parameter index_version.  New comment
6574         for it.  Call tolower appropriately.
6575         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6576         Choose the right index version for mapped_index_string_hash.
6577         (dwarf2_read_index): Support also the index version 5.  Initialize the
6578         new struct mapped_index field version.
6579         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6580         (find_slot): Explain the version needs.  Pass INT_MAX for the new
6581         parameter.
6582         (write_psymtabs_to_index): Produce version 5.
6583         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6584         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
6585         * psymtab.c (lookup_partial_symbol): Find the
6586         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6587         entries.
6588         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6589         NAME lowercasing.
6590         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6591         (completion_list_add_name): New variable ncmp, initialize it, use it.
6592         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6593         * utils.c (strcmp_iw): Support case_sensitive_off.
6594         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6595         New function comment part.  New variables saved_string1,
6596         saved_string2 and case_pass.  Add a proper second pass.
6597
6598 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6599
6600         Replace re_comp/re_exec by regcomp/regexec.
6601         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6602         (search_symbols_name_matches): Use them, use regexec.
6603         (search_symbols): New variable retval_chain, adjust the use of
6604         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
6605         search_symbols_data fields, use regexec instead of re_exec.
6606
6607 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6608
6609         Format the code for the next patch.
6610         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6611         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6612         New variables c1 and c2.
6613
6614 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
6615
6616         * infrun.c (proceed): Do not single-step into signal delivery
6617         when stepping off a breakpoint location.
6618         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6619         (insert_step_resume_breakpoint_at_caller): Likewise.
6620         (insert_step_resume_breakpoint_at_sal): Likewise.
6621         (insert_longjmp_resume_breakpoint): Likewise.
6622
6623 2011-04-27  Yao Qi  <yao@codesourcery.com>
6624
6625         * common/linux-ptrace.h: Remove include <sys/wait.h>.
6626
6627 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
6628
6629         * procfs.c (procfs_pass_signals): Fix advance declaration.
6630
6631 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
6632
6633         * target.h (struct target_ops): Remove to_notice_signals;
6634         add to_pass_signals.
6635         (target_notice_signals): Remove.
6636         (target_pass_signals): Add prototype.
6637         * target.c (update_current_target): Remove to_notice_signals;
6638         mention to_pass_signals.
6639         (target_pass_signals): New function.
6640         (debug_to_notice_signals): Remove.
6641         (setup_target_debug): Do not install debug_to_notice_signals.
6642
6643         * infrun.c (signal_pass): New global.
6644         (resume): Call target_pass_signals.
6645         (handle_inferior_event): Report all signals while stepping over
6646         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
6647         are re-inserted when stepping over a signal handler.
6648         (signal_cache_update): New function.
6649         (signal_stop_update): Call it.
6650         (signal_print_update): Likewise.
6651         (signal_pass_update): Likewise.
6652         (handle_command): Call signal_cache_update and target_pass_signals
6653         instead of target_notice_signals.
6654         (_initialize_infrun): Initialize signal_pass.
6655
6656         * linux-nat.c (pass_mask): New global.
6657         (linux_nat_pass_signals): New function.
6658         (linux_nat_create_inferior): Report all signals initially.
6659         (linux_nat_attach): Likewise.
6660         (linux_nat_resume): Use pass_mask to decide whether to directly
6661         handle an inferior signal.
6662         (linux_nat_wait_1): Likewise.
6663         (linux_nat_add_target): Install to_pass_signals callback.
6664
6665         * nto-procfs.c (notice_signals): Remove.
6666         (procfs_resume): Do not call notice_signals.
6667         (procfs_notice_signals): Remove.
6668         (procfs_pass_signals): New function.
6669         (init_procfs_ops): Install to_pass_signals callback instead of
6670         to_notice_signals callback.
6671         (_initialize_procfs): Report all signals initially.
6672
6673         * procfs.c (procfs_notice_signals): Remove.
6674         (procfs_pass_signals): New function.
6675         (procfs_target): Install to_pass_signals callback instead of
6676         to_notice_signals callback.
6677         (register_gdb_signals): Remove.
6678         (procfs_debug_inferior): Report all signals initially.
6679         (procfs_init_inferior): Remove redundant register_gdb_signals call.
6680
6681         * remote.c (remote_pass_signals): Add numsigs and pass_signals
6682         parameters; use them instead of calling signal_..._state routines.
6683         (remote_notice_signals): Remove.
6684         (remote_start_remote): Report all signals initially.
6685         (remote_resume): Do not call remote_pass_signals.
6686         (_initialize_remote): Install to_pass_signals callback instead of
6687         to_notice_signals callback.
6688
6689 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
6690
6691         * breakpoint.c (user_settable_breakpoint): Delete.
6692         (user_breakpoint_p): Remove check on user_settable_breakpoint.
6693         (delete_command): Check user_breakpoint_p instead of looking at
6694         the breakpoint's type.
6695         (disable_command): Ditto.
6696         (enable_command): Ditto.
6697         (delete_trace_command): Use user_breakpoint_p instead of looking
6698         at the breakpoint number directly.  When checking if there are
6699         user visible tracepoints, in order to know whether to ask the user
6700         for confirmation, check whether the breakpoint is actually a
6701         tracepoint.
6702
6703 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
6704
6705         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6706         compilation.
6707
6708 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
6709
6710         MI breakpoint notifications.
6711
6712         * annotate.c (breakpoint_changed): Adjust parameter type.
6713         * breakpoint.c (set_breakpoint_condition): Adjust to change
6714         in breakpoint_modified type.
6715         (breakpoint_set_commands): Likewise.
6716         (do_map_commands_command): Likewise.
6717         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6718         changed after bumping hit count.
6719         (bpstat_stop_status): Likewise.
6720         (print_one_breakpoint_location): Don't wrap in tuple here.
6721         (print_one_breakpoint): Always print individual locations.
6722         For locations, use unnamed tuple.
6723         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6724         has changed.
6725         (create_catchpoint, create_syscall_event_catchpoint): Call
6726         breakpoint_created obsever.
6727         (mention): Don't call breakpoint_created observer.
6728         (create_breakpoint_sal): Call breakpoint_created observer.
6729         (create_breakpoint, watch_command_1): Likewise.
6730         (create_ada_exception_breakpoint): Likewise.
6731         (delete_breakpoint): Call breakpoint_deleted breakpoint.
6732         (locations_are_equal): New.
6733         (update_breakpoint_locations): If locations were changed, notify.
6734         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6735         Call breakpoint_modified observer.
6736
6737         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6738         (mi_cmd_break_insert): Don't set observers for modify and delete.
6739         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6740         (mi_breakpoint_created, mi_breakpoint_deleted)
6741         (mi_breakpoint_modified): New.
6742         (mi_interpreter_init): Hook the above.
6743         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6744         while -break-* commands are executing.
6745         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6746         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6747         (mi_redirect): New.
6748         (mi_ui_out_impl): Hook in mi_redirect.
6749         (mi_field_skip): True to the name, skip the field, don't output
6750         a field with an empty value.
6751
6752         * python/py-breakpoint.c (gdbpy_breakpoint_created)
6753         (gdbpy_breakpoint_deleted): Adjust.
6754         * tui/tui-hooks.c (tui_event_create_breakpoint)
6755         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6756
6757 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
6758
6759         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6760         (procfs_remove_hw_watchpoint): Likewise.
6761
6762 2011-04-26  Michael Walle  <michael@walle.cc>
6763
6764         * remote.c (remote_start_remote): Ack packet after sending the
6765         interrupt sequence.
6766
6767 2011-04-26  Yao Qi  <yao@codesourcery.com>
6768
6769         * linux-nat.c: Move common macros to ...
6770         Include linux-ptrace.h.
6771         * common/linux-ptrace.h: ... here.  New.
6772
6773 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6774
6775         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6776         !objfile_has_partial_symbols.  New comment.
6777         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6778         SYM_READ_PSYMBOLS is not present. Extend the comment.
6779         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6780
6781 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6782
6783         * defs.h (ENUM_BITFIELD): Remove.
6784
6785 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6786             Eli Zaretskii  <eliz@gnu.org>
6787
6788         * NEWS: Document the new gdbserver --once option.
6789
6790 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
6791
6792         * MAINTAINERS: Update my email address.
6793
6794 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6795
6796         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6797         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6798         function call if __STDC_ISO_10646__ macro is defined.
6799         (intermediate_encoding): New prototype.
6800         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6801         to generate compile time error for unsupported gdb_wchar_t size.
6802         (ENDIAN_SUFFIX): New macro.
6803         (intermediate_encoding): New function.
6804
6805 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6806
6807         * ada-lang.c (struct add_partial_datum): Update the comment for
6808         expand_partial_symbol_name.
6809         (ada_add_partial_symbol_completions): Rename to ...
6810         (ada_expand_partial_symbol_name): ... here, change return type, update
6811         function comment, call symbol_completion_match instead of
6812         symbol_completion_add.
6813         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6814         and ada_expand_partial_symbol_name.
6815         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6816         FILE_MATCHER.
6817         (dw2_map_symbol_names): Remove.
6818         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6819         * psymtab.c (map_symbol_names_psymtab): Remove.
6820         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6821         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
6822         order.
6823         (psym_functions): Unlist map_symbol_names_psymtab.
6824         (map_partial_symbol_names): Rename to ...
6825         (expand_partial_symbol_names): ... here, change the FUN type, call
6826         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6827         * psymtab.h (map_partial_symbol_names): Rename to ...
6828         (expand_partial_symbol_names): ... here, change the FUN type.
6829         * symfile.h (struct quick_symbol_functions): Update the description of
6830         expand_symtabs_matching.  Remove map_symbol_names.
6831         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6832         (struct add_name_data): Update the comment for
6833         expand_partial_symbol_name.
6834         (add_partial_symbol_name): Rename to ...
6835         (expand_partial_symbol_name): ... here.  Replace
6836         completion_list_add_name call by strncmp.
6837         (default_make_symbol_completion_list_break_on): Use now
6838         expand_partial_symbol_names and expand_partial_symbol_name.
6839         * symtab.h (enum search_domain): New element ALL_DOMAIN.
6840
6841 2011-04-20  Tom Tromey  <tromey@redhat.com>
6842
6843         * dwarf2read.c (save_gdb_index_command): Replace format
6844         documentation with a pointer to the manual.
6845
6846 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
6847
6848         * regcache.c: Include remote.h.
6849         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6850         (regcache_dump): Handle regcache_dump_remote.
6851         (maintenance_print_remote_registers): New function.
6852         (_initialize_regcache): Install "maint print remote-registers"
6853         command.
6854         * remote.c (map_regcache_remote_table): New function, factored out
6855         from ...
6856         (init_remote_state): ... here.
6857         (remote_register_number_and_offset): New.
6858         * remote.h (remote_register_number_and_offset): Declare.
6859
6860 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
6861
6862         * regcache.c (get_thread_arch_regcache): If creating a regcache for
6863         null_ptid, assume and allow a NULL address space, instead of
6864         asking the target for the ptid's address space.
6865         * infrun.c (ptid_is_pid): Remove assertion.
6866
6867 2011-04-19  Tom Tromey  <tromey@redhat.com>
6868
6869         * windows-tdep.c (windows_xfer_shared_library):
6870         * windows-nat.c (get_module_name, windows_make_so):
6871         * v850-tdep.c (v850_handle_pushm):
6872         * utils.c (null_cleanup, gdb_realpath):
6873         * ui-out.c (get_next_header):
6874         * tracepoint.c (clear_traceframe_info):
6875         * symtab.c (lookup_symtab):
6876         * serial.h (struct serial_ops):
6877         * mipsread.c (read_alphacoff_dynamic_symtab):
6878         * infcmd.c (print_return_value):
6879         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6880         * f-exp.y (parse_number):
6881         * exceptions.c (catch_exceptions):
6882         * dummy-frame.c (dummy_frame_this_id):
6883         * defs.h (struct cleanup):
6884         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6885         * arm-tdep.c (arm_push_dummy_call):
6886         * amd64-tdep.h (amd64_collect_xsave):
6887         * amd64-tdep.c (amd64_collect_xsave):
6888         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6889         * README (typing): Remove duplicate words.
6890         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6891         * infrun.c (siginfo_value_read): Fix typo.
6892         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6893         * top.c (source_line_number): Add comma.
6894
6895 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
6896
6897         * thread.c (any_live_thread_of_process): Prioritize threads
6898         that are not executing.
6899         * gdbthread.h (any_live_thread_of_process): Update comment
6900         as per above change.
6901
6902 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6903
6904         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6905         (scan_xcoff_symtab): Likewise.
6906
6907 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6908
6909         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6910         inside if clause.
6911
6912 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6913             Pedro Alves  <pedro@codesourcery.com>
6914
6915         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6916         variables to simplify code and avoid == operator at end of
6917         line as this is against GNU coding standards.
6918
6919 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6920
6921         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6922         lm_name to name_lm to avoid conflict with lm_name function.
6923
6924 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6925
6926         ARI fixes: Use only lowercase function name for static functions.
6927         * nto-tdep.c (LM_ADDR): Rename to...
6928         (lm_addr): New function name.
6929         (nto_relocate_section_addresses): Adapt to change above.
6930         * solib-sunos.c (LM_ADDR): Rename to...
6931         (lm_addr): New function name.
6932         (LM_NEXT): Rename to...
6933         (lm_next): New function name.
6934         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6935         function name changes above.
6936         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6937         (lm_addr_from_link_map): New function name.
6938         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6939         (has_lm_dynamic_from_link_map): New function name.
6940         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6941         (lm_dynamic_from_link_map): New function name.
6942         (LM_ADDR_CHECK): Rename to...
6943         (lm_addr_check): New function name.
6944         (LM_NEXT): Rename to...
6945         (lm_next): New function name.
6946         (LM_PREV): Rename to...
6947         (lm_prev): New function name.
6948         (LM_NAME): Rename to...
6949         (lm_name): New function name.
6950         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6951         (ignore_first_link_map_entry): New function name.
6952         (svr4_keep_data_in_core): Adapt to function name changes above.
6953         (svr4_current_sos): Likewise.
6954         (enable_break): Likewise.
6955         (svr4_relocate_section_addresses): Likewise.
6956
6957 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6958
6959         ARI cleanup.
6960         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6961         sprintf. Simplify code and avoid loosing memory.
6962         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6963         (call0_frame_cache): Remove && operator from end of line.
6964
6965 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6966
6967         Fix libraries displacement if they change whether they were prelinked.
6968         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6969         does not match.  Comment why.
6970
6971 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6972
6973         * corelow.c: Include wrapper.h.
6974         (core_open): Call now gdb_target_find_new_threads.
6975         * wrapper.c: Include target.h.
6976         (gdb_target_find_new_threads): New.
6977         * wrapper.h (gdb_target_find_new_threads): New declaration.
6978
6979 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6980
6981         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6982         even if !TARGET_HAS_EXECUTION.
6983
6984 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6985
6986         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6987         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6988         bfd_get_synthetic_symtab.
6989         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6990         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6991         parameter parent, remove the call to add_separate_debug_objfile.
6992         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6993         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6994         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6995         parent, new comment for it, call add_separate_debug_objfile for it.
6996         (symbol_file_add_separate): Pass objfile as the parameter parent,
6997         remove the call to add_separate_debug_objfile.
6998         (symbol_file_add_from_bfd): New parameter parent, pass it.
6999         (symbol_file_add): Pass NULL to the new parameter parent.
7000         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7001
7002 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7003
7004         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7005         BSF_SYNTHETIC.
7006
7007 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7008
7009         Fix Python access to inlined frames.
7010         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7011         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7012
7013 2011-04-15  Tom Tromey  <tromey@redhat.com>
7014
7015         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7016
7017 2011-04-15  Gary Benson  <gbenson@redhat.com>
7018
7019         * MAINTAINERS: Add myself to write-after-approval section.
7020
7021 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7022
7023         * remote-sim.c (sim_command_completer): New function.
7024         (_initialize_remote_sim): Set completer to sim_command_completer.
7025
7026 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7027
7028         * breakpoint.c (print_exception_catchpoint): Rename to ...
7029         (print_it_exception_catchpoint): ... this.
7030         (gnu_v3_exception_catchpoint_ops): Update with new name
7031         for print_it_exception_catchpoint.
7032
7033 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7034
7035         * MAINTAINERS: Add myself for write after approval privileges.
7036
7037 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7038
7039         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7040
7041 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7042
7043         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7044
7045 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7046
7047         * breakpoint.c (save_breakpoints): Verify whether
7048         breakpoint_ops.print_recreate is defined before calling it.
7049
7050 2011-04-11  Gary Benson  <gbenson@redhat.com>
7051
7052         Fix failure with --enable-maintainer-mode.
7053         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7054
7055 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7056
7057         Code cleanup.
7058         * symtab.c (search_symbols): Reorder the KIND description in the
7059         function comment.  Remove the unused 4th element of types, types2,
7060         types3 and types4.  New gdb_assert on KIND.
7061         (symtab_symbol_info): Remove the unused 4th element of classnames.
7062         New gdb_assert on KIND.
7063         * symtab.h (enum search_domain): New warning in the enum comment.
7064         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7065         TYPES_DOMAIN.
7066
7067 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7068
7069         Fix crash of gdb save-index on a STABS file.
7070         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7071         PSYMTABS_ADDRMAP.
7072
7073 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7074
7075         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7076         * dwarf2read.c: Include ctype.h.
7077         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7078         functions.
7079         (dwarf2_add_field): Fix new_field->accessibility by calling
7080         dwarf2_default_access_attribute.  Restructure setting accessibility
7081         vs. virtuality.
7082         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7083         is_private and is_protected by calling
7084         dwarf2_default_access_attribute.
7085
7086 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7087
7088         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7089         to the initialization.
7090
7091 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7092
7093         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7094         initalization.
7095
7096 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7097
7098         Remove support for old Cygwin 1.5 versions.
7099         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7100         function on old Cygwin version.
7101         * windows-nat.c: Remove cygwin version check and always define
7102         __USEWIDE for Cygwin compilation.
7103
7104 2011-04-07  Yao Qi  <yao@codesourcery.com>
7105
7106         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7107         and TO.
7108         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7109         (arm_copy_svc): Remove parameters INSN and TO.
7110         (decode_svc_copro): Update caller.
7111         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7112         from function pointer `copy_svc_os'.
7113
7114 2011-04-07  Yao Qi  <yao@codesourcery.com>
7115
7116         * arm-tdep.c (cleanup_branch): Set a correct return address in
7117         LR for ARM and Thumb.
7118
7119 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7120
7121         Code cleanup.
7122         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7123         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7124         in the function comment, a new note on values compatibility.
7125         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7126         * symtab.h (SYMBOL_HASH_NEXT): New.
7127
7128 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7129
7130         * ppc-linux-nat.c (check_condition): Add len output parameter.
7131         Set it based on the memory region referenced in the condition
7132         expression.  Update all callers.
7133
7134 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7135
7136         Fix crash regression on systems featuring .gdb_index.
7137         * objfiles.c (free_objfile): Move the
7138         forget_cached_source_info_for_objfile call earlier.  Comment it.
7139         Extend the comment for objfile_free_data.
7140
7141 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7142
7143         Fix regression of displaying the debug format.
7144         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7145         subfile.
7146
7147 2011-04-04  Tom Tromey  <tromey@redhat.com>
7148
7149         * cli/cli-interp.c (struct captured_execute_command_args):
7150         Remove.
7151         (do_captured_execute_command): Remove.
7152         (safe_execute_command): Use TRY_CATCH.
7153         * cli/cli-script.c (struct wrapped_read_command_file_args):
7154         Remove.
7155         (wrapped_read_command_file): Remove.
7156         (script_from_file): Use TRY_CATCH.
7157         * exceptions.c (catch_exception): Remove.
7158         * exceptions.h (catch_exception): Remove.
7159         (deprecated_throw_reason): Update comment.
7160         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7161         argument to 'context'.
7162         (mi_execute_command): Use TRY_CATCH.
7163         * remote.c (struct start_remote_args): Remove.
7164         (remote_start_remote): Update; change arguments.
7165         (remote_open_1): Use TRY_CATCH.
7166
7167 2011-04-04  Tom Tromey  <tromey@redhat.com>
7168
7169         * tracepoint.c (scope_info): Update.
7170         * symtab.c (decode_line_spec): Update.
7171         * python/python.c (gdbpy_decode_line): Update.
7172         * linespec.h (decode_line_1): Update.
7173         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7174         (decode_compound, find_method, symtab_from_filename)
7175         (decode_variable): Likewise.
7176         * cli/cli-cmds.c (edit_command): Update.
7177         (list_command): Update.
7178         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7179         argument.
7180         (create_breakpoint): Update.
7181         (until_break_command): Update.
7182         (addr_string_to_sals): Update.
7183         (decode_line_spec_1): Update.
7184
7185 2011-04-04  Tom Tromey  <tromey@redhat.com>
7186
7187         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7188         (do_captured_parse_breakpoint): Remove.
7189         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7190         Use TRY_CATCH directly.
7191
7192 2011-04-04  Tom Tromey  <tromey@redhat.com>
7193
7194         * symtab.h (free_symtab): Remove.
7195         (forget_cached_source_info_for_objfile): Declare.
7196         * symmisc.c (free_symtab): Remove.
7197         * source.c (forget_cached_source_info_for_objfile): New function.
7198         (forget_cached_source_info): Use it.
7199         * objfiles.c (free_objfile): Simplify check before calling
7200         clear_current_source_symtab_and_line.  Call
7201         forget_cached_source_info_for_objfile.
7202
7203 2011-04-04  Tom Tromey  <tromey@redhat.com>
7204
7205         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7206         (new_symtab): Don't set `free_code' on symtab.
7207         (new_linetable): Properly handle size==0.
7208         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7209         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7210         free_func.
7211         * jv-lang.c (struct jv_per_objfile_data): New.
7212         (jv_per_objfile_free): Free the data.
7213         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7214         (get_java_class_symtab): Set the `dict' field on the
7215         jv_per_objfile_data.
7216         (free_class_block): Remove.
7217         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7218         the symtab.
7219
7220 2011-04-04  Tom Tromey  <tromey@redhat.com>
7221
7222         * symfile.c (reread_symbols): Update.
7223         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7224         field.
7225         * objfiles.c (allocate_objfile): Update.
7226         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7227         declare.
7228         * cp-namespace.c (lookup_symbol_file): Don't call
7229         lookup_possible_namespace_symbol.
7230         (initialize_namespace_symtab, get_possible_namespace_block)
7231         (free_namespace_block, cp_check_possible_namespace_symbols)
7232         (check_possible_namespace_symbols_loop)
7233         (check_one_possible_namespace_symbol)
7234         (lookup_possible_namespace_symbol): Remove.
7235         (maintenance_cplus_namespace): Replace with notice.
7236         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7237
7238 2011-04-04  Tom Tromey  <tromey@redhat.com>
7239
7240         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7241         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7242         * symmisc.c (free_symtab): Don't free debugformat.
7243         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7244         (record_debugformat, record_producer): Document.
7245         * buildsym.c (end_symtab): Don't save debugformat and producer
7246         names on obstack.
7247         (end_symtab): Don't free debugformat and producer fields.
7248         (record_debugformat): Don't call xstrdup.
7249         (record_producer): Likewise.
7250
7251 2011-04-04  Tom Tromey  <tromey@redhat.com>
7252
7253         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7254         (source_line_charpos, source_charpos_line): Remove.
7255
7256 2011-04-04  Tom Tromey  <tromey@redhat.com>
7257
7258         * symtab.h (domain_enum): Split in two...
7259         (enum search_domain): New.
7260         (search_symbols): Update.
7261         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7262         redundant declarations.
7263         (search_symbols): Change 'kind' argument to search_domain.
7264         Update.
7265         (print_symbol_info): Likewise.
7266         (symtab_symbol_info): Likewise.
7267         * symfile.h (struct quick_symbol_functions)
7268         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7269         <expand_symtabs_matching>: Likewise.
7270         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7271         (expand_symtabs_matching_via_partial): Update.
7272         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7273         (dw2_expand_symtabs_for_function): Update.
7274         * block.h: Moved anonymous enum...
7275         * defs.h (enum block_enum): ... here.  Now named.
7276
7277 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7278
7279         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7280         * version.in: Bump version to 7.3.50.20110403-cvs.
7281
7282 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7283
7284         * NEWS: Create a new section for the next release branch.
7285         Rename the section of the current branch, now that it has
7286         been cut.
7287
7288 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7289
7290         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7291         for "fpscr" in target description.
7292
7293 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7294
7295         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7296         initialize it.  Delay HASH initialization.  Strip the part after open
7297         parenthesis for languages with qualifiers.  Call do_cleanups.
7298
7299 2011-04-01  Tom Tromey  <tromey@redhat.com>
7300
7301         * utils.c (report_command_stats): Don't print `-' for negative
7302         number.
7303
7304 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7305
7306         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7307         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7308         typedefs.
7309
7310 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7311
7312         * breakpoint.h (bpdisp_text): Add declaration.
7313         * breakpoint.c (bpdisp_text): Make non-static.
7314         * ada-lang.c: #include "mi/mi-common.h".
7315         (print_it_exception): Rewrite to improve GDB/MI output.
7316
7317 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
7318
7319         * arm-tdep.h (struct address_space): Add forward declaration.
7320
7321 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7322
7323         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7324         * arm-tdep.c (arm_override_mode): New global.
7325         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
7326         execution mode heuristics.
7327         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7328         second single-step breakpoint if needed, using
7329         arm_insert_single_step_breakpoint.
7330         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
7331         ARM execution mode, do not call thumb_get_next_pc_raw.
7332         (arm_get_next_pc): Encode execution mode in return value.  Call
7333         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7334         (arm_insert_single_step_breakpoint): New function.
7335         (arm_software_single_step): Call it.
7336         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7337         argument to return execution mode of sigreturn target.
7338         (arm_linux_syscall_next_pc): Use it.
7339         (arm_linux_copy_svc): Update call.
7340         (arm_linux_software_single_step): Call
7341         arm_insert_single_step_breakpoint.
7342
7343 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7344
7345         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7346         the comment.
7347
7348 2011-03-31  Tom Tromey  <tromey@redhat.com>
7349
7350         * varobj.c (update_dynamic_varobj_children): Properly handle
7351         errors from iterator.
7352
7353 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7354
7355         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
7356         struct linkage name twice.
7357
7358 2011-03-31  Tom Tromey  <tromey@redhat.com>
7359
7360         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7361         missing ">" to message.
7362
7363 2011-03-31  Tom Tromey  <tromey@redhat.com>
7364
7365         * varobj.c (instantiate_pretty_printer): Remove duplicate
7366         'return'.
7367
7368 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
7369
7370         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7371         if neither saved value nor register available (e.g. signal frame).
7372
7373 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7374
7375         * macroexp.c (expand): Avoid uninitialized variable
7376         compiler warning.
7377
7378 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7379
7380         * breakpoint.c (break_range_command): Fix typo in comment.
7381
7382 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7383             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7384
7385         Implement support for PowerPC BookE ranged breakpoints.
7386         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7387         * breakpoint.h (struct bp_target_info) <length>: New member
7388         variable.
7389         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7390         instead of struct breakpoint as argument, and also add ASPACE
7391         and BP_ADDR arguments.  Update all callers.
7392         (struct breakpoint_ops) <print_one_detail>: New method.
7393         (struct breakpoint) <addr_string_range_end>: New member variable.
7394         * breakpoint.c (breakpoint_location_address_match): Add function
7395         prototype.
7396         (insert_bp_location): Set bl->target_info.length.
7397         (breakpoint_here_p): Call breakpoint_location_address_match.
7398         (moribund_breakpoint_here_p): Likewise.
7399         (regular_breakpoint_inserted_here_p): Likewise.
7400         (breakpoint_thread_match): Likewise.
7401         (bpstat_stop_status): Likewise.
7402         (bpstat_check_location): Move call to
7403         breakpoint_ops.breakpoint_hit to the top.
7404         (print_one_breakpoint_location): Call
7405         breakpoint_ops.print_one_detail if available.
7406         (breakpoint_address_match_range): New function.
7407         (breakpoint_location_address_match): Likewise.
7408         (breakpoint_locations_match): Compare the length field of the
7409         locations too.
7410         (hw_breakpoint_used_count): Count resources used by all locations
7411         in a breakpoint, and use breakpoint_ops.resources_needed if
7412         available.
7413         (breakpoint_hit_ranged_breakpoint): New function.
7414         (resources_needed_ranged_breakpoint): Likewise.
7415         (print_it_ranged_breakpoint): Likewise.
7416         (print_one_ranged_breakpoint): Likewise.
7417         (print_one_detail_ranged_breakpoint): Likewise.
7418         (print_mention_ranged_breakpoint): Likewise.
7419         (print_recreate_ranged_breakpoint): Likewise.
7420         (ranged_breakpoint_ops): New structure.
7421         (find_breakpoint_range_end): New function.
7422         (break_range_command): Likewise.
7423         (delete_breakpoint): Free addr_string_range_end.
7424         (update_breakpoint_locations): Add SALS_END argument.  Update
7425         all callers.  Calculate breakpoint length if a non-zero SALS_END
7426         is given.  Call breakpoint_locations_match instead of
7427         breakpoint_address_match.
7428         (reset_breakpoint): Find SaL of the end of the range if B is a
7429         ranged breakpoint.
7430         (_initialize_breakpoint): Register break-range command.
7431         * defs.h (print_core_address): Add function prototype.
7432         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7433         function.
7434         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7435         (ppc_linux_remove_hw_breakpoint): Likewise.
7436         (_initialize_ppc_linux_nat): Initialize
7437         to_ranged_break_num_registers.
7438         * target.c (update_current_target): Add comment about
7439         to_ranged_break_num_registers.
7440         (target_ranged_break_num_registers): New function.
7441         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7442         New method.
7443         (target_ranged_break_num_registers): Add function prototype.
7444         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7445         * utils.c (print_core_address): ... here.
7446
7447 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
7448
7449         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7450         variable compiler warning.
7451
7452 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7453
7454         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7455         code from here ...
7456         (re_set_breakpoint): ... to here ...
7457         (addr_string_to_sals): ... and here.
7458
7459 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7460
7461         * Makefile.in (SFILES): Add missing C sources.
7462         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7463         Add missing headers.
7464
7465 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7466
7467         * .gitignore: New file.
7468
7469 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7470
7471         * NEWS: Mention new cfi device simulation.
7472
7473 2011-03-29  Tom Tromey  <tromey@redhat.com>
7474
7475         * dwarf2read.c (fixup_partial_die): Handle linkage name on
7476         otherwise anonymous types.
7477         (dwarf2_name): Likewise.
7478         * valops.c (value_struct_elt_for_reference): Refine artificial
7479         type logic.  Call error if j==-1.
7480
7481 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
7482
7483         Fix false GCC warning.
7484         * infcall.c (find_function_addr): Initialize funaddr.
7485
7486 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7487
7488         Fix mingw compilation with --enable-targets=all.
7489         * remote-mips.c (gdb_usleep.h): Include header.
7490         (mips_enter_debug): Use gdb_usleep instead of sleep.
7491
7492 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7493
7494         Support resolution of STT_GNU_IFUNC via breakpoints.
7495         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7496         bp_gnu_ifunc_resolver_return.
7497         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7498         the loop.  Support bp_gnu_ifunc_resolver and
7499         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
7500         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7501         breakpoints.
7502         (bptype_string, print_one_breakpoint_location): Support
7503         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7504         (user_settable_breakpoint): Return true also for
7505         bp_gnu_ifunc_resolver.
7506         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7507         bp_gnu_ifunc_resolver_return.
7508         (set_breakpoint_location_function): New parameter explicit_loc,
7509         describe it.  Call find_pc_partial_function_gnu_ifunc with new
7510         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7511         EXPLICIT_LOC is not set.
7512         (set_raw_breakpoint): Set EXPLICIT_LOC for
7513         set_breakpoint_location_function.
7514         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7515         set_breakpoint_location_function.
7516         (mention): Support bp_gnu_ifunc_resolver and
7517         bp_gnu_ifunc_resolver_return.
7518         (add_location_to_breakpoint): Set EXPLICIT_LOC for
7519         set_breakpoint_location_function.
7520         (update_breakpoint_locations): Remove static.
7521         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7522         bp_gnu_ifunc_resolver_return.
7523         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7524         bp_gnu_ifunc_resolver_return.
7525         (update_breakpoint_locations): New declaration.
7526         * elfread.c: Include gdbthread.h and regcache.h.
7527         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7528         functions.
7529         (elf_gnu_ifunc_fns): Install them.
7530         * minsyms.c (stub_gnu_ifunc_resolver_stop)
7531         (stub_gnu_ifunc_resolver_return_stop): New functions.
7532         (stub_gnu_ifunc_fns): Install them.
7533         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7534         and gnu_ifunc_resolver_return_stop.
7535         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7536
7537 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7538
7539         STT_GNU_IFUNC reader implementation.
7540         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7541         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7542         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7543         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7544         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7545         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7546         (elf_gnu_ifunc_resolve_addr): New.
7547         (elf_symfile_read): Call elf_rel_plt_read.
7548         (elf_gnu_ifunc_fns): New.
7549         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7550         Install elf_gnu_ifunc_fns.
7551         * infcall.c (find_function_return_type): New function.
7552         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7553         * minsyms.c (stub_gnu_ifunc_resolve_addr)
7554         (stub_gnu_ifunc_resolve_name): New functions.
7555         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7556         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7557         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7558
7559 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7560
7561         Code cleanup for later STT_GNU_IFUNC support.
7562         * infcall.c (find_function_addr): Remove variable code, use explicit
7563         dereferences for it.  Move VALUE_TYPE initialization later.
7564
7565 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7566
7567         GDB find_pc_partial_function support for STT_GNU_IFUNC.
7568         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7569         (clear_pc_function_cache): Clear it.
7570         (find_pc_partial_function): Rename to ...
7571         (find_pc_partial_function_gnu_ifunc): ... this function.  New
7572         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
7573         (find_pc_partial_function): New wrapper for this function.
7574         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7575
7576 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7577
7578         GDB internal type support for STT_GNU_IFUNC.
7579         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7580         (elf_symtab_read): Set mst_text_gnu_ifunc for
7581         BSF_GNU_INDIRECT_FUNCTION.
7582         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7583         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7584         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7585         nodebug_got_plt_symbol.
7586         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7587         (TYPE_GNU_IFUNC): New.
7588         (struct main_type): New field flag_gnu_ifunc.
7589         (struct builtin_type): New field builtin_func_func.
7590         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7591         nodebug_got_plt_symbol.
7592         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7593         (in_gnu_ifunc_stub): New.
7594         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7595         mst_text_gnu_ifunc.
7596         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
7597         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
7598         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7599         in_gnu_ifunc_stub.
7600         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7601         * symtab.c (search_symbols): Likewise.
7602         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7603         and mst_slot_got_plt.
7604         (in_gnu_ifunc_stub): New declaration.
7605
7606 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7607
7608         Support a ring of related breakpoints.
7609         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7610         other functions, add gdb_assert.
7611         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
7612         watchpoint_del_at_next_stop.
7613         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7614         (bpstat_stop_status): Handle ring in related_breakpoint.
7615         (set_raw_breakpoint_without_location): Initialize ring in
7616         related_breakpoint.
7617         (delete_breakpoint): Handle ring in related_breakpoint, use
7618         watchpoint_del_at_next_stop.
7619         (map_breakpoint_numbers): Handle ring in related_breakpoint.
7620
7621 2011-03-28  Tom Tromey  <tromey@redhat.com>
7622
7623         PR symtab/12441:
7624         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7625         with `language_minimal'.
7626
7627 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
7628
7629         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7630         instead of checking for STT_ARM_TFUNC symbol type.
7631
7632 2011-03-25  Tom Tromey  <tromey@redhat.com>
7633
7634         * linespec.c (symbol_found): Restore line-based result for
7635         non-LOC_LABEL symbols.
7636
7637 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7638
7639         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7640         instead of strcmp for comparison.
7641         (tui_source_is_displayed): Likewise.
7642         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7643
7644 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7645
7646         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7647         complaint.
7648         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7649         (find_partial_die_in_comp_unit): Likewise in comment.
7650         (read_attribute_value): Likewise.
7651         (lookup_die_type): Likewise.
7652         (dwarf_form_name): Likewise.
7653         (dump_die_shallow): Likewise.
7654         (follow_die_ref_or_sig): Likewise.
7655
7656 2011-03-24  Tom Tromey  <tromey@redhat.com>
7657
7658         PR breakpoints/11816:
7659         * linespec.c (decode_line_1): Parse `function:label' linespecs.
7660         (decode_compound): Update.
7661         (find_function_symbol): New function.
7662         (decode_dollar): Update.
7663         (decode_label): Add 'function_symbol' parameter.  Handle
7664         function-relative labels.
7665         (decode_variable): Update.
7666         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
7667         not its line.  Set `special_display' and canonical name for
7668         labels.
7669
7670 2011-03-24  Tom Tromey  <tromey@redhat.com>
7671
7672         * linespec.h (struct linespec_result) <special_display>: New
7673         field.
7674         * breakpoint.h (struct breakpoint) <display_canonical>: New
7675         field.
7676         * breakpoint.c (print_breakpoint_location): Respect
7677         display_canonical.
7678         (create_breakpoint_sal): Add 'display_canonical' parameter.
7679         (create_breakpoints_sal): Update.
7680         (create_breakpoint): Update.
7681
7682 2011-03-24  Tom Tromey  <tromey@redhat.com>
7683
7684         * symtab.c (decode_line_spec): Update.
7685         * linespec.c (build_canonical_line_spec): Change type of
7686         'canonical'.
7687         (decode_line_2, decode_line_1, decode_objc, decode_compound)
7688         (find_method, decode_all_digits, decode_dollar, decode_label)
7689         (symbol_found): Likewise.
7690         (init_linespec_result): New function.
7691         * breakpoint.c (struct captured_parse_breakpoint_args)
7692         <canonical_p>: New field, replaces addr_string_p.
7693         (create_breakpoints_sal): Add 'canonical' parameter, replacing
7694         'addr_string'.
7695         (parse_breakpoint_sals): Likewise.
7696         (do_captured_parse_breakpoint): Update.
7697         (create_breakpoint): Use struct linespec_result.
7698         (until_break_command): Update.
7699         (breakpoint_re_set_one): Update.
7700         (decode_line_spec_1): Update.
7701         * linespec.h (struct linespec_result): New.
7702         (init_linespec_result): Declare.
7703
7704 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
7705
7706         * regcache.c (regcache_raw_read): If the target didn't supply a
7707         given raw register, mark it as unavailable.
7708
7709 2011-03-23  Kai Tietz  <ktietz@redhat.com>
7710
7711         * breakpoint.c (clear_command): Use filename_cmp
7712         instead of strcmp for comparison.
7713         * buildsym.c (watch_main_source_file_lossage): Likewise.
7714         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7715         checking just for slash.
7716         * dbxread.c (read_dbx_symtab): Use lbasename instead of
7717         strrchr and filename_cmp instead of strcmp for filenames.
7718         (add_old_header_file): Use filename_cmp
7719         instead of strcmp for comparison.
7720         * exec.c (exec_set_section_address): Likewise.
7721         * macrotab.c (macro_lookup_inclusion): Likewise.
7722         (macro_lookup_inclusion): Likewise.
7723         * elfread.c (_initialize_elfread): Likewise.
7724         (elfstab_offset_sections): Likewise.
7725         (elfstab_offset_sections): Use lbasename instead of
7726         strrchr.
7727         * mdebugread.c (parse_partial_symbols): Likewise.
7728         (arse_partial_symbols): Use filename_(n)cmp instead of
7729         str(n)cmp for comparison.
7730         * minsyms.c (lookup_minimal_symbol): Likewise.
7731         * psymtab.c (read_psymtabs_with_filename): Likewise.
7732         * solib.c (solib_read_symbols): Likewise.
7733         (reload_shared_libraries_1): Likewise.
7734         * symmisc.c (maintenance_print_symbols): Likewise.
7735         * symfile.c (separate_debug_file_exists): Likewise.
7736         (reread_symbols): Likewise.
7737         (find_separate_debug_file_by_debuglink): Likewise.
7738         * remote-fileio.c (remote_fileio_func_rename): Likewise.
7739         * source.c (add_path): Likewise.
7740         * symtab.c (filename_seen): Likewise.
7741         (file_matches): Likewise.
7742         (print_symbol_info): Likewise.
7743         (maybe_add_partial_symtab_filename): Likewise.
7744         (make_source_files_completion_list): Likewise.
7745         * xml-syscall.c (init_sysinfo): Likewise.
7746         * windows-nat.c (_initialize_check_for_gdb_ini): Use
7747         IS_DIR_SEPARATOR for checking for trailing path separator.
7748
7749 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7750
7751         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
7752         label abort_expression.
7753         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7754         DWARF_VALUE_OPTIMIZED_OUT.
7755
7756 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7757
7758         Code cleanup.
7759         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7760         to linkage_name.  Invert its value.  Update the function comment.
7761         (c_type_print_varspec_suffix): Invert it at the caller.
7762         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7763
7764 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
7765
7766         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7767         errors when reading the `stop_pc'.
7768         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7769         get_frame_pc.
7770
7771 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
7772
7773         * NEWS: Document gdb.Write stream keyword.
7774
7775 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7776
7777         Revert:
7778         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7779         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7780         (dwarf2_add_field): Fix new_field->accessibility for
7781         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7782
7783 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
7784
7785         PR python/12183
7786
7787         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7788         other error classes.  Do not print stack trace.
7789
7790 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7791
7792         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7793         (dwarf2_add_field): Fix new_field->accessibility for
7794         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7795
7796 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
7797
7798         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7799         encountering a load via a non-SP register.
7800
7801 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
7802
7803         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7804         field in returned unwinder.
7805
7806 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7807
7808         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7809
7810 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7811
7812         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7813         of xmalloc.
7814
7815 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
7816
7817         * frame.c (frame_unwind_register): Throw an error if unwinding the
7818         register failed.
7819         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7820         an unwind stop reason.
7821         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7822         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7823         UNWIND_UNAVAILABLE>: New.
7824         * inline-frame.c (inline_frame_unwind): Install
7825         default_frame_unwind_stop_reason.
7826         * frame-unwind.c: Include "exceptions.h".
7827         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7828         (default_frame_unwind_stop_reason): New.
7829         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7830         (default_frame_unwind_stop_reason): Declare.
7831         (struct frame_unwind) <stop_reason>: New function pointer.
7832
7833         * dummy-frame.c: Install default_frame_unwind_stop_reason.
7834         * dwarf2-frame.c: Include exceptions.h.
7835         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7836         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7837         computing the CFA.  If such an error was thrown, set
7838         unavailable_retaddr.
7839         (dwarf2_frame_unwind_stop_reason): New.
7840         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7841         unavailable.
7842         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7843         (dwarf2_signal_frame_unwind): Ditto.
7844
7845         * amd64-tdep.c: Include "exceptions.h".
7846         (struct amd64_frame_cache): New field "base_p".
7847         (amd64_init_frame_cache): Clear it.
7848         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7849         Avoid reading registers with functions that throw if the register
7850         is not necessary to compute the frame base.
7851         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7852         swallowing NOT_AVAILABLE_ERROR.
7853         (amd64_frame_unwind_stop_reason): New.
7854         (amd64_frame_this_id): Don't build a frame id if the frame base
7855         was unavailable.
7856         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7857         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7858         base_p if the frame base was computable.
7859         (amd64_sigtramp_frame_unwind_stop_reason): New.
7860         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7861         frame base was unavailable.
7862         (amd64_sigtramp_frame_unwind): Install
7863         amd64_sigtramp_frame_unwind_stop_reason.
7864         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7865         base_p if the frame base was computable.
7866         (amd64_epilogue_frame_unwind_stop_reason): New.
7867         (amd64_epilogue_frame_this_id): Don't build a frame id if the
7868         frame base was unavailable.
7869         (amd64_epilogue_frame_unwind): Install
7870         amd64_epilogue_frame_unwind_stop_reason.
7871         * i386-tdep.c: Include "exceptions.h".
7872         (struct i386_frame_cache): New field "base_p".
7873         (i386_init_frame_cache): Clear it.
7874         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7875         Avoid reading registers with functions that throw if the register
7876         is not necessary to compute the frame base.
7877         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7878         swallowing NOT_AVAILABLE_ERROR.
7879         (i386_frame_unwind_stop_reason): New.
7880         (i386_frame_this_id): Don't build a frame id if the frame base was
7881         unavailable.
7882         (i386_frame_prev_register): Handle unavailable SP.
7883         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7884         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7885         base_p if the frame base was computable.
7886         (i386_epilogue_frame_unwind_stop_reason): New.
7887         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7888         base was unavailable.
7889         (i386_epilogue_frame_unwind): Install
7890         i386_epilogue_frame_unwind_stop_reason.
7891         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7892         base_p if the frame base was computable.
7893         (i386_sigtramp_frame_unwind_stop_reason): New.
7894         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7895         base was unavailable.
7896         (i386_sigtramp_frame_unwind): Install
7897         i386_sigtramp_frame_unwind_stop_reason.
7898         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7899         type's size, not the register's.
7900         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7901
7902         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7903         default_frame_unwind_stop_reason.
7904         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7905         (alpha_heuristic_frame_unwind): Ditto.
7906         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7907         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7908         * avr-tdep.c (avr_frame_unwind): Ditto.
7909         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7910         Ditto.
7911         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7912         * frv-tdep.c (frv_frame_unwind): Ditto.
7913         * h8300-tdep.c (h8300_frame_unwind): Ditto.
7914         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7915         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7916         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7917         (hppa_stub_frame_unwind): Ditto.
7918         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7919         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7920         (ia64_libunwind_frame_unwind)
7921         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7922         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7923         * lm32-tdep.c (lm32_frame_unwind): Ditto.
7924         * m32c-tdep.c (m32c_unwind): Ditto.
7925         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7926         * m32r-tdep.c (m32r_frame_unwind): Ditto.
7927         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7928         * m68k-tdep.c (m68k_frame_unwind): Ditto.
7929         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7930         * m88k-tdep.c (m88k_frame_unwind): Ditto.
7931         * mep-tdep.c (mep_frame_unwind): Ditto.
7932         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7933         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7934         (mips_stub_frame_unwind): Ditto.
7935         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7936         * moxie-tdep.c (moxie_frame_unwind): Ditto.
7937         * mt-tdep.c (mt_frame_unwind): Ditto.
7938         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7939         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7940         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7941         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7942         (s390_sigtramp_frame_unwind): Ditto.
7943         * score-tdep.c (score_prologue_unwind): Ditto.
7944         * sh-tdep.c (sh_frame_unwind): Ditto.
7945         * sh64-tdep.c (sh64_frame_unwind): Ditto.
7946         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7947         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7948         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7949         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7950         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7951         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7952         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7953         (sparc64obsd_trapframe_unwind): Ditto.
7954         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7955         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7956         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7957         * v850-tdep.c (v850_frame_unwind): Ditto.
7958         * vax-tdep.c (vax_frame_unwind): Ditto.
7959         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7960         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7961         * xtensa-tdep.c (xtensa_unwind): Ditto.
7962
7963 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7964
7965         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7966         there's always a frame.  Use get_frame_pc_if_available instead of
7967         get_frame_pc, and if there's no PC available, don't look up a
7968         symtab.
7969
7970 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7971
7972         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7973         unavailable PC.
7974
7975 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7976
7977         * tracepoint.c (set_traceframe_context): Handle unavailable PC
7978         gracefully.
7979
7980 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7981
7982         * frame.h (frame_unwind_caller_pc_if_available): Declare.
7983         * frame.c (frame_unwind_caller_pc_if_available): New.
7984         * stack.c (frame_info): Handle unavailable PC.
7985
7986 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7987
7988         * frame.c (frame_unwind_pc): Rename to ...
7989         (frame_unwind_pc_if_available): ... this.  New `pc' output
7990         parameter.  Change return type to int.  Gracefully handle
7991         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
7992         happened, or 1 otherwise.
7993         (frame_unwind_pc): Reimplement on top of
7994         frame_unwind_pc_if_available.
7995         (get_frame_func): Rename to ...
7996         (get_frame_func_if_available): New `pc' output parameter.  Change
7997         return type to int.  Gracefully handle the PC not being available.
7998         (get_frame_func): Reimplement on top of
7999         get_frame_func_if_available.
8000         (select_frame): Handle the PC being unavailable.
8001         (get_prev_frame): Handle the PC being unavailable.
8002         (get_frame_pc_if_available): New.
8003         (get_frame_address_in_block_if_available): New.
8004         (find_frame_sal): Handle the frame PC not being available.
8005         * frame.h (get_frame_pc_if_available): Declare.
8006         (get_frame_address_in_block_if_available): Declare.
8007         (get_frame_func_if_available): Declare.
8008         * stack.c (print_frame_info): Handle the PC being unavailable.
8009         (find_frame_funname): Ditto.
8010         (print_frame): Handle the PC being unavailable.
8011         (get_frame_language): Ditto.
8012         * blockframe.c (get_frame_block): Ditto.
8013         * macroscope.c (default_macro_scope): Ditto.
8014         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8015
8016 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8017
8018         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8019         NOT_AVAILABLE_ERROR when evaluating the location expression.
8020
8021 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8022
8023         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8024         returning that the register piece is unavailable/optimized out.
8025         (write_pieced_value): Handle get_frame_register_bytes returning
8026         that the register piece is unavailable/optimized out when doing a
8027         read-modify write of a bitfield.
8028         * findvar.c (value_from_register): Handle get_frame_register_bytes
8029         returning that the register piece is unavailable/optimized out.
8030         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8031         and `unavailablep'.  Throw error on bad debug info.  Use
8032         frame_register instead of frame_register_read, to fill in the new
8033         arguments.
8034         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8035         and `unavailablep'.
8036         * valops.c: (value_assign): Adjust, and handle
8037         get_frame_register_bytes failing.
8038         * spu-tdep.c: Include exceptions.h.
8039         (spu_software_single_step): Adjust, and handle
8040         get_frame_register_bytes failing.
8041         (spu_get_longjmp_target): Ditto.
8042         * gdbarch.sh (register_to_value): Change to return int.  New
8043         parameters `optimizedp' and `unavailablep'.
8044         * gdbarch.h, gdbarch.c: Regenerate.
8045         * i386-tdep.c (i386_register_to_value): Adjust to new
8046         gdbarch_register_to_value interface.
8047         * i387-tdep.c (i387_register_to_value): Ditto.
8048         * i387-tdep.h (i387_register_to_value): Ditto.
8049         * alpha-tdep.c (alpha_register_to_value): Ditto.
8050         * ia64-tdep.c (ia64_register_to_value): Ditto.
8051         * m68k-tdep.c (m68k_register_to_value): Ditto.
8052         * mips-tdep.c (mips_register_to_value): Ditto.
8053         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8054
8055 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8056
8057         * findvar.c (value_of_register): Mark the value as unavailable, if
8058         the register is unavailable.
8059         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8060         (frame_register): New `unavailablep' parameter.
8061         (frame_register_read): Update comment.
8062         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8063         Set it if the register is unavailable.  If the register is
8064         unavailable, clear the output buffer.
8065         (frame_register): New `unavailablep' parameter.  Pass it down.
8066         (frame_unwind_register): Adjust.
8067         (put_frame_register): Adjust.
8068         (frame_register_read): Adjust.  Also return false if the register
8069         is not available.
8070         (frame_register_unwind_location): Adjust.
8071         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8072         is unavailable, mark the value accordingly.
8073         * stack.c (frame_info): Handle unavailable registers.
8074
8075 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8076
8077         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8078         simplify, using regcache_cooked_read.
8079
8080 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8081
8082         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8083         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8084         (regcache_raw_read_unsigned, regcache_raw_read_part)
8085         (regcache_cooked_read, regcache_cooked_read_signed)
8086         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8087         (regcache_cooked_read_ftype): Change return to enum
8088         register_status.
8089         * regcache.c: Include exceptions.h
8090         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8091         (do_cooked_read): Change return to enum register_status.  Always
8092         forward to regcache_cooked_read.
8093         (regcache_raw_read): Change return to enum register_status.  If
8094         the register is not REG_VALID, memset the buffer.  Return the
8095         register's status.
8096         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8097         return the register's status.
8098         (regcache_raw_read_unsigned): Ditto.
8099         (regcache_cooked_read): Change return to enum register_status.
8100         Assert that with read-only regcaches, the register's status must
8101         be known.  If the regcache is read-only, and the register is not
8102         REG_VALID, memset the buffer.  Return the register's status.
8103         (regcache_cooked_read_signed): Change return to enum
8104         register_status.  Handle non-REG_VALID registers and return the
8105         register's status.
8106         (regcache_cooked_read_unsigned): Change return to enum
8107         register_status.  Handle non-REG_VALID registers and return the
8108         register's status.
8109         (regcache_xfer_part, regcache_raw_read_part)
8110         (regcache_cooked_read_part): Change return to enum
8111         register_status.  Return the register's status.
8112         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8113         unavailable.
8114         (regcache_dump): Handle unavailable cooked registers.
8115         * frame.c (do_frame_register_read): Adjust interface to match
8116         regcache_cooked_read_ftype.
8117         * gdbarch.sh (pseudo_register_read): Change return to enum
8118         register_status.
8119         * gdbarch.h, gdbarch.c: Regenerate.
8120
8121         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8122         register_status.
8123         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8124         register_status.  If reading a raw register indicates the raw
8125         register is not valid, return the raw register's status,
8126         otherwise, return REG_VALID.
8127         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8128         register_status.  Handle non-REG_VALID raw registers and return
8129         the register's status.
8130         * arm-tdep.c (arm_neon_quad_read)
8131         (arm_pseudo_read): Change return to enum register_status.  Handle
8132         non-REG_VALID raw registers and return the register's status.
8133         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8134         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8135         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8136         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8137         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8138         register_status.
8139         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8140         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8141         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8142         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8143         (m32c_pseudo_register_read): Change return to enum
8144         register_status.  Adjust.
8145         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8146         enum register_status.  Return the register's status.
8147         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8148         register_status.  Return the register's status.
8149         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8150         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8151         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8152         * rs6000-tdep.c (move_ev_register_func): New typedef.
8153         (e500_move_ev_register): Use it.  Change return to enum
8154         register_status.  Return the register's status.
8155         (do_regcache_raw_read): New function.
8156         (do_regcache_raw_write): New function.
8157         (e500_pseudo_register_read): Change return to enum
8158         register_status.  Return the register's status.  Use
8159         do_regcache_raw_read.
8160         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8161         (dfp_pseudo_register_read): Change return to enum register_status.
8162         Return the register's status.
8163         (vsx_pseudo_register_read): Ditto.
8164         (efpr_pseudo_register_read): Ditto.
8165         (rs6000_pseudo_register_read): Ditto.
8166         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8167         register_status.  Return the register's status.
8168         * sh64-tdep.c (pseudo_register_read_portions): New function.
8169         (sh64_pseudo_register_read): Change return to enum
8170         register_status.  Use pseudo_register_read_portions.  Return the
8171         register's status.
8172         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8173         register_status.  Return the register's status.
8174         * sh-tdep.c (pseudo_register_read_portions): New function.
8175         (sh_pseudo_register_read): Change return to enum register_status.
8176         Use pseudo_register_read_portions.  Return the register's status.
8177         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8178         enum register_status.  Return the register's status.
8179         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8180         * spu-tdep.c (spu_pseudo_register_read_spu)
8181         (spu_pseudo_register_read): Ditto.
8182         * xtensa-tdep.c (xtensa_register_read_masked)
8183         (xtensa_pseudo_register_read): Ditto.
8184         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8185
8186 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8187
8188         * python/py-value.c (valpy_getitem): Fix formatting of error function
8189         call.
8190
8191 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8192
8193         ARI fixes: Add missing internationalization markups throughout
8194         C source files.
8195         * darwin-nat-info.c: Ditto.
8196         * record.c: Ditto.
8197         * remote.c: Ditto.
8198         * mi/mi-main.c: Ditto.
8199
8200 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8201
8202         ARI fixes: Add missing internationalization markups throughout
8203         yacc files.
8204         * c-exp.y: Ditto.
8205         * cp-name-parser.y: Ditto.
8206         * f-exp.y: Ditto.
8207         * m2-exp.y: Ditto.
8208         * objc-exp.y: Ditto.
8209         * p-exp.y: Ditto.
8210
8211 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8212
8213         ARI fixes: Messages should have no trailing new lines.
8214         * darwin-nat.c (mach_check_error): Remove trailing new line from
8215         warning function call message.
8216         * record.c (bfdcore_read): Idem for error call.
8217
8218 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8219
8220         * common/signals.c (target_signal_from_host): Add _ markup to error
8221         function call message.
8222         (target_signal_to_host): Add _ markup and remove trailing new line
8223         from warning call message.
8224         (target_signal_from_command): Add _ markup to error function call
8225         message.
8226
8227 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8228
8229         PR python/12149
8230
8231         * python/python.c (gdbpy_write): Accept a stream argument and
8232         operate to the appropriate stream.
8233         (gdbpy_flush): Likewise.
8234         (_initialize_python): Add stream constants.
8235         (finish_python_initialization): Add GdbOutputErrorFile class.
8236
8237 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8238
8239         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8240
8241 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8242
8243         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8244         to store_signed_integer.  Add debug message when relocating CALL
8245         instructions.  Fix formatting of debug message.
8246         * i386-tdep.c (i386_relocate_instruction): Ditto.
8247
8248 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8249
8250         * target.h (struct target_ops): Remove to_lookup_symbol field.
8251         (target_lookup_symbol): Delete macro.
8252         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8253         (update_current_target, setup_target_debug): Remove handling
8254         of to_lookup_symbol target_ops field.
8255         * ada-tasks.c (get_known_tasks_addr): Remove use of
8256         target_lookup_symbol.
8257         * coffread.c (coff_symtab_read): Likewise.
8258         * dbxread.c (read_dbx_symtab): Ditto.
8259
8260 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8261
8262         PR gdb/12116:
8263         * configure.ac: Add getthrds declaration check.
8264         * configure, config.in: Regenerate.
8265         * aix-thread.c (getthrds): Declare only if not already declared
8266         in procinfo.h.  More declaration out of get_signaled_thread to
8267         global scope.
8268
8269 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8270
8271         * python/py-symtab.c: Populate symtab_object_methods,
8272         sal_object_methods.
8273         (stpy_is_valid): New function.
8274         (salpy_is_valid): Ditto.
8275         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8276         (sympy_is_valid): New function.
8277         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8278         (objfpy_is_valid): New function.
8279         * python/py-inferior.c: Populate inferior_object_methods.
8280         (infpy_is_valid): New function.
8281         * python/py-infthread.c: Populate thread_object_methods.
8282         (thpy_is_valid): New function.
8283         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8284         block_iterator_object_methods.  Populate.
8285         (blpy_is_valid): New function.
8286         (blpy_iter_is_valid): Ditto.
8287
8288 2011-03-16  Keith Seitz  <keiths@redhat.com>
8289
8290         * linespec.c (find_methods): Canonicalize NAME before looking
8291         up the symbol.
8292         (name_end): New function.
8293         (keep_name_info): New function.
8294         (decode_line_1): Use keep_name_info.
8295         (decode_compound): Likewise.
8296         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8297         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8298
8299         PR c++/12273
8300         * linespec.c (locate_first_half): Keep overload information, too.
8301         (decode_compound): Use a string to represent break characters
8302         to escape the loop.
8303         If P points to a break character, do not increment it.
8304         For C++ and Java, keep overload information and relevant keywords.
8305         If we cannot find a symbol, search the minimal symbols.
8306
8307         PR c++/11734
8308         * linespec.c (decode_compound): Rename SAVED_ARG to
8309         THE_REAL_SAVED_ARG.
8310         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8311         single-quotes.
8312         Pass a valid block to lookup_symbol.
8313         (lookup_prefix_sym): Likewise.
8314         (find_method): Construct search name based on SYM_CLASS instead
8315         of SAVED_ARG.
8316         * psymtab.c (lookup_partial_symbol): Add language parameter.
8317         (lookup_symbol_aux_psymtabs): Likewise.
8318         Don't assume that the psymtab we found was the right one. Search
8319         for the desired symbol in the symtab to be certain.
8320         (psymtab_search_name): New function.
8321         (lookup_partial_symbol): Use psymtab_search_name.
8322         Add language parameter.
8323         (read_symtabs_for_function): Add language parameter and pass to
8324         lookup_partial_symbol.
8325         (find_symbol_file_from_partial): Likewise.
8326
8327 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8328
8329         PR gdb/12528
8330         * dwarf2read.c (noop_record_line): New function.
8331         (dwarf_decode_lines): Ignore line tables for GCd functions.
8332
8333 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8334
8335         Fix ARI warnings about new lines at the end of messages, which
8336         are unneeded as there is a new line added at the end of the message
8337         automatically.
8338         * darwin-nat.c (darwin_stop_inferior): Ditto.
8339         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8340         * dfp.c (decimal_to_number): Ditto.
8341         * exec.c (print_section_info): Ditto.
8342         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8343         * osdata.c (get_osdata): Ditto.
8344         * record.c (bfdcore_write): Ditto.
8345         * remote-mips.c (mips_readchar): Ditto.
8346         * remote.c (read_ptid): Ditto.
8347         * ser-mingw.c (ser_windows_raw): Ditto.
8348         * tracepoint.c (add_local_symbols): Ditto.
8349         * windows-nat.c (fake_create_process): Ditto.
8350
8351 2011-03-16  Tom Tromey  <tromey@redhat.com>
8352
8353         * tracepoint.c (stop_tracing): Don't declare.
8354         * event-top.c (after_char_processing_hook): Add `(void)'.
8355
8356 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
8357
8358         * NEWS: Add Parameter sub-classing description.
8359
8360 2011-03-16  Kai Tietz  <ktietz@redhat.com>
8361
8362         * MAINTAINERS: Update my e-mail address.
8363
8364 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
8365
8366         * MAINTAINERS: Add myself for write after approval privileges.
8367
8368 2011-03-15  Michael Snyder  <msnyder@vmware.com>
8369
8370         * frame.c (find_frame_sal): Assert sym is not null.
8371
8372         * dbxread.c (process_one_symbol): Assert 'name' is not null.
8373
8374         * objc-lang.c (selectors_info): Check strchr for null result.
8375
8376         * stabsread.c (define_symbol): Guard against bad stabstring input.
8377
8378 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8379
8380         Remove trailing spaces and tabulations from pascal language
8381         support sources.
8382         p-exp.y: Ditto.
8383         p-lang.c: Ditto.
8384         p-lang.h: Ditto.
8385         p-valprint.c: Ditto.
8386
8387 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8388
8389         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8390         than LOW.  Comment it.
8391         (read_partial_die): Call complaint for inappropriate zero LOWPC or
8392         HIGHPC not strictly higher than LOWPC.
8393
8394 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8395
8396         Fix formatting of function declarations returning a pointer in
8397         previous commit.
8398         * varobj.c (varobj_add_child): Ditto.
8399         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8400         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8401
8402 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8403
8404         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8405         for the "generic" vector ABI used with GCC 4.3 and later.
8406         (ppc64_sysv_abi_return_value): Likewise.
8407
8408 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8409
8410         * infcall.c (call_function_by_hand): Function return value is
8411         always a non_lval, even when using struct_return.
8412
8413 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
8414
8415         * printcmd.c (ALL_DISPLAYS_SAFE): New.
8416         (map_display_numbers): New.
8417         (do_delete_display): New.
8418         (undisplay_command): Use map_display_numbers.
8419         (do_enable_disable_display): New.
8420         (enable_disable_display_command): New function.
8421         (enable_display): Delete.
8422         (enable_display_command): New.
8423         (disable_display_command): Reimplement.
8424         (_initialize_printcmd): Adjust "enable display" command to use
8425         `enable_display_command' as callback.
8426
8427 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8428
8429         * NEWS: Add Python breakpoint 'stop' operation.
8430
8431 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8432
8433         * NEWS: Delete duplicate entry. Fix typo.
8434
8435 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8436
8437         Fix ARI warning about function names in first column.
8438         Put prototype declaration on same line as return type.
8439         * objc-exp.y: Ditto.
8440         * p-exp.y: Ditto.
8441         * python/py-stopevent.h: Ditto.
8442         For long function names, split parameters to
8443         allow function name on same line as return type.
8444         * solib-pa64.c: Ditto.
8445         * varobj.c: Ditto.
8446         * varobj.h: Ditto.
8447         For long function declaration, use single line.
8448         * hppa-tdep.h: Ditto.
8449         * inferior.h: Ditto.
8450
8451 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8452
8453         * python/python.h: Declare gdbpy_should_stop and
8454         gdbpy_breakpoint_has_py_cond.
8455         * python/python.c: Add python.h to includes.  Remove python.h from
8456         HAVE_PYTHON definition
8457         (gdbpy_should_stop): New dummy function.
8458         (gdbpy_breakpoint_has_py_cond): New dummy function.
8459         * python/py-breakpoint.c (bppy_init): Rewrite to allow
8460         sub-classing capabilities.
8461         (gdbpy_should_stop): New function.
8462         (gdbpy_breakpoint_has_py_cond): New function.
8463         (local_setattro): New function.
8464         * breakpoint.c (condition_command): Add check for Python 'stop'
8465         operation.
8466         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8467         operation function as part of stop/continue tests.
8468
8469 2011-03-14  Tom Tromey  <tromey@redhat.com>
8470
8471         PR gdb/12576:
8472         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8473         (needs_frame_dwarf_call): Likewise.
8474
8475 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8476
8477         Fix ARI warning about functions without parameters that do not
8478         use (void).
8479         * breakpoint.c (all_tracepoints): Replace () by (void).
8480         * f-exp.y (match_string_literal): Ditto.
8481         (yylex): Ditto.
8482         * m2-exp.y (yylex): Ditto.
8483         * mep-tdep.c (current_me_module): Ditto.
8484         (current_options): Ditto.
8485         (current_cop_data_bus_width): Ditto.
8486         (current_cr_names): Ditto.
8487         (current_cr_is_float): Ditto.
8488         (current_ccr_names): Ditto.
8489         * objc-exp.y (yylex): Ditto.
8490         * p-exp.y (yylex): Ditto.
8491         * remote.c (send_interrupt_sequence): Ditto.
8492         * tracepoint.c (current_trace_status): Ditto.
8493         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8494         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8495
8496 2011-03-11  Michael Snyder  <msnyder@vmware.com>
8497
8498         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8499         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8500         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8501         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8502         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8503
8504         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8505         (delete_async_event_handler): Ditto.
8506
8507         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8508
8509         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8510
8511         * top.c (set_verbose): Assert showcmd was found.
8512
8513 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
8514
8515         * xtensa-tdep.c (warning_once): Correct style issues.
8516
8517 2011-03-11  Yao Qi  <yao@codesourcery.com>
8518
8519         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8520
8521 2011-03-11  Andreas Schwab  <schwab@redhat.com>
8522
8523         * common/aclocal.m4: Remove.
8524
8525 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8526
8527         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8528         (xtensa_write_register, xtensa_read_register): Likewise.
8529         (xtensa_hextochar): Removed.
8530         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8531
8532 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8533
8534         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8535         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
8536         (xtensa_alloc_frame_cache): Add initialization for new fields.
8537         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8538         (warning_once): New function.
8539         (xtensa_insn_kind): New item c0opc_and.
8540         (call0_classify_opcode): Add the case for AND instruction.
8541         (call0_track_op): Change arguments.  New local variable litbase.
8542         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
8543         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8544         in the prologue.
8545         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8546         (call0_analyze_prologue): Update the comments.  Change arguments.
8547         Add the variety of updates to handle extended prologues, which now can
8548         conduct dynamic stack adjustments.
8549         (call0_frame_cache): Likewise.
8550         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8551         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8552
8553 2011-03-10  Michael Snyder  <msnyder@vmware.com>
8554
8555         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8556         (cmd_qtframe): Ditto.
8557         (cmd_qtbuffer): Ditto.
8558         (cmd_bigqtbuffer): Ditto.
8559
8560 2011-03-10  Tom Tromey  <tromey@redhat.com>
8561
8562         * tracepoint.c (trace_actions_command): Update.
8563         * thread.c (thread_apply_command): Update.
8564         * reverse.c (delete_bookmark_command): Update.
8565         (bookmarks_info): Update.
8566         * printcmd.c (undisplay_command): Update.
8567         * memattr.c (mem_enable_command): Update.
8568         (mem_disable_command): Update.
8569         (mem_delete_command): Update.
8570         * inferior.c (detach_inferior_command): Update.
8571         (kill_inferior_command): Update.
8572         (remove_inferior_command): Update.
8573         * cli/cli-utils.h (struct get_number_or_range_state): New.
8574         (init_number_or_range): Declare.
8575         (get_number_or_range): Update.
8576         * cli/cli-utils.c (init_number_or_range): New function.
8577         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
8578         static variables.
8579         (number_is_in_list): Update.
8580         * breakpoint.h (get_tracepoint_by_number): Update.
8581         * breakpoint.c (map_breakpoint_numbers): Update for change to
8582         get_number_or_range.
8583         (find_location_by_number): Use get_number, not
8584         get_number_or_range.
8585         (trace_pass_set_count): New function.
8586         (trace_pass_command): Update for change to get_number_or_range.
8587         Rework loop logic.
8588         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8589         'state' parameter.
8590
8591 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
8592
8593         * python/py-param.c (add_setshow_generic): Add set/show callback
8594         parameters.  Register Python object context.
8595         (get_show_value): New function.
8596         (get_set_value): New function.
8597         (call_doc_function): New function.
8598         (get_doc_string): Move behind get_show_value/get_set_value.
8599
8600 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
8601
8602         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8603
8604 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
8605
8606         * xtensa-tdep.c (xtensa_read_register): Add comment.
8607         (xtensa_write_register): Likewise.
8608         (xtensa_hextochar): Add comment and update to match coding conventions.
8609         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8610         (execute_l32e, execute_s32e, execute_code): Update comments.
8611         (xtensa_exception_handler_t): Update to match coding conventions.
8612         (xtensa_insn_kind): Likewise.
8613
8614 2011-03-09  Michael Snyder  <msnyder@vmware.com>
8615
8616         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8617
8618 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
8619
8620         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8621
8622 2011-03-09  Tom Tromey  <tromey@redhat.com>
8623
8624         * thread.c (restore_selected_frame): Handle frame_level == -1.
8625         (make_cleanup_restore_current_thread): Use
8626         get_selected_frame_if_set.
8627         * frame.h (get_selected_frame_if_set): Declare.
8628         * frame.c (get_selected_frame_if_set): New function.
8629
8630 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
8631
8632         * cli/cli-cmds.c (shell_escape): Use lbasename.
8633         * coffread.c (coff_start_symtab): Constify parameter.
8634         (complete_symtab): Constify `name' parameter.
8635         (coff_symtab_read): Constify `filestring' local.
8636         (coff_getfilename): Constify return and `result' local.
8637         Use lbasename.
8638         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8639         * linux-fork.c (info_checkpoints_command): Use lbasename.
8640         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8641         * minsyms.c (lookup_minimal_symbol): Use lbasename.
8642         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8643         * procfs.c (procfs_make_note_section): Use lbasename.
8644         * tui/tui-io.c (printable_part): Constity return and parameter.
8645         Use lbasename.
8646         (print_filename): Constify parameters, and local `s'.
8647         (tui_rl_display_match_list): Constify local `temp'.
8648
8649 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8650
8651         Revert:
8652         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8653         Fix DWARF-3+ DW_AT_accessibility default assumption.
8654         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8655         cu->header.version >= 3.
8656
8657 2011-03-09  Yao Qi  <yao@codesourcery.com>
8658
8659         * common/Makefile.in: Remove.
8660         * common/configure: Remove.
8661         * common/configure.ac: Remove.
8662
8663 2011-03-09  Yao Qi  <yao@codesourcery.com>
8664
8665         Revert:
8666         2011-02-11  Yao Qi  <yao@codesourcery.com>
8667
8668         * common/Makefile.in: Add copyright header.
8669
8670         2011-02-11  Yao Qi  <yao@codesourcery.com>
8671
8672         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
8673         libcommon.a.
8674         * configure.ac: Add common to sub dir.
8675         * configure: Regenerate.
8676
8677 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8678
8679         * xtensa-tdep.c (call0_ret): New function.
8680         (xtensa_skip_prologue): Speed up analysis.
8681
8682 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8683
8684         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8685         while executing MI command -data-list-changed-registers.
8686
8687 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8688
8689         * xtensa-tdep.c (xtensa_read_register): New function.
8690         (xtensa_write_register): New function.
8691         (xtensa_find_register_by_name): New function.
8692         (xtensa_windowed_frame_cache): Update comments in type description.
8693         (xtensa_frame_cache): Likewise.
8694         (xtensa_window_interrupt_insn): New function.
8695         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8696         (xtensa_insn_kind): Add new instructions.
8697         (rwx_special_register): New function.
8698         (call0_classify_opcode): Add new instructions to the analysis.
8699         (a0_saved, a7_saved, a11_saved): New variables.
8700         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8701         (execute_l32e): New function.
8702         (execute_s32e): New function.
8703         (xtensa_exception_handler_t): New type.
8704         (execute_code): New function.
8705         (xtensa_window_interrupt_frame_cache): New function to conduct frame
8706         analysis for Xtensa Window Exception handlers.
8707
8708 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8709
8710         * xtensa-tdep.c (TX_PS): New.
8711         (windowing_enabled): Update to count for Call0 ABI.
8712         (xtensa_hextochar): New.
8713         (xtensa_init_reggroups): Make algorithm generic.
8714         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8715
8716 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8717
8718         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8719
8720 2011-03-08  Michael Snyder  <msnyder@vmware.com>
8721
8722         * i386-tdep.c (i386_follow_jump): Check return value of
8723         target_read_memory.
8724         (i386_analyze_struct_return): Ditto.
8725         (i386_skip_probe): Ditto.
8726         (i386_match_insn): Ditto.
8727         (i386_skip_noop): Ditto.
8728         (i386_analyze_frame_setup): Ditto.
8729         (i386_analyze_register_saves): Ditto.
8730         (i386_skip_prologue): Ditto.
8731         (i386_skip_main_prologue): Ditto.
8732
8733         * target.c (read_whatever_is_readable): Fix memory leak.
8734
8735         * i386-tdep.c (i386_process_record): Document fall through.
8736
8737 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8738
8739         Fix DWARF-3+ DW_AT_accessibility default assumption.
8740         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8741         cu->header.version >= 3.
8742
8743 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
8744
8745         * remote.c (remote_check_symbols): Skip if the target has no
8746         execution.
8747
8748 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
8749
8750         * target.c (read_whatever_is_readable): Reformat comment,
8751         with a minor typo fix. Minor reformatting of the code.
8752
8753 2011-03-08  Yao Qi  <yao@codesourcery.com>
8754
8755         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8756         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8757         Use cached result instead of calling displaced_in_arm_mode again.
8758         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8759         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8760         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8761         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8762         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8763         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8764         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8765         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8766         (cleanup_block_load_pc, copy_block_xfer): Likewise.
8767         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8768         (arm_catch_kernel_helper_return): Likewise.
8769         * gdb/arm-tdep.h : Update function declarations.
8770
8771 2011-03-07  Michael Snyder  <msnyder@vmware.com>
8772
8773         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8774
8775         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8776
8777         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8778
8779         * elfread.c (elf_symtab_read): Stop memory leak.
8780
8781         * main.c (captured_main): Fix memory leak.
8782
8783 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8784
8785         * ada-lang.c (compare_names): Call is_name_suffix with string1
8786         instead of string2.
8787
8788 2011-03-07  Tom Tromey  <tromey@redhat.com>
8789
8790         * xcoffread.c (xcoff_sym_fns): Update.
8791         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8792         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8793         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8794         (symbol_file_add_with_addrs_or_offsets): Likewise.
8795         (reread_symbols): Handle OBJF_PSYMTABS_READ.
8796         * somread.c (som_sym_fns): Update.
8797         * psymtab.h (require_partial_symbols): Declare.
8798         * psymtab.c (require_partial_symbols): New function.
8799         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8800         (ALL_OBJFILE_PSYMTABS): Undef.
8801         (ALL_PSYMTABS): Move from psympriv.h.
8802         (lookup_partial_symtab, find_pc_sect_psymtab)
8803         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8804         (find_last_source_symtab_from_partial)
8805         (forget_cached_source_info_partial)
8806         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8807         (expand_partial_symbol_tables, read_psymtabs_with_filename)
8808         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8809         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8810         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8811         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8812         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8813         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8814         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8815         psymtabs.
8816         * mipsread.c (ecoff_sym_fns): Update.
8817         * machoread.c (macho_sym_fns): Update.
8818         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8819         (read_psyms): New function.
8820         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8821         (elf_sym_fns_lazy_psyms): New global.
8822         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8823         dwarf2_build_psymtabs.
8824         * dbxread.c (aout_sym_fns): Update.
8825         * coffread.c (coff_sym_fns): Update.
8826
8827 2011-03-07  Tom Tromey  <tromey@redhat.com>
8828
8829         * infrun.c (print_exited_reason): Include inferior id and pid in
8830         message.
8831
8832 2011-03-07  Tom Tromey  <tromey@redhat.com>
8833
8834         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8835         parameter.
8836         (target_has_execution_1): Update.
8837         (target_has_execution_current): Declare.
8838         (target_has_execution): Call target_has_execution_current.
8839         (default_child_has_execution): Update.
8840         * target.c (default_child_has_execution): Add 'the_ptid'
8841         parameter.
8842         (target_has_execution_1): Likewise.
8843         (target_has_execution_current): New function.
8844         (add_target): Update.
8845         (init_dummy_target): Update.
8846         * remote-m32r-sdi.c (m32r_has_execution): New function.
8847         (init_m32r_ops): Use it.
8848         * record.c (record_core_has_execution): Now static.  Add
8849         'the_ptid' parameter.
8850         * inferior.c (have_live_inferiors): Don't save current thread.
8851         Use target_has_execution_1.
8852
8853 2011-03-07  Yao Qi  <yao@codesourcery.com>
8854
8855         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8856
8857 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8858
8859         * elfread.c (elf_symtab_read): Minor reformatting.
8860
8861 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8862
8863         * objc-lang.c (selectors_info): Minor reformatting.
8864
8865 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8866
8867         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8868
8869 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8870             Michael Snyder  <msnyder@vmware.com>
8871
8872         * ada-valprint.c (ada_val_print_array): Move the declaration of
8873         "byte_order" and "elttype" inside the block where these variables
8874         are actually used.  Remove some special handling for the case
8875         where "elttype" and "eltlen" are null.  Replace by a comment
8876         and a couple of assertion checks.
8877
8878 2011-03-05  Michael Snyder  <msnyder@vmware.com>
8879
8880         * source.c (add_path): Replace semicolon at end of block.
8881         * dwarf2expr.c (execute_stack_op): Ditto.
8882
8883 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
8884
8885         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8886         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8887         (bfin-*-*): Likewise.
8888
8889 2011-03-05  Michael Snyder  <msnyder@vmware.com>
8890
8891         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8892         * mdebugread.c (parse_symbol): Ditto.
8893         * parse.c (parse_exp_in_context): Ditto.
8894         * source.c (add_path): Ditto.
8895         * utils.c (gnu_debuglink_crc32): Ditto.
8896         * varobj.c (variable_language): Ditto.
8897
8898         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8899
8900 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8901
8902         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8903
8904         * symfile.c (simple_overlay_update): Check for null return value
8905         from lookup_minimal_symbol.
8906
8907         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8908
8909 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8910
8911         * eval.c (parse_and_eval_address_1): Remove function.
8912         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8913         instead of parse_and_eval_address_1.
8914         * value.h (parse_and_eval_address_1): Remove prototype.
8915
8916 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8917
8918         * remote.c (putpkt_binary): Document that case stmt falls through.
8919
8920 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8921
8922         * breakpointc (print_it_typical): Move NULL check from here...
8923         (print_bp_stop_message): ... to here.
8924
8925 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
8926
8927         * breakpoint.c (enable_command): Use break instead of continue,
8928         and fill in a missing break.
8929         (disable_command): Ditto.
8930
8931 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
8932
8933         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8934         (terminal_save_ours): Remove misleading comment.
8935         (inflow_inferior_data_cleanup): Free ttystate.
8936         (inflow_inferior_exit): Likewise.
8937         (copy_terminal_info): Copy ttystate.
8938
8939         * serial.c (serial_copy_tty_state): New function.
8940         * serial.h (serial_copy_tty_state): Add prototype.
8941         (struct serial_ops): Add copy_tty_state callback.
8942         * ser-base.c (ser_base_copy_tty_state): New function.
8943         * ser-base.h (ser_base_copy_tty_state): Add prototype.
8944         * ser-go32.c (dos_copy_tty_state): New function.
8945         (dos_ops): Install copy_tty_state callback.
8946         * ser-mingw.c (_initialize_ser_windows): Likewise.
8947         * ser-pipe.c (_initialize_ser_pipe): Likewise.
8948         * ser-unix.c (hardwire_copy_tty_state): New function.
8949         (_initialize_ser_hardwire): Install it.
8950
8951 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8952
8953         * breakpoint.c (create_breakpoint): Add missing break statement.
8954
8955         Reverting this patch:
8956         * infcall.c (call_function_by_hand): Add break statements for lint.
8957
8958         Reverting this patch:
8959         * cli/cli-script.c (script_from_file): Add break for lint.
8960
8961 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8962
8963         * solib.c (reload_shared_libraries_1): Close memory leak.
8964
8965 2011-03-03  Tom Tromey  <tromey@redhat.com>
8966
8967         PR gdb/12538:
8968         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8969         DW_STRING is NULL.
8970
8971 2011-03-03  Michael Snyder  <msnyder@vmware.com>
8972
8973         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8974         fields of struct 'st' to zero.
8975
8976         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8977         sal.pspace before calling set_current_source_symtab_and_line.
8978
8979 2011-03-03  Yao Qi  <yao@codesourcery.com>
8980
8981         * Makefile.in (configure-common): Remove.  Let Makefile
8982         in dir common to rebuild itself.
8983         (common/Makefile): Likewise.
8984
8985 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
8986
8987         * utils.c (parse_escape): Add i18n markup in error message.
8988
8989 2011-03-03  Yao Qi  <yao@codesourcery.com>
8990
8991         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8992         ARM_PC_REGNUM.
8993         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8994         (displaced_write_reg, displaced_read_reg): Likewise.
8995         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8996         (cleanup_block_load_pc, copy_block_xfer): Likewise.
8997         (cleanup_branch): Replace magic number 14 and 15 with
8998         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8999
9000 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9001
9002         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9003
9004         * cli/cli-script.c (script_from_file): Add break for lint.
9005
9006         * mdebugread.c (parse_partial_symbols): Fix indent.
9007
9008         * target-descriptions.c (tdesc_gdb_type): No need to call
9009         xstrdup, callee saves a copy.
9010
9011         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9012
9013         * infcall.c (call_function_by_hand): Add break statements for lint.
9014
9015         * utils.c (parse_escape): Escape the escape char.
9016
9017         * python/py-inferior.c (build_inferior_list): Error out if
9018         PyList_Append fails.
9019         (gdbpy_inferiors): Error out if build_inferior_list fails.
9020
9021         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9022         a function call.
9023
9024         * record.c (record_restore): Move printf to before error return.
9025
9026 2011-03-02  Yao Qi  <yao@codesourcery.com>
9027
9028         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9029         is_thumb and insn_size.
9030         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9031         on both ARM and Thumb mode.
9032         (arm_process_displaced_insn): Set is_thumb and insn_size.
9033         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9034         (arm_displaced_step_fixup): Likewise.
9035
9036 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9037
9038         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9039
9040         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9041
9042         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9043
9044         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9045
9046         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9047         with xmalloc.
9048
9049         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9050         which shadows function parameter.
9051
9052         * tracepoint.c (create_tsv_from_upload): Superfluous call
9053         to xstrdup.  Callee already calls xstrdup.
9054
9055         * linespec.c (decode_line_1): Remove unnecessary null check.
9056
9057         * tracepoint.c (scope_info): Fix mem leak, remove underused
9058         variable.
9059
9060         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9061         superfluous null check.
9062
9063         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9064         (value_of_builtin_frame_fp_reg): Ditto.
9065
9066         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9067
9068         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9069         be null.
9070
9071         * linespec.c (decode_line_1): Check for null before dereference.
9072
9073         * reverse.c (record_restore): Move null-check to before pointer
9074         dereference.
9075
9076         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9077
9078         * objc-lang.c (selectors_info): Add explanitory comment.
9079         (classes_info): Ditto.
9080
9081 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9082
9083         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9084         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9085         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9086         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9087         (arm_linux_init_abi): Install it.
9088         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9089         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9090
9091 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9092
9093         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9094         a little bigger, to avoid possibility of an overflow.
9095
9096         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9097         buffers a little bigger, to avoid possibility of an overflow.
9098
9099         * coffread.c (coff_getfilename): Add check to avoid overflow.
9100
9101         * objc-lang.c (selectors_info): Add a small safety margin to
9102         avoid overflow.
9103         (classes_info): Error out on too long REGEXP.
9104
9105         * infrun.c (handle_inferior_event): Remove unused function call.
9106
9107         * fork-child.c (fork_inferior): Remove ifdef'd code and
9108         unused variable.
9109
9110         * linux-thread-db.c (attach_thread): Discard unused value.
9111
9112         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9113
9114         * remote.c (remote_get_noisy_reply): Discard unused value.
9115         (remote_vcont_resume): Ditto.
9116         (remote_stop_ns): Ditto.
9117
9118         * linespec.c (decode_objc): Delete unused variable.
9119
9120         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9121
9122         * dwarf2read.c (add_partial_symbol): Discard unused values.
9123         (read_base_type): Delete unused variable.
9124
9125         * dbxread.c (read_dbx_symtab): Discard unused value.
9126
9127         * eval.c (evaluate_subexp_standard): Delete unused variable,
9128         and discard unused values.
9129
9130         * infcmd.c (_initialize_infcmd): Discard unused values.
9131
9132         * stabsread.c (rs6000_builtin_type): Missing break statement.
9133
9134         * dbxread.c (process_one_symbol): Discard unused value.
9135
9136         * coffread.c (coff_end_symtab): Delete unused variable.
9137
9138         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9139         (dwarf2_add_typedef): Delete unused variable.
9140         (read_namespace): Ditto.
9141         (dwarf_decode_macros): Ditto.
9142
9143         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9144
9145         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9146
9147         * p-valprint.c (pascal_val_print): Discard unused value.
9148
9149         * utils.c (nquery): Call va_end before return;
9150         (yquery): Ditto.
9151         (query): Ditto.
9152
9153         * proc-service.c (ps_plog): Call va_end before return.
9154
9155 2011-02-28  Tom Tromey  <tromey@redhat.com>
9156
9157         * python/python.c (gdbpy_value_cst): New global.
9158         (_initialize_python): Initialize it.
9159         * python/python-internal.h (gdbpy_value_cst): Declare.
9160         * python/py-value.c (convert_value_from_python): Use
9161         gdbpy_value_cst.
9162
9163 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9164
9165         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9166
9167         * breakpoint.c (catch_syscall_completer): Free malloced list.
9168
9169         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9170
9171         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9172         (lval_func_check_synthetic_pointer): Ditto.
9173         (lval_func_free_closure): Fix use-after-free.
9174
9175 2011-02-28  Tom Tromey  <tromey@redhat.com>
9176
9177         * psymtab.c (expand_partial_symbol_tables): Use
9178         ALL_OBJFILE_PSYMTABS.
9179
9180 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9181
9182         * objc-lang.c (selectors_info): Error on too long REGEXP.
9183
9184 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9185
9186         * python/py-param.c (set_parameter_value): Add missing
9187         break statement.
9188
9189         * linux-record.c (record_linux_system_call): Add missing
9190         break statement.
9191
9192 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9193
9194         * breakpoint.c (print_one_breakpoint_location): Remove unused
9195         argument PRINT_ADDRESS_BITS.  Update callers.
9196         (print_one_breakpoint): Likewise.
9197
9198 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9199
9200         * breakpoint.c (wrap_indent_at_field): New function.
9201         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9202         Allocate ui_stream locally instead of using STB argument.
9203         (print_one_breakpoint_location): Update call.
9204         * ui-out.c (ui_out_query_field): New function.
9205         * ui-out.h (ui_out_query_field): Add prototype.
9206
9207 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9208
9209         From Michael Snyder  <msnyder@vmware.com>
9210         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9211
9212 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9213
9214         * objc-lang.c (selectors_info): Prevent string overrun.
9215
9216         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9217         error in strncpy.
9218
9219         * symtab.c (rbreak_command): Move variable 'file_name' to
9220         outer scope.
9221
9222         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9223         param with a local variable of the same name.
9224
9225 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9226
9227         * value.c (value_from_history_ref): New function.
9228         * value.h (value_from_history_ref): Export.
9229         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9230         to parse value history references.
9231         * cli/cli-utils.h (get_number_trailer): Update comment.
9232
9233 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9234
9235         * inferior.c (detach_inferior_command): Use get_number_or_range.
9236         (kill_inferior_command): Ditto.
9237         (remove_inferior_command): Ditto.
9238         (initialize_inferiors): Make command names plural.
9239         Update help strings.
9240
9241 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9242
9243         * darwin-nat-info.c: Fix comment typo.
9244         * dwarf2expr.h: Ditto.
9245         * fbsd-nat.c: Ditto.
9246         * fbsd-nat.h: Ditto.
9247         * frame-unwind.h: Ditto.
9248         * frame.h: Ditto.
9249         * hppa-hpux-tdep.c: Ditto.
9250         * i386-linux-nat.c: Ditto.
9251         * linux-nat.c: Ditto.
9252         * nbsd-nat.c: Ditto.
9253         * nbsd-nat.h: Ditto.
9254         * ppc-linux-tdep.c: Ditto.
9255         * serial.c: Ditto.
9256         * ui-file.h: Ditto.
9257         * tui/tui-winsource.c: Ditto.
9258
9259 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9260
9261         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9262
9263         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9264
9265         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9266         with a local variable of the same name.
9267
9268         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9269         param with a local variable of the same name.
9270         (i387_supply_xsave): Ditto.
9271
9272         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9273         that it does not shadow a function parameter.
9274
9275         * i386-nat.c (i386_length_and_rw_bits): Document that case
9276         statement is meant to fall through.
9277
9278         * expprint.c (dump_subexp_body_standard): Document that case
9279         statement is meant to fall through.
9280
9281         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9282         dead if statement.  Condition can't be false.
9283
9284 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9285
9286         * arm-tdep.c: Fix typos in comments.
9287         * bsd-uthread.c: Ditto.
9288         * completer.c: Ditto.
9289         * corelow.c: Ditto.
9290         * cp-namespace.c: Ditto.
9291         * cp-support.c: Ditto.
9292         * cris-tdep.c: Ditto.
9293         * dbxread.c: Ditto.
9294         * dwarf2read.c: Ditto.
9295         * frame.h: Ditto.
9296         * gdbtypes.h: Ditto.
9297         * inferior.h: Ditto.
9298         * mdebugread.c: Ditto.
9299         * mips-tdep.c: Ditto.
9300         * ppc-linux-nat.c: Ditto.
9301         * ppc-linux-tdep.c: Ditto.
9302         * printcmd.c: Ditto.
9303         * sol-thread.c: Ditto.
9304         * solib-frv.c: Ditto.
9305         * solist.h: Ditto.
9306         * sparc64-tdep.c: Ditto.
9307         * spu-tdep.c: Ditto.
9308         * stabsread.c: Ditto.
9309         * symfile.c: Ditto.
9310         * valops.c: Ditto.
9311         * varobj.c: Ditto.
9312         * vax-nat.c: Ditto.
9313         * python/py-block.c: Ditto.
9314         * python/py-symbol.c: Ditto.
9315         * python/py-symtab.c: Ditto.
9316         * python/py-value.c: Ditto.
9317         * tui/tui-win.c: Ditto.
9318
9319 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9320
9321         * inferior.c (print_inferior): Accept a string instead of an int
9322         for requested_inferiors, and use get_number_or_range to parse it.
9323         (info_inferiors_command): Pass args string to print_inferior.
9324         (initialize_inferiors): Change help string for info inferiors.
9325         * inferior.h (print_inferior): Export prototype change.
9326
9327 2011-02-25  Tom Tromey  <tromey@redhat.com>
9328
9329         * common/ax.def (invalid2): Set to 0x31.
9330
9331 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9332
9333         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9334         L and plongest.
9335         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9336         use L and plongest.
9337         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9338
9339 2011-02-24  Michael Snyder  <msnyder@vmware.com>
9340
9341         * Makefile.in (clean): Make clean should remove generated files
9342         observer.h and observer.inc.
9343
9344 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
9345
9346         Revert the following patch (not approved yet):
9347         2011-02-21  Hui Zhu  <teawater@gmail.com>
9348         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9349         * ax-gdb.c (gen_printf_expr_callback): New function.
9350         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9351         * ax-general.c (ax_memcpy): New function.
9352         (ax_print): Handle "printf".
9353         (ax_reqs): Ditto.
9354         * ax.h (ax_memcpy): Forward declare.
9355         * common/ax.def (invalid2): Removed.
9356         (printf): New entry.
9357         * printcmd.c (printcmd.h): New include.
9358         (string_printf): New function.
9359         (ui_printf): Removed.
9360         (printf_command): Remove static.  Call string_printf.
9361         (eval_command): Call string_printf.
9362         * printcmd.h: New file.
9363         * tracepoint.c (validate_actionline,
9364         encode_actions_1): handle printf_command.
9365
9366 2011-02-23  Tom Tromey  <tromey@redhat.com>
9367
9368         * ax-general.c (ax_pick): Add missing newline.
9369
9370 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9371
9372         * breakpoint.c (breakpoint_1): Change first argument from an int
9373         to a char pointer, so that the function now accepts a list of
9374         breakpoints rather than just one.  Use new function
9375         'number_is_in_list' to implement.
9376         (breakpoints_info): Pass char * instead of int to breakpoint_1.
9377         (watchpoints_info): Ditto.
9378         (tracepoints_info): Ditto.
9379         (maintenance_info_breakpoints): Ditto.
9380         (_initialize_breakpoint): Update help strings to reflect the fact
9381         that these functions can now take more than one argument.
9382         * cli/cli-utils.c (number_is_in_list): New function.
9383         * cli/cli-utils.h (number_is_in_list): Export.
9384
9385 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9386
9387         * memattr.c (mem_enable_command): Use get_number_or_range.
9388         (mem_disable_command): Ditto.
9389         (mem_delete_command): Ditto.
9390         (_initialize_mem): Tweak usage message to reflect multiple
9391         arguments.
9392
9393 2011-02-22  Doug Evans  <dje@google.com>
9394
9395         Add gdb.lookup_global_symbol python function.
9396         * NEWS: Add entry.
9397         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9398         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9399         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9400
9401 2011-02-22  Tom Tromey  <tromey@redhat.com>
9402
9403         * language.c (language_class_name_from_physname): Rename
9404         'curr_language' argument to 'lang'; use in body.
9405
9406 2011-02-22  Michael Snyder  <msnyder@vmware.com>
9407
9408         * cli/cli-utils.c (number_is_in_list): Check for zero return.
9409
9410 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
9411
9412         * frame-unwind.h: Fix comment to mention the this frame, not the
9413         next.
9414
9415 2011-02-22  Tom Tromey  <tromey@redhat.com>
9416
9417         * symfile.c (auto_solib_limit): Remove.
9418         * symfile.h (auto_solib_limit): Remove.
9419
9420 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
9421
9422         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
9423
9424 2011-02-21  Michael Snyder  <msnyder@vmware.com>
9425
9426         * gdbthread.h (print_thread_info): Change prototype.
9427         * thread.c (print_thread_info): Accept char* instead of int for
9428         requested_threads argument.  Use new function number_is_in_list
9429         to determine which threads to list.
9430         (info_threads_command): Pass char* to print_thread_info.
9431         * cli/cli-utils.c (number_is_in_list): New function.
9432         * cli/cli-utils.h (number_is_in_list): Export.
9433         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9434         print_thread_info.
9435         (print_one_inferior): Ditto.
9436         (mi_cmd_list_thread_groups): Ditto.
9437
9438 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9439
9440         * common/Makefile.in (CFLAGS): New.
9441         (COMPILE): Add $(CFLAGS).
9442
9443 2011-02-21  Tom Tromey  <tromey@redhat.com>
9444
9445         * breakpoint.c (catch_syscall_command_1): Fix typo.
9446
9447 2011-02-21  Tom Tromey  <tromey@redhat.com>
9448
9449         * reverse.c: Include cli-utils.h.
9450         * printcmd.c: Include cli-utils.h.
9451         (string_printf): Use skip_spaces.
9452         * cli/cli-utils.h: New file.
9453         * cli/cli-utils.c: New file.
9454         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9455         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9456         * breakpoint.h (get_number, get_number_or_range): Move to
9457         cli-utils.h.
9458         * breakpoint.c: Include cli-utils.h.
9459         (get_number_trailer, get_number, get_number_or_range)
9460         (ep_skip_leading_whitespace): Move to cli-utils.c.
9461         (create_breakpoint_sal, find_condition_and_thread)
9462         (decode_static_tracepoint_spec, watch_command_1)
9463         (watch_maybe_just_location, ep_parse_optional_if_clause)
9464         (catch_fork_command_1, catch_exec_command_1)
9465         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9466         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9467         (SUBDIR_CLI_SRCS): Add cli-utils.c.
9468         (HFILES_NO_SRCDIR): Add cli-utils.h.
9469         (cli-utils.o): New target.
9470
9471 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9472
9473         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9474         before calling discard_all_inferiors.
9475
9476 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9477
9478         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9479         (struct builtin_opencl_type): Remove.
9480         (builtin_opencl_type): Change return type to "struct type **".
9481         (lookup_opencl_vector_type): Update caller.
9482         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9483         (build_opencl_types): Install plain array of "struct type *"
9484         instead of "struct builtin_opencl_type".
9485
9486 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9487             Ulrich Weigand  <uweigand@de.ibm.com>
9488
9489         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9490         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9491         (struct arm_linux_hwbp_cap): New type.
9492         (arm_linux_get_hwbp_cap): New function.
9493         (arm_linux_get_hw_breakpoint_count): Likewise.
9494         (arm_linux_get_hw_watchpoint_count): Likewise.
9495         (arm_linux_can_use_hw_breakpoint): Likewise.
9496         (arm_hwbp_type): New type.
9497         (arm_hwbp_control_t): Likewise.
9498         (struct arm_linux_hw_breakpoint): Likewise.
9499         (struct arm_linux_thread_points): Likewise.
9500         (arm_threads): New global variable.
9501         (arm_linux_find_breakpoints_by_tid): New function.
9502         (arm_hwbp_control_initialize): Likewise.
9503         (arm_hwbp_control_is_enabled): Likewise.
9504         (arm_hwbp_control_disable): Likewise.
9505         (arm_linux_hw_breakpoint_initialize): Likewise.
9506         (arm_linux_get_hwbp_type): Likewise.
9507         (arm_linux_hw_watchpoint_initialize): Likewise.
9508         (arm_linux_hw_breakpoint_equal): Likewise.
9509         (arm_linux_insert_hw_breakpoint1): Likewise.
9510         (arm_linux_remove_hw_breakpoint1): Likewise.
9511         (arm_linux_insert_hw_breakpoint): Likewise.
9512         (arm_linux_remove_hw_breakpoint): Likewise.
9513         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9514         (arm_linux_insert_watchpoint): Likewise.
9515         (arm_linux_remove_watchpoint): Likewise.
9516         (arm_linux_stopped_data_address): Likewise.
9517         (arm_linux_stopped_by_watchpoint): Likewise.
9518         (arm_linux_watchpoint_addr_within_range): Likewise.
9519         (arm_linux_new_thread): Likewise.
9520         (arm_linux_thread_exit): Likewise.
9521         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9522         related target callbacks.  Register arm_linux_new_thread and
9523         arm_linux_thread_exit.
9524         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9525         * arm-tdep.c (arm_pc_is_thumb): Make global.
9526         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9527
9528 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9529
9530         * breakpoint.c (update_watchpoint): Do not attempt to recreate
9531         per-frame locations while within a function epilogue.
9532
9533 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9534
9535         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9536         to GNU coding standards.
9537
9538 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9539
9540         Allow use of mingw native on Windows 95 OS.
9541         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9542         (ser_windows_close): Only call CancelIo if function exists.
9543         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9544         to check for existence of CancelIo function in kernel32 DLL.
9545
9546 2011-02-21  Hui Zhu  <teawater@gmail.com>
9547
9548         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9549         * ax-gdb.c (gen_printf_expr_callback): New function.
9550         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9551         * ax-general.c (ax_memcpy): New function.
9552         (ax_print): Handle "printf".
9553         (ax_reqs): Ditto.
9554         * ax.h (ax_memcpy): Forward declare.
9555         * common/ax.def (invalid2): Removed.
9556         (printf): New entry.
9557         * printcmd.c (printcmd.h): New include.
9558         (string_printf): New function.
9559         (ui_printf): Removed.
9560         (printf_command): Remove static.  Call string_printf.
9561         (eval_command): Call string_printf.
9562         * printcmd.h: New file.
9563         * tracepoint.c (validate_actionline,
9564         encode_actions_1): handle printf_command.
9565
9566 2011-02-19  Michael Snyder  <msnyder@vmware.com>
9567
9568         * reverse.c (delete_one_bookmark): Argument is now bookmark
9569         id rather than pointer to bookmark struct.
9570         (delete_bookmark_command): Use get_number_or_range.
9571         (goto_bookmark_command): Parse with get_number instead of strtoul.
9572         (bookmark_1): New function.  Print info for one bookmark.
9573         (bookmarks_info): Use get_number_or_range and bookmark_1.
9574
9575 2011-02-18  Michael Snyder  <msnyder@vmware.com>
9576
9577         * thread.c (info_threads_command): Re-implement using
9578         get_number_or_range.
9579         (thread_apply_command): Ditto.
9580
9581 2011-02-18  Tom Tromey  <tromey@redhat.com>
9582
9583         * common/ax.def: New file.
9584         * ax.h (enum agent_op): Use ax.def.
9585         * ax-general.c (aop_map): Use ax.def.
9586
9587 2011-02-18  Tom Tromey  <tromey@redhat.com>
9588
9589         * ax-general.c (aop_map): Add pick and rot.
9590         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9591         <DW_OP_rot>: Implement.
9592         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9593         (ax_pick): Declare.
9594         * ax-general.c (ax_pick): New function.
9595
9596 2011-02-18  Tom Tromey  <tromey@redhat.com>
9597
9598         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9599
9600 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9601             Tom Tromey  <tromey@redhat.com>
9602
9603         * cp-support.c (make_symbol_overload_list_namespace): Do not call
9604         make_symbol_overload_list_block with NULL BLOCK.
9605         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9606
9607 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
9608
9609         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9610         * breakpoint.h (get_number_or_range): Declare.
9611         * printcmd.c (ALL_DISPLAYS): Declare.
9612         (delete_display): Reimplement taking a display pointer.
9613         (undisplay_command): Accept a range of displays to delete, using
9614         get_number_or_range.
9615
9616 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9617
9618         * c-valprint.c (c_val_print): Add embedded_offset to address
9619         for arrays of unspecified length.
9620         * p-valprint.c (pascal_val_print): Likewise.
9621
9622 2011-02-18  Yao Qi  <yao@codesourcery.com>
9623
9624         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9625         (arm_process_displaced_insn): .. here. Remove parameter INSN.
9626         (thumb_process_displaced_insn): New.
9627         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9628         call to arm_process_displaced_insn.
9629         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9630
9631 2011-02-17  Tom Tromey  <tromey@redhat.com>
9632
9633         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9634         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9635         compile_dwarf_to_ax.  No longer static.  Call
9636         dwarf2_compile_cfa_to_ax.
9637         (locexpr_tracepoint_var_ref): Update.
9638         (loclist_tracepoint_var_ref): Update.
9639         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9640         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9641         argument; add 'gdbarch' and 'pc'.
9642         (dwarf2_compile_cfa_to_ax): New function.
9643         (dwarf2_frame_cache): Update.
9644
9645 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
9646
9647         * ada-lang.c (ada_type_of_array): Fix the size of the array
9648         in the case of an unconstrained packed array.
9649
9650 2011-02-17  Yao Qi  <yao@codesourcery.com>
9651
9652         * common/Makefile.in: Add more targets for make.
9653
9654 2011-02-16  Tom Tromey  <tromey@redhat.com>
9655
9656         * dwarf2loc.c (unimplemented): Fix typo.
9657
9658 2011-02-16  Tom Tromey  <tromey@redhat.com>
9659
9660         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9661         (compile_dwarf_to_ax) <default>: Use unimplemented.
9662         <DW_OP_deref>: Update.
9663         (disassemble_dwarf_expression): Update.
9664         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9665         (decode_locdesc): Update.
9666         * dwarf2expr.h (dwarf_stack_op_name): Update.
9667
9668 2011-02-16  Tom Tromey  <tromey@redhat.com>
9669
9670         * ax.h (struct aop_map) <name>: Now const.
9671
9672 2011-02-16  Tom Tromey  <tromey@redhat.com>
9673
9674         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9675         than axs_rvalue.
9676
9677 2011-02-16  Yao Qi  <yao@codesourcery.com>
9678
9679         * infrun.c (get_displaced_step_closure_by_addr): New.
9680         * inferior.h: Declare it.
9681         * arm-tdep.c: (arm_pc_is_thumb): Call
9682         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
9683         returns non-NULL.
9684
9685 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
9686             Jan Kratochvil  <jan.kratochvil@redhat.com>
9687
9688         gdb/
9689         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9690
9691 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
9692             Jan Kratochvil  <jan.kratochvil@redhat.com>
9693
9694         * value.c (value_contents_copy_raw): Extend describing comment.
9695         Assert that the destination contents we're overwriting are wholly
9696         available.
9697         (value_contents_copy): Extend describing comment.
9698
9699 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
9700             Jan Kratochvil  <jan.kratochvil@redhat.com>
9701
9702         * value.c (value_available_contents_eq): Remove redundant local
9703         variables.  Fix available contents comparision.
9704         * value.h (value_available_contents_eq): Extend describing
9705         comment.
9706
9707 2011-02-16  Yao Qi  <yao@codesourcery.com>
9708
9709         * thread.c (info_threads_command): Add missing i18n markup and remove
9710         trailing newline.
9711
9712 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
9713
9714         * breakpoint.c (longjmp_names): New variable.
9715         (struct breakpoint_objfile_data): New type.
9716         (breakpoint_objfile_key): New variable.
9717         (msym_not_found): New variable.
9718         (msym_not_found_p): New predicate.
9719         (get_breakpoint_objfile_data): New function.
9720         (create_overlay_event_breakpoint): Check per-objfile cache for
9721         symbols first.
9722         (create_longjmp_master_breakpoint): Likewise.
9723         (create_std_terminate_master_breakpoint): Likewise.
9724         (create_exception_master_breakpoint): Likewise.
9725         (_initialize_breakpoint): Register per-objfile data key.
9726
9727 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
9728
9729         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9730         parameter value.
9731         (create_longjmp_master_breakpoint): Loop over longjmp names.
9732         (create_std_terminate_master_breakpoint): Const-propagate parameter
9733         value.
9734         (update_breakpoints_after_exec): Adjust.
9735         (breakpoint_re_set): Adjust.
9736
9737 2011-02-15  Michael Snyder  <msnyder@vmware.com>
9738
9739         * thread.c (info_threads_command): Process arg as thread id,
9740         or list of thread ids.
9741         (thread_find_command): New command.
9742         (_initialize_thread): Document argument for info threads.
9743         Document 'thread find' command.
9744         * NEWS: Document new command "thread find".
9745
9746 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9747
9748         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9749         * aclocal.m4: Regenerated with aclocal-1.11.1.
9750         * common/configure: Regenerate with autoconf-2.64.
9751
9752 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
9753
9754         * opencl-lang.c (build_opencl_types): Set the size of the built-in
9755         bool data type to a size of one byte.
9756
9757 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
9758             Jan Kratochvil  <jan.kratochvil@redhat.com>
9759
9760         * target.c (memory_xfer_live_readonly_partial): Document where to
9761         look for interface description.
9762
9763 2011-02-15  Yao Qi  <yao@codesourcery.com>
9764
9765         PR tdep/12352
9766         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9767         order to store PC value on stack instead of text section.
9768
9769 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9770
9771         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9772         the EFP register set size.
9773         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9774         data from the VMX register.
9775         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9776         and write data from/to the VMX register.
9777
9778 2011-02-14  Michael Snyder  <msnyder@vmware.com>
9779
9780         * command.h (enum command_class): New class 'no_set_class', for
9781         "show" commands without a corresponding "set" command.
9782         * value.c (_initialize_values): Use 'no_set_class' for "show values".
9783         * copying.c (_initialize_copying): Ditto for "show copying" and
9784         "show warranty".
9785         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9786         "show version".
9787         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9788         which there is no corresponding "set" command (eg. "show copying").
9789
9790 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9791             Jan Kratochvil  <jan.kratochvil@redhat.com>
9792
9793         * exec.c (section_table_available_memory): Change `len' parameter
9794         type to ULONGEST.
9795         * exec.h (section_table_available_memory): Ditto.
9796         * value.h (read_value_memory): Rename the `offset' parameter to
9797         `embedded_offset'.
9798
9799 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9800             Jan Kratochvil  <jan.kratochvil@redhat.com>
9801
9802         * memrange.c (compare_mem_ranges): Mention sort order in
9803         describing comment.
9804         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
9805         * tracepoint.c (traceframe_available_memory): Extend comment to
9806         mention what happens to RESULT when the target does not support
9807         the query.
9808
9809 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9810             Jan Kratochvil  <jan.kratochvil@redhat.com>
9811
9812         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9813         range.
9814
9815 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9816
9817         * value.c (value_bits_valid, value_bits_synthetic_pointer):
9818         No longer handle NULL values.
9819
9820 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9821
9822         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9823         * value.c: Include "exceptions.h".
9824         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9825         generic error.
9826         * cp-abi.c: Include gdb_assert.h.
9827         (baseclass_offset): Add `embedded_offset' and `val' parameters.
9828         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
9829         errors.
9830         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9831         parameters.  No longer returns -1 on error.
9832         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9833         `val' parameters.
9834         * cp-valprint.c: Include exceptions.h.
9835         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9836         the baseclass_offset.  Handle unavailable base classes.  Use
9837         val_print_invalid_address.
9838         * p-valprint.c: Include exceptions.h.
9839         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9840         when fetching the baseclass_offset.  No longer expect
9841         baseclass_offset returning -1.  Handle unavailable base classes.
9842         Use val_print_invalid_address.
9843         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9844         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
9845         `embedded_offset' and `val' parameters.  Adjust.
9846         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9847         parameter, and change its type to gdb_byte pointer.  Add
9848         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
9849         baseclass_offset returning -1.
9850         (value_dynamic_cast): Use value_contents_for_printing rather than
9851         value_contents.  Adjust.
9852         (search_struct_field): No longer expect baseclass_offset returning
9853         -1.
9854         (search_struct_method): If reading memory from the target is
9855         necessary, wrap it in a new value to pass to baseclass_offset.  No
9856         longer expect baseclass_offset returning -1.
9857         (find_method_list): No longer expect baseclass_offset returning
9858         -1.  Use value_contents_for_printing rather than value_contents.
9859         * valprint.c (val_print_invalid_address): New function.
9860         * valprint.h (val_print_invalid_address): Declare.
9861         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9862         and `val' parameters.  No longer expect baseclass_offset returning
9863         -1.  Adjust.
9864         * gnu-v2-abi.c: Include "exceptions.h".
9865         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9866         parameters.  Handle unavailable memory.  Recurse through
9867         gnuv2_baseclass_offset directly, rather than through
9868         baseclass_offset.  No longer returns -1 on not found, instead
9869         throw an error.
9870         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9871         `val' parameters.  Adjust.
9872
9873 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9874
9875         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9876         almost but not quite adjacent.
9877
9878 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9879
9880         * value.h (value_entirely_available): Declare.
9881         * value.c (value_entirely_available): New function.
9882         * c-valprint.c (c_value_print): Don't try fetching the pointer's
9883         real type if the pointer is unavailable.
9884
9885 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9886
9887         * valops.c (value_repeat): Use read_value_memory instead of
9888         read_memory.
9889
9890 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9891
9892         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9893         * value.c (value_contents_copy_raw, value_contents_copy): New
9894         functions.
9895         (value_primitive_field): Use value_contents_copy_raw instead of
9896         memcpy.
9897         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9898         memcpy.
9899         (value_array, value_slice): Ditto.
9900         * valarith.c (value_subscripted_rvalue): Use
9901         value_contents_copy_raw instead of memcpy.
9902
9903 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9904
9905         <unavailable> references.
9906
9907         * valops.c (get_value_at): Use value_from_contents_and_address,
9908         avoiding read_memory.
9909
9910 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9911
9912         * c-valprint.c (c_val_print): Print a string with unavailable
9913         contents as an array.
9914
9915 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9916
9917         * value.h (unpack_bits_as_long): Delete declaration.
9918         (unpack_value_bits_as_long): Declare.
9919         (unpack_value_field_as_long): Declare.
9920         (value_field_bitfield): Declare.
9921         * value.c (unpack_bits_as_long): Rename to...
9922         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
9923         value parameters.  Return the extracted result in a new output
9924         parameter.  If the value contents are unavailable, return false,
9925         otherwise return true.
9926         (unpack_value_bits_as_long): New.
9927         (unpack_field_as_long): Rename to...
9928         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
9929         Add embedded_offset and value parameters.  Return the extracted
9930         result in a new output parameter. If the value contents are
9931         unavailable, return false, otherwise return true.
9932         (unpack_value_field_as_long): New.
9933         (unpack_field_as_long_1): New.
9934         (unpack_field_as_long): Reimplement as wrapper around
9935         unpack_value_field_as_long_1.
9936         (value_field_bitfield): New function.
9937         * valops.c (value_fetch_lazy): When fetching a bitfield, use
9938         unpack_value_bits_as_long.  Mark the value as unavailable, if it
9939         is unavailable.
9940         * jv-valprint.c (java_print_value_fields): Use
9941         value_field_bitfield.
9942         * p-valprint.c (pascal_object_print_value_fields): Use
9943         value_field_bitfield.
9944         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9945
9946 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9947
9948         * value.c (get_internalvar_integer): Also return the int value of
9949         TYPE_CODE_INT INTERNALVAR_VALUE values.
9950         (set_internalvar): Don't special case TYPE_CODE_INT.
9951
9952 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9953
9954         * value.c (struct internalvar) <enum internalvar_kind>: Remove
9955         INTERNALVAR_POINTER.
9956         <pointer>: Delete.
9957         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9958         (set_internalvar): Remove special TYPE_CODE_PTR handling.
9959         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9960
9961 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9962
9963         * value.h (value_available_contents_eq): Declare.
9964         * value.c (find_first_range_overlap): New function.
9965         (value_available_contents_eq): New function.
9966         * valprint.c (val_print_array_elements): Use
9967         value_available_contents_eq.
9968         * ada-valprint.c (val_print_packed_array_elements): Use
9969         value_available_contents_eq.
9970         * jv-valprint.c (java_value_print): Use
9971         value_available_contents_eq.
9972
9973 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9974
9975         * target.c (target_read_live_memory): New function.
9976         (memory_xfer_live_readonly_partial): New.
9977         (memory_xfer_partial): If reading from a traceframe, fallback to
9978         reading unavailable read-only memory from read-only regions of
9979         live target memory.
9980         * tracepoint.c (disconnect_tracing): Adjust.
9981         (set_current_traceframe): New, factored out from
9982         set_traceframe_number.
9983         (set_traceframe_number): Reimplement to only change the traceframe
9984         number on the GDB side.
9985         (do_restore_current_traceframe_cleanup): Adjust.
9986         (make_cleanup_restore_traceframe_number): New.
9987         (cur_traceframe_number): New global.
9988         (tfile_open): Set cur_traceframe_number to no traceframe.
9989         (set_tfile_traceframe): New function.
9990         (tfile_trace_find): If looking up a traceframe using any method
9991         other than by number, make sure the current tfile traceframe
9992         matches gdb's current traceframe.  Update the current tfile
9993         traceframe if the lookup succeeded.
9994         (tfile_fetch_registers, tfile_xfer_partial)
9995         (tfile_get_trace_state_variable_value): Make sure the remote
9996         traceframe matches gdb's current traceframe.
9997         * remote.c (remote_traceframe_number): New global.
9998         (remote_open_1): Set it to -1.
9999         (set_remote_traceframe): New function.
10000         (remote_fetch_registers, remote_store_registers)
10001         (remote_xfer_memory, remote_xfer_partial)
10002         (remote_get_trace_state_variable_value): Make sure the remote
10003         traceframe matches gdb's current traceframe.
10004         (remote_trace_find): If looking up a traceframe using any method
10005         other than by number, make sure the current remote traceframe
10006         matches gdb's current traceframe.  Update the current remote
10007         traceframe if the lookup succeeded.
10008         * infrun.c (fetch_inferior_event): Adjust.
10009         * tracepoint.h (set_current_traceframe): Declare.
10010         (get_traceframe_number, set_traceframe_number): Add describing
10011         comments.
10012
10013 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10014
10015         Mark pieces of values as unavailable if the corresponding memory
10016         is unavailable.
10017
10018         * valops.c: Include tracepoint.h.
10019         (value_fetch_lazy): Use read_value_memory.
10020         (read_value_memory): New.
10021         * value.h (read_value_memory): Declare.
10022         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10023         * exec.c (section_table_available_memory): New function.
10024         * exec.h (section_table_available_memory): Declare.
10025
10026 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10027
10028         * Makefile.in (SFILES): Add memrange.c.
10029         (HFILES_NO_SRCDIR): Add memrange.h.
10030         (COMMON_OBS): Add memrange.o.
10031         * memrange.c: New file.
10032         * memrange.h: New file.
10033         * tracepoint.c: Include memrange.h.
10034         (struct mem_range): Delete.
10035         (mem_range_s): Delete.
10036         (traceframe_available_memory): New function.
10037         * tracepoint.h (traceframe_available_memory): Declare.
10038
10039 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10040
10041         * target.h (struct traceframe_info): Forward declare.
10042         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10043         (struct target_ops) <to_traceframe_info>: New field.
10044         (target_traceframe_info): New.
10045         * target.c (update_current_target): Inherit and default
10046         to_traceframe_info.
10047         * remote.c (PACKET_qXfer_traceframe_info): New.
10048         (remote_protocol_features): Register qXfer:traceframe-info:read.
10049         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10050         (remote_traceframe_info): New.
10051         (init_remote_ops): Install it.
10052         (_initialize_remote): Install "set/show remote traceframe-info"
10053         commands.
10054         * tracepoint.h (parse_traceframe_info): Declare.
10055         * tracepoint.c (struct mem_range): New.
10056         (mem_range_s): New typedef.
10057         (struct traceframe_info): New.
10058         (traceframe_info): New global.
10059         (free_traceframe_info): New function.
10060         (clear_traceframe_info): New function.
10061         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10062         info.
10063         (build_traceframe_info): New function.
10064         (tfile_traceframe_info): New function.
10065         (init_tfile_ops): Install tfile_traceframe_info.
10066         (traceframe_info_start_memory, free_result): New functions.
10067         (memory_attributes, traceframe_info_elements): New globals.
10068         (parse_traceframe_info, get_traceframe_info): New functions.
10069         * features/traceframe-info.dtd: New file.
10070         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10071
10072 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10073
10074         Base support for <unavailable> value contents.
10075
10076         * value.h (value_bytes_available): Declare.
10077         (mark_value_bytes_unavailable): Declare.
10078         * value.c (struct range): New struct.
10079         (range_s): New typedef.
10080         (ranges_overlap): New function.
10081         (range_lessthan): New function.
10082         (ranges_contain_p): New function.
10083         (struct value) <unavailable>: New field.
10084         (value_bytes_available): New function.
10085         (mark_value_bytes_unavailable): New function.
10086         (require_not_optimized_out): Constify parameter.
10087         (require_available): New function.
10088         (value_contents_all, value_contents): Require all bytes be
10089         available.
10090         (value_free): Free `unavailable'.
10091         (value_copy): Copy `unavailable'.
10092         * valprint.h (val_print_unavailable): Declare.
10093         * valprint.c (valprint_check_validity): Rename `offset' parameter
10094         to `embedded_offset'.  If printing a scalar, check whether the
10095         value chunk is available.
10096         (val_print_unavailable): New.
10097         (val_print_scalar_formatted): Check whether the value is
10098         available.
10099         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10100         pretty-printing unavailable values.
10101
10102 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10103
10104         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10105         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10106         variable param_type, initialize it.  Remove const/volatile qualifiers
10107         for language_cplus and !show_artificial.  Use param_type.
10108
10109 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10110
10111         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10112         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10113         * symtab.h (struct symtab) <next>: Comment extension.
10114
10115 2011-02-12  Yao Qi  <yao@codesourcery.com>
10116
10117         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10118
10119 2011-02-11  Yao Qi  <yao@codesourcery.com>
10120
10121         * common/Makefile.in: Add copyright header.
10122
10123 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10124
10125         * infrun.c (proceed): Move switching out and in of tfind mode from
10126         here ...
10127         (fetch_inferior_event): ... to here.
10128
10129 2011-02-11  Yao Qi  <yao@codesourcery.com>
10130
10131         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10132         libcommon.a.
10133         * configure.ac: Add common to sub dir.
10134         * configure: Regenerate.
10135
10136 2011-02-11  Yao Qi  <yao@codesourcery.com>
10137
10138         Build libcommon.a.
10139
10140         * common/Makefile.in: New.
10141         * common/configure.ac: New.
10142         * common/aclocal.m4: New.
10143         * common/configure: Generate.
10144
10145 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10146
10147         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10148         side of the parenthesis.
10149
10150         Merge from GCC:
10151         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10152         * vec.h (VEC_block_remove): Fix comment.
10153
10154 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10155
10156         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10157
10158 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10159
10160         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10161         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10162         psubd and paddd.
10163
10164 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10165
10166         PR 12361.
10167         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10168         phsubsw.
10169         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10170         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10171
10172 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10173
10174         * dwarf2read.c (read_subroutine_type): Set special calling
10175         convention flag for functions compiled by IBM XL C for OpenCL.
10176         * ppc-sysv-tdep.c: Include "dwarf2.h"
10177         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10178         calling convention.
10179         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10180         IBM OpenCL vector types calling convention.
10181         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10182         (ppc_sysv_abi_broken_return_value): Likewise.
10183         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10184         types calling convention.
10185         (ppc64_sysv_abi_return_value): Likewise.
10186         * spu-tdep.c: Include "dwarf2.h"
10187         (spu_return_value): Implement IBM OpenCL vector types calling
10188         convention.
10189
10190 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10191
10192         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10193         correct ABI for AltiVec vector arguments.
10194
10195 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10196
10197         * valprint.c (val_print): Extend comment.
10198         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10199         interface explanation to val_print.
10200         (ada_val_print_array): Adjust comment to current interface.
10201         (print_field_values): Adjust comment to current interface.
10202         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10203         explanation to val_print.
10204         * f-valprint.c (f_val_print): Ditto.
10205         * jv-valprint.c (java_val_print): Ditto.
10206         * m2-valprint.c (m2_val_print): Ditto.
10207         * p-valprint.c (pascal_val_print): Ditto.
10208
10209 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10210
10211         * breakpoint.c (parse_breakpoint_sals): Fix description.
10212
10213 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10214             Oguz Kayral <oguzkayral@gmail.com>
10215
10216         * python/py-inferior.c (python_on_normal_stop): New function.
10217         (python_on_resume): New function.
10218         (python_inferior_exit): New function.
10219         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10220         inferior_exit observers.
10221         * python/py-evtregistry.c: New file.
10222         * python/py-threadevent.c : New file.
10223         * python/py-event.c: New file.
10224         * python/py-evts.c: New file.
10225         * python/py-continueevent.c: New file.
10226         * python/py-bpevent.c: New file.
10227         * python/py-signalevent.c: New file.
10228         * python/py-exetiedevent.c: New file.
10229         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10230         Move struct breakpoint_object from here...
10231         * python/python-internal.h: ... to here.
10232         * python/py-event.h: New file.
10233         * python/py-events.h: New file.
10234         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10235         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10236         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10237         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10238         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10239         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10240         Add build rules for all the above.
10241
10242 2011-02-04  Tom Tromey  <tromey@redhat.com>
10243
10244         * dwarf2read.c (dwarf2_section_empty_p): New function.
10245         (dwarf2_read_section): Use dwarf2_section_empty_p.
10246         (dwarf2_section_size): New function.
10247         (dwarf2_get_section_info): Unconditionally read section.
10248         (dwarf2_read_index): Use dwarf2_section_empty_p.
10249         (partial_read_comp_unit_head): Use dwarf2_section_size.
10250         (dwarf2_symbol_mark_computed): Likewise.
10251
10252 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10253
10254         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10255
10256 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10257
10258         * mips-linux-tdep.c: Include xml-syscall.h.
10259         (mips_linux_get_syscall_number): New function.
10260         (mips_linux_init_abi): Add calls to
10261         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10262         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10263         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10264         * syscalls/mips-n32-linux.xml: New file.
10265         * syscalls/mips-n64-linux.xml: New file.
10266         * syscalls/mips-o32-linux.xml: New file.
10267
10268 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10269
10270         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10271         Complain about inverted range entries.
10272         (dwarf2_record_block_ranges): Likewise.
10273
10274 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10275
10276         Fix some typos.
10277         * breakpoint.c (update_watchpoint): Fix name of the
10278         update_global_location_list function.
10279         (print_one_breakpoint): Fix typo.
10280         (_initialize_breakpoint): Remove extra space in hbreak help
10281         string.
10282         * breakpoint.h (struct bp_location) <length>: Fix field
10283         description.
10284
10285 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10286
10287         * regcache.c (registers_changed_ptid): Don't explictly always
10288         clear `current_regcache'.  Only clear current_thread_ptid and
10289         current_thread_arch when PTID matches.  Only reinit the frame
10290         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10291         call to ...
10292         (registers_changed): ... here.
10293
10294 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10295
10296         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10297         starts with __stack_chk_guard as stack guard symbol.
10298
10299 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10300
10301         * disasm.c (compare_lines): Handle the end of sequence markers
10302         within the line table to better support disassembling over
10303         compilation unit boundaries.
10304
10305 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10306
10307         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10308         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10309         implementation even if no symbols are available.
10310         (thumb_analyze_prologue): Update call to skip_prologue_function.
10311         (arm_analyze_prologue): Likewise.
10312
10313 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10314
10315         * arm-tdep.c: Include "observer.h".
10316         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10317         (arm_exidx_data_key): New static variable.
10318         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10319         (struct arm_exidx_data): Likewise.
10320         (arm_exidx_data_free): New function.
10321         (arm_compare_exidx_entries): Likewise.
10322         (arm_obj_section_from_vma): Likewise.
10323         (arm_exidx_new_objfile): Likewise.
10324         (arm_find_exidx_entry): Likewise.
10325         (arm_exidx_fill_cache): Likewise.
10326         (arm_exidx_unwind_sniffer): Likewise.
10327         (arm_exidx_unwind): New global variable.
10328         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10329         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10330         observer.  Register arm_exidx_data_key as objfile data.
10331
10332 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10333
10334         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10335         due to accessing uninitialized variable.  Fix indentation.
10336
10337 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10338
10339         * c-valprint.c (c_value_print): When doing virtual base pointer
10340         adjustment, create a new value with adjusted contents rather than
10341         changing the contents of the value being printed (and getting it
10342         wrong).
10343
10344 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10345
10346         * xml-support.c (xml_find_attribute): New.
10347         (xinclude_start_include): Use it.
10348         * xml-support.h (xml_find_attribute): Declare.
10349         * memory-map.c (memory_map_start_memory)
10350         (memory_map_start_property): Use xml_find_attribute.
10351         * osdata.c (osdata_start_osdata, osdata_start_column): Use
10352         xml_find_attribute.
10353         * remote.c (start_thread): Use xml_find_attribute.
10354         * solib-target.c (library_list_start_segment)
10355         (library_list_start_section, library_list_start_library)
10356         (library_list_start_list): Use xml_find_attribute.
10357         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10358         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10359         (tdesc_start_field): Use xml_find_attribute.
10360
10361 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
10362
10363         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10364         (BUILD_OCL_VTYPES): Update.
10365
10366 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
10367
10368         * configure.ac: Work around non-GNU sed limitation when computing
10369         python version number.
10370         * configure: Regenerate.
10371
10372 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10373
10374         Fix debug printing of TYPE_INSTANCE.
10375         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10376         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10377
10378 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10379
10380         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10381         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10382         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10383         * ada-operator.inc: Rename the file to ...
10384         * ada-operator.def: ... here, wrap all the entries by macro OP.
10385         * expprint.c (op_name_standard): Remove all the entries.  Include
10386         "std-operator.def" instead.
10387         * expression.h (enum exp_opcode): Include "std-operator.def" and
10388         "ada-operator.def".  Move all the entries ...
10389         * std-operator.def: ... here, wrap all the entries by macro OP.
10390
10391 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10392
10393         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10394         * breakpoint.c (remove_jit_event_breakpoints): New function.
10395         * jit.c (jit_descriptor_addr): Delete.
10396         (registering_code): Delete.
10397         (clear_int): Delete.
10398         (jit_inferior_data): New variable.
10399         (struct jit_inferior_data): New type.
10400         (get_jit_inferior_data): New function.
10401         (jit_inferior_data_cleanup): New function.
10402         (jit_read_descriptor): Adjust.
10403         (jit_register_code): Adjust.
10404         (jit_breakpoint_re_set_internal): New function; move code here ...
10405         (jit_inferior_init): ... from here.
10406         (jit_breakpoint_re_set): Adjust.
10407         (jit_reset_inferior_data_and_breakpoints): New function.
10408         (jit_inferior_created_observer): Adjust.
10409         (jit_inferior_exit_hook): Adjust.
10410         (jit_executable_changed_observer): New function.
10411         (jit_event_handler): Adjust.
10412         (_initialize_jit): Adjust.
10413
10414 2011-01-31  Michael Snyder  <msnyder@vmware.com>
10415
10416         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10417         line.
10418
10419 2011-01-31  Tom Tromey  <tromey@redhat.com>
10420
10421         PR python/12216:
10422         * python/python.c (execute_gdb_command): Call
10423         prevent_dont_repeat.
10424         * top.c (suppress_dont_repeat): New global.
10425         (dont_repeat): Use it.
10426         (prevent_dont_repeat): New function.
10427         * command.h (prevent_dont_repeat): Declare.
10428
10429 2011-01-31  Tom Tromey  <tromey@redhat.com>
10430
10431         * infcmd.c (finish_backward): Use breakpoint_set_silent.
10432         * python/py-breakpoint.c (bppy_set_silent): Use
10433         breakpoint_set_silent.
10434         (bppy_set_thread): Use breakpoint_set_thread.
10435         (bppy_set_task): Use breakpoint_set_task.
10436         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10437         (breakpoint_set_task): Declare.
10438         (make_breakpoint_silent): Remove.
10439         * breakpoint.c (breakpoint_set_silent): New function.
10440         (breakpoint_set_thread): Likewise.
10441         (breakpoint_set_task): Likewise.
10442         (make_breakpoint_silent): Remove.
10443
10444 2011-01-31  Tom Tromey  <tromey@redhat.com>
10445
10446         * breakpoint.h (user_breakpoint_p): Declare.
10447         * breakpoint.c (user_breakpoint_p): New function.
10448         (breakpoint_1): Use it.
10449         (save_breakpoints): Likewise.
10450
10451 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10452
10453         * configure.ac: Add handling of Python distribution on Windows.
10454         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10455         sysconfig variables are not defined, then do not use them.
10456         On Windows, if LIBPL is not defined, then use prefix + '/libs'
10457         instead.  On Windows, return all paths using forward-slashes
10458         rather than backslashes.
10459
10460 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10461
10462         * configure.ac: Remove fallback behavior for building
10463         against Python.  Remove tweaking of Python include path.
10464         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10465         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
10466         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10467         Always restore CPPFLAGS and LIBS after linking test.
10468         * configure: Regenerated.
10469         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10470         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10471         * python/python-internal.h: Adjust includes of Python .h files.
10472
10473 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10474
10475         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10476         in error message.
10477
10478 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10479
10480         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10481         value test.
10482
10483 2011-01-31  Yao Qi  <yao@codesourcery.com>
10484
10485         * arm-linux-nat.c: Update calls to regcache_register_status
10486         instead of regcache_valid_p.
10487         * aix-thread.c: Likewise.
10488         * i386gnu-nat.c: Likewise.
10489
10490 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10491
10492         Fix crash.
10493         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10494         touching TYPE_FIELD_ARTIFICIAL.
10495
10496 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
10497
10498         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10499         Committers.
10500
10501 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10502
10503         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10504         selected, don't try iterating over the traceframe's blocks.
10505         (tfile_has_stack): If there's no traceframe selected, then there's
10506         no stack.
10507         (tfile_has_registers): If there's no traceframe selected, then
10508         there's no registers.
10509
10510 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10511
10512         * target.c (memory_xfer_partial): No need to restore shadows if we
10513         haven't read anything.
10514
10515 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10516
10517         * mips-tdep.c (mips_print_register): Use get_frame_register_value
10518         and val_print_scalar_formatted.
10519
10520 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
10521
10522         * tracepoint.c (tfile_read): New.
10523         (tfile_open): Use it.
10524         (tfile_get_traceframe_address): Use it.
10525         (tfile_trace_find): Use it.
10526         (walk_blocks_callback_func): New typedef.
10527         (match_blocktype): New function.
10528         (traceframe_walk_blocks): New function.
10529         (traceframe_find_block_type): New function.
10530         (tfile_fetch_registers, tfile_xfer_partial)
10531         (tfile_get_trace_state_variable_value): Use
10532         traceframe_find_block_type and tfile_read.
10533
10534 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
10535
10536         * remote-mips.c: Add internationalization mark ups.  Remove
10537         trailing \n from already marked up strings.
10538
10539 2011-01-26  Tom Tromey  <tromey@redhat.com>
10540
10541         * python/py-prettyprint.c (print_string_repr): Clear
10542         'addressprint' option when calling val_print_string.
10543         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
10544         option when calling val_print_string.
10545
10546 2011-01-26  Tom Tromey  <tromey@redhat.com>
10547
10548         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10549         GDB_PY_LL_ARG.
10550         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10551         macros.
10552         (gdb_py_longest, gdb_py_ulongest): New typedefs.
10553         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10554         (gdb_py_long_as_ulongest): New defines.
10555         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10556         (gdb_py_int_as_long): Declare.
10557         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10558         GDB_PY_LL_ARG, gdb_py_object_from_longest.
10559         (valpy_long): Add comment.
10560         * python/py-utils.c (get_addr_from_python): Use
10561         gdb_py_long_as_ulongest.  Handle overflow properly.
10562         (gdb_py_object_from_longest): New function.
10563         (gdb_py_object_from_ulongest): Likewise.
10564         (gdb_py_int_as_long): Likewise.
10565         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10566         * python/py-symtab.c (salpy_get_pc): Use
10567         gdb_py_long_from_ulongest.
10568         (salpy_get_line): Use PyInt_FromLong.
10569         * python/py-param.c (set_parameter_value): Use
10570         gdb_py_int_as_long.
10571         * python/py-lazy-string.c (stpy_get_address): Use
10572         gdb_py_long_from_ulongest.
10573         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10574         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10575         * python/py-breakpoint.c (bppy_set_thread): Use
10576         gdb_py_int_as_long.
10577         (bppy_set_task): Likewise.
10578         (bppy_set_ignore_count): Likewise.
10579         (bppy_set_hit_count): Likewise.
10580         * python/py-block.c (blpy_get_start): Use
10581         gdb_py_object_from_ulongest.
10582         (blpy_get_end): Likewise.
10583         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10584
10585 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
10586
10587         PR/symtab 11766:
10588         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10589         * gdb/solib.c (solib_read_symbols): Check for addr_low in
10590         equality test for objfile, initialize addr_low if needed.
10591
10592 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10593
10594         * tui/tui-regs.c (tui_register_format): Remove dead code.
10595
10596 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10597
10598         * printcmd.c (print_formatted): Use val_print_scalar_formatted
10599         instead of print_scalar_formatted.
10600         (print_scalar_formatted): Don't handle 's' format strings here,
10601         and add an assertion that we never see such format here.
10602         * valprint.h (val_print_scalar_formatted): Declare.
10603         * valprint.c (val_print_scalar_formatted): New.
10604         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10605         instead of print_scalar_formatted.
10606         * jv-valprint.c (java_val_print): Ditto.
10607         * p-valprint.c (pascal_val_print): Ditto.
10608         * ada-valprint.c (ada_val_print_1): Ditto.
10609         * f-valprint.c (f_val_print): Ditto.
10610         * infcmd.c (registers_info): Ditto.
10611         * m2-valprint.c (m2_val_print): Ditto.
10612
10613 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10614
10615         * m2-valprint.c (print_unbounded_array): Pass
10616         value_contents_for_printing rather than value_contents, to
10617         m2_print_array_contents.  Also pass in the value.
10618
10619 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10620
10621         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10622         (save_gdb_index_command): Switch to .gdb_index version 4.
10623
10624 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10625
10626         * mi/mi-main.c (get_register): Use get_frame_register_value rather
10627         than frame_register, and always pass a valid value to val_print.
10628
10629 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10630
10631         Centralize printing "<optimized out>".
10632
10633         * valprint.h (val_print_optimized_out): Declare.
10634         * cp-valprint.c (cp_print_value_fields): Use
10635         val_print_optimized_out.
10636         * jv-valprint.c (java_print_value_fields): Ditto.
10637         * p-valprint.c (pascal_object_print_value_fields): Ditto.
10638         * printcmd.c (print_formatted): Ditto.
10639         * valprint.c (valprint_check_validity): Ditto.
10640         (value_check_printable): Ditto.
10641         (val_print_optimized_out): New.
10642
10643 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10644
10645         * infcmd.c (default_print_registers_info): Allocate values so to
10646         never pass a NULL value to val_print.
10647
10648 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10649
10650         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10651         boolean.  Make sure to always pass a value that matches the
10652         contents buffer to callees.  Preserve `address' for following
10653         iterations.
10654         * value.c (value_contents_for_printing_const): New.
10655         (value_address): Constify value argument.
10656         * value.h (value_contents_for_printing_const): Declare.
10657         (value_address): Constify value argument.
10658
10659 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10660
10661         * regcache.c (struct regcache_descr): Rename
10662         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10663         and sizeof_cooked_register_valid_p to
10664         sizeof_cooked_register_status.
10665         (init_regcache_descr): Adjust.
10666         (struct regcache): Rename register_valid_p field to
10667         register_status.
10668         (regcache_xmalloc_1, regcache_xfree, regcache_save)
10669         (do_cooked_read): Adjust.
10670         (regcache_valid_p): Rename to ...
10671         (regcache_register_status): ... this.  Adjust.
10672         (regcache_invalidate): Adjust.
10673         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10674         Adjust.
10675         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
10676         as unavailable, not valid.
10677         (regcache_dump): Adjust.
10678         * regcache.h (enum register_status): New.
10679         (regcache_register_status): Declare.
10680         (regcache_invalidate): Delete declaration.
10681         * corelow.c (get_core_registers): Adjust.
10682         * tracepoint.c (tfile_fetch_registers): Adjust.
10683         * trad-frame.c (REG_VALUE): Rename to ...
10684         (TF_REG_VALUE): ... this.
10685         (REG_UNKNOWN): Rename to ...
10686         (TF_REG_UNKNOWN): ... this.
10687         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10688         * mi/mi-main.c (register_changed_p): Adjust.
10689
10690 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10691
10692         * regcache.c (struct regcache_descr): Remove outdated comment.
10693         (init_regcache_descr): Remove sizeof_raw_register_valid_p
10694         overallocate hack.
10695         (regcache_xmalloc): Rename to ...
10696         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
10697         Allocate the regcache type accordingly.
10698         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10699         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
10700         cooked registers, not raw.
10701         (regcache_dup_no_passthrough): Delete.
10702         (get_thread_arch_regcache): Use regcache_xmalloc_1.
10703         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10704         mention obsolete write_register_bytes.
10705         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10706
10707 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10708
10709         Stop remote_read_bytes from handling partial reads itself.
10710
10711         * remote-fileio.c: Include target.h.
10712         (remote_fileio_write_bytes): Delete.
10713         (remote_fileio_func_open, remote_fileio_func_write)
10714         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10715         target_read_memory.
10716         (remote_fileio_func_stat): Use target_read_memory and
10717         target_write_memory.
10718         (remote_fileio_func_gettimeofday): Use target_write_memory.
10719         (remote_fileio_func_system): Use target_read_memory.
10720         * remote.c (remote_write_bytes): Make it static.
10721         (remote_read_bytes): Don't handle partial reads here.
10722         * remote.h (remote_read_bytes): Delete declaration.
10723
10724 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10725
10726         Simplify XML parsing a bit.
10727
10728         * xml-support.h (gdb_xml_parse_quick): Declare.
10729         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10730         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10731         parameter.
10732         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10733         gdb_xml_create_parser_and_cleanup_1.
10734         (gdb_xml_parse_quick): New.
10735         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10736         * osdata.c (osdata_parse): Ditto.
10737         * remote.c (remote_threads_info): Ditto.
10738         * solib-target.c (solib_target_parse_libraries): Ditto.
10739         * xml-syscall.c (syscall_parse_xml): Ditto.
10740         * xml-tdesc.c (tdesc_parse_xml): Ditto.
10741
10742 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
10743
10744         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10745         with remote-mips.o added to gdb_target_obs.
10746         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10747
10748 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
10749
10750         * ada-valprint.c (val_print_packed_array_elements): Pass the
10751         correct struct value to val_print.
10752         (ada_val_print_1): Ditto.
10753
10754 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
10755
10756         Don't lose embedded_offset in printing routines throughout.
10757
10758         * valprint.h (val_print_array_elements): Change prototype.
10759         * valprint.c (val_print_array_elements): Add `embedded_offset'
10760         parameter, and adjust to pass it down to val_print, while passing
10761         `valaddr' or `address' unmodified.  Take embedded_offset into
10762         account when checking repetitions.
10763         * c-valprint.c (c_val_print): Pass embedded_offset to
10764         val_print_array_elements instead of adjusting `valaddr' and
10765         `address'.
10766         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10767         embedded_offset to val_print_array_elements instead of adjusting
10768         `valaddr'.
10769         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10770         * p-valprint.c (pascal_val_print): Pass embedded_offset to
10771         val_print_array_elements and pascal_object_print_value_fields
10772         instead of adjusting `valaddr'.
10773         (pascal_object_print_value_fields): Add `offset' parameter, and
10774         adjust to use it.
10775         (pascal_object_print_value): Add `offset' parameter, and adjust to
10776         use it.
10777         (pascal_object_print_static_field): Use
10778         value_contents_for_printing/value_embedded_offset, rather than
10779         value_contents.
10780         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10781         parameter, and adjust to use it.  Use
10782         value_contents_for_printing/value_embedded_offset, rather than
10783         value_contents.
10784         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10785         (ada_val_print_array): Add `offset' parameter, and adjust to use
10786         it.
10787         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10788         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
10789         Instead work with offsets.  Use
10790         value_contents_for_printing/value_embedded_offset, rather than
10791         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
10792         and use value_from_pointer to extract a target pointer, rather
10793         than value_from_longest.
10794         (print_variant_part): Add `offset' parameter.  Replace
10795         `outer_valaddr' parameter by a new `outer_offset' parameter.
10796         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10797         (ada_value_print): Use
10798         value_contents_for_printing/value_embedded_offset, rather than
10799         value_contents.
10800         (print_record): Add `offset' parameter, and adjust to pass it
10801         down.
10802         (print_field_values): Add `offset' parameter.  Replace
10803         `outer_valaddr' parameter by a new `outer_offset' parameter.
10804         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10805         Use value_contents_for_printing/value_embedded_offset, rather than
10806         value_contents.
10807         * d-valprint.c (dynamic_array_type): Use
10808         value_contents_for_printing/value_embedded_offset, rather than
10809         value_contents.
10810         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10811         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10812         (java_print_value_fields): Take `offset' into account.  Don't
10813         re-adjust `valaddr'.  Instead pass down adjusted offsets.
10814         (java_val_print): Take `embedded_offset' into account.  Pass it to
10815         java_print_value_fields.
10816         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10817         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
10818         down adjusted offsets.
10819         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
10820         (f_val_print): Take `embedded_offset' into account.
10821
10822 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
10823
10824         * inflow.c: Include "gdbcmd.h".
10825         (interactive_mode): New static global, moved here from top.c.
10826         (show_interactive_mode): New function, moved here from top.c.
10827         use gdb_has_a_terminal instead of input_from_terminal_p to
10828         determine the current mode.
10829         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10830         setting.
10831         (_initialize_inflow): Add the "set/show interactive-mode"
10832         commands.  Moved here from top.c, after having adjusted slightly
10833         the help text.
10834         * top.c (interactive_mode, show_interactive_mode): Delete, moved
10835         to inflow.c.
10836         (input_from_terminal_p): Remove handling of "interactive-mode"
10837         setting, moved to infow.c.
10838         (init_main): Remove creation of the "set/show interactive-mode"
10839         commands, moved to inflow.c.
10840
10841 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
10842
10843         * NEWS: Add entry for native ia64-hpux support.
10844
10845 2011-01-19  Tom Tromey  <tromey@redhat.com>
10846
10847         PR mi/8618:
10848         * thread.c (free_thread): Free 'name'.
10849         (print_thread_info): Emit thread name.  Change CLI output.
10850         (thread_name_command): New function.
10851         (do_captured_thread_select): Emit newline.
10852         (_initialize_thread): Register 'thread name' command.
10853         * target.h (struct target_ops) <to_thread_name>: New field.
10854         (target_thread_name): New macro.
10855         * target.c (update_current_target): Handle to_thread_name.
10856         * python/py-infthread.c (thpy_get_name): New function.
10857         (thpy_set_name): Likewise.
10858         (thread_object_getset): Add "name".
10859         * linux-nat.c (linux_nat_thread_name): New function.
10860         (linux_nat_add_target): Set to_thread_name.
10861         * gdbthread.h (struct thread_info) <name>: New field.
10862
10863 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
10864
10865         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10866         (ada_val_print_1): Likewise.
10867
10868 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
10869
10870         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10871         upper limit address is not greater than the function end address
10872         when the upper limit could not be computed using the debugging
10873         info.
10874
10875 2011-01-17  Tom Tromey  <tromey@redhat.com>
10876
10877         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
10878         get_regcomp_error.
10879         * utils.c: Include gdb_regex.h.
10880         (do_regfree_cleanup): New function.
10881         (make_regfree_cleanup): Likewise.
10882         (get_regcomp_error): Likewise.
10883         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10884
10885 2011-01-17  Tom Tromey  <tromey@redhat.com>
10886
10887         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
10888         re_compile_fastmap.
10889
10890 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
10891
10892         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10893         for internal variables.
10894         (last_was_structop): New static variable.
10895         (COMPLETE): New token.
10896         (field_exp): New rule to group all '.' suffix handling.
10897         Add mark_struct_expression calls when approriate to be able
10898         to correctly find fields for completion.
10899         (yylex): Adapt to handle field completion and set INTVAR when
10900         required.
10901
10902 2011-01-14  Yao Qi  <yao@codesourcery.com>
10903
10904         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10905         save_reggroup, restore_reggroup and all_reggroup.
10906
10907 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
10908
10909         * ada-valprint. (ada_printchar): Use the correct type length
10910         in call to ada_emit_char.
10911         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10912
10913 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10914
10915         * solib-som.h (hpux_major_release): Declare variable here.
10916         * solib-som.c:  Remove <sys/utsname.h> header.
10917         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10918         (hpux_major_release): Make global, change default value to
10919         DEFAULT_HPUX_MAJOR_RELEASE.
10920         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10921         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10922         Add "solib-som.h" header.
10923         (set_hpux_major_release): New function.
10924         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10925
10926 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
10927
10928         * configure.tgt (*-*-uclinux*): Match more Linux os targets
10929
10930 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
10931
10932         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10933         new-line at end of warning message.
10934         (ia64_hpux_store_register): Remove trailing new-line at end of
10935         error message.
10936         * ia64-hpux-tdep.c: Rephrase comment.
10937         * solib-ia64-hpux.c (struct dld_info): Change type of field
10938         dld_flags from "long long" to ULONGEST.
10939
10940 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
10941
10942         * target.h (deprecated_child_ops): Delete declaration.
10943         * target.c (deprecated_child_ops): Delete definition.
10944
10945 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
10946
10947         * Makefile.in (hpux-thread.o): Delete rule.
10948         * configure.ac: Don't check for HPUX DCE threads support.
10949         * configure, config.in: Regenerate.
10950         * hppa-hpux-nat.c (child_suppress_run): Delete.
10951         (hppa_hpux_child_can_run): Delete.
10952         (_initialize_hppa_hpux_nat): Don't override to_can_run.
10953         * hpux-thread.c: Delete.
10954
10955 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10956
10957         * hpux-thread.c (hpux_pid_to_str): Delete.
10958
10959 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10960
10961         * ada-valprint.c (ada_emit_char): Remove strange code.
10962         Check that c is <= UCHAR_MAX before passing it to isascii.
10963         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10964
10965 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10966
10967         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10968         to the case where instream is stdin.
10969
10970 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10971
10972         * ia64-tdep.h (struct regcache): Forward declare.
10973         (struct ia64_infcall_ops): New struct type.
10974         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10975         and "infcall_ops".
10976         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10977         Renames ia64_find_global_pointer.
10978         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10979         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10980         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10981         methods.
10982         (ia64_infcall_ops): New static global constant.
10983         (ia64_gdbarch_init): Set tdep->infcall_ops.
10984         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10985         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10986         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10987         (ia64_hpux_dummy_code): New static global constant.
10988         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10989         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10990         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10991         New function.
10992         (ia64_hpux_infcall_ops): New static global constant.
10993         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10994         for inferior function calls to work properly on ia64-hpux.
10995
10996 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10997
10998         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10999         * ia64-tdep.h (struct frame_info): forward declaration.
11000         (struct gdbarch_tdep): Add field size_of_register_frame.
11001         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11002         to determine the size of the register frame.
11003         (ia64_size_of_register_frame): New function.
11004         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11005         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11006         (IA64_HPUX_UREG_REASON): New macro.
11007         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11008         New functions.
11009         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11010         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11011         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11012         objects.
11013
11014 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11015
11016         Add support for ia64-hpux.
11017         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11018         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11019
11020         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11021         floatformats.
11022         * configure.tgt: Add handling for ia64-hpux targets.
11023         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11024         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11025         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11026
11027 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11028
11029         [ttrace] Compute thread list immediately after attach.
11030         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11031         New subprogram.
11032         (inf_ttrace_attach): Use it.
11033
11034 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11035
11036         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11037         if we could not determine the frame's function address.  Instead,
11038         use the frame's PC, and then continue.
11039
11040 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11041
11042         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11043         not already defined.
11044
11045 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11046
11047         * ia64-tdep.c (ia64_struct_type_p): New function.
11048         (ia64_extract_return_value): Handle integral values that are
11049         less than 8 bytes long.
11050         (ia64_push_dummy_call): Likewise.
11051
11052 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11053
11054         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11055         floatformat_ia64_ext.
11056         (floatformat_ia64_ext_big): New static const.
11057         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11058
11059 2011-01-12  Tom Tromey  <tromey@redhat.com>
11060
11061         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11062         messages.
11063         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11064         (mi_cmd_thread_list_ids): Likewise.
11065         (mi_cmd_data_list_changed_registers): Likewise.
11066         (mi_cmd_data_list_register_values): Likewise.
11067         (mi_cmd_data_write_register_values): Likewise.
11068         (mi_cmd_data_evaluate_expression): Likewise.
11069         (mi_cmd_data_read_memory): Likewise.
11070         (mi_cmd_data_read_memory_bytes): Likewise.
11071         (mi_cmd_data_write_memory): Likewise.
11072         (mi_cmd_enable_timings): Likewise.
11073         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11074         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11075         (mi_cmd_var_delete): Likewise.
11076         (mi_cmd_var_set_format): Likewise.
11077         (mi_cmd_var_show_format): Likewise.
11078         (mi_cmd_var_info_num_children): Likewise.
11079         (mi_cmd_var_list_children): Likewise.
11080         (mi_cmd_var_info_type): Likewise.
11081         (mi_cmd_var_info_expression): Likewise.
11082         (mi_cmd_var_show_attributes): Likewise.
11083         (mi_cmd_var_assign): Likewise.
11084         (mi_cmd_var_update): Likewise.
11085         (mi_cmd_enable_pretty_printing): Likewise.
11086         (mi_cmd_var_set_update_range): Likewise.
11087         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11088         messages.
11089         (mi_cmd_target_file_put): Likewise.
11090         (mi_cmd_target_file_delete): Likewise.
11091         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11092         messages.
11093         (mi_cmd_stack_info_depth): Likewise.
11094         (mi_cmd_stack_list_locals): Likewise.
11095         (mi_cmd_stack_list_args): Likewise.
11096         (mi_cmd_stack_select_frame): Likewise.
11097         (mi_cmd_stack_select_frame): Likewise.
11098         (mi_cmd_stack_info_frame): Likewise.
11099         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11100         messages.
11101         (mi_cmd_file_list_exec_source_files): Likewise.
11102         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11103         (mi_cmd_env_cd): Likewise.
11104         (mi_cmd_env_path): Likewise.
11105         (mi_cmd_env_dir): Likewise.
11106         (mi_cmd_inferior_tty_show): Likewise.
11107         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11108         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11109         (mi_cmd_break_watch): Likewise.
11110
11111 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11112
11113         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11114         (ppc_linux_insert_hw_breakpoint): Likewise.
11115         (ppc_linux_remove_hw_breakpoint): Likewise.
11116         (ppc_linux_insert_watchpoint): Likewise.
11117
11118 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11119             Jan Kratochvil  <jan.kratochvil@redhat.com>
11120
11121         PR fortran/11104 and DWARF unbound arrays detection.
11122         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11123         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11124         unspecified upper bound.
11125         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11126         variables array_size_array, tmp_type and offset_item.  New variable
11127         array.  Remove call to f77_get_upperbound.  New variables array_type
11128         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11129         the final call to deprecated_set_value_type.
11130
11131 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11132
11133         Make value allocations more lazy.
11134         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11135         instead of allocate_value and set_value_lazy when possible.
11136         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11137         instead of allocate_value and set_value_lazy.
11138         * findvar.c (value_of_register_lazy): Likewise.
11139         (read_var_value): Remove V preallocation, call just check_typedef in
11140         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11141         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11142         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11143         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11144         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11145         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11146         the end, remove set_value_lazy there.
11147         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11148         instead of allocate_value and set_value_lazy when possible.
11149         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11150         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11151         of allocate_value and set_value_lazy.
11152         (value_from_contents_and_address): Use allocate_value_lazy instead of
11153         allocate_value and set_value_lazy when possible.
11154
11155 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11156
11157         * disasm.c (dump_insns): Support dumping opcodes for MI.
11158         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11159         dumping of instruction opcodes.
11160
11161 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11162
11163         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11164         appropiately.
11165
11166 2011-01-11  Tom Tromey  <tromey@redhat.com>
11167
11168         * thread.c (do_captured_thread_select): Emit newline before
11169         printing frame.
11170
11171 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11172
11173         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11174         * score-tdep.c: Ditto.
11175         * score-tdep.h: Ditto.
11176         * ser-base.c: Ditto.
11177         * ser-go32.c: Ditto.
11178         * serial.c: Ditto.
11179         * serial.h: Ditto.
11180         * ser-mingw.c: Ditto.
11181         * ser-pipe.c: Ditto.
11182         * ser-tcp.c: Ditto.
11183         * ser-unix.c: Ditto.
11184         * sh64-tdep.c: Ditto.
11185         * shnbsd-nat.c: Ditto.
11186         * sh-tdep.c: Ditto.
11187         * sh-tdep.h: Ditto.
11188         * solib.c: Ditto.
11189         * solib-darwin.c: Ditto.
11190         * solib-frv.c: Ditto.
11191         * solib.h: Ditto.
11192         * solib-irix.c: Ditto.
11193         * solib-osf.c: Ditto.
11194         * solib-pa64.c: Ditto.
11195         * solib-som.c: Ditto.
11196         * solib-spu.c: Ditto.
11197         * solib-sunos.c: Ditto.
11198         * solib-svr4.c: Ditto.
11199         * solist.h: Ditto.
11200         * sol-thread.c: Ditto.
11201         * somread.c: Ditto.
11202         * source.c: Ditto.
11203         * source.h: Ditto.
11204         * sparc64-linux-tdep.c: Ditto.
11205         * sparc64-tdep.c: Ditto.
11206         * sparc-linux-nat.c: Ditto.
11207         * sparc-linux-tdep.c: Ditto.
11208         * sparc-sol2-nat.c: Ditto.
11209         * sparc-sol2-tdep.c: Ditto.
11210         * sparc-tdep.c: Ditto.
11211         * sparc-tdep.h: Ditto.
11212         * spu-tdep.c: Ditto.
11213         * stabsread.c: Ditto.
11214         * stabsread.h: Ditto.
11215         * stack.c: Ditto.
11216         * symfile.c: Ditto.
11217         * symfile.h: Ditto.
11218         * symmisc.c: Ditto.
11219         * symtab.c: Ditto.
11220         * symtab.h: Ditto.
11221         * target.c: Ditto.
11222         * target-descriptions.c: Ditto.
11223         * target-descriptions.h: Ditto.
11224         * target.h: Ditto.
11225         * target-memory.c: Ditto.
11226         * terminal.h: Ditto.
11227         * thread.c: Ditto.
11228         * top.c: Ditto.
11229         * tracepoint.c: Ditto.
11230         * tracepoint.h: Ditto.
11231         * trad-frame.h: Ditto.
11232         * typeprint.c: Ditto.
11233
11234 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11235
11236         * ui-file.c: Comment cleanup, mostly periods and spaces.
11237         * ui-file.h: Ditto.
11238         * ui-out.c: Ditto.
11239         * ui-out.h: Ditto.
11240         * utils.c: Ditto.
11241         * v850-tdep.c: Ditto.
11242         * valarith.c: Ditto.
11243         * valops.c: Ditto.
11244         * valprint.c: Ditto.
11245         * valprint.h: Ditto.
11246         * value.c: Ditto.
11247         * value.h: Ditto.
11248         * varobj.c: Ditto.
11249         * varobj.h: Ditto.
11250         * vax-tdep.c: Ditto.
11251         * vec.c: Ditto.
11252         * vec.h: Ditto.
11253         * version.h: Ditto.
11254         * windows-nat.c: Ditto.
11255         * windows-tdep.c: Ditto.
11256         * xcoffread.c: Ditto.
11257         * xcoffsolib.c: Ditto.
11258         * xml-support.c: Ditto.
11259         * xstormy16-tdep.c: Ditto.
11260         * xtensa-tdep.c: Ditto.
11261         * xtensa-tdep.h: Ditto.
11262
11263 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11264
11265         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11266         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11267
11268 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11269             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11270
11271         Implement support for PowerPC BookE ranged watchpoints.
11272         * breakpoint.h
11273         (struct breakpoint_ops) <resources_needed>: New method.
11274         Initialize to NULL in all existing breakpoint_ops instances.
11275         (struct breakpoint) <exact>: New field.
11276         (target_exact_watchpoints): Declare external global.
11277         * breakpoint.c (target_exact_watchpoints): New global flag.
11278         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11279         b->enable_state to bp_enabled before calling
11280         hw_watchpoint_used_count.
11281         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11282         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11283         if available.
11284         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11285         if the watchpoint is exact.
11286         (resources_needed_watchpoint): New function.
11287         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11288         (watch_command_1): Set b->exact if the user asked for an exact
11289         watchpoint and one can be set.
11290         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11291         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11292         the user asks for an exact watchpoint and one can be set.  Return
11293         number of needed debug registers to watch the expression.
11294         * gdbtypes.c (is_scalar_type): New function, based on
11295         valprint.c:scalar_type_p.
11296         (is_scalar_type_recursive): New function.
11297         * gdbtypes.h (is_scalar_type_recursive): Declare.
11298         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11299         handle regions when ranged watchpoints are available.
11300         (create_watchpoint_request): New function.
11301         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11302         create_watchpoint_request.
11303         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11304         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11305         `set powerpc' and `show powerpc' commands.
11306         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11307         Mention documentation comment in the target macro.
11308         (target_region_ok_for_hw_watchpoint): Document return value.
11309
11310 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11311
11312         * breakpoint.c (update_watchpoint): Decide on using a software or
11313         hardware watchpoint after the bp_locations are created.
11314
11315 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11316
11317         Convert hardware watchpoints to use breakpoint_ops.
11318         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11319         <insert_location>: ... this.  Return int instead of void.
11320         Accept pointer to struct bp_location instead of pointer to
11321         struct breakpoint.  Adapt all implementations.
11322         (breakpoint_ops) <remove>: Rename to...
11323         <remove_location>: ... this.  Accept pointer to struct bp_location
11324         instead of pointer to struct breakpoint.  Adapt all implementations.
11325         * breakpoint.c (insert_catchpoint): Delete function.
11326         (insert_bp_location): Call the watchpoint or catchpoint's
11327         breakpoint_ops.insert method.
11328         (remove_breakpoint_1): Call the watchpoint or catchpoint's
11329         breakpoint_ops.remove method.
11330         (insert_watchpoint, remove_watchpoint): New functions.
11331         (watchpoint_breakpoint_ops): New structure.
11332         (watch_command_1): Initialize the OPS field.
11333         * inf-child.c (inf_child_insert_fork_catchpoint)
11334         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11335         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11336         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11337         Delete functions.
11338         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11339         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11340         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11341         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11342         * target.c (update_current_target): Change default implementation of
11343         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11344         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11345         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11346         to_set_syscall_catchpoint to return_one.
11347         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11348         (debug_to_insert_exec_catchpoint): Report return value.
11349         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11350         (to_insert_exec_catchpoint): Change declaration to return int instead
11351         of void.
11352
11353 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11354
11355         * arm-tdep.c: Internationalization.
11356         * c-lang.c: Ditto.
11357         * charset.c: Ditto.
11358         * fork-child.c: Ditto.
11359         * nto-procfs.c: Ditto.
11360         * ppc-sysv-tdep.c: Ditto.
11361         * procfs.c: Ditto.
11362         * remote-mips.c: Ditto.
11363         * remote.c: Ditto.
11364         * rs6000-nat.c: Ditto.
11365         * rs6000-tdep.c: Ditto.
11366         * target.c: Ditto.
11367         * valops.c: Ditto.
11368         * value.c: Ditto.
11369         * xml-support.c: Ditto.
11370         * mi/mi-cmd-break.c: Ditto.
11371         * mi/mi-cmd-var.c: Ditto.
11372         * mi/mi-interp.c: Ditto.
11373         * mi/mi-main.c: Ditto.
11374
11375 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
11376
11377         * remote-sim.c (gdbsim_store_register): Update API to
11378         sim_store_register to check more error conditions.
11379
11380 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11381
11382         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11383         * nto-tdep.c: Ditto.
11384         * nto-tdep.h: Ditto.
11385         * objc-exp.y: Ditto.
11386         * objc-lang.c: Ditto.
11387         * objfiles.c: Ditto.
11388         * objfiles.h: Ditto.
11389         * observer.c: Ditto.
11390         * opencl-lang.c: Ditto.
11391         * osabi.c: Ditto.
11392         * parse.c: Ditto.
11393         * parser-defs.h: Ditto.
11394         * p-exp.y: Ditto.
11395         * p-lang.c: Ditto.
11396         * posix-hdep.c: Ditto.
11397         * ppcbug-rom.c: Ditto.
11398         * ppc-linux-nat.c: Ditto.
11399         * ppc-linux-tdep.c: Ditto.
11400         * ppc-linux-tdep.h: Ditto.
11401         * ppcnbsd-tdep.c: Ditto.
11402         * ppcobsd-tdep.c: Ditto.
11403         * ppcobsd-tdep.h: Ditto.
11404         * ppc-sysv-tdep.c: Ditto.
11405         * ppc-tdep.h: Ditto.
11406         * printcmd.c: Ditto.
11407         * proc-abi.c: Ditto.
11408         * proc-flags.c: Ditto.
11409         * procfs.c: Ditto.
11410         * proc-utils.h: Ditto.
11411         * progspace.h: Ditto.
11412         * prologue-value.c: Ditto.
11413         * prologue-value.h: Ditto.
11414         * psympriv.h: Ditto.
11415         * psymtab.c: Ditto.
11416         * p-typeprint.c: Ditto.
11417         * p-valprint.c: Ditto.
11418         * ravenscar-sparc-thread.c: Ditto.
11419         * ravenscar-thread.c: Ditto.
11420         * ravenscar-thread.h: Ditto.
11421         * record.c: Ditto.
11422         * regcache.c: Ditto.
11423         * regcache.h: Ditto.
11424         * remote.c: Ditto.
11425         * remote-fileio.c: Ditto.
11426         * remote-fileio.h: Ditto.
11427         * remote.h: Ditto.
11428         * remote-m32r-sdi.c: Ditto.
11429         * remote-mips.c: Ditto.
11430         * remote-sim.c: Ditto.
11431         * rs6000-aix-tdep.c: Ditto.
11432         * rs6000-nat.c: Ditto.
11433         * rs6000-tdep.c: Ditto.
11434
11435 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11436
11437         * charset.c (validate): Internationalization.
11438         * coffread.c (read_one_sym): Ditto.
11439         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11440         * h8300-tdep.c (H8300_extract_return_value): Ditto.
11441         * inflow.c (new_tty): Ditto.
11442         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11443         * m32c-tdep.c (m32c_return_value): Ditto.
11444         * mep-tdep.c (mep_store_return_value): Ditto.
11445         * score-tdep.c (score7_fetch_insn): Ditto.
11446         * ser-mingw.c (pipe_windows_open): Ditto.
11447         * sh64-tdep.c (sh64_extract_return_value): Ditto.
11448         * spu-tdep.c (spu_register_type): Ditto.
11449         * tracepoint.c (trace_find_command): Ditto.
11450         * valarith.c (value_pos): Ditto.
11451
11452 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
11453
11454         * ada-valprint.c (printstr): Minor comment reformatting.
11455
11456 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11457
11458         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11459         markup.
11460
11461 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11462
11463         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11464         * hppa-hpux-tdep.c: Ditto.
11465         * hppa-linux-nat.c: Ditto.
11466         * hppa-linux-tdep.c: Ditto.
11467         * hppanbsd-tdep.c: Ditto.
11468         * hppa-tdep.c: Ditto.
11469         * hppa-tdep.h: Ditto.
11470         * hpux-thread.c: Ditto.
11471         * i386-cygwin-tdep.c: Ditto.
11472         * i386-darwin-nat.c: Ditto.
11473         * i386gnu-nat.c: Ditto.
11474         * i386-linux-nat.c: Ditto.
11475         * i386-linux-tdep.c: Ditto.
11476         * i386-nat.c: Ditto.
11477         * i386-nat.h: Ditto.
11478         * i386nbsd-tdep.c: Ditto.
11479         * i386-sol2-nat.c: Ditto.
11480         * i386-stub.c: Ditto.
11481         * i386-tdep.c: Ditto.
11482         * i386-tdep.h: Ditto.
11483         * i387-tdep.c: Ditto.
11484         * ia64-linux-nat.c: Ditto.
11485         * ia64-linux-tdep.c: Ditto.
11486         * ia64-tdep.c: Ditto.
11487         * infcall.c: Ditto.
11488         * infcall.h: Ditto.
11489         * infcmd.c: Ditto.
11490         * inferior.c: Ditto.
11491         * inferior.h: Ditto.
11492         * infloop.c: Ditto.
11493         * inflow.c: Ditto.
11494         * infrun.c: Ditto.
11495         * interps.c: Ditto.
11496         * interps.h: Ditto.
11497         * iq2000-tdep.c: Ditto.
11498         * irix5-nat.c: Ditto.
11499         * jit.c: Ditto.
11500         * jit.h: Ditto.
11501         * jv-exp.y: Ditto.
11502         * jv-lang.c: Ditto.
11503         * jv-lang.h: Ditto.
11504         * jv-typeprint.c: Ditto.
11505         * jv-valprint.c: Ditto.
11506         * language.c: Ditto.
11507         * language.h: Ditto.
11508         * linespec.c: Ditto.
11509         * linux-fork.c: Ditto.
11510         * linux-nat.c: Ditto.
11511         * linux-thread-db.c: Ditto.
11512         * lm32-tdep.c: Ditto.
11513
11514 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11515
11516         * m2-exp.y: Comment cleanup, mostly periods and spaces.
11517         * m2-lang.c: Ditto.
11518         * m2-typeprint.c: Ditto.
11519         * m2-valprint.c: Ditto.
11520         * m32c-tdep.c: Ditto.
11521         * m32r-linux-nat.c: Ditto.
11522         * m32r-rom.c: Ditto.
11523         * m32r-tdep.c: Ditto.
11524         * m32r-tdep.h: Ditto.
11525         * m68hc11-tdep.c: Ditto.
11526         * m58klinux-nat.c: Ditto.
11527         * m68k-tdep.c: Ditto.
11528         * m88k-tdep.c: Ditto.
11529         * m88k-tdep.h: Ditto.
11530         * machoread.c: Ditto.
11531         * macrocmd.c: Ditto.
11532         * macroexp.c: Ditto.
11533         * macrotab.c: Ditto.
11534         * main.c: Ditto.
11535         * maint.c: Ditto.
11536         * mdebugread.c: Ditto.
11537         * mdebugread.h: Ditto.
11538         * memattr.c: Ditto.
11539         * memattr.h: Ditto.
11540         * memory-map.h: Ditto.
11541         * mep-tdep.c: Ditto.
11542         * microblaze-rom.c: Ditto.
11543         * microblaze-tdep.c: Ditto.
11544         * minsyms.c: Ditto.
11545         * mips-irix-tdep.c: Ditto.
11546         * mips-linux-nat.c: Ditto.
11547         * mips-linux-tdep.c: Ditto.
11548         * mips-linux-tdep.h: Ditto.
11549         * mipsnbsd-nat.c: Ditto.
11550         * mipsnbsd-tdep.c: Ditto.
11551         * mipsread.c: Ditto.
11552         * mips-tdep.c: Ditto.
11553         * mips-tdep.h: Ditto.
11554         * mn10300-linux-tdep.c: Ditto.
11555         * mn10300-tdep.c: Ditto.
11556         * mn10300-tdep.h: Ditto.
11557         * monitor.c: Ditto.
11558         * monitor.h: Ditto.
11559         * moxie-tdep.c: Ditto.
11560         * moxie-tdep.h: Ditto.
11561         * mt-tdep.c: Ditto.
11562
11563 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
11564
11565         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11566
11567 2011-01-08  Robert Millan  <rmh@gnu.org>
11568
11569         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11570
11571 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11572
11573         * charset.c (_initialize_charset): Fix typo in string.
11574
11575 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11576
11577         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11578         for i18n.
11579         * tui/tui-layout.c (tui_set_layout_for_display_command):
11580         Split line so that operator goes to beginning of line.
11581         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11582         assignment out of if statement.
11583
11584 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11585
11586         * ada-lang.c: Comment cleanup, mostly periods and spaces.
11587         * ada-lang.h: Ditto.
11588         * ada-tasks.c: Ditto.
11589         * ada-valprint.c: Ditto.
11590         * aix-threads.c: Ditto.
11591         * alpha-linux-nat.c: Ditto.
11592         * alpha-linux-tdep.c: Ditto.
11593         * alpha-mdebug-tdep.c: Ditto.
11594         * alpha-nat.c: Ditto.
11595         * alpha-osf1-tdep.c: Ditto.
11596         * alpha-tdep.c: Ditto.
11597         * alphabsd-nat.c: Ditto.
11598         * alphabsd-tdep.c: Ditto.
11599         * amd64-darwin-tdep.c: Ditto.
11600         * amd64-linux-nat.c: Ditto.
11601         * amd64-linux-tdep.c: Ditto.
11602         * amd64-sol2-tdep.c: Ditto.
11603         * amd64-tdep.c: Ditto.
11604         * amd64-fbsd-tdep.c: Ditto.
11605         * amd64-nbsd-tdep.c: Ditto.
11606         * amd64-obsd-tdep.c: Ditto.
11607         * amd64-linux-nat.c: Ditto.
11608         * amd64-linux-tdep.c: Ditto.
11609         * arm-tdep.c: Ditto.
11610         * arm-tdep.h: Ditto.
11611         * armnbsd-nat.c: Ditto.
11612         * avr-tdep.c: Ditto.
11613         * bfin-tdep.c: Ditto.
11614         * bsd-kvm.c: Ditto.
11615         * c-typeprintc: Ditto.
11616         * c-valprint.c: Ditto.
11617         * coff-pe-read.h: Ditto.
11618         * coffreead.c: Ditto.
11619         * cris-tdep.c: Ditto.
11620         * d-lang.c: Ditto.
11621         * darwin-nat-info.c: Ditto.
11622         * darwin-nat.c: Ditto.
11623         * dbug-rom.c: Ditto.
11624         * dbxread.c: Ditto.
11625         * dcache.c: Ditto.
11626         * dcache.h: Ditto.
11627         * dec-thread.c: Ditto.
11628         * defs.h: Ditto.
11629         * demangle.c: Ditto.
11630         * dicos-tdep.c: Ditto.
11631         * dictionary.c: Ditto.
11632         * dictionary.h: Ditto.
11633         * dink32-rom.c: Ditto.
11634         * disasm.c: Ditto.
11635         * doublest.c: Ditto.
11636         * dsrec.c: Ditto.
11637         * dummy-frame.c: Ditto.
11638         * dwarf2-frame.c: Ditto.
11639         * dwarf2expr.c: Ditto.
11640         * dwarf2loc.c: Ditto.
11641         * dwarf2read.c: Ditto.
11642         * elfread.c: Ditto.
11643         * environ.c: Ditto.
11644         * eval.c: Ditto.
11645         * event-top.h: Ditto.
11646         * exceptions.c: Ditto.
11647         * exceptions.h: Ditto.
11648         * exec.c: Ditto.
11649         * expprint.c: Ditto.
11650         * expression.h: Ditto.
11651         * f-exp.y: Ditto.
11652         * f-lang.c: Ditto.
11653         * f-lang.h: Ditto.
11654         * f-typeprint.c: Ditto.
11655         * f-valprint.c: Ditto.
11656         * fbsd-nat.c: Ditto.
11657         * findvar.c: Ditto.
11658         * fork-child.c: Ditto.
11659         * frame.c: Ditto.
11660         * frame.h: Ditto.
11661         * frv-linux-tdep.c: Ditto.
11662         * frv-tdep.c: Ditto.
11663         * gcore.c: Ditto.
11664         * gdb-stabs.h: Ditto.
11665         * gdb_assert.h: Ditto.
11666         * gdb_string.h: Ditto.
11667         * gdb_thread_db.h: Ditto.
11668         * gdb_wait.h: Ditto.
11669         * gdbarch.sh: Ditto.
11670         * gdbcore.h: Ditto.
11671         * gdbthread.h: Ditto.
11672         * gdbtypes.c: Ditto.
11673         * gdbtypes.h: Ditto.
11674         * gnu-nat.c: Ditto.
11675         * gnu-nat.h: Ditto.
11676         * gnu-v2-abi.c: Ditto.
11677         * gnu-v3-abi.c: Ditto.
11678         * go32-nat.c: Ditto.
11679         * gdbarch.c: Regenerate.
11680         * gdbarch.h: Regenerate.
11681
11682 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11683
11684         * ax-gdb.c: Adjust some long output strings.
11685         * breakpoint.c: Ditto.
11686         * charset.c: Ditto.
11687         * cp-abi.c: Ditto.
11688         * infcall.c: Ditto.
11689         * infrun.c: Ditto.
11690         * linux-nat.c: Ditto.
11691         * solib-pa64.c: Ditto.
11692         * solib-som.c: Ditto.
11693
11694 2011-01-06  Tom Tromey  <tromey@redhat.com>
11695
11696         PR python/12367:
11697         * NEWS: Add item.
11698         * python/python.c (GdbMethods): Add "newest_frame" method.
11699         * python/python-internal.h (gdbpy_newest_frame): Declare.
11700         * python/py-frame.c (gdbpy_newest_frame): New function.
11701
11702 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11703
11704         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11705         * jit.c (jit_debug): New variable.
11706         (show_jit_debug): New function.
11707         (struct target_buffer): Use ULONGEST.
11708         (bfd_open_from_target_memory): Likewise.
11709         (jit_register_code, jit_inferior_init): Add debug output.
11710         (_initialize_jit): Register "debug jit" command.
11711
11712 2011-01-06  Tom Tromey  <tromey@redhat.com>
11713
11714         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11715         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11716         and ARCH_FRAME.
11717
11718 2011-01-06  Tom Tromey  <tromey@redhat.com>
11719
11720         * python/py-frame.c (frapy_block): Use get_frame_block.
11721
11722 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11723
11724         Do not stop on SIGPRIO signals by default
11725         * infrun.c (_initialize_infrun): Unset signal_stop and
11726         signal_print for TARGET_SIGNAL_PRIO.
11727
11728 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11729
11730         * ada-tasks.c: Fix style violation in comment.
11731
11732 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11733
11734         * linespec.c (decode_compound, find_method): Remove trailing \n
11735         at end of error string.
11736         * solib-irix.c (irix_current_sos): Likewise.
11737         * varobj.c (uninstall_variable): Likewise.
11738
11739 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11740
11741         * copyright.py: New script.
11742         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11743         Launch emacs without exec'ing. Call copyright.py afterwards.
11744
11745 2011-01-05  Michael Snyder  <msnyder@vmware.com>
11746
11747         * addrmap.c: Shorten lines of >= 80 columns.
11748         * arch-utils.c: Ditto.
11749         * arch-utils.h: Ditto.
11750         * ax-gdb.c: Ditto.
11751         * ax-general.c: Ditto.
11752         * bcache.c: Ditto.
11753         * blockframe.c: Ditto.
11754         * breakpoint.c: Ditto.
11755         * buildsym.c: Ditto.
11756         * c-lang.c: Ditto.
11757         * c-typeprint.c: Ditto.
11758         * charset.c: Ditto.
11759         * coffread.c: Ditto.
11760         * command.h: Ditto.
11761         * corelow.c: Ditto.
11762         * cp-abi.c: Ditto.
11763         * cp-namespace.c: Ditto.
11764         * cp-support.c: Ditto.
11765         * dbug-rom.c: Ditto.
11766         * dbxread.c: Ditto.
11767         * defs.h: Ditto.
11768         * dfp.c: Ditto.
11769         * dfp.h: Ditto.
11770         * dictionary.c: Ditto.
11771         * disasm.c: Ditto.
11772         * doublest.c: Ditto.
11773         * dwarf2-frame.c: Ditto.
11774         * dwarf2expr.c: Ditto.
11775         * dwarf2loc.c: Ditto.
11776         * dwarf2read.c: Ditto.
11777         * elfread.c: Ditto.
11778         * eval.c: Ditto.
11779         * event-loop.c: Ditto.
11780         * event-loop.h: Ditto.
11781         * exceptions.h: Ditto.
11782         * exec.c: Ditto.
11783         * expprint.c: Ditto.
11784         * expression.h: Ditto.
11785         * f-lang.c: Ditto.
11786         * f-valprint.c: Ditto.
11787         * findcmd.c: Ditto.
11788         * frame-base.c: Ditto.
11789         * frame-unwind.c: Ditto.
11790         * frame-unwind.h: Ditto.
11791         * frame.c: Ditto.
11792         * frame.h: Ditto.
11793         * gcore.c: Ditto.
11794         * gdb-stabs.h: Ditto.
11795         * gdb_assert.h: Ditto.
11796         * gdb_dirent.h: Ditto.
11797         * gdb_obstack.h: Ditto.
11798         * gdbcore.h: Ditto.
11799         * gdbtypes.c: Ditto.
11800         * gdbtypes.h: Ditto.
11801         * inf-ttrace.c: Ditto.
11802         * infcall.c: Ditto.
11803         * infcmd.c: Ditto.
11804         * inflow.c: Ditto.
11805         * infrun.c: Ditto.
11806         * inline-frame.h: Ditto.
11807         * language.c: Ditto.
11808         * language.h: Ditto.
11809         * libunwind-frame.c: Ditto.
11810         * libunwind-frame.h: Ditto.
11811         * linespec.c: Ditto.
11812         * linux-nat.c: Ditto.
11813         * linux-nat.h: Ditto.
11814         * linux-thread-db.c: Ditto.
11815         * machoread.c: Ditto.
11816         * macroexp.c: Ditto.
11817         * macrotab.c: Ditto.
11818         * main.c: Ditto.
11819         * maint.c: Ditto.
11820         * mdebugread.c: Ditto.
11821         * memattr.c: Ditto.
11822         * minsyms.c: Ditto.
11823         * monitor.c: Ditto.
11824         * monitor.h: Ditto.
11825         * objfiles.c: Ditto.
11826         * objfiles.h: Ditto.
11827         * osabi.c: Ditto.
11828         * p-typeprint.c: Ditto.
11829         * p-valprint.c: Ditto.
11830         * parse.c: Ditto.
11831         * printcmd.c: Ditto.
11832         * proc-events.c: Ditto.
11833         * procfs.c: Ditto.
11834         * progspace.c: Ditto.
11835         * progspace.h: Ditto.
11836         * psympriv.h: Ditto.
11837         * psymtab.c: Ditto.
11838         * record.c: Ditto.
11839         * regcache.c: Ditto.
11840         * regcache.h: Ditto.
11841         * remote-fileio.c: Ditto.
11842         * remote.c: Ditto.
11843         * ser-mingw.c: Ditto.
11844         * ser-tcp.c: Ditto.
11845         * ser-unix.c: Ditto.
11846         * serial.c: Ditto.
11847         * serial.h: Ditto.
11848         * solib-frv.c: Ditto.
11849         * solib-irix.c: Ditto.
11850         * solib-osf.c: Ditto.
11851         * solib-pa64.c: Ditto.
11852         * solib-som.c: Ditto.
11853         * solib-sunos.c: Ditto.
11854         * solib-svr4.c: Ditto.
11855         * solib-target.c: Ditto.
11856         * solib.c: Ditto.
11857         * somread.c: Ditto.
11858         * source.c: Ditto.
11859         * stabsread.c: Ditto.
11860         * stabsread.c: Ditto.
11861         * stack.c: Ditto.
11862         * stack.h: Ditto.
11863         * symfile-mem.c: Ditto.
11864         * symfile.c: Ditto.
11865         * symfile.h: Ditto.
11866         * symmisc.c: Ditto.
11867         * symtab.c: Ditto.
11868         * symtab.h: Ditto.
11869         * target-descriptions.c: Ditto.
11870         * target-memory.c: Ditto.
11871         * target.c: Ditto.
11872         * target.h: Ditto.
11873         * terminal.h: Ditto.
11874         * thread.c: Ditto.
11875         * top.c: Ditto.
11876         * tracepoint.c: Ditto.
11877         * tracepoint.h: Ditto.
11878         * ui-file.c: Ditto.
11879         * ui-file.h: Ditto.
11880         * ui-out.h: Ditto.
11881         * user-regs.c: Ditto.
11882         * user-regs.h: Ditto.
11883         * utils.c: Ditto.
11884         * valarith.c: Ditto.
11885         * valops.c: Ditto.
11886         * valprint.c: Ditto.
11887         * valprint.h: Ditto.
11888         * value.c: Ditto.
11889         * varobj.c: Ditto.
11890         * varobj.h: Ditto.
11891         * vec.h: Ditto.
11892         * xcoffread.c: Ditto.
11893         * xcoffsolib.c: Ditto.
11894         * xcoffsolib.h: Ditto.
11895         * xml-syscall.c: Ditto.
11896         * xml-tdesc.c: Ditto.
11897
11898 2011-01-05  Michael Snyder  <msnyder@vmware.com>
11899
11900         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11901         * cli/cli-decode.c: Ditto.
11902         * cli/cli-dump.c: Ditto.
11903         * cli/cli-logging.c: Ditto.
11904         * cli/cli-script.c: Ditto.
11905         * cli/cli-setshow.c: Ditto.
11906         * common/signals.c: Ditto.
11907         * mi/mi-cmd-break.c: Ditto.
11908         * mi/mi-cmd-disas.c: Ditto.
11909         * mi/mi-cmd-stack.c: Ditto.
11910         * mi/mi-cmd-var.c: Ditto.
11911         * mi/mi-cmds.c: Ditto.
11912         * mi/mi-common.h: Ditto.
11913         * mi/mi-console.c: Ditto.
11914         * mi/mi-interp.c: Ditto.
11915         * mi/mi-main.c: Ditto.
11916         * osf-share/cma_attr.c: Ditto.
11917         * osf-share/cma_deb_core.h: Ditto.
11918         * osf-share/cma_debug_client.h: Ditto.
11919         * osf-share/cma_handle.h: Ditto.
11920         * osf-share/cma_mutex.h: Ditto.
11921         * osf-share/cma_stack_int.h: Ditto.
11922         * osf-share/cma_tcb_defs.h: Ditto.
11923         * python/py-auto-load.c: Ditto.
11924         * python/py-breakpoint.c: Ditto.
11925         * python/py-cmd.c: Ditto.
11926         * python/py-frame.c: Ditto.
11927         * python/py-objfile.c: Ditto.
11928         * python/py-param.c: Ditto.
11929         * python/py-progspace.c: Ditto.
11930         * python/py-symbol.c: Ditto.
11931         * python/py-value.c: Ditto.
11932         * python/python-internal.h: Ditto.
11933         * python/python.c: Ditto.
11934         * tui/tui-data.c: Ditto.
11935         * tui/tui-disasm.c: Ditto.
11936         * tui/tui-hooks.c: Ditto.
11937         * tui/tui-io.c: Ditto.
11938         * tui/tui-layout.c: Ditto.
11939         * tui/tui-regs.c: Ditto.
11940         * tui/tui-source.c: Ditto.
11941         * tui/tui-stack.c: Ditto.
11942         * tui/tui-win.c: Ditto.
11943         * tui/tui-windata.c: Ditto.
11944         * tui/tui-winsource.c: Ditto.
11945
11946 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
11947
11948         * configure.ac, gdb.1: Copyright year update.
11949
11950 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11951
11952         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11953         this_pc_in_block, morestack_msym and morestack_name.  Check for
11954         "__morestack" minimal symbol there.
11955
11956 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11957
11958         * symfile.c (find_sym_fns): Add call to dont_repeat.
11959
11960 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
11961
11962         Copyright year update in most files (performed by copyright.sh).
11963
11964 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
11965
11966         * top.c (print_gdb_version): Update copyright year in version output.
11967
11968 For older changes see ChangeLog-2010.
11969 \f
11970 Local Variables:
11971 mode: change-log
11972 left-margin: 8
11973 fill-column: 74
11974 version-control: never
11975 coding: utf-8
11976 End: