bce298b13b4985e2e51b23bbb7799f5c6ac9b848
[external/binutils.git] / gdb / ChangeLog
1 2012-07-23  Tom Tromey  <tromey@redhat.com>
2
3         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
4         counting.
5         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
6         (map_vmap): Acquire a reference to the BFD.
7
8 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
9
10         * p-valprint.c (pascal_object_print_value): Replace potentially
11         unsafe alloca with xmalloc/xfree.
12         * valops.c (search_struct_method): Likewise.
13
14 2012-07-23  Tom Tromey  <tromey@redhat.com>
15
16         * solib-svr4.c (enable_break): Update.
17         * bfd-target.h (target_bfd_reopen): Update documentation.
18
19 2012-07-23  Tom Tromey  <tromey@redhat.com>
20
21         * symfile.c (separate_debug_file_exists): Update.
22         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
23         (reread_symbols): Update.
24         * elfread.c (build_id_verify): Update.
25         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
26         bfd_open_maybe_remote.
27
28 2012-07-23  Tom Tromey  <tromey@redhat.com>
29
30         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
31
32 2012-07-23  Tom Tromey  <tromey@redhat.com>
33
34         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
35         and 'abfd'.
36         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
37         and 'abfd'.
38         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
39         * machoread.c (macho_add_oso_symfile): Make a cleanup for
40         'abfd'.
41         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
42         * objfiles.c (allocate_objfile): Acquire a new reference.
43         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
44         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
45         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
46         a cleanup for 'nbfd'.
47         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
48         for 'nbfd'.
49         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
50         make a cleanup for 'abfd'.
51         (symbol_file_add): Make a BFD cleanup.
52
53 2012-07-23  Tom Tromey  <tromey@redhat.com>
54
55         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
56         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
57         * corelow.c (core_open): Use gdb_bfd_fopen.
58         * dsrec.c (load_srec): Use gdb_bfd_openr.
59         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
60         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
61         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
62         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
63         (gdb_bfd_fdopenr): New functions.
64         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
65         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
66         (gdb_bfd_fdopenr): Declare.
67         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
68         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
69         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
70         gdb_bfd_openr_next_archived_file.
71         (macho_check_dsym): Use gdb_bfd_openr.
72         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
73         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
74         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
75         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
76         gdb_bfd_openr.
77         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
78         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
79         gdb_bfd_openr_next_archived_file.
80         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
81         Use gdb_bfd_openr.
82         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
83         gdb_bfd_openr.
84         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
85         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
86         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
87         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
88         (symfile_bfd_open): Use gdb_bfd_fopen.
89         (generic_load): Use gdb_bfd_openr.
90         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
91
92 2012-07-23  Tom Tromey  <tromey@redhat.com>
93
94         * bfd-target.c (target_bfd_reopen): Update.
95         * cli/cli-dump.c (bfd_openr_with_cleanup)
96         (bfd_openw_with_cleanup): Update.
97         * corelow.c (core_open): Update.
98         * dsrec.c (load_srec): Update.
99         * exec.c (exec_file_attach): Update.
100         * gcore.c (create_gcore_bfd): Update.
101         * gdb_bfd.c (gdb_bfd_ref): Return void.
102         (gdb_bfd_open): Update.
103         * gdb_bfd.h (gdb_bfd_ref): Return void.
104         Update comments.
105         * jit.c (jit_bfd_try_read_symtab): Update.
106         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
107         * machoread.c (macho_symfile_read_all_oso): Update.
108         (macho_check_dsym): Update.
109         * procfs.c (insert_dbx_link_bpt_in_file): Update.
110         * remote-m32r-sdi.c (m32r_load): Update.
111         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
112         * rs6000-nat.c (add_vmap): Update.
113         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
114         Update.
115         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
116         * solib-spu.c (spu_bfd_open): Update.
117         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
118         * spu-linux-nat.c (spu_bfd_open): Update.
119         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
120         (generic_load): Update.
121         * windows-nat.c (windows_make_so): Update.
122
123 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
124
125         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
126
127 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
128
129         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
130         SIGTRAMP_FRAME unwinding.
131
132 2012-07-20  Doug Evans  <dje@google.com>
133
134         * NEWS: Document new options "set/show use-deprecated-index-sections",
135         and delete reference to --use-deprecated-index-sections.
136         * symfile.h (use_deprecated_index_sections): Delete.
137         * dwarf2read.c (use_deprecated_index_sections): Make static.
138         (read_index_from_section): Update wording of how to load
139         deprecated index sections.
140         (_initialize_dwarf2_read): New options
141         "set/show use-deprecated-index-sections".
142         * main.c (captured_main): Delete --use-deprecated-index-sections.
143
144 2012-07-20  Pedro Alves  <palves@redhat.com>
145
146         PR threads/11692
147         PR gdb/12203
148
149         * infrun.c (handle_inferior_event) <new thread>: Don't special
150         case minus_one_ptid.
151         <TARGET_WAITKIND_SPURIOUS>: Ditto.
152         * linux-thread-db.c (thread_get_info_callback): Don't return early
153         if the thread is zombie.
154         (thread_from_lwp): Change return type to void.  Rewrite stale
155         comment.
156         (attach_thread): Don't return early if the thread is zombie,
157         instead set its "dying" flag.
158         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
159         (find_new_threads_callback): Don't return early if the thread is
160         zombie.
161
162 2012-07-20  Pedro Alves  <palves@redhat.com>
163
164         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
165         * target.c (target_wait): Likewise.
166         (str_comma_list_concat_elem, do_option, target_options_to_string):
167         New functions.
168         * target.h (target_options_to_string): Declare.
169
170 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
171             Tom Tromey  <tromey@redhat.com>
172
173         * dwarf2read.c (dwarf_decode_macros)
174         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
175         DW_MACRO_GNU_transparent_include_alt>: New cases.
176         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
177         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
178
179 2012-07-20  Tom Tromey  <tromey@redhat.com>
180
181         * dwarf2read.c (try_open_dwo_file): Don't call
182         gdb_bfd_stash_filename.
183
184 2012-07-20  Pedro Alves  <palves@redhat.com>
185
186         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
187         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
188         (i386_process_record): Tweak description comments.
189
190 2012-07-20  Pedro Alves  <palves@redhat.com>
191
192         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
193         (i386_process_record): Use record_read_memory.
194         * record.c (record_read_memory): New function.
195         (record_arch_list_add_mem, record_exec_insn): Use
196         record_read_memory.
197         * record.h (record_read_memory): Declare.
198
199 2012-07-20  Yao Qi  <yao@codesourcery.com>
200
201         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
202         NULL for xfree.
203
204 2012-07-19  Pedro Alves  <palves@redhat.com>
205
206         * record.c (record_resume): Ask the target beneath to report all
207         signals.
208
209 2012-07-19  Doug Evans  <dje@google.com>
210
211         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
212         there's no section at address zero.
213         (dwarf2_record_block_ranges): Ditto.
214
215 2012-07-19  Yao Qi  <yao@codesourcery.com>
216
217         * command.h, remote.c: Fix a typo in comment.
218
219 2012-07-19  Tom Tromey  <tromey@redhat.com>
220
221         PR exp/13206:
222         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
223         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
224         OP_DECLTYPE>: New cases.
225         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
226         (type_exp): Add new productions.
227         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
228         and decltype.
229         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
230         New case.
231         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
232         OP_DECLTYPE>: New case.
233         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
234         New case.
235         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
236         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
237
238 2012-07-19  Tom Tromey  <tromey@redhat.com>
239
240         * c-exp.y (enum token_flags): New.
241         (struct token) <cxx_only>: Remove.
242         <flags>: New field.
243         (tokentab3, tokentab2, ident_tokens): Update.
244         (lex_one_token): Update.  Handle FLAG_SHADOW.
245
246 2012-07-19  Tom Tromey  <tromey@redhat.com>
247
248         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
249         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
250         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
251         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
252         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
253         type_exp production where appropriate.
254         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
255         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
256         <UNOP_MEMVAL_TYPE>: New case.
257         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
258         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
259         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
260         <UNOP_MEMVAL_TYPE>: New case.
261         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
262         UNOP_REINTERPRET_CAST>: Update.
263         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
264         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
265         UNOP_REINTERPRET_CAST>: Update.
266         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
267         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
268         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
269         constants.
270
271 2012-07-19  Yao Qi  <yao@codesourcery.com>
272             Jan Kratochvil <jan.kratochvil@redhat.com>
273
274         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
275         and case 'var_optional_filename' together.
276         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
277         instead of add_setshow_optional_filename_cmd for setshow command
278         'args'.  Set completer for 'set args'.
279
280 2012-07-18  Doug Evans  <dje@google.com>
281
282         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
283         * common/gdb_vecs.c: New file, contents from utils.c.
284         * common/host-defs.h: New file, contents from defs.h.
285         * utils.h: New file, contents from defs.h.
286         * defs.h: Move all declarations of objects defined in utils.c
287         to utils.h (except QUIT() and related).
288         #include "utils.h", "host-defs.h".
289         * probe.h (probe_p): Move here from gdb_vecs.h.
290         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
291         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
292         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
293         * Makefile.in (SFILES): Add common/gdb_vecs.c.
294         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
295         (COMMON_OBS): Add gdb_vecs.o.
296         (gdb_vecs.o): New rule.
297
298 2012-07-18  Keith Seitz  <keiths@redhat.com>
299
300         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
301         parameter.  If non-zero, use SYMNAME as the canonical name
302         for the SaL.
303         Update all callers.
304         (convert_linespec_to_sals): Use add_sal_to_sals for
305         expressions, too.
306         (decode_line_full): No need to "fill in missing canonical names"
307         anymore. Simply make cleanups for the allocated names.
308
309 2012-07-18  Keith Seitz  <keiths@redhat.com>
310
311         * linespec.c (struct linespec): Constify expression,
312         source_filename, function_name, and label_name.
313         (symbol_not_found_error): Make all parameters const.
314         (linespec_parser_delete): No need to check for NULL
315         when using xfree. Cast const char * to char * for xfree.
316
317 2012-07-18  Keith Seitz  <keiths@redhat.com>
318
319         * breakpoint.c (invalid_thread_id_error): New function.
320         (find_condition_and_thread): Use invalid_thread_id_error.
321         (watch_command_1): Likewise.
322
323 2012-07-18  Tom Tromey  <tromey@redhat.com>
324
325         * cc-with-index.sh, cc-with-dwz.sh: Remove.
326         * contrib/cc-with-tweaks.sh: New file.
327
328 2012-07-18  Tom Tromey  <tromey@redhat.com>
329
330         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
331         (locate_dwz_sections): Recognize .gdb_index.
332         (create_cus_from_index_list): New function.
333         (create_cus_from_index): Use it.  Handle .dwz data.
334         (read_index_from_section): New function, extracted from
335         dwarf2_read_index.
336         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
337         if needed.
338
339 2012-07-18  Tom Tromey  <tromey@redhat.com>
340
341         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
342         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
343         <is_dwz>: New field.
344         (struct dwz_file): New.
345         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
346         (locate_dwz_sections, dwarf2_get_dwz_file)
347         (get_abbrev_section_for_cu): New functions.
348         (error_check_comp_unit_head, read_and_check_comp_unit_head)
349         (read_and_check_type_unit_head): Add abbrev_section argument.
350         (create_debug_types_hash_table): Update.
351         (init_cutu_and_read_dies): Use proper abbrev section.
352         (init_cutu_and_read_dies_no_follow): Likewise.
353         (set_partial_user): Do nothing if PST==NULL.
354         (read_comp_units_from_section): New function.
355         (create_all_comp_units): Use it.
356         (scan_partial_symbols, partial_die_parent_scope): Update.
357         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
358         (process_imported_unit_die, read_partial_die): Handle .dwz files.
359         (find_partial_die): Add offset_in_dwz argument.  Update.
360         (guess_partial_die_structure_name, fixup_partial_die): Update.
361         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
362         DW_FORM_GNU_strp_alt.
363         (read_indirect_string_from_dwz): New function.
364         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
365         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
366         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
367         (follow_die_offset): Add offset_in_dwz argument.
368         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
369         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
370         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
371         Handle new macro forms.
372         (dwarf_decode_macros): Update.
373         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
374         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
375         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
376         (create_debug_types_hash_table): Use correct abbrev section.
377         (get_debug_line_section): New function.
378         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
379         (process_full_comp_unit): Pass 'required' argument to
380         end_symtab_get_static_block.
381         * buildsym.h (end_symtab_get_static_block): Update.
382         * buildsym.c (end_symtab_get_static_block): Add 'required'
383         argument.
384         (end_symtab, end_expandable_symtab): Update.
385
386 2012-07-18  Tom Tromey  <tromey@redhat.com>
387
388         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
389         (pagesize): Remove.
390         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
391         (zlib_decompress_section): Remove.
392         (dwarf2_read_section): Use gdb_bfd_map_section.
393         (munmap_section_buffer): Remove.
394         (free_dwo_file, dwarf2_per_objfile_free): Don't use
395         munmap_section_buffer.
396         * gdb_bfd.c: Include zlib.h, sys/mman.h.
397         (struct gdb_bfd_section_data): New.
398         (free_one_bfd_section): New function.
399         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
400         (get_section_descriptor, zlib_decompress_section)
401         (gdb_bfd_map_section): New functions.
402         * gdb_bfd.h (gdb_bfd_map_section): Declare.
403
404 2012-07-18  Tom Tromey  <tromey@redhat.com>
405
406         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
407
408 2012-07-18  Tom Tromey  <tromey@redhat.com>
409
410         * gdb_bfd.c (struct gdb_bfd_data): New.
411         (gdb_bfd_cache): New global.
412         (struct gdb_bfd_cache_search): New.
413         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
414         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
415         * gdb_bfd.h (gdb_bfd_open): Declare.
416
417 2012-07-18  Tom Tromey  <tromey@redhat.com>
418
419         * utils.c (make_cleanup_bfd_unref): Rename from
420         make_cleanup_bfd_close.
421         * defs.h (make_cleanup_bfd_unref): Rename from
422         make_cleanup_bfd_close.
423         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
424         (bfd_openw_with_cleanup): Update.
425         * corelow.c (core_open): Update.
426         * dsrec.c (load_srec): Update.
427         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
428         * remote-m32r-sdi.c (m32r_load): Update.
429         * remote-mips.c (mips_load_srec): Update.
430         (pmon_load_fast): Update.
431         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
432         Update.
433         (darwin_bfd_open): Update.
434         * solib.c (solib_bfd_fopen): Update.
435         * symfile-mem.c (symbol_file_add_from_memory): Update.
436         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
437         (symfile_bfd_open): Update.
438         (generic_load): Update.
439
440 2012-07-18  Tom Tromey  <tromey@redhat.com>
441
442         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
443         (pmon_load_fast): Likewise.
444         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
445         (m32r_upload_command): Likewise.
446         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
447         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
448         Use make_cleanup_bfd_close.
449
450 2012-07-18  Tom Tromey  <tromey@redhat.com>
451
452         * symfile.c (symfile_bfd_open): Don't copy name.  Call
453         gdb_bfd_stash_filename.
454         (load_command): Open the new BFD before freeing the old.
455         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
456         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
457         Call gdb_bfd_stash_filename.
458         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
459         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
460         gdb_bfd_stash_filename.
461         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
462         Free found_pathname.
463         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
464         gdb_bfd_stash_filename.
465         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
466         * machoread.c (macho_add_oso_symfile): Call
467         gdb_bfd_stash_filename.
468         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
469         gdb_bfd_stash_filename.
470         (macho_check_dsym): Don't copy filename.  Call
471         gdb_bfd_stash_filename.
472         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
473         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
474         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
475         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
476         * exec.c (exec_close): Don't free the BFD's filename.
477         (exec_file_attach): Don't copy the filename.  Call
478         gdb_bfd_stash_filename.
479         * corelow.c (core_close): Don't free the BFD's filename.
480         (core_open): Call gdb_bfd_stash_filename.
481         * corefile.c (reopen_exec_file): Remove #if 0 code.
482         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
483         pathname.
484         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
485
486 2012-07-18  Tom Tromey  <tromey@redhat.com>
487
488         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
489         gdb_bfd_unref.
490         (free_dwo_file): Use gdb_bfd_unref.
491         * cli/cli-dump.c: Include gdb_bfd.h.
492         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
493         (bfd_openr_with_cleanup): Likewise.
494         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
495         gdb_bfd_unref.
496         * utils.c: Include gdb_bfd.h.
497         (do_bfd_close_cleanup): Use gdb_bfd_unref.
498         * symfile.c: Include gdb_bfd.h.
499         (separate_debug_file_exists): Use gdb_bfd_unref.
500         (bfd_open_maybe_remote): Use gdb_bfd_ref.
501         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
502         (generic_load): Use gdb_bfd_ref.
503         (reread_symbols): Use gdb_bfd_unref.
504         * symfile-mem.c: Include gdb_bfd.h.
505         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
506         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
507         * solib.c: Include gdb_bfd.h.
508         (solib_bfd_fopen): Use gdb_bfd_ref.
509         (solib_bfd_open): Use gdb_bfd_unref.
510         (free_so_symbols): Use gdb_bfd_unref.
511         (reload_shared_libraries_1): Use gdb_bfd_unref.
512         * solib-spu.c: Include gdb_bfd.h.
513         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
514         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
515         gdb_bfd_unref.
516         * solib-frv.c: Include gdb_bfd.h.
517         (enable_break2): Use gdb_bfd_unref.
518         * solib-dsbt.c: Include gdb_bfd.h.
519         (enable_break2): Use gdb_bfd_unref.
520         * solib-darwin.c: Include gdb_bfd.h.
521         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
522         gdb_bfd_unref.
523         (darwin_bfd_open): Use gdb_bfd_unref.
524         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
525         * remote-mips.c: Include gdb_bfd.h.
526         (mips_load_srec): Use gdb_bfd_ref.
527         (pmon_load_fast): Use gdb_bfd_ref.
528         * remote-m32r-sdi.c: Include gdb_bfd.h.
529         (m32r_load): Use gdb_bfd_ref.
530         * record.c: Include gdb_bfd.h.
531         (record_save_cleanups): Use gdb_bfd_unref.
532         (cmd_record_save): Use gdb_bfd_unref.
533         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
534         gdb_bfd_unref.
535         * objfiles.h (gdb_bfd_close_or_warn): Remove.
536         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
537         * objfiles.c: Include gdb_bfd.h.
538         (free_objfile): Use gdb_bfd_unref.
539         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
540         gdb_bfd.c.
541         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
542         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
543         (macho_check_dsym): Likewise.
544         * m32r-rom.c: Include gdb_bfd.h.
545         (m32r_load): Use gdb_bfd_ref.
546         (m32r_upload_command): Use gdb_bfd_ref.
547         * jit.c: Include gdb_bfd.h.
548         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
549         * gdb_bfd.h: New file.
550         * gdb_bfd.c: New file.
551         * gcore.c: Include gdb_bfd.h.
552         (create_gcore_bfd): Use gdb_bfd_ref.
553         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
554         (gcore_command): Use gdb_bfd_unref.
555         * exec.c: Include gdb_bfd.h.
556         (exec_close): Use gdb_bfd_unref.
557         (exec_close_1): Use gdb_bfd_unref.
558         (exec_file_attach): Use gdb_bfd_ref.
559         * elfread.c: Include gdb_bfd.h.
560         (build_id_verify): Use gdb_bfd_unref.
561         * dsrec.c: Include gdb_bfd.h.
562         (load_srec): Use gdb_bfd_ref.
563         * corelow.c: Include gdb_bfd.h.
564         (core_close): Use gdb_bfd_unref.
565         (core_open): Use gdb_bfd_ref.
566         * bfd-target.c: Include gdb_bfd.h.
567         (target_bfd_xclose): Use gdb_bfd_unref.
568         (target_bfd_reopen): Use gdb_bfd_ref.
569         * Makefile.in (SFILES): Add gdb_bfd.c.
570         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
571         (COMMON_OBS): Add gdb_bfd.o.
572
573 2012-07-18  Keith Seitz  <keiths@redhat.com>
574
575         * breakpoint.c (find_condition_and_thread): Initialize
576         TASK and REST.
577         (create_breakpiont): find_condition_and_thread will now
578         initialize COND_STRING, THREAD, and REST (and TASK).
579         (addr_string_to_sals): Likewise.
580
581 2012-07-18  Pedro Alves  <palves@redhat.com>
582
583         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
584         Pull the single step breakpoints out of the target.
585
586 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
587
588         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
589         * stap-probe.c (compile_probe_arg): Likewise.
590
591 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
592
593         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
594         (elf_compile_to_ax): Likewise.
595         * infrun.c (insert_exception_resume_from_probe): Likewise.
596         (check_exception_resume): Remove `objfile' variable.
597         * probe.c (find_probe_by_pc): Remove `objfile' argument.
598         (struct probe_and_objfile, probe_and_objfile_s): Delete.
599         (collect_probes): Adjust return value to `VEC (probe_p) *'.
600         (compare_entries): Rename to...
601         (compare_probes): ...this.  Adjust function to work with
602         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
603         respectively.
604         (gen_ui_out_table_header_info): Adjust `probes' argument to be
605         `VEC (probe_p) *'.
606         (print_ui_out_info): Adjust argument to be `struct probe *'.
607         (info_probes_for_ops): Adjust internal computations to use
608         `VEC (probe_p) *'.
609         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
610         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
611         gen_info_probes_table_values>: Remove `objfile' argument.
612         (struct probe) <objfile>: New field.
613         (find_probe_by_pc): Remove `objfile' argument.
614         * stap-probe.c (stap_parse_probe_arguments): Likewise.
615         (stap_get_probe_argument_count): Likewise.
616         (stap_get_arg): Likewise.
617         (stap_evaluate_probe_argument): Likewise.
618         (stap_compile_to_ax): Likewise.
619         (compile_probe_arg): Refactor not to pass `objfile' anymore.
620         (handle_stap_probe): Fill `objfile' field from `struct probe'.
621         (stap_gen_info_probes_table_header): Remove `objfile' argument.
622         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
623         sym_compile_to_ax>: Likewise.
624
625 2012-07-18  Terry Guo  <terry.guo@arm.com>
626
627         PR 14329
628         * defs.h (GDB_MI_MSG_WIDTH): New.
629         * ser_base (ser_base_read_error_fd): New function.
630         (do_ser_base_readchar): Poll error file descriptor as well as
631         standard output.
632         (generic_readchar): Refactor error handling. 
633
634 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
635
636         * NEWS: Create a new section for the next release branch.
637         Rename the section of the current branch, now that it has
638         been cut.
639
640 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
641
642         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
643         * version.in: Bump version to 7.5.50.20120718-cvs.
644
645 2012-07-17  Keith Seitz  <keiths@redhat.com>
646
647         * linespec.c (linespec_parse_line_offset): Make parameter
648         const.
649
650 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
651
652         PR 11914
653         * f-valprint.c (info_common_command): New variable frame_id.
654         Reinitialize FI form FRAME_ID after each print_variable_and_value.
655         * printcmd.c (print_variable_and_value): Extend function comment.
656         Add comment for invalidated FRAME.
657         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
658         FI form FRAME_ID after each print_frame_local_vars.
659         (struct print_variable_and_value_data): Change frame to frame_id.
660         (do_print_variable_and_value): New variable frame, initialize it from
661         p->frame_id.  Add comment for invalidated FRAME.
662         (print_frame_local_vars, print_frame_arg_vars): New function comment.
663         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
664         for invalidated FRAME.
665
666 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
667             Pedro Alves  <palves@redhat.com>
668
669         * linux-nat.c (linux_nat_detach): Don't unregister from the event
670         loop.
671
672 2012-07-16  Tom Tromey  <tromey@redhat.com>
673
674         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
675
676 2012-07-15  Doug Evans  <dje@google.com>
677
678         * dwarf2read.c (stmt_list_hash): New struct.
679         (type_unit_group): Embed "per_cu" member, remove pointer.
680         New union member "t", move member "tus" into it, all uses updated.
681         New member "hash", replaces member "line_offset, all uses updated.
682         (quick_file_names): Replace member "offset" with "hash", all uses
683         updated.
684         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
685         (hash_file_name_entry, eq_file_name_entry): Call them.
686         (hash_type_unit_group, eq_type_unit_group): Ditto.
687         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
688         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
689         (dw2_get_file_names): Update.
690         (create_type_unit_group): Replace "per_cu" arg with "cu".
691         All callers updated.  Fix "quick" (.gdb_index) handling.
692         (get_type_unit_group): Replace "per_cu" arg with "cu".
693         All callers updated.
694         (build_type_unit_groups): Don't reset tu_stats.
695
696         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
697         "tab_cur_size".  Change member "tab" to be a htab_t.
698         (create_filename_seen_cache): Update.
699         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
700         (filename_seen): Update.
701
702 2012-07-13  Doug Evans  <dje@google.com>
703
704         * symtab.c (filename_seen): Update comment.
705
706 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
707             Doug Evans  <dje@google.com>
708
709         * buildsym.c (end_symtab_1): Split it to ...
710         (end_symtab_get_static_block): ... this ...
711         (end_symtab_from_static_block): ... and this function.
712         (end_symtab, end_expandable_symtab): Call them.
713         * buildsym.h (end_symtab_get_static_block)
714         (end_symtab_from_static_block): New declarations.
715         * dwarf2read.c (process_full_comp_unit): New variable static_block.
716         Set its valid CU ranges.
717
718 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
719
720         * dwarf2loc.c (disassemble_dwarf_expression): Handle
721         DW_OP_GNU_parameter_ref.
722
723 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
724
725         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
726         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
727
728 2012-07-13  Doug Evans  <dje@google.com>
729
730         * symtab.c (output_source_filename): Delete unnecessary forward decl.
731         (filename_seen_cache): New struct.
732         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
733         (create_filename_seen_cache): New function.
734         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
735         (filename_seen): Delete arg "first".  New arg "cache".  All callers
736         updated.
737         (output_source_filename_data): New struct.
738         (output_source_filename): Delete arg "first".  New arg "data".
739         All callers updated.
740         (sources_info): Delete local "first".  New locals "data", "cleanups".
741         Rewrite to use filename_seen_cache.
742         (add_partial_filename_data): Delete member "first".  New member
743         "filename_seen_cache".  All uses updated.
744         (make_source_files_completion_list): Rewrite to use
745         filename_seen_cache.
746
747 2012-07-12  Doug Evans  <dje@google.com>
748
749         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
750
751 2012-07-10  Doug Evans  <dje@google.com>
752
753         PR gdb/13498
754         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
755         all_type_unit_groups, type_unit_groups, tu_stats.
756         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
757         All uses updated.  Add type_unit_group to union "s".
758         (type_unit_group): New struct.
759         (IS_TYPE_UNIT_GROUP): New macro.
760         (abbrev_table): Delete unused member "section".
761         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
762         (dw2_get_cu): Assert not used with type_unit_group.
763         (dw2_get_primary_cu): New function.
764         (dw2_build_type_unit_groups_reader): New function.
765         (dw2_build_type_unit_groups): New function.
766         (dw2_get_file_names): Assert not called on type units.
767         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
768         Redo loop to iterate over type unit groups instead of type units.
769         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
770         (read_abbrev_offset): New function.
771         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
772         updated.
773         (create_partial_symtab): New function.
774         (process_psymtab_comp_unit_reader): Assert not used with type units.
775         Call create_partial_symtab.
776         (process_psymtab_type_unit): Delete.
777         (hash_type_unit_group, eq_type_unit_group): New functions.
778         (allocate_type_unit_groups_table): New function.
779         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
780         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
781         (create_type_unit_group, get_type_unit_group): New functions.
782         (tu_abbrev_offset): New struct.
783         (sort_tu_by_abbrev_offset): New function.
784         (add_type_unit_group_to_table): New function.
785         (build_type_unit_groups): New function.
786         (build_type_psymtabs_reader): New function.
787         (build_type_psymtab_dependencies): New function.
788         (build_type_psymtabs): Rewrite.
789         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
790         is seen in a type unit.
791         (process_queue): Move symtab expansion debugging printfs here.
792         Call process_full_type_unit for type units.
793         (compute_symtab_includes): Assert not called for type units.
794         (process_cu_includes): Don't call compute_symtab_includes for
795         type units.
796         (process_full_type_unit): New function.
797         (process_imported_unit_die): Flag an error if called for type units.
798         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
799         updated.  Assert not called for type units.
800         (read_file_scope): Call dwarf2_start_symtab.
801         (setup_type_unit_groups): New function.
802         (read_type_unit_scope): Rewrite.
803         (abbrev_table_read_table): Initialize abbrev_table->offset.
804         (abbrev_table_free_cleanup): New function.
805         (dwarf2_start_symtab): New function.
806         (load_full_type_unit): Assert not called for type unit groups.
807         * buildsym.c (finish_block_internal): New arg "expandable".
808         All callers updated.
809         (start_symtab): Move most contents to ...
810         (restart_symtab): ... here.  New function.
811         (reset_symtab_globals): New function.
812         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
813         Call reset_symtab_globals.
814         (end_symtab, end_expandable_symtab): New functions.
815         (set_missing_symtab, augment_type_symtab): New functions.
816         * buildsym.h (end_expandable_symtab): Declare.
817         (augment_type_symtab, restart_symtab): Declare.
818         * psympriv.h (struct partial_symtab): New member "anonymous".
819         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
820         anonymous psymtabs.
821         (read_psymtabs_with_filename): Ditto.
822         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
823         (expand_symtabs_matching_via_partial): Ditto.
824         (dump_psymtab): Update.
825         * dictionary.c (dict_add_pending): New function.
826         * dictionary.h (dict_add_pending): Declare.
827
828 2012-07-09  Doug Evans  <dje@google.com>
829
830         * buildsym.c (start_subfile): Remove unnecessary check for
831         name == NULL.
832
833         * psymtab.c (allocate_psymtab): Use host_address_to_string.
834
835         * dwarf2read.c (load_full_type_unit): Simplify.
836
837         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
838         to struct signatured_type **.  All uses updated.
839
840         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
841         All callers updated.
842
843 2012-07-09  Tom Tromey  <tromey@redhat.com>
844
845         * c-exp.y (check_parameter_typelist): New function.
846         (parameter_typelist): Call it.
847         * eval.c (make_params): Handle '(void)' case.
848         * gdbtypes.c (lookup_function_type_with_arguments): Handle
849         '(void)' case.
850
851 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
852
853         * common/linux-ptrace.c: Include gdb_assert.h.
854         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
855         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
856         stdint.h.
857         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
858         functions.
859         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
860         * linux-nat.c (linux_child_post_attach)
861         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
862
863 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
864
865         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
866         nptl <2.7 bug workaround for core files.
867
868 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
869
870         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
871         clearing.
872         (save_siginfo): Remove.
873         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
874         call.
875         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
876         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
877         * linux-nat.h (struct lwp_info): Remove field siginfo.
878
879 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
880
881         Code cleanup for the next patch.
882         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
883         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
884         call for it.
885         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
886         (ia64_linux_stopped_data_address):
887         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
888         the return value.
889         * linux-nat.h (linux_nat_get_siginfo): Likewise.
890         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
891         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
892         call for it.
893
894 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
895
896         PR 14321
897         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
898         Increase buffer sizes to 2x we need, not just 2x of the previous size.
899
900 2012-07-06  Tom Tromey  <tromey@redhat.com>
901
902         * c-exp.y (DOTDOTDOT): New token.
903         (func_mod, exp): Use parameter_typelist.
904         (parameter_typelist): New production.
905         (tokentab3): Add "..." token.
906         * eval.c (make_params): Handle varargs.
907         * gdbtypes.c (lookup_function_type_with_arguments): Handle
908         varargs.
909
910 2012-07-06  Tom Tromey  <tromey@redhat.com>
911
912         PR exp/9608:
913         * c-exp.y (%union) <tvec>: Change type.
914         (func_mod): Now uses <tvec> type.
915         (exp): Update for tvec change.
916         (direct_abs_decl): Push the typelist.
917         (func_mod): Return a typelist.
918         (nonempty_typelist): Update for tvec change.
919         * gdbtypes.c (lookup_function_type_with_arguments): New function.
920         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
921         * parse.c (pop_type_list): New function.
922         (push_typelist): New function.
923         (follow_types): Handle tp_function_with_arguments.
924         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
925         (enum type_pieces) <tp_function_with_arguments>: New constant.
926         (union type_stack_elt) <typelist_val>: New field.
927         (push_typelist): Declare.
928
929 2012-07-06  Tom Tromey  <tromey@redhat.com>
930
931         * c-exp.y (%union) <type_stack>: New field.
932         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
933         (ptr_operator_ts): New production.
934         (ptype): Update.
935         * parse.c (type_stack_reserve): New function.
936         (check_type_stack_depth): Use it.
937         (pop_type_stack, append_type_stack, push_type_stack)
938         (get_type_stack, type_stack_cleanup): New functions.
939         (follow_types): Handle tp_type_stack.
940         (_initialize_parse): Simplify initialization.
941         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
942         constant.
943         (union type_stack_elt) <stack_val>: New field.
944         (get_type_stack, append_type_stack, push_type_stack)
945         (type_stack_cleanup): Declare.
946
947 2012-07-06  Tom Tromey  <tromey@redhat.com>
948
949         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
950         Remove.
951         (struct type_stack): New.
952         * parse.c (type_stack, type_stack_size, type_stack_depth):
953         Remove.
954         (type_stack): New global.
955         (parse_exp_in_context, check_type_stack_depth)
956         (insert_into_type_stack, insert_type, push_type, push_type_int)
957         (insert_type_address_space, pop_type, pop_type_int)
958         (_initialize_parse): Update.
959
960 2012-07-06  Tom Tromey  <tromey@redhat.com>
961
962         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
963         Remove %type.
964
965 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
966
967         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
968
969 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
970             Jan Kratochvil  <jan.kratochvil@redhat.com>
971
972         * cp-valprint.c (cp_print_value): Replace potentially unsafe
973         alloca with xmalloc/xfree.
974
975 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
976
977         * MAINTAINERS (Write After Approval): Add myself to the list.
978
979 2012-07-05  Doug Evans  <dje@google.com>
980
981         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
982
983 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
984
985         * ax-gdb.c (cli/cli-utils.h): New include.
986         (linespec.h): Ditto.
987         (agent_eval_command_one): New function.
988         (agent_command_1): Ditto.
989         (agent_command): Call function agent_command_1.
990         (agent_eval_command): Ditto.
991         (_initialize_ax_gdb): Change help for "maint agent"
992         and "maint agent-eval".
993
994 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
995
996         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
997         * cli/cli-utils.c (check_for_argument): New function.
998         * cli/cli-utils.h (check_for_argument): Ditto.
999
1000 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1001
1002         * NEWS: Mention x32 ABI support.
1003
1004 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1005
1006         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1007         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1008
1009         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1010         and pc_regnum_from_eax to -1.  Update SP regnum from
1011         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1012         needed.
1013
1014         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1015         pc_regnum_from_eax.
1016
1017 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1018
1019         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1020         * dwarf2expr.h: Include gdbtypes.h.
1021         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1022         these forward declarations.
1023         (cu_offset, sect_offset): Move these ...
1024         * gdbtypes.h: Remove include dwarf2expr.h.
1025         (cu_offset, sect_offset): ... here.
1026
1027 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1030         (amd64_linux_sigtramp_code): This.
1031         (amd64_x32_linux_sigtramp_code): New.
1032         (LINUX_SIGTRAMP_LEN): Updated.
1033         (amd64_linux_sigtramp_start): Check x32 sigtramp.
1034
1035 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1036
1037         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1038
1039 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1040
1041         * config.in: Regenerate.
1042         * configure: Regenerate.
1043         * configure.ac: Remove check for gnu/libc-version.h.
1044         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1045         gnu/libc-version.h.
1046         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1047         variables libc_version, libc_major and libc_minor.  Replace sscanf by
1048         inferior_has_bug.  Extend the comment.
1049
1050 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1051
1052         * linux-thread-db.c (inferior_has_bug): New function.
1053         (thread_db_find_new_threads_silently): Return boolean as checked by
1054         inferior_has_bug, describe it in the comments.
1055         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1056         earlier.  Abort the initialization if it returned non-zero.
1057         (thread_db_new_objfile): Exclude debug files.
1058         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
1059         if UNTIL_NO_NEW,
1060
1061 2012-07-02  Doug Evans  <dje@google.com>
1062
1063         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1064         related to queue management.
1065
1066         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1067         instead of "debug dwarf2-die" in debugging printfs.
1068         (create_debug_info_hash_table_reader): Ditto.
1069         (create_debug_info_hash_table): Ditto.
1070         (init_dwo_file): Ditto.
1071         (init_cutu_and_read_dies): Add debugging printf.
1072         (init_cutu_and_read_dies_no_follow): Ditto.
1073         (process_psymtab_comp_unit_reader): Ditto.
1074
1075 2012-07-02  Stan Shebs  <stan@codesourcery.com>
1076
1077         Add target-side support for dynamic printf.
1078         * NEWS: Mention the additional style.
1079         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1080         (struct bp_location): New field cmd_bytecode.
1081         * breakpoint.c: Include format.h.
1082         (disconnected_dprintf): New global.
1083         (parse_cmd_to_aexpr): New function.
1084         (build_target_command_list): New function.
1085         (insert_bp_location): Call it.
1086         (remove_breakpoints_pid): Skip dprintf breakpoints.
1087         (print_one_breakpoint_location): Ditto.
1088         (dprintf_style_agent): New global.
1089         (dprintf_style_enums): Add dprintf_style_agent.
1090         (update_dprintf_command_list): Add agent case.
1091         (agent_printf_command): New function.
1092         (_initialize_breakpoint): Add new commands.
1093         * common/ax.def (printf): New bytecode.
1094         * ax.h (ax_string): Declare.
1095         * ax-gdb.h (gen_printf): Declare.
1096         * ax-gdb.c: Include cli-utils.h, format.h.
1097         (gen_printf): New function.
1098         (maint_agent_print_command): New function.
1099         (_initialize_ax_gdb): Add maint agent-printf command.
1100         * ax-general.c (ax_string): New function.
1101         (ax_print): Add printf disassembly.
1102         * Makefile.in (SFILES): Add format.c
1103         (COMMON_OBS): Add format.o.
1104         * common/format.h: New file.
1105         * common/format.c: New file.
1106         * printcmd.c: Include format.h.
1107         (ui_printf): Call parse_format_string.
1108         * remote.c (remote_state): New field breakpoint_commands.
1109         (PACKET_BreakpointCommands): New enum.
1110         (remote_breakpoint_commands_feature): New function.
1111         (remote_protocol_features): Add new BreakpointCommands entry.
1112         (remote_can_run_breakpoint_commands): New function.
1113         (remote_add_target_side_commands): New function.
1114         (remote_insert_breakpoint): Call it.
1115         (remote_insert_hw_breakpoint): Ditto.
1116         (_initialize_remote): Add new packet configuration for
1117         target-side breakpoint commands.
1118         * target.h (struct target_ops): New field
1119         to_can_run_breakpoint_commands.
1120         (target_can_run_breakpoint_commands): New macro.
1121         * target.c (update_current_target): Handle
1122         to_can_run_breakpoint_commands.
1123
1124 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1125
1126         Execute -ix and -iex only after system and user gdbinit files.
1127         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1128         processing down after gdbinit files.
1129
1130 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1131
1132         Add fnmatch-gnu module.
1133         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1134         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1135         * gnulib/aclocal.m4: Regenerate.
1136         * gnulib/config.in: Regenerate.
1137         * gnulib/configure: Regenerate.
1138         * gnulib/import/dummy.c: Remove.
1139         * gnulib/import/Makefile.am: Regenerate.
1140         * gnulib/import/Makefile.in: Likewise.
1141         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1142         * gnulib/import/m4/gnulib-comp.m4: Likewise.
1143         * gnulib/import/alloca.c: New file.
1144         * gnulib/import/alloca.in.h: Likewise.
1145         * gnulib/import/config.charset: Likewise.
1146         * gnulib/import/fnmatch.c: Likewise.
1147         * gnulib/import/fnmatch.in.h: Likewise.
1148         * gnulib/import/fnmatch_loop.c: Likewise.
1149         * gnulib/import/localcharset.c: Likewise.
1150         * gnulib/import/localcharset.h: Likewise.
1151         * gnulib/import/m4/alloca.m4: Likewise.
1152         * gnulib/import/m4/codeset.m4: Likewise.
1153         * gnulib/import/m4/configmake.m4: Likewise.
1154         * gnulib/import/m4/fcntl-o.m4: Likewise.
1155         * gnulib/import/m4/fnmatch.m4: Likewise.
1156         * gnulib/import/m4/glibc21.m4: Likewise.
1157         * gnulib/import/m4/localcharset.m4: Likewise.
1158         * gnulib/import/m4/locale-fr.m4: Likewise.
1159         * gnulib/import/m4/locale-ja.m4: Likewise.
1160         * gnulib/import/m4/locale-zh.m4: Likewise.
1161         * gnulib/import/m4/mbrtowc.m4: Likewise.
1162         * gnulib/import/m4/mbsinit.m4: Likewise.
1163         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1164         * gnulib/import/m4/mbstate_t.m4: Likewise.
1165         * gnulib/import/m4/stdbool.m4: Likewise.
1166         * gnulib/import/m4/wchar_h.m4: Likewise.
1167         * gnulib/import/m4/wctype_h.m4: Likewise.
1168         * gnulib/import/m4/wint_t.m4: Likewise.
1169         * gnulib/import/mbrtowc.c: Likewise.
1170         * gnulib/import/mbsinit.c: Likewise.
1171         * gnulib/import/mbsrtowcs-impl.h: Likewise.
1172         * gnulib/import/mbsrtowcs-state.c: Likewise.
1173         * gnulib/import/mbsrtowcs.c: Likewise.
1174         * gnulib/import/ref-add.sin: Likewise.
1175         * gnulib/import/ref-del.sin: Likewise.
1176         * gnulib/import/stdbool.in.h: Likewise.
1177         * gnulib/import/streq.h: Likewise.
1178         * gnulib/import/strnlen1.c: Likewise.
1179         * gnulib/import/strnlen1.h: Likewise.
1180         * gnulib/import/verify.h: Likewise.
1181         * gnulib/import/wchar.in.h: Likewise.
1182         * gnulib/import/wctype.in.h: Likewise.
1183
1184 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1185
1186         Support shell wildcards for 'set auto-load safe-path'.
1187         * auto-load.c: Include fnmatch.h.
1188         (filename_is_in_dir): Rename to ...
1189         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1190         it.  Update function comment.  Rename dir_len to pattern_len.  New
1191         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
1192         messages.  Use gdb_filename_fnmatch.
1193         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1194         pattern.
1195         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1196         * defs.h (gdb_filename_fnmatch): New declaration.
1197         * utils.c: Include fnmatch.h.
1198         (gdb_filename_fnmatch): New function.
1199
1200 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
1201
1202         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1203         `-probe' and `-probe-stap' options.
1204
1205 2012-07-01  Yao Qi  <yao@codesourcery.com>
1206
1207         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1208         always_inserted_off, and always_inserted_enums.
1209         Change always_inserted_mode's type to 'enum auto_boolean'.
1210         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1211         callers.
1212         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1213         of add_setshow_enum_cmd.
1214         * infrun.c: Remove can_use_displaced_stepping_auto,
1215         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1216         can_use_displaced_stepping_enum.
1217         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1218         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1219         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1220         add_setshow_enum_cmd.
1221
1222 2012-06-30  Doug Evans  <dje@google.com>
1223
1224         * dwarf2read.c (signatured_type): Make "per_cu" member first.
1225         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1226         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
1227
1228 2012-06-29  Doug Evans  <dje@google.com>
1229
1230         * linespec.c: #include "stack.h".
1231         (decode_line_with_current_source): Moved here from symtab.c and
1232         renamed from decode_line_spec.  All callers updated.
1233         (decode_line_with_last_displayed): Moved here from breakpoint.c and
1234         renamed from decode_line_spec_1.  All callers updated.
1235         * linespec.h (decode_line_with_current_source): Move declaration here
1236         from symtab.h and renamed from decode_line_spec.
1237         (decode_line_with_last_displayed): Move declaration here from symtab.h
1238         and renamed from decode_line_spec_1.
1239         * macrocmd.c: #include "linespec.h".
1240         * symtab.c: Remove #include "linespec.h".
1241
1242 2012-06-28  Doug Evans  <dje@google.com>
1243
1244         * dwarf2read.c (get_cu_length): New function.
1245         (offset_in_cu_p, error_check_comp_unit_head): Call it.
1246         (create_debug_types_hash_table): Ditto.
1247         (init_cutu_and_read_dies): Ditto.
1248         (init_cutu_and_read_dies_no_follow): Ditto.
1249
1250         * dwarf2read.c (dwarf2_find_base_address): Move definition.
1251
1252         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1253         (struct abbrev_table): Define.
1254         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1255         abbrev_table.
1256         (init_cutu_and_read_dies): Update.
1257         (abbrev_table_alloc_abbrev): New function.  Replaces
1258         dwarf_alloc_abbrev.  All callers updated.
1259         (abbrev_table_add_abbrev): New function.
1260         (abbrev_table_lookup_abbrev): New function.  Replaces
1261         dwarf2_lookup_abbrev.  All callers updated.
1262         (abbrev_table_read_table): New function.  Contents moved here from
1263         dwarf2_read_abbrevs.
1264         (dwarf2_read_abbrevs): Call it.
1265         (abbrev_table_free): New function.
1266         (dwarf2_free_abbrev_table): Call it.
1267
1268 2012-06-28  Stan Shebs  <stan@codesourcery.com>
1269
1270         * osdata.c (info_osdata_command): Filter out "Title" columns
1271         from non-MI uses.
1272         * common/linux-osdata.c (struct osdata_type): Add title field.
1273         (osdata_table): Add titles to each entry.
1274         (linux_command_xfer_osdata): Add a column for title data.
1275
1276 2012-06-28  Stan Shebs  <stan@codesourcery.com>
1277
1278         Make logging work for MI.
1279         * NEWS: Mention it.
1280         * interps.h (interp_set_logging_ftype): New typedef.
1281         (struct interp_procs): New field set_logging_proc.
1282         (current_interp_set_logging): Declare.
1283         * interps.c (current_interp_set_logging): New function.
1284         * cli/cli-logging.c: Include interps.h.
1285         (set_logging_redirect): Call current_interp_set_logging.
1286         (pop_output_files): Ditto.
1287         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1288         * mi/mi-console.h (mi_console_set_raw): Declare.
1289         * mi/mi-console.c (mi_console_set_raw): New function.
1290         * mi/mi-interp.c (saved_raw_stdout): New global.
1291         (mi_set_logging): New function.
1292         (_initialize_mi_interp): Add it to interp procs.
1293
1294 2012-06-28  Doug Evans  <dje@google.com>
1295
1296         * symtab.c (lookup_symbol_aux_objfile): Use
1297         ALL_OBJFILE_PRIMARY_SYMTABS.
1298
1299         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1300
1301 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1302
1303         * common/buffer.c: Include inttypes.h and stdint.h.
1304         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1305
1306 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1307             Pedro Alves  <palves@redhat.com>
1308
1309         * gdbthread.h (ALL_THREADS): New macro.
1310         (thread_list): Declare.
1311         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1312         going, but instead fall through to the stepping handling.
1313         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
1314         the passed in signal.  Adjust debug output.
1315         (resume_callback): Rename to ...
1316         (linux_nat_resume_callback): ... this.  Pass the thread's last
1317         stop signal, if in "pass" state.
1318         (linux_nat_resume): Adjust to rename.
1319         (stop_wait_callback): New assertion.  Don't respawn signals;
1320         instead let the LWP remain with SIGNALLED set.
1321         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1322         * remote.c (append_pending_thread_resumptions): New.
1323         (remote_vcont_resume): Call it.
1324         * target.h (target_resume): Extend comment.
1325
1326 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
1327
1328         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1329
1330 2012-06-27  Doug Evans  <dje@google.com>
1331
1332         * dwarf2read.c (dwarf2_cu): Add ranges_base.
1333         Delete have_addr_base, unused.  All uses updated.
1334         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1335         (dwarf2_get_pc_bounds): Add ranges_base.
1336         (dwarf2_record_block_ranges): Ditto.
1337
1338 2012-06-27  Tom Tromey  <tromey@redhat.com>
1339
1340         PR macros/7961:
1341         * varobj.c (varobj_create): Update.
1342         (varobj_set_value): Update.
1343         * tracepoint.c (validate_actionline): Update.
1344         (encode_actions_1): Update.
1345         * parse.c (parse_exp_1): Add 'pc' argument.
1346         (parse_exp_in_context): Add 'pc' argument.  Change how
1347         expression_context_pc is set.
1348         (parse_expression): Update.
1349         (parse_field_expression): Update.
1350         * expression.h (parse_exp_1): Update.
1351         * eval.c (parse_to_comma_and_eval): Update.
1352         * breakpoint.c (set_breakpoint_condition): Update.
1353         (update_watchpoint): Update.
1354         (init_breakpoint_sal): Update
1355         (find_condition_and_thread): Update.
1356         (watch_command_1): Update.
1357         (update_breakpoint_locations): Update.
1358         * ada-lang.c (ada_read_renaming_var_value): Update.
1359         (create_excep_cond_exprs): Update.
1360
1361 2012-06-27  Doug Evans  <dje@google.com>
1362
1363         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1364         type units.
1365
1366 2012-06-26  Doug Evans  <dje@google.com>
1367
1368         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1369         prototype.
1370         (error_check_comp_unit_head): New arg abbrev_section.  All callers
1371         updated.
1372         (read_and_check_comp_unit_head): Ditto.
1373         (read_and_check_type_unit_head): Ditto.
1374
1375 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
1376
1377         New attribute 'last' for gdb.Symtab_and_line.
1378         * NEWS (Python Scripting): Add entry about the new attribute.
1379         * python/py-symtab.c (salpy_get_last): New function which
1380         implements the get method for the 'last' attribute of
1381         gdb.Symtab_and_line.
1382         (sal_object_getset): Add entry for the 'last' attribute.
1383
1384 2012-06-26  Doug Evans  <dje@google.com>
1385
1386         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1387         (dwo_sections): Add macinfo, macro.
1388         (dwarf2_locate_dwo_sections): Watch for macro sections.
1389         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1390         All callers updated.  Handle DWO files.
1391
1392         * NEWS: Mention new options "set debug dwarf2-read" and
1393         "set debug symtab-create".
1394         * dwarf2read.c (dwarf2_read_debug): New static global.
1395         (dwarf2_build_psymtabs_hard): Add debugging printfs.
1396         (process_queue): Ditto.
1397         (process_full_comp_unit): Ditto.
1398         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1399         * elfread.c (elf_symfile_read): Add debugging printf.
1400         * minsyms.c (install_minimal_symbols): Ditto.
1401         * psymtab.c (allocate_psymtab): Ditto.
1402         * symfile.c (allocate_symtab): Ditto.
1403         * symtab.c (symtab_create_debug): New global.
1404         (_initialize_symtab): Add new option "set debug symtab-create".
1405         * symtab.h (symtab_create_debug): Declare.
1406
1407         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1408         (lookup_dwo_type_unit): Ditto.
1409
1410 2012-06-26  Roland McGrath  <roland@hack.frob.com>
1411             H.J. Lu  <hongjiu.lu@intel.com>
1412
1413         * amd64-linux-nat.c: Include <sys/user.h>.
1414         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1415         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1416         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1417
1418         * configure.ac: Check if the fs_base and gs_base members of
1419         `struct user_regs_struct' exist.
1420         * config.in: Regenerated.
1421         * configure: Likewise.
1422
1423 2012-06-25  Michael Eager  <eager@eagercon.com>
1424
1425         PR python/14291
1426         * python/python.c (gdbpy_write): Check for interrupted output. 
1427
1428 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
1429
1430         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1431         register as a stack alignment in ARM mode.
1432
1433 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1434
1435         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1436         * gnulib/config.in: Regenerate.
1437         * gnulib/configure: Likewise.
1438         * gnulib/import/m4/extensions.m4: Update it.
1439         * gnulib/import/m4/gnulib-common.m4: Likewise.
1440         * gnulib/import/m4/memmem.m4: Likewise.
1441         * gnulib/import/m4/mmap-anon.m4: Likewise.
1442         * gnulib/import/m4/multiarch.m4: Likewise.
1443         * gnulib/import/stdint.in.h: Likewise.
1444
1445 2012-06-24  Yao Qi  <yao@codesourcery.com>
1446
1447         * corefile.c (write_memory_with_notification): New.
1448         * gdbcore.h: Declare write_memory_with_notification.
1449         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1450         'observer_notify_memory_changed' with 'write_memory_with_notification'.
1451         * valops.c (value_assign): Likewise.
1452         * python/py-inferior.c (infpy_write_memory): Call
1453         'write_memory_with_notification'.
1454
1455 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1456
1457         * cc-with-index.sh: Use also -ex "set auto-load no".
1458
1459 2012-06-23  Doug Evans  <dje@google.com>
1460
1461         PR 14125
1462         * NEWS: Document additions to .gdb_index.
1463         * dwarf2read.c: #include "gdb/gdb-index.h".
1464         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1465         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1466         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1467         (dwarf2_read_index): Recognize version 7.
1468         (dw2_do_expand_symtabs_matching): New args want_specific_block,
1469         block_kind, domain): All callers updated.
1470         (dw2_find_symbol_file): Handle new index CU values.
1471         (dw2_expand_symtabs_matching): Match symbol kind if requested.
1472         (add_index_entry): New args is_static, kind.  All callers updated.
1473         (offset_type_compare, uniquify_cu_indices): New functions
1474         (symbol_kind): New function.
1475         (write_psymtabs_to_index): Remove duplicate CU values.
1476         (write_psymtabs_to_index): Write .gdb_index version 7.
1477
1478 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
1479
1480         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1481         * configure: Regenerate.
1482
1483 2012-06-20  Yao Qi  <yao@codesourcery.com>
1484
1485         * python/py-inferior.c: Update comments of infpy_read_memory
1486         and infpy_write_memory.
1487
1488 2012-06-19  Tom Tromey  <tromey@redhat.com>
1489
1490         PR exp/9514:
1491         * parser-defs.h (insert_type, insert_type_address_space): Declare.
1492         (push_type_address_space): Remove.
1493         * parse.c (insert_into_type_stack): New function.
1494         (insert_type): Likewise.
1495         (insert_type_address_space): Rename from push_type_address_space.
1496         Insert tp_space_identifier.
1497         * c-exp.y (ptr_operator): New production.
1498         (abs_decl): Use ptr_operator.
1499         (space_identifier): Call insert_type_address_space.
1500         (ptype): Don't use const_or_volatile_or_space_identifier.
1501         (const_or_volatile_noopt): Call insert_type.
1502         (conversion_type_id, conversion_declarator): New productions.
1503         (operator): Use conversion_type_id.
1504
1505 2012-06-18  Doug Evans  <dje@google.com>
1506
1507         * symtab.h (minimal_symbol): New member created_by_gdb.
1508         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1509         created by gdb.
1510         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1511         (search_symbols): Call it instead of lookup_symbol.
1512         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
1513
1514         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1515         Adjust address for DW_OP_GNU_addr_index.
1516         * dwarf2expr.h (dwarf_expr_context): Update comment.
1517         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1518         all callers updated.  Handle TLS vars described with
1519         DW_OP_GNU_const_index.
1520         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1521         and DW_OP_GNU_const_index.
1522         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1523
1524         * block.c (find_block_in_blockvector): Make explicit the fact that we
1525         ignore GLOBAL_BLOCK.
1526
1527 2012-06-18  Tom Tromey  <tromey@redhat.com>
1528
1529         * c-exp.y (operator): Remove trailing space after "delete" and
1530         "delete[]".
1531
1532 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
1533             Jan Kratochvil  <jan.kratochvil@redhat.com>
1534
1535         Switch i386 and derived targets to ON_STACK.
1536         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1537         (amd64_dicos_init_abi): Remove its installment.
1538         * dicos-tdep.c (dicos_init_abi): Remove the
1539         set_gdbarch_call_dummy_location call.  Update the comment here.
1540         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1541         (i386_dicos_init_abi): Remove its installment.
1542         * i386-tdep.c (i386_push_dummy_code): New function.
1543         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1544         i386_push_dummy_code.
1545
1546 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1547
1548         Remove stale dummy frames.
1549         * breakpoint.c: Include dummy-frame.h.
1550         (longjmp_breakpoint_ops): New variable.
1551         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1552         bp_longjmp_call_dummy.
1553         (bpstat_what, bptype_string, print_one_breakpoint_location)
1554         (init_bp_location): Support bp_longjmp_call_dummy.
1555         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
1556         (set_longjmp_breakpoint_for_call_dummy)
1557         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1558         functions.
1559         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1560         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
1561         FIXME comment and extend the other comment for bp_call_dummy.
1562         (set_longjmp_breakpoint_for_call_dummy)
1563         (check_longjmp_breakpoint_for_call_dummy): New declarations.
1564         * dummy-frame.c: Include gdbthread.h.
1565         (pop_dummy_frame_bpt): New function.
1566         (pop_dummy_frame): Call pop_dummy_frame_bpt.
1567         (dummy_frame_discard): New function.
1568         (cleanup_dummy_frames): Update the comment about longjmps.
1569         * dummy-frame.h (dummy_frame_discard): New declaration.
1570         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1571         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
1572         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
1573         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1574         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
1575         keep_going if IS_LONGJMP and there is no other reason to stop.
1576
1577 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
1578
1579         * remote-sim.c (sim_command_completer): Initialize
1580         variable 'result'.
1581
1582 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1583
1584         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1585         * dwarf2loc.c (call_site_parameter_matches): Support
1586         CALL_SITE_PARAMETER_PARAM_OFFSET.
1587         (needs_dwarf_reg_entry_value): Push stub value.
1588         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
1589         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1590         * gdbtypes.h (enum call_site_parameter_kind): New item
1591         CALL_SITE_PARAMETER_PARAM_OFFSET.
1592         (struct call_site.parameter.u): New field param_offset.
1593
1594 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1595
1596         Code cleanup: Generalize call_site.parameter key.
1597         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1598         variable dwarf_reg.  New variable kind_u.  Update parameters to
1599         push_dwarf_reg_entry_value.
1600         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1601         * dwarf2expr.h (enum call_site_parameter_kind)
1602         (union call_site_parameter_u): Forward declarations.
1603         (struct dwarf_expr_context_funcs): Update parameters and their
1604         description for push_dwarf_reg_entry_value.
1605         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1606         * dwarf2loc.c (call_site_parameter_matches): New function.
1607         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1608         description.  Use call_site_parameter_matches.
1609         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1610         Update parameters and their description.
1611         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1612         New variable kind_u.  Adjust the caller for updated parameters.
1613         (needs_dwarf_reg_entry_value): Update parameters.
1614         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
1615         instead of attr.  Update for the changed fields of struct
1616         call_site_parameter.
1617         * gdbtypes.h: Include dwarf2expr.h.
1618         (enum call_site_parameter_kind): New.
1619         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
1620         fb_offset into new union u.
1621
1622 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
1623
1624         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1625         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1626         for x32.
1627
1628 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
1629
1630         * amd64-linux-nat.c (compat_x32_clock_t): New.
1631         (compat_x32_siginfo_t): Likewise.
1632         (compat_x32_siginfo_from_siginfo): Likewise.
1633         (siginfo_from_compat_x32_siginfo): Likewise.
1634         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1635         and siginfo_from_compat_x32_siginfo for x32.
1636
1637 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
1638
1639         * tracepoint.c (tfile_xfer_partial): Add a lseek.
1640
1641 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1644         instead of gdbarch_ptr_bit.
1645         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1646         (amd64_supply_native_gregset): Likewise.
1647         (amd64_collect_native_gregset): Likewise.
1648         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1649         (amd64_supply_xsave): Likewise.
1650         (amd64_collect_fxsave): Likewise.
1651         (amd64_collect_xsave): Likewise.
1652
1653 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1654
1655         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1656         (amd64_linux_read_description): Check DS segment register for
1657         x32 process.
1658
1659 2012-06-15  Tom Tromey  <tromey@redhat.com>
1660
1661         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1662         init_cutu_and_read_dies.
1663
1664 2012-06-15  Iain Sandoe <iain@codesourcery.com>
1665
1666         * MAINTAINERS (Write After Approval): Add myself to the list.
1667
1668 2012-06-15  Tom Tromey  <tromey@redhat.com>
1669
1670         * valops.c (value_find_oload_method_list): Now static.
1671         * value.h (value_find_oload_method_list): Don't declare.
1672
1673 2012-06-15  Tom Tromey  <tromey@redhat.com>
1674
1675         * valops.c (find_overload_match): Use value_ind.
1676
1677 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
1678
1679         * infrun.c (handle_inferior_event): Correct indentation.
1680
1681 2012-06-14  Doug Evans  <dje@google.com>
1682
1683         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1684         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1685         All uses updated.
1686         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
1687         updated.  Handle DEBUG_LOC_START_LENGTH.
1688         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1689         (loclist_describe_location): Ditto.
1690
1691 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
1692
1693         PR backtrace/13866
1694         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1695         after hiding inline functions.
1696
1697 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
1698
1699         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1700         _initialize_inf_ttrace.
1701
1702 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
1703
1704         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1705         _initialize_hppa_hpux_nat.
1706
1707 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
1708
1709         * remote-sim.c (sim_command_completer): Change type of return
1710         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
1711
1712 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
1713             Jan Kratochvil  <jan.kratochvil@redhat.com>
1714
1715         PR tdep/14222
1716         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1717         stack on a 16-byte boundary.
1718
1719 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
1720
1721         * jit.c (finalize_symtab): Set function's return type to 'void' by
1722         default.
1723
1724 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
1725             H.J. Lu  <hongjiu.lu@intel.com>
1726
1727         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1728         Move bits common to both the classic LP64 and the new x32 ILP32
1729         ABI here.
1730         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1731         (amd64_x32_linux_init_abi): New function.
1732         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1733         subtype.
1734
1735         * i386-tdep.h (i386_pseudo_register_name): New prototype.
1736         * i386-tdep.c (i386_pseudo_register_name): Make public.
1737         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1738         * amd64-tdep.c (amd64_dword_names): Add "eip".
1739         (amd64_x32_pseudo_register_type): New function
1740         (amd64_x32_init_abi): New function.
1741
1742 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1743
1744         PR build/14003
1745         * inferior.h (struct inferior_suspend_state): Comment out.
1746         (struct inferior): Comment out the field suspend.
1747         * infrun.c (struct infcall_suspend_state): Comment out the field
1748         inferior_suspend.
1749         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1750         out its assignment.
1751
1752 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1753
1754         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1755         * c-exp.y (classify_inner_name): Remove caller assumptions in the
1756         function comment.  Return ERROR for unresolved cases.  Implement
1757         returning proper NAME.
1758         (yylex): Accept also NAME from classify_inner_name.
1759         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1760         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
1761         LOC_TYPEDEF type.
1762         * cp-support.h (cp_lookup_nested_type): Update its declaration.
1763
1764 2012-06-13  Tom Tromey  <tromey@redhat.com>
1765
1766         * breakpoint.c (condition_completer): New function.
1767         (_initialize_breakpoint): Use it.
1768         * value.c (complete_internalvar): New function.
1769         * value.h (complete_internalvar): Declare.
1770
1771 2012-06-13  Tom Tromey  <tromey@redhat.com>
1772
1773         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1774         * breakpoint.c (catch_syscall_completer): Return a VEC.
1775         * cli/cli-cmds.c (complete_command): Update.
1776         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1777         (complete_on_enum): Likewise.
1778         * command.h: Include gdb_vecs.h.
1779         (completer_ftype): Change return type.
1780         (complete_on_cmdlist, complete_on_enum): Likewise.
1781         * completer.c (noop_completer, filename_completer)
1782         (location_completer): Return a VEC.
1783         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
1784         to a VEC.
1785         (expression_completer, complete_line_internal, complete_line)
1786         (command_completer): Return a VEC.
1787         (gdb_completion_word_break_characters, line_completion_function):
1788         Update.
1789         * completer.h: Include gdb_vecs.h.
1790         (complete_line, noop_completer, filename_completer)
1791         (expression_completer, location_completer, command_completer):
1792         Update.
1793         * f-lang.c (f_word_break_characters): Return a VEC.
1794         * interps.c (interpreter_completer): Return a VEC.
1795         * language.h (struct language_defn)
1796         <la_make_symbol_completion_list>: Return a VEC.
1797         * python/py-cmd.c (cmdpy_completer): Return a VEC.
1798         * symtab.c (free_completion_list): Take a VEC.
1799         (return_val_size, return_val_index): Remove.
1800         (return_val): Now a VEC.
1801         (completion_list_add_name): Update.
1802         (default_make_symbol_completion_list_break_on)
1803         (default_make_symbol_completion_list, make_symbol_completion_list)
1804         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1805         Return a VEC.
1806         (add_filename_to_list): Update.
1807         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1808         <list>: Now a VEC.
1809         (maybe_add_partial_symtab_filename): Update.
1810         (make_source_files_completion_list): Return a VEC.
1811         * symtab.h (default_make_symbol_completion_list_break_on)
1812         (default_make_symbol_completion_list, make_symbol_completion_list)
1813         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1814         (make_source_files_completion_list): Update.
1815
1816 2012-06-13  Tom Tromey  <tromey@redhat.com>
1817
1818         * breakpoint.c (add_catch_command): Use completer_ftype.
1819         * breakpoint.h: Include command.h.
1820         (add_catch_command): Use completer_ftype.
1821         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1822         * cli/cli-decode.h (struct cmd_list_element) <completer>:
1823         Use completer_ftype.
1824         * command.h (completer_ftype): New typedef.
1825         (set_cmd_completer): Use it.
1826         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1827         completer_ftype.
1828
1829 2012-06-13  Pedro Alves  <palves@redhat.com>
1830
1831         Partial revert of previous change.
1832
1833         * serial.c (scb_base): New global.
1834         (serial_for_fd): New.
1835         (serial_open, serial_fdopen_ops): Link new serial in open serials
1836         chain.
1837         (do_serial_close): Unlink serial from the open serials chain.
1838
1839 2012-06-12  Pedro Alves  <palves@redhat.com>
1840
1841         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1842         threads here.
1843         (prepare_for_detach): No longer context switch here in non-stop
1844         mode.
1845         (fetch_inferior_event): Ditto.
1846         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1847         to the event thread before removing breakpoints.  Switch to the
1848         event thread before inserting breakpoints and resuming.
1849         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1850         event thread before resuming.
1851         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1852         Switch to the event thread before removing breakpoints.
1853
1854 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
1855
1856         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1857         special characters correctly for the Windows shells.  See
1858         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1859         report.
1860         [!__MINGW32__]: Remove extra double quote character from special
1861         characters.
1862
1863 2012-06-11  Stan Shebs  <stan@codesourcery.com>
1864
1865         * ui-out.h: Remove #if 0 declarations.
1866         * ui-out.c: Remove #if 0 functions.
1867
1868 2012-06-11  Pedro Alves  <palves@redhat.com>
1869
1870         * ser-base.c (run_async_handler_and_reschedule): New.
1871         (fd_event, push_event): Use it.
1872         * serial.c (serial_open, serial_fdopen_ops): Set the initial
1873         reference count to 1.
1874         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
1875         instead of xfree.
1876         (serial_is_open, serial_ref, serial_unref): New.
1877         * serial.h (serial_open): Adjust comment.
1878         (serial_is_open): Declare.
1879         (serial_close): Adjust comment.
1880         (serial_ref, serial_unref) Declare.
1881         (struct serial): New field 'refcnt'.
1882
1883 2012-06-11  Pedro Alves  <palves@redhat.com>
1884
1885         Remove #if 0'd "connect" command, and unnecessary associated
1886         refcounting and serial reuse bits.
1887
1888         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1889         * serial.c (last_serial_opened): Delete.
1890         (scb_base): Delete.
1891         (serial_open): Adjust.
1892         (serial_for_fd): Delete.
1893         (serial_fdopen_ops, do_serial_close): Adjust.
1894         (serial_fdopen_ops): Adjust.
1895
1896 2012-06-11  Pedro Alves  <palves@redhat.com>
1897
1898         * serial.c (do_serial_close): Remove early return when SCB is
1899         null.
1900
1901 2012-06-11  Tom Tromey  <tromey@redhat.com>
1902
1903         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1904
1905 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1906
1907         Fix regression by the "ambiguous linespec" series.
1908         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
1909         get_last_displayed_symtab and get_last_displayed_line and depending
1910         on CURSAL.
1911
1912 2012-06-11  Tom Tromey  <tromey@redhat.com>
1913
1914         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1915         (dw2_find_symbol_file): Use it.
1916
1917 2012-06-11  Michael Eager  <eager@eagercon.com>
1918
1919         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1920         * mips-linux-tdep.h (mips_signals): New
1921
1922 2012-06-11  Tom Tromey  <tromey@redhat.com>
1923
1924         * infrun.c (handle_inferior_event)
1925         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1926         breakpoint.
1927         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1928         exception logic in all cases.  Update comments.
1929         (insert_longjmp_resume_breakpoint): Set the exception resume
1930         breakpoint.
1931
1932 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
1933
1934         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1935
1936 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
1937
1938         * valarith.c (binop_types_user_defined_p): Fix a typo.
1939
1940 2012-06-08  Yao Qi  <yao@codesourcery.com>
1941             Chung-Lin Tang <cltang@codesourcery.com>
1942
1943         * arch-utils.c (default_return_in_first_hidden_param_p): New.
1944         * arch-utils.h: Declare.
1945         * gdbarch.sh: Add return_in_first_hidden_param_p.
1946         * gdbarch.c, gdbarch.h: Regenerated.
1947         * infcall.c (call_function_by_hand): Call
1948         gdbarch_return_in_first_hidden_param_p instead of
1949         language_pass_by_reference.
1950
1951         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1952         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1953         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1954         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1955         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1956         `cplus_return_struct_by_reference'.
1957         (tic6x_return_value): Handle language cplusplus.
1958         (tic6x_return_in_first_hidden_param_p): New.
1959         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1960
1961 2012-06-07  Doug Evans  <dje@google.com>
1962
1963         * dwarf2read.c (dwarf2_cu): Add comment.
1964
1965 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
1966
1967         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1968         variable.
1969         (mips_eabi_push_dummy_call): Likewise.
1970         (mips_n32n64_push_dummy_call): Likewise.
1971         (mips_o32_push_dummy_call): Likewise.
1972         (mips_o64_push_dummy_call): Likewise.
1973
1974 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
1975
1976         * mips-tdep.c (mips_convert_register_p): Correct coding style.
1977
1978 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
1979
1980         * mips-tdep.c (mips_pseudo_register_type): Use
1981         mips_float_register_p.
1982
1983 2012-06-06  Pedro Alves  <palves@redhat.com>
1984
1985         * infrun.c (handle_inferior_event): Remove calls to
1986         reinit_frame_cache that follow a context_switch call.
1987
1988 2012-06-06  Pedro Alves  <palves@redhat.com>
1989
1990         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1991         context_switch and remove stale comment.
1992
1993 2012-06-06  Pedro Alves  <palves@redhat.com>
1994
1995         * infrun.c (struct execution_control_state): Remove
1996         `new_thread_event' field.
1997         (handle_inferior_event): Simplify new threads handling; don't
1998         resume the inferior if we find a new thread.
1999
2000 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
2001
2002         * NEWS: Document the deprecation of SH's 'regs' command.
2003         * inferior.h (all_registers_info): Add function declaration.
2004         * sh-tdep.c (sh_show_regs): Remove variable.
2005         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2006         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2007         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2008         (sh_show_regs_command): Remove functions.
2009         (sh_gdbarch_init): Don't set sh_show_regs.
2010         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2011         'info all-registers'.
2012         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2013         (sh64_show_regs): Remove functions.
2014         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2015
2016 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2017
2018         * configure.ac: Move development=true below AC_INIT.
2019         * configure: Regenerate.
2020
2021 2012-06-05  Stan Shebs  <stan@codesourcery.com>
2022
2023         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2024         gdb_stdout.
2025
2026 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2027
2028         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2029         argument as ssize_t.
2030         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2031         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2032         * target.c (target_read_stack, target_write_memory)
2033         (target_write_raw_memory): Likewise.
2034         * target.h (target_read_stack, target_write_memory)
2035         (target_write_raw_memory): Likewise.
2036
2037 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2038
2039         * symfile-mem.c: Change gdb_static_assert to ssize_t.
2040         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2041         * target.c (target_read_memory): Change LEN to ssize_t.
2042         * target.h (target_read_memory): Change LEN to ssize_t.
2043
2044 2012-06-05  Pedro Alves  <palves@redhat.com>
2045
2046         PR backtrace/13866
2047
2048         * breakpoint.c (until_break_command): Only fetch the selected
2049         frame after decode_line_1.
2050
2051 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2052
2053         * solib-svr4.c (enable_break): Don't fallback to setting the solib
2054         event breakpoint at _start, __start or main if a program
2055         interpreter is not found.
2056
2057 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2058
2059         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2060         Add declaration.
2061         * windows-tdep.c: #include "objfiles.h".
2062         (windows_iterate_over_objfiles_in_search_order): New function.
2063         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2064         iterate_over_objfiles_in_search_order gdbarch method to
2065         windows_iterate_over_objfiles_in_search_order.
2066         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2067
2068 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2069
2070         * gdbarch.sh: Add generation of
2071         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2072         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
2073         (iterate_over_objfiles_in_search_order): New gdbarch method.
2074         * gdbarch.h, gdbarch.c: Regenerate.
2075         * objfiles.h (default_iterate_over_objfiles_in_search_order):
2076         Add declaration.
2077         * objfiles.c (default_iterate_over_objfiles_in_search_order):
2078         New function.
2079         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2080         out of lookup_symbol_aux_symtabs.
2081         (lookup_symbol_aux_symtabs): Replace extracted-out code by
2082         call to lookup_symbol_aux_objfile.
2083         (struct global_sym_lookup_data): New type.
2084         (lookup_symbol_global_iterator_cb): New function.
2085         (lookup_symbol_global): Search for symbol using
2086         gdbarch_iterate_over_objfiles_in_search_order and
2087         lookup_symbol_global_iterator_cb.
2088         * findvar.c (struct minsym_lookup_data): New type.
2089         (minsym_lookup_iterator_cb): New function.
2090         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2091         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2092         and minsym_lookup_iterator_cb.
2093
2094 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2095
2096         Revert the following patch:
2097         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2098         try locating the symbol in the symbol's own objfile first, before
2099         extending the search to all objfiles.
2100         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2101         out of lookup_symbol_aux_symtabs.
2102         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2103         Replace extracted-out code by call to lookup_symbol_aux_objfile.
2104         Do not search EXCLUDE_OBJFILE.
2105         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2106         (lookup_symbol_global): Search for matches in the block's objfile
2107         first, before searching all other objfiles.
2108
2109 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2110
2111         * breakpoint.c (find_condition_and_thread): Stop parsing
2112         as soon as the first invalid keyword is found.
2113
2114 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2115
2116         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2117
2118 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2119
2120         * config/djgpp/djcheck.sh: Add copyright header.
2121
2122 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2123
2124         * copyright.py (update_files, main): Fix path to update-copyright
2125         script.
2126
2127 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
2128
2129         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2130         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2131         for which a reminder to update by hand is printed.
2132
2133 2012-06-04  Doug Evans  <dje@google.com>
2134
2135         * buildsym.c (make_blockvector): Add comment.
2136
2137 2012-06-04  Pedro Alves  <palves@redhat.com>
2138
2139         * arch-utils.c (default_gdb_signal_from_target): Delete.
2140         * arch-utils.h (default_gdb_signal_from_target): Delete.
2141         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
2142         gdbarch_gdb_signal_from_target_p.
2143         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2144         predicate).
2145         * gdbarch.h: Regenerate.
2146         * gdbarch.c: Regenerate.
2147
2148 2012-06-04  Pedro Alves  <palves@redhat.com>
2149
2150         * gdbarch.sh (gdb_signal_from_target): Mention that the
2151         implementation of the method must be host independent.
2152         * gdbarch.h: Regenerate.
2153
2154 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2155
2156         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2157         parameters.
2158         (target_read_memory_bfd): New function.
2159         (symbol_file_add_from_memory): Use it.
2160
2161 2012-06-03  Doug Evans  <dje@google.com>
2162
2163         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2164         of primary symtab.
2165         (basic_lookup_transparent_type): Ditto.
2166
2167         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2168         (ALL_PRIMARY_SYMTABS): Use it.
2169         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2170         * dwarf2read.c (dw2_find_symbol_file): Ditto.
2171         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2172         * symtab.c (lookup_symbol_aux_objfile): Ditto.
2173         (basic_lookup_transparent_type): Ditto.
2174
2175 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
2176
2177         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
2178         it to optimize resolution of demangled name.
2179
2180 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2181
2182         * configure.ac (development): Define new variable.
2183         Call AC_CHECK_LIB for mcheck if $development.
2184         (ERROR_ON_WARNING): Enable it by default only if $development.
2185         * config.in: Regenerate.
2186         * configure: Regenerate.
2187
2188 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2189
2190         * target.c (target_read_memory): Make LEN argument as size_t.
2191         * target.h (target_read_memory): Likewise.
2192
2193 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2194
2195         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2196
2197 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2198
2199         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2200         BookE interface for PowerPC server processors if not available
2201         in the Linux Kernel.
2202
2203 2012-05-31  Keith Seitz  <keiths@redhat.com>
2204
2205         * linespec.c (decode_objc): Add cleanup to free
2206         INFO.FILE_SYMTABS.
2207         (find_linespec_symbols): Add cleanup to free CLASSES.
2208         * symfile.c (find_separate_debug_file_by_debuglink): Add
2209         cleanup to free DEBUGLINK.
2210         * ui-out.c (clear_header_list): No need to check if
2211         HEADER_NEXT.COLHDR is NULL.
2212         Free HEADER_NEXT.COL_NAME.
2213
2214 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2215
2216         * ada-lang.c (standard_lookup): Prevent uninitialized variable
2217         warning.
2218
2219 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
2220
2221         * configure.host (gdb_host_cpu): Handle tilegx*.
2222         (gdb_host): Handle tilegx-*-linux*.
2223         * tilegx-linux-nat.c: New file.
2224         * config/tilegx/linux.mh: New file.
2225
2226 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
2227
2228         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2229         tilegx-linux-tdep.o.
2230         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2231         tilegx-linux-tdep.c.
2232         * configure.tgt: Handle tilegx-*-linux*.
2233         * tilegx-tdep.h: New file.
2234         * tilegx-tdep.c: New file.
2235         * tilegx-linux-tdep.c: New file.
2236         * regformats/reg-tilegx.dat: New file.
2237
2238 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2239
2240         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2241         accounting of hw watchpoints on ppc.
2242
2243 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
2244
2245         * source.c (openp): Expand tilde in path entries.
2246
2247 2012-05-29  Doug Evans  <dje@google.com>
2248
2249         * buildsym.c (block_compar): Fix comment.
2250         (end_symtab): Fix and clarify some comments.
2251
2252         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2253         cleanup_undefined_types.
2254         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2255         All callers updated.
2256
2257 2012-05-29  Tom Tromey  <tromey@redhat.com>
2258
2259         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2260         fails.
2261         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2262         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2263         fails.
2264         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2265         fails.
2266
2267 2012-05-29  Tristan Gingold  <gingold@adacore.com>
2268
2269         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2270         (struct darwin_info): ... New struct.
2271         (solib_darwin_pspace_data): New variable.
2272         (darwin_pspace_data_cleanup): New function.
2273         (get_darwin_info): Likewise.
2274         (darwin_dyld_version_ok, darwin_load_image_infos)
2275         (darwin_solib_get_all_image_info_addr_at_init)
2276         (darwin_solib_read_all_image_info_addr): Add info argument.
2277         Adjust code.
2278         (darwin_current_sos): Use per pspace structure.
2279         (darwin_solib_create_inferior_hook): Likewise.
2280         (darwin_clear_solib): Likewise.
2281         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2282
2283 2012-05-28  Pedro Alves  <palves@redhat.com>
2284
2285         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2286         block that uses them.  Clear ecss before handling each event.
2287
2288 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2289
2290         * solib-svr4.c (svr4_current_sos): New comment on
2291         svr4_current_sos_via_xfer_libraries fall back.
2292
2293 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2294
2295         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
2296         it as a fallback for TYPE_IS_OPAQUE.
2297         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2298         symbols for lookup_symbol.
2299
2300 2012-05-24  John Steele Scott  <toojays@toojays.net>
2301
2302         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2303         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2304         (producer_is_gxx_lt_4_6): Move the checking and caching to...
2305         (check_producer): ... this new function, which also checks for ICC
2306         and caches the result.
2307         (producer_is_icc): New function.
2308         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2309         producer was ICC.
2310
2311 2012-05-24  Pedro Alves  <palves@redhat.com>
2312
2313         PR gdb/7205
2314
2315         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2316         (default_gdb_signal_to_target): ... this.  Add comment.
2317         (default_gdb_signal_from_host): Rename to ...
2318         (default_gdb_signal_from_target): ... this.  Add comment.
2319         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2320         (default_gdb_signal_to_target): ... this.
2321         (default_gdb_signal_from_host): Rename to ...
2322         (default_gdb_signal_from_target): ... this.
2323         * corelow.c (core_open): Adjust to naming change.  Replace comment.
2324         * gdbarch.sh (gdb_signal_from_host): Rename to ...
2325         (gdb_signal_from_target): ... this.  Adjust to
2326         default_gdb_signal_from_host naming change.  Extend comment.
2327         (gdb_signal_to_host): Rename to ...
2328         (gdb_signal_to_target): ... this.  Adjust to
2329         default_gdb_signal_to_host naming change.
2330         * gdbarch.h, gdbarch.c: Renegerate.
2331
2332 2012-05-24  Pedro Alves  <palves@redhat.com>
2333
2334         PR gdb/7205
2335
2336         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2337
2338 2012-05-24  Pedro Alves  <palves@redhat.com>
2339
2340         PR gdb/7205
2341
2342         Replace target_signal with gdb_signal throughout.
2343
2344 2012-05-24  Pedro Alves  <palves@redhat.com>
2345
2346         PR tui/14159
2347
2348         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2349         string, instead of reusing the va_list argument.
2350
2351 2012-05-24  Tom Tromey  <tromey@redhat.com>
2352
2353         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2354         Remove.
2355
2356 2012-05-23  Doug Evans  <dje@google.com>
2357
2358         * symtab.c (search_symbols): Formatting fixes.
2359         (print_symbol_info): Formatting fixes.
2360
2361         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2362         int64_t change to leb128 API.
2363         (read_encoded_value, decode_frame_entry_1): Ditto.
2364         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2365         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2366         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2367         (execute_stack_op): Ditto.
2368         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2369         (safe_read_uleb128, safe_read_sleb128): Ditto.
2370         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2371         (dwarf2_compile_expr_to_ax): Ditto.
2372         (locexpr_describe_location_piece): Ditto.
2373         (disassemble_dwarf_expression): Ditto.
2374         (locexpr_describe_location_1): Ditto.
2375
2376 2012-05-23  Stan Shebs  <stan@codesourcery.com>
2377             Kwok Cheung Yeung  <kcy@codesourcery.com>
2378
2379         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2380         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2381         (mi-cmd-info.o): New rule.
2382         * osdata.h (info_osdata_command): New declaration.
2383         * osdata.c (info_osdata_command): Change to non-static.
2384         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2385         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2386         * mi/mi-cmd-info.c: New file.
2387
2388 2012-05-23  Doug Evans  <dje@google.com>
2389
2390         * symtab.c (search_symbols): Pass NULL for file_matcher to
2391         expand_symtabs_matching if there are no files to match.
2392
2393         * gdbtypes.c (lookup_typename): Simplify.
2394
2395 2012-05-23  Pedro Alves  <palves@redhat.com>
2396
2397         * arch-utils.h (default_target_signal_to_host): Delete.
2398         * arch-utils.c (default_target_signal_to_host): Delete.
2399         * gdbarch.sh (target_signal_to_host): Remove.
2400         * gdbarch.h, gdbarch.c: Regenerate.
2401
2402 2012-05-22  Doug Evans  <dje@google.com>
2403
2404         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2405         "const gdb_byte *".
2406         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2407         (execute_cfa_program): Update to match API of leb128 functions.
2408         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2409         "const gdb_byte *".
2410         (read_unsigned_leb128, read_signed_leb128): Delete.
2411         (read_initial_length): Change type of buf argument to
2412         "const gdb_byte *".
2413         (read_encoded_value): Update to match API of leb128 functions.
2414         (decode_frame_entry): Change result to "const gdb_byte *", and
2415         similarly for "start" parameter.
2416         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
2417         (dwarf2_build_frame_info): Change local frame_ptr to
2418         "const gdb_byte *".
2419         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2420         read_uleb128, read_sleb128.  All callers updated.
2421         (safe_skip_leb128): New function.
2422         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2423         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2424         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2425         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
2426         read_uleb128, read_sleb128.
2427         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2428         (execute_stack_op): Update to match API of leb128 functions.
2429         * dwarf2expr.h: #include "leb128.h".
2430         (read_uleb128, read_sleb128): Delete.
2431         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2432         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2433         * dwarf2loc.c (debug_loc_kind): New enum.
2434         (decode_debug_loc_addresses): New function.
2435         (decode_debug_loc_dwo_addresses): New function.
2436         (dwarf2_find_location_expression): Rewrite.
2437         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2438         (locexpr_describe_location_piece): Ditto.
2439         (disassemble_dwarf_expression): Ditto.
2440         (locexpr_describe_location_1): Ditto.
2441         (loclist_describe_location): Rewrite.
2442         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2443         * dwarf2read.c (die_reader_specs): New member "buffer_end".
2444         (dwarf2_section_buffer_overflow_complaint): Renamed from
2445         dwarf2_macros_too_long_complaint.  All callers updated.
2446         (skip_leb128): Delete.
2447         (init_cu_die_reader): Initialize reader->buffer_end.
2448         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2449         (skip_form_bytes): New arg buffer_end.  All callers updated.
2450         Replace call to skip_leb128 with gdb_skip_leb128.
2451         (skip_unknown_opcode): New arg mac_end.  All callers updated.
2452         (fill_in_loclist_baton): Initialize baton->from_dwo.
2453
2454 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
2455
2456         * mips-linux-nat.c (mips_linux_read_description): Use a more
2457         verbose error message.
2458
2459 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
2460
2461         * NEWS: Add MIPS/Linux DSP support.
2462         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2463         (SIGCONTEXT_DSPCTL): New macro.
2464         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2465         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2466         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2467         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2468         (N64_SIGCONTEXT_HI3): Likewise.
2469         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2470         (N64_SIGCONTEXT_LO3): Likewise.
2471         (N64_SIGCONTEXT_DSPCTL): Likewise.
2472         (N64_SIGCONTEXT_FPCSR): Clarify definition.
2473         (mips_linux_o32_sigframe_init): Handle DSP registers.
2474         (mips_linux_n32n64_sigframe_init): Likewise.
2475
2476 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
2477
2478         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2479         call to abort.
2480
2481 2012-05-22  Pedro Alves  <palves@redhat.com>
2482
2483         * target.h (store_waitstatus): Move declaration ...
2484         * inf-child.h (store_waitstatus): ... here.
2485         * target.c: Move inclusion of gdb_wait.h, and ...
2486         (store_waitstatus): ... this ...
2487         * inf-child.c: ... here.
2488         * linux-nat.c: Include inf-child.h.
2489         * rs6000-nat.c: Include inf-child.h.
2490         * spu-linux-nat.c: Include inf-child.h.
2491
2492 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
2493
2494         * tracepoint.c (start_tracing): Add missing i18n markup.
2495         (stop_tracing, set_trace_user): Ditto.
2496         (set_trace_notes, set_trace_stop_notes): Ditto.
2497
2498 2012-05-21  Tom Tromey  <tromey@redhat.com>
2499
2500         PR c++/7173:
2501         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2502         types.
2503         * value.h (value_cast_pointers): Update.
2504         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2505         (value_cast): Update.
2506         (update_search_result): New function.
2507         (do_search_struct_field): New, from search_struct_field.  Check
2508         for ambiguous results.
2509         (search_struct_field): Rewrite.
2510         * infcall.c (value_arg_coerce): Update.
2511         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2512         value_cast_pointers.
2513         * ada-lang.c (ada_convert_actual): Update.
2514
2515 2012-05-21  Tom Tromey  <tromey@redhat.com>
2516
2517         * macroexp.c (macro_stringify): Terminate the string.
2518
2519 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2520
2521         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2522         Describe it.
2523         * auto-load.c (auto_load_expand_dir_vars): New function.
2524         (auto_load_safe_path_vec_update): Use it, remove the
2525         substitute_path_component call thanks to it.
2526         (auto_load_objfile_script): Remove the debug_file_directory processing.
2527         Use auto_load_expand_dir_vars, remove the substitute_path_component
2528         call thanks to it.
2529         * configure: Regenerate.
2530         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2531         path.  Escape $ also for $debugdir.
2532         (--with_auto_load_safe_path): Escape $ also for $debugdir.
2533         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2534
2535 2012-05-20  Doug Evans  <dje@google.com>
2536
2537         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2538         before use.  Check for symtab->includes == NULL before scanning it.
2539
2540 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
2541
2542         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2543
2544 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
2545
2546         * NEWS: Add microMIPS support and "set mips compression",
2547         "show mips compression" commands.
2548         * mips-tdep.h (mips_isa): New enum.
2549         (gdbarch_tdep): Add mips_isa.
2550         (mips_pc_is_mips16): Update prototype.
2551         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2552         * mips-tdep.c (mips_compression_mips16): New variable.
2553         (mips_compression_micromips): Likewise.
2554         (mips_compression_strings): Likewise.
2555         (mips_compression_string): Likewise.
2556         (is_mips16_isa, is_micromips_isa): New functions.
2557         (is_mips16_addr): Rename to...
2558         (is_compact_addr): ... this.
2559         (unmake_mips16_addr): Likewise to...
2560         (unmake_compact_addr): ... this.
2561         (make_mips16_addr): Likewise to...
2562         (make_compact_addr): ... this.
2563         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2564         functions.
2565         (mips_elf_make_msymbol_special): Handle microMIPS code.
2566         (msymbol_is_special): Rename to...
2567         (msymbol_is_mips16): ... this.
2568         (mips_make_symbol_special, mips_pc_is_mips16): Update
2569         accordingly.
2570         (msymbol_is_mips, msymbol_is_micromips): New functions.
2571         (mips16_to_32_reg): Rename to...
2572         (mips_reg3_to_reg): ... this.
2573         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2574         (mips_pc_isa): Likewise.
2575         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2576         code.
2577         (mips_fetch_instruction): Pass return status instead of printing
2578         an error message if requested.  Handle microMIPS code.  Bail out
2579         on an invalid ISA.
2580         (micromips_op): New macro.
2581         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2582         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2583         (b6s4_op, b7s3_reg): Likewise.
2584         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2585         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2586         (mips_insn_size): New function.
2587         (mips32_next_pc): Update mips_fetch_instruction call.
2588         (micromips_relative_offset7): New function.
2589         (micromips_relative_offset10): Likewise.
2590         (micromips_relative_offset16): Likewise.
2591         (micromips_pc_insn_size): Likewise.
2592         (micromips_bc1_pc): Likewise.
2593         (micromips_next_pc): Likewise.
2594         (unpack_mips16): Update mips_fetch_instruction call.
2595         (extended_mips16_next_pc): Update according to change to
2596         mips16_to_32_reg.
2597         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
2598         code.
2599         (mips16_scan_prologue): Update mips_fetch_instruction call.
2600         Update according to change to mips16_to_32_reg.
2601         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2602         (mips_insn16_frame_base_sniffer): Likewise.
2603         (micromips_decode_imm9): New function.
2604         (micromips_scan_prologue): Likewise.
2605         (mips_micro_frame_cache): Likewise.
2606         (mips_micro_frame_this_id): Likewise.
2607         (mips_micro_frame_prev_register): Likewise.
2608         (mips_micro_frame_sniffer): Likewise.
2609         (mips_micro_frame_unwind): New variable.
2610         (mips_micro_frame_base_address): New function.
2611         (mips_micro_frame_base): New variable.
2612         (mips_micro_frame_base_sniffer): New function.
2613         (mips32_scan_prologue): Update mips_fetch_instruction call.
2614         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2615         rather than for MIPS16.
2616         (mips_insn32_frame_base_sniffer): Likewise.
2617         (mips_addr_bits_remove): Handle microMIPS code.
2618         (deal_with_atomic_sequence): Rename to...
2619         (mips_deal_with_atomic_sequence): ... this.  Update the type
2620         of the variable used to hold an instruction.  Remove the ISA bit
2621         check.  Update mips_fetch_instruction call.
2622         (micromips_deal_with_atomic_sequence): New function.
2623         (deal_with_atomic_sequence): Likewise.
2624         (mips_about_to_return): Handle microMIPS code.  Update
2625         mips_fetch_instruction call.
2626         (heuristic_proc_start): Check for the standard MIPS ISA rather
2627         than for MIPS16.  Update mips_pc_is_mips16 and
2628         mips_fetch_instruction calls.  Handle microMIPS code.
2629         (mips_push_dummy_code): Handle microMIPS code.
2630         (mips_eabi_push_dummy_call): Likewise.
2631         (mips_o32_return_value): Update mips_pc_is_mips16 call.
2632         (mips_o64_push_dummy_call): Handle microMIPS code.
2633         (mips_o64_return_value): Update mips_pc_is_mips16 call.
2634         (is_delayed): Remove function.
2635         (mips_single_step_through_delay): Replace the call to is_delayed
2636         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
2637         Handle microMIPS code.
2638         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
2639         microMIPS code.
2640         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2641         call.
2642         (micromips_in_function_epilogue_p): New function.
2643         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2644         call.
2645         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2646         Handle microMIPS.
2647         (gdb_print_insn_mips): Likewise.
2648         (mips_breakpoint_from_pc): Likewise.
2649         (mips_remote_breakpoint_from_pc): New function.
2650         (mips32_instruction_has_delay_slot): Simplify making use of the
2651         updated mips_fetch_instruction interface.
2652         (micromips_instruction_has_delay_slot): New function.
2653         (mips16_instruction_has_delay_slot): Simplify making use of the
2654         updated mips_fetch_instruction interface.
2655         (mips_adjust_breakpoint_address): Check for the standard MIPS
2656         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr 
2657         calls.  Handle microMIPS code.
2658         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2659         (mips_skip_trampoline_code): Handle microMIPS code.
2660         (global_mips_compression): New function.
2661         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2662         file flags.  Register the microMIPS remote breakpoint handler
2663         and heuristic frame unwinder.
2664         (show_mips_compression): New function.
2665         (_initialize_mips_tdep): Add the "set mips compression" and
2666         "show mips compression" commands.
2667
2668 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2669
2670         * ada-lang.c:
2671         * ada-tasks.c:
2672         * ada-varobj.c:
2673         * amd64-darwin-tdep.c:
2674         * arm-symbian-tdep.c:
2675         * arm-tdep.c:
2676         * avr-tdep.c:
2677         * ax-gdb.c:
2678         * bfin-linux-tdep.c:
2679         * breakpoint.c:
2680         * c-valprint.c:
2681         * cli/cli-cmds.c:
2682         * coffread.c:
2683         * cp-support.c:
2684         * cris-tdep.c:
2685         * dwarf2-frame-tailcall.c:
2686         * dwarf2-frame.c:
2687         * dwarf2expr.c:
2688         * dwarf2loc.c:
2689         * dwarf2read.c:
2690         * elfread.c:
2691         * eval.c:
2692         * expprint.c:
2693         * f-valprint.c:
2694         * frv-tdep.c:
2695         * h8300-tdep.c:
2696         * hppa-hpux-tdep.c:
2697         * hppa-tdep.c:
2698         * hppanbsd-tdep.c:
2699         * i386-nto-tdep.c:
2700         * i386-tdep.c:
2701         * i387-tdep.c:
2702         * ia64-tdep.c:
2703         * jit.c:
2704         * linespec.c:
2705         * linux-tdep.c:
2706         * lm32-tdep.c:
2707         * m2-valprint.c:
2708         * m32c-tdep.c:
2709         * m32r-rom.c:
2710         * m32r-tdep.c:
2711         * m68k-tdep.c:
2712         * m68klinux-tdep.c:
2713         * mi/mi-main.c:
2714         * microblaze-tdep.c:
2715         * mips-linux-tdep.c:
2716         * mips-tdep.c:
2717         * mn10300-tdep.c:
2718         * p-valprint.c:
2719         * parse.c:
2720         * ppc-linux-tdep.c:
2721         * ppc-sysv-tdep.c:
2722         * printcmd.c:
2723         * python/py-finishbreakpoint.c:
2724         * python/py-inferior.c:
2725         * python/py-infthread.c:
2726         * python/py-type.c:
2727         * python/python.c:
2728         * remote-fileio.c:
2729         * remote-m32r-sdi.c:
2730         * remote-mips.c:
2731         * reverse.c:
2732         * rl78-tdep.c:
2733         * rs6000-aix-tdep.c:
2734         * rs6000-tdep.c:
2735         * s390-tdep.c:
2736         * score-tdep.c:
2737         * sh64-tdep.c:
2738         * skip.c:
2739         * solib-darwin.c:
2740         * solib-dsbt.c:
2741         * solib-frv.c:
2742         * sparc-tdep.c:
2743         * spu-multiarch.c:
2744         * spu-tdep.c:
2745         * stack.c:
2746         * symfile.c:
2747         * symtab.c:
2748         * tic6x-tdep.c:
2749         * tracepoint.c:
2750         * v850-tdep.c:
2751         * valarith.c:
2752         * valprint.c:
2753         * value.c:
2754         * xcoffread.c:
2755         * xtensa-tdep.c:
2756         * ada-lang.c:
2757         * ada-tasks.c:
2758         * ada-varobj.c:
2759         * amd64-darwin-tdep.c:
2760         * arm-symbian-tdep.c:
2761         * arm-tdep.c: Delete unused variables.
2762
2763 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2764
2765         Rename $ddir to $datadir.
2766         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2767         * auto-load.c (auto_load_safe_path_vec_update)
2768         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2769         * configure: Regenerate.
2770         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2771         Likewise.  Remove the 'use $ddir' help string.
2772
2773 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2774
2775         * auto-load.c (show_auto_load_safe_path): Accept any combination of
2776         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2777
2778 2012-05-18  Tom Tromey  <tromey@redhat.com>
2779
2780         PR exp/13907:
2781         * valprint.h (struct value_print_options) <symbol_print>: New
2782         field.
2783         * valprint.c (user_print_options): Add default for symbol_print.
2784         (show_symbol_print): New function.
2785         (generic_val_print): Respect symbol_print.
2786         (_initialize_valprint): Add "print symbol" setting.
2787         * f-valprint.c (f_val_print): Respect symbol_print.
2788         * c-valprint.c (c_val_print): Respect symbol_print.
2789         * NEWS: Update.
2790         * printcmd.c (print_address_symbolic): Return int.  Ignore some
2791         zero-size symbols.
2792         (print_address_demangle): Return int.
2793         * defs.h: (print_address_symbolic): Return int.
2794         * value.h (print_address_demangle): Return int.
2795
2796 2012-05-18  Tom Tromey  <tromey@redhat.com>
2797
2798         * valprint.c (val_print_string): Don't print leading space.
2799         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2800         print space before string or vtbl.
2801         * m2-valprint.c (print_unpacked_pointer): Optionally print space
2802         before string.
2803         * jv-valprint.c (java_value_print): Print space before string.
2804         * go-valprint.c (print_go_string): Print space before string.
2805         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2806         space before string.
2807         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2808         space before string or vtbl.
2809         * auxv.c (fprint_target_auxv): Print space after address.
2810
2811 2012-05-18  Tom Tromey  <tromey@redhat.com>
2812
2813         * printcmd.c (print_address_demangle): Remove special case for 0.
2814
2815 2012-05-18  Tom Tromey  <tromey@redhat.com>
2816
2817         * printcmd.c (print_address_demangle): Add 'opts' argument.
2818         * p-valprint.c (pascal_val_print): Update.
2819         * jv-valprint.c (java_val_print): Update.
2820         * value.h: Update.
2821         * valprint.c (generic_val_print): Update.
2822         (print_function_pointer_address): Add 'options' argument.  Remove
2823         'addressprint' argument.  Update.
2824         * m2-valprint.c (print_unpacked_pointer): Update.
2825         * gnu-v3-abi.c (print_one_vtable): Update.
2826         (gnuv3_print_method_ptr): Update.
2827         * f-valprint.c (f_val_print): Update.
2828         * cp-valprint.c (cp_print_value_fields): Update.
2829         * valprint.h (print_function_pointer_address): Update.
2830         * c-valprint.c (c_val_print): Update.
2831
2832 2012-05-18  Tom Tromey  <tromey@redhat.com>
2833
2834         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2835         directly corresponding to the found psymtab.
2836         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2837         (dw2_find_pc_sect_symtab): Use it.
2838         * block.h (blockvector_contains_pc): Declare.
2839         * block.c (find_block_in_blockvector): New function.
2840         (blockvector_for_pc_sect): Use it.
2841         (blockvector_contains_pc): New function.
2842
2843 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
2844
2845         * mips-tdep.h (mips_write_pc): New prototype.
2846         * mips-tdep.c (mips_write_pc): Make external, add description.
2847         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2848         add description.
2849
2850 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
2851
2852         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2853         mips_regnum->pc.
2854         (mips_unwind_pc, mips_write_pc): Likewise.
2855         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2856         gdbarch_read_pc.
2857
2858 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
2859
2860         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2861         proc_warn, proc_error, proc_get_status, proc_flags,
2862         proc_why, proc_what, proc_nsysarg, proc_sysargs,
2863         proc_set_run_on_last_close, proc_unset_run_on_last_close,
2864         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2865         proc_stop_process, proc_wait_for_stop, proc_run_process,
2866         proc_set_traced_signals, proc_set_traced_faults,
2867         proc_set_traced_sysentry, proc_set_traced_sysexit,
2868         proc_set_held_signals, proc_get_held_signals,
2869         proc_get_traced_signals, proc_get_traced_faults,
2870         proc_get_traced_sysentry, proc_get_traced_sysexit,
2871         proc_clear_current_fault, proc_set_current_signal,
2872         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2873         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2874         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2875         proc_get_current_thread, proc_get_current_thread,
2876         proc_get_current_thread, proc_update_threads,
2877         proc_update_threads, proc_update_threads, proc_update_threads,
2878         proc_iterate_over_threads, procfs_find_new_threads,
2879         procfs_pid_to_str): Make static.  Remove advance declaration.
2880         (proc_cursig): Make static.  Conditionalized defintion on
2881         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2882         (proc_syscall, proc_set_kill_on_last_close,
2883         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2884         proc_get_pending_signals, proc_get_signal_actions,
2885         proc_trace_signal, proc_ignore_signal): Delete.
2886
2887 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2888
2889         * coffread.c (cs_section_address): Passing proper argument for
2890         `bfd_get_section_vma'.
2891         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2892         `bfd_get_section_flags'.
2893         * remote.c (remote_trace_set_readonly_regions): Likewise, for
2894         `bfd_get_section_vma'.
2895
2896 2012-05-16  Tom Tromey  <tromey@redhat.com>
2897
2898         PR macros/13205:
2899         * macrotab.h: (macro_define_special): Declare.
2900         (enum macro_special_kind): New.
2901         (struct macro_definition) <argc, replacement>: Update comments.
2902         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2903         (macro_define_object_internal): New function.
2904         (macro_define_object): Use it.
2905         (macro_define_special): New function.
2906         (fixup_definition): New function.
2907         (macro_lookup_definition, foreach_macro_in_scope)
2908         (foreach_macro): Use fixup_definition.
2909         * macroexp.h (macro_stringify): Declare.
2910         * macroexp.c (free_buffer_return_text): New function.
2911         (stringify): Constify "arg".
2912         (macro_stringify): New function.
2913         * dwarf2read.c (macro_start_file): Call macro_define_special.
2914
2915 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2916             Maciej W. Rozycki  <macro@mips.com>
2917
2918         * breakpoint.h (bp_location): Add related_address member.
2919         * inferior.h (get_return_value): Take a pointer to struct value
2920         instead of struct type for the function requested.
2921         * value.h (using_struct_return): Likewise.
2922         * gdbarch.sh (return_value): Take a pointer to struct value
2923         instead of struct type for the function requested.
2924         * breakpoint.c (set_breakpoint_location_function): Initialize
2925         related_address for bp_gnu_ifunc_resolver breakpoints.
2926         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2927         requested function's address to gdbarch_return_value.
2928         * eval.c (evaluate_subexp_standard): Pass the requested
2929         function's address to using_struct_return.
2930         * infcall.c (call_function_by_hand): Pass the requested
2931         function's address to using_struct_return and
2932         gdbarch_return_value.
2933         * infcmd.c (get_return_value): Take a pointer to struct value
2934         instead of struct type for the function requested.
2935         (print_return_value): Update accordingly.
2936         (finish_command_continuation): Likewise.
2937         * stack.c (return_command): Pass the requested function's
2938         address to using_struct_return and gdbarch_return_value.
2939         * value.c (using_struct_return): Take a pointer to struct value
2940         instead of struct type for the function requested.  Pass the
2941         requested function's address to gdbarch_return_value.
2942         * python/py-finishbreakpoint.c (finish_breakpoint_object):
2943         New function_value member, replacing function_type.
2944         (bpfinishpy_dealloc): Update accordingly.
2945         (bpfinishpy_pre_stop_hook): Likewise.
2946         (bpfinishpy_init): Likewise.  Record the requested function's
2947         address.
2948         * mips-tdep.c (mips_fval_reg): New enum.
2949         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2950         words put in GP registers.
2951         (mips_o64_push_dummy_call): Update a comment.
2952         (mips_o32_return_value): Take a pointer to struct value instead
2953         of struct type for the function requested and use it to check if
2954         using the MIPS16 calling convention.  Return the designated
2955         general purpose registers for floating-point values returned in
2956         MIPS16 mode.
2957         (mips_o64_return_value): Likewise.
2958         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2959         (ppc_sysv_abi_broken_return_value): Likewise.
2960         (ppc64_sysv_abi_return_value): Likewise.
2961         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2962         value instead of struct type for the function requested.
2963         * amd64-tdep.c (amd64_return_value): Likewise.
2964         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2965         * arm-tdep.c (arm_return_value): Likewise.
2966         * avr-tdep.c (avr_return_value): Likewise.
2967         * bfin-tdep.c (bfin_return_value): Likewise.
2968         * cris-tdep.c (cris_return_value): Likewise.
2969         * frv-tdep.c (frv_return_value): Likewise.
2970         * h8300-tdep.c (h8300_return_value): Likewise.
2971         (h8300h_return_value): Likewise.
2972         * hppa-tdep.c (hppa32_return_value): Likewise.
2973         (hppa64_return_value): Likewise.
2974         * i386-tdep.c (i386_return_value): Likewise.
2975         * ia64-tdep.c (ia64_return_value): Likewise.
2976         * iq2000-tdep.c (iq2000_return_value): Likewise.
2977         * lm32-tdep.c (lm32_return_value): Likewise.
2978         * m32c-tdep.c (m32c_return_value): Likewise.
2979         * m32r-tdep.c (m32r_return_value): Likewise.
2980         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2981         * m68k-tdep.c (m68k_return_value): Likewise.
2982         (m68k_svr4_return_value): Likewise.
2983         * m88k-tdep.c (m88k_return_value): Likewise.
2984         * mep-tdep.c (mep_return_value): Likewise.
2985         * microblaze-tdep.c (microblaze_return_value): Likewise.
2986         * mn10300-tdep.c (mn10300_return_value): Likewise.
2987         * moxie-tdep.c (moxie_return_value): Likewise.
2988         * mt-tdep.c (mt_return_value): Likewise.
2989         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2990         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2991         (ppc_sysv_abi_broken_return_value): Likewise.
2992         (ppc64_sysv_abi_return_value): Likewise.
2993         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2994         * rl78-tdep.c (rl78_return_value): Likewise.
2995         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2996         * rx-tdep.c (rx_return_value): Likewise.
2997         * s390-tdep.c (s390_return_value): Likewise.
2998         * score-tdep.c (score_return_value): Likewise.
2999         * sh-tdep.c (sh_return_value_nofpu): Likewise.
3000         (sh_return_value_fpu): Likewise.
3001         * sh64-tdep.c (sh64_return_value): Likewise.
3002         * sparc-tdep.c (sparc32_return_value): Likewise.
3003         * sparc64-tdep.c (sparc64_return_value): Likewise.
3004         * spu-tdep.c (spu_return_value): Likewise.
3005         * tic6x-tdep.c (tic6x_return_value): Likewise.
3006         * v850-tdep.c (v850_return_value): Likewise.
3007         * vax-tdep.c (vax_return_value): Likewise.
3008         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3009         * xtensa-tdep.c (xtensa_return_value): Likewise.
3010         * gdbarch.c: Regenerate.
3011         * gdbarch.h: Regenerate.
3012
3013 2012-05-15  Tom Tromey  <tromey@redhat.com>
3014
3015         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3016
3017 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
3018
3019         * breakpoint.c (init_breakpoint_sal): Add quotes around part
3020         of command in two error message.
3021
3022 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
3023
3024         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3025
3026 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
3027
3028         * breakpoint.c (find_condition_and_thread): Minor reformatting.
3029
3030 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3031
3032         * NEWS (show auto-load scripts-directory): Add forgotten command.
3033
3034 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3035
3036         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3037         parameters.
3038
3039 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3040
3041         * amd64-tdep.c: Include features/i386/x32.c and
3042         features/i386/x32-avx.c.
3043         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3044         initialize_tdesc_x32_avx.
3045
3046 2012-05-14  Stan Shebs  <stan@codesourcery.com>
3047
3048         Add dynamic printf.
3049         * breakpoint.h (enum bptype): New type bp_dprintf.
3050         (struct breakpoint): New field extra_string.
3051         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3052         (create_breakpoint): Add extra_string arg.
3053         * breakpoint.c (dprintf_breakpoint_ops): New.
3054         (is_breakpoint): Add bp_dprintf.
3055         (bpstat_what): Add dprintf case.
3056         (bptype_string): Ditto.
3057         (print_one_breakpoint_location): Ditto.
3058         (init_bp_location): Ditto.
3059         (bkpt_print_mention): Ditto.
3060         (dprintf_style_enums): New array.
3061         (dprintf_style): New global.
3062         (dprintf_function): New global.
3063         (dprintf_channel): New global.
3064         (update_dprintf_command_list): New function.
3065         (update_dprintf_commands): New function.
3066         (init_breakpoint_sal): Add extra_string argument, handle it.
3067         (create_breakpoint_sal): Add extra_string argument.
3068         (create_breakpoints_sal): Add extra_string argument, update callers.
3069         (find_condition_and_thread): Add extra argument.
3070         (create_breakpoint): Add extra_string argument, record it.
3071         (dprintf_command): New function.
3072         (break_command_1): Add arg to create_breakpoint call.
3073         (handle_gnu_v3_exceptions): Ditto.
3074         (trace_command): Ditto.
3075         (ftrace_command): Ditto.
3076         (strace_command): Ditto.
3077         (bkpt_print_mention): Add dprintf case.
3078         (create_breakpoint_sal_default): Add extra_string argument.
3079         (_initialize_breakpoint): Add new commands.
3080         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3081         * python/py-breakpoint.c (bppy_init): Ditto.
3082         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3083
3084 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
3085
3086         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3087
3088 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
3089
3090         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3091         unsigned long long.
3092
3093 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
3094
3095         Add a new function gdb.find_pc_line to the Python API.
3096         * NEWS (Python Scripting): Add entry about the new function.
3097         * python/python.c (gdbpy_find_pc_line): New function which
3098         implements gdb.find_pc_line.
3099         (GdbMethods): Add entry for the new function.
3100
3101 2012-05-12  Pedro Alves  <palves@redhat.com>
3102
3103         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3104         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3105
3106 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
3107
3108         * inferior.c: Include completer.h
3109         (initialize_inferiors): Set completer of add-inferior to
3110         filename_completer.
3111
3112 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3113
3114         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3115         gdbarch_ptr_bit for x32 core dump.
3116
3117 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3118
3119         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3120         and features/i386/x32-avx-linux.c.
3121
3122 2012-05-11  Stan Shebs  <stan@codesourcery.com>
3123             Kwok Cheung Yeung  <kcy@codesourcery.com>
3124
3125         * NEWS: Describe new info os commands.
3126         * common/linux-osdata.c (PID_T, TIME_T): Define.
3127         (MAX_PID_T_STRLEN): New.
3128         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
3129         MAX_PID_T_STRLEN.
3130         (command_from_pid): Add comment.  Change to use PID_T.
3131         (commandline_from_pid):  Change to use PID_T.
3132         (user_from_pid): Add comment.
3133         (get_process_owner): Add comment. Change to use PID_T and
3134         MAX_PID_T_STRLEN.
3135         (get_number_of_cpu_cores): Add comment.
3136         (get_cores_used_by_process): Add comment.  Change to use PID_T and
3137         MAX_PID_T_STRLEN.
3138         (linux_xfer_osdata_processes): Change to use PID_T and
3139         MAX_PID_T_STRLEN.
3140         (compare_processes): New function.
3141         (linux_xfer_osdata_processgroups): New function.
3142         (linux_xfer_osdata_threads): Change to use PID_T.
3143         (linux_xfer_osdata_fds): New function.
3144         (format_socket_state, print_sockets): New functions.
3145         (union socket_addr): New union.
3146         (linux_xfer_osdata_isockets): New function.
3147         (time_from_time_t, group_from_gid): New functions.
3148         (linux_xfer_osdata_shm): New function.
3149         (linux_xfer_osdata_sem): New function.
3150         (linux_xfer_osdata_msg): New function.
3151         (linux_xfer_osdata_modules): New function.
3152         (osdata_table): Add new entries.
3153         * common/buffer.c (buffer_xml_printf): Add support for long and
3154         long long format specifiers.
3155
3156 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3157
3158         * amd64-linux-tdep.h (tdesc_x32_linux): New.
3159         (tdesc_x32_avx_linux): Likewise.
3160
3161 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3162
3163         Implement multi-component --with-auto-load-dir.
3164         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3165         entries.
3166         (--with-auto-load-safe-path): Update the default value description.
3167         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3168         New.
3169         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
3170         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
3171         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
3172         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
3173         "set auto-load scripts-directory".
3174         * config.in: Regenerate.
3175         * configure: Regenerate.
3176         * configure.ac (--with-auto-load-dir): New configure option.
3177         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3178
3179 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3180
3181         Provide $ddir substitution for --with-auto-load-safe-path.
3182         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3183         entries.
3184         * auto-load.c: Include observer.h.
3185         (auto_load_safe_path_vec_update): Call substitute_path_component for
3186         each component.  New variable ddir_subst.
3187         (auto_load_gdb_datadir_changed): New function.
3188         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3189         AUTO_LOAD_SAFE_PATH.  New comment.
3190         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3191         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
3192         * config.in: Regenerate.
3193         * configure: Regenerate.
3194         * configure.ac (--auto-load-safe-path): Rename
3195         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
3196         GDB_DATADIR/auto-load.
3197         * defs.h (substitute_path_component): New declaration.
3198         * top.c: Include observer.h.
3199         (set_gdb_datadir): New function.
3200         (init_main): Install it for "set data-directory".
3201         * utils.c (substitute_path_component): New function.
3202
3203 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3204
3205         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3206         * auto-load.c (auto_load_objfile_script): Remove check for NULL
3207         DEBUG_FILE_DIRECTORY.  Handle multiple components of
3208         DEBUG_FILE_DIRECTORY.
3209
3210 2012-05-10  Tom Tromey  <tromey@redhat.com>
3211
3212         * dwarf2read.c (recursively_write_psymbols): New function.
3213         (write_psymtabs_to_index): Use it.
3214
3215         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3216         field.
3217         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3218         (load_partial_comp_unit): Update.
3219         (queue_comp_unit): Add argument 'pretend_language'.
3220         (process_queue): Update.
3221         (psymtab_to_symtab_1): Skip dependencies that have a user.
3222         (load_partial_comp_unit_reader): Give meaning to the 'data'
3223         argument.
3224         (load_full_comp_unit): Add 'pretend_language' argument.
3225         (process_full_comp_unit): Add 'pretend_language' argument.  Set
3226         language on CU.
3227         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3228         Update.
3229         (maybe_queue_comp_unit): Add 'pretend_language' argument.
3230         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3231         Update.
3232         (prepare_one_comp_unit): Add 'pretend_language' argument.
3233
3234         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3235         (struct dwarf2_per_objfile) <just_read_cus>: New field.
3236         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3237         (dw2_do_instantiate_symtab): Check whether symtab was read in
3238         before queueing.
3239         (dw2_instantiate_symtab): Add assertion.  Call
3240         process_cu_includes.
3241         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3242         (partial_symtab_p): New typedef.
3243         (set_partial_user): New function.
3244         (dwarf2_build_psymtabs_hard): Use set_partial_user.
3245         (scan_partial_symbols): Add imported CU to imported_symtabs.
3246         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3247         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3248         (get_symtab, recursively_compute_inclusions)
3249         (compute_symtab_includes, process_cu_includes)
3250         (process_imported_unit_die): New functions.
3251         (process_die) <DW_TAG_imported_unit>: New case.
3252         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3253
3254         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3255         comment.
3256         (struct partial_die_info) <locdesc>: Remove.
3257         <d>: New field.
3258         (process_psymtab_comp_unit): Add 'read_partial' argument.
3259         Update.
3260         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3261         (scan_partial_symbols): Handle DW_TAG_imported_unit.
3262         (add_partial_symbol): Update.
3263         (process_die): Handle DW_TAG_partial_unit.
3264         (read_file_scope): Update comment.
3265         (load_partial_dies): Handle DW_TAG_imported_unit.
3266         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3267         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3268
3269 2012-05-10  Tom Tromey  <tromey@redhat.com>
3270
3271         * cc-with-dwz.sh: New file.
3272
3273 2012-05-10  Tom Tromey  <tromey@redhat.com>
3274
3275         * symtab.h (struct symtab) <includes, user>: New fields.
3276         * block.h (struct block_iterator) <d, idx, which>: New fields.
3277         * block.c (initialize_block_iterator, find_iterator_symtab)
3278         (block_iterator_step, block_iter_name_step)
3279         (block_iter_match_step): New functions.
3280         (block_iterator_first, block_iterator_next)
3281         (block_iter_name_first, block_iter_name_next)
3282         (block_iter_match_first, block_iter_match_next): Rewrite.
3283         (get_block_symtab): New function.
3284
3285 2012-05-10  Tom Tromey  <tromey@redhat.com>
3286
3287         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3288         set_block_symtab.
3289         * jit.c (finalize_symtab): Use allocate_global_block,
3290         set_block_symtab.
3291         * buildsym.c (finish_block_internal): New function, from old
3292         finish_block.
3293         (finish_block): Rewrite.
3294         (end_symtab): Use finish_block_internal, set_block_symtab.
3295         * block.h (struct global_block): New.
3296         (allocate_global_block, set_block_symtab): Declare.
3297         * block.c (allocate_global_block, set_block_symtab): New
3298         functions.
3299
3300 2012-05-10  Tom Tromey  <tromey@redhat.com>
3301
3302         * psymtab.c (partial_map_expand_apply): Add assertion.
3303         (partial_map_symtabs_matching_filename): Skip included psymtabs.
3304         (psymtab_to_symtab): Find unshared psymtab.
3305         (dump_psymtab): Print including psymtabs.
3306         (recursively_search_psymtabs): New function.
3307         (expand_symtabs_matching_via_partial): Use it.
3308         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3309         fields.
3310         (enum psymtab_search_status): New.
3311
3312 2012-05-10  Tom Tromey  <tromey@redhat.com>
3313
3314         * tracepoint.c (scope_info): Update.
3315         * symtab.c (lookup_block_symbol, iterate_over_symbols)
3316         (find_pc_sect_symtab, search_symbols)
3317         (default_make_symbol_completion_list_break_on)
3318         (make_file_symbol_completion_list): Update.
3319         * symmisc.c (dump_symtab_1): Update.
3320         * stack.c (print_frame_args, iterate_over_block_locals)
3321         (print_frame_labels, iterate_over_block_arg_vars): Update.
3322         * python/py-block.c (block_object) <dict>: Remove.
3323         <block>: New field.
3324         <iter>: Change type.
3325         (blpy_iter): Update.
3326         (blpy_block_syms_iternext): Update.
3327         * psymtab.c (map_block): Use block iterators.
3328         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3329         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3330         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3331         * infrun.c (check_exception_resume): Update.
3332         * cp-support.c (make_symbol_overload_list_block): Update.
3333         * coffread.c (patch_opaque_types): Update.
3334         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3335         * block.h (struct block_iterator): New.
3336         (block_iterator_first, block_iterator_next, block_iter_name_first)
3337         (block_iter_name_next, block_iter_match_first)
3338         (block_iter_match_next): Declare.
3339         (ALL_BLOCK_SYMBOLS): Redefine.
3340         * block.c (block_iterator_first, block_iterator_next)
3341         (block_iter_name_first, block_iter_name_next)
3342         (block_iter_match_first, block_iter_match_next): New functions.
3343         * ada-lang.c (ada_add_block_symbols)
3344         (ada_make_symbol_completion_list): Use block iterator.
3345
3346 2012-05-10  Tom Tromey  <tromey@redhat.com>
3347
3348         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3349         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3350         (lookup_partial_symbol, find_last_source_symtab_from_partial)
3351         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3352         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3353         Update.
3354
3355 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
3356
3357         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3358         print-file-var-lib2.c, print-file-var-main.c and
3359         print-file-var.exp (located in gdb/testsuite/gdb.base).
3360
3361 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
3362
3363         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3364         try locating the symbol in the symbol's own objfile first, before
3365         extending the search to all objfiles.
3366         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3367         out of lookup_symbol_aux_symtabs.
3368         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3369         Replace extracted-out code by call to lookup_symbol_aux_objfile.
3370         Do not search EXCLUDE_OBJFILE.
3371         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3372         (lookup_symbol_global): Search for matches in the block's objfile
3373         first, before searching all other objfiles.
3374
3375 2012-05-10  Tristan Gingold  <gingold@adacore.com>
3376
3377         * printcmd.c (set_command): Add pre/post inc/dec.
3378
3379 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
3380
3381         * gdb.1: Document -ex option.
3382
3383 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
3384
3385         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3386         * inferior.h (AT_SYMBOL): Delete.
3387
3388 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
3389
3390         * mips-tdep.c (mips_push_dummy_code): New function.
3391         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3392         ON_STACK and install mips_push_dummy_code as our gdbarch
3393         push_dummy_code routine.
3394
3395 2012-05-09  Pedro Alves  <palves@redhat.com>
3396
3397         * target.c (set_maintenance_target_async_permitted): Rename to ...
3398         (set_target_async_command): ... this.
3399         (show_maintenance_target_async_permitted): Rename to ...
3400         (show_target_async_command): ... this.
3401         (initialize_targets): Adjust.
3402
3403 2012-05-08  Doug Evans  <dje@google.com>
3404
3405         * go-exp.y (classify_name): Add missing assignment of fields of
3406         yylval.ssym.
3407
3408 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
3409
3410         Display the ">" prompt in interactive mode while reading canned
3411         commands, even when the current interpreter is MI.
3412
3413         * interps.c (interp_set_temp): New function.
3414
3415         * interps.h (interp_set_temp): Add prototype.
3416
3417         * cli/cli-script.c (restore_interp): New cleanup function.
3418         (read_command_lines): Temporarily override the current interpreter
3419         with CLI and arrange for restoring the original one.
3420
3421 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
3422
3423         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3424
3425 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
3426
3427         * probe.c (parse_probes): Move conditional to check for
3428         debuginfo files from here...
3429         * stap-probe.c (stap_get_probes): ... to here.
3430
3431 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
3432             H.J. Lu  <hongjiu.lu@intel.com>
3433
3434         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3435         `movl %esp, %ebp' for the X32 ABI.
3436
3437 2012-05-07  Tom Tromey  <tromey@redhat.com>
3438
3439         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
3440         get_DW_TAG_name.
3441         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
3442         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
3443         (dwarf_stack_op_name): Remove.
3444         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
3445         (decode_locdesc): Use get_DW_OP_name.
3446         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3447         (dwarf2_compile_expr_to_ax): Likewise.
3448         (disassemble_dwarf_expression): Likewise.
3449         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3450
3451 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
3452
3453         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3454         (sh_linux_sigtramp_cache): New function.
3455         (sh_linux_sigreturn_init): New function.
3456         (sh_linux_rt_sigreturn_init): New function.
3457         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3458         patterns.
3459         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3460         syscall codes.
3461         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3462         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3463         (sh_linux_init_abi): Add init calls to register new tramp_frame
3464         definitions under 32-bit SH, update comments.
3465
3466 2012-05-07  Pedro Alves  <palves@redhat.com>
3467
3468         PR gdb/10952
3469
3470         * amd64-linux-tdep.c: Include glibc-tdep.h.
3471         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3472         gdbarch_skip_solib_resolver callback.
3473
3474 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3475
3476         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3477         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3478         (show_auto_load_safe_path): Check any-directory by comparison with "/".
3479         (add_auto_load_safe_path): Change the error message.
3480         (_initialize_auto_load): Change the "safe-path" help text.
3481         * configure: Regenerate
3482         * configure.ac (--without-auto-load-safe-path): Set
3483         WITH_AUTO_LOAD_SAFE_PATH to /.
3484
3485 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3486
3487         * stap-probe.h: Do not include unecessary `probe.h'.
3488
3489 2012-05-05  Alan Modra  <amodra@gmail.com>
3490
3491         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3492         bfd_und_section_ptr.
3493         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3494         and bfd_com_section_ptr.
3495
3496 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
3497
3498         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3499
3500 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
3501
3502         * windows-nat.h (segment_register_p_ftype): New typedef.
3503         (windows_set_segment_register_p): Add declaration.
3504         * windows-nat.c (segment_register_p): New static global.
3505         (windows_set_segment_register_p): New function.
3506         (do_windows_fetch_inferior_registers): Add special handling
3507         for segment registers.
3508         * amd64-windows-nat.c: #include "amd64-tdep.h".
3509         (amd64_windows_segment_register_p): New function.
3510         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3511         * i386-windows-nat.c: #include "i386-tdep.h".
3512         (i386_windows_segment_register_p): New function.
3513         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3514
3515 2012-05-04  Tristan Gingold  <gingold@adacore.com>
3516
3517         * printcmd.c (set_command): Emit a warning if the expression is not
3518         an assignment.
3519
3520 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
3521
3522         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3523         Make static.
3524
3525 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3526
3527         * stap-probe.c (stap_is_operator): Change declaration.
3528         (stap_get_opcode): Change return value.
3529         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3530         `stap_parse_argument_1'.
3531
3532 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
3533
3534         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3535         debug log.
3536
3537 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
3538
3539         Add two new methods global_block and static_block to gdb.Symtab
3540         objects.
3541         * NEWS (Python scripting): Add entry about the new methods.
3542         * python/py-symtab.c (stpy_global_block): New function which
3543         implements the gdb.Symtab.global_block() method.
3544         (stpy_static_block): New function which implements the
3545         gdb.Symtab.static_block() method.
3546         (symtab_object_methods): Add entries for the two new methods.
3547
3548 2012-05-03  Doug Evans  <dje@google.com>
3549
3550         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3551         files.
3552
3553 2012-05-03  Yao Qi  <yao@codesourcery.com>
3554
3555         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3556         space.
3557         (i386_process_record): Ditto.
3558
3559 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
3560
3561         * infcall.c (unwind_on_signal_p): Make static.
3562
3563 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
3564
3565         * sol-thread.c (solaris_pid_to_str): Make static.
3566         (_initialize_sol_thread): Add prototype.
3567
3568 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
3569
3570         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3571
3572 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
3573
3574         * MAINTAINERS: Remove myself.
3575
3576 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3577
3578         Fix --without-auto-load-safe-path for MS-Windows host platform.
3579         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3580
3581 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
3582
3583         * gdb_curses.h: Undefine KEY_EVENT before including curses
3584         headers.  Move "#undef MOUSE_MOVED" before any curses header
3585         inclusion.
3586
3587 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
3588
3589         * features/i386/i386-mmx-linux.c: Regenerate.
3590         * features/rs6000/powerpc-32.c: Likewise.
3591         * features/rs6000/powerpc-32l.c: Likewise.
3592         * features/rs6000/powerpc-403.c: Likewise.
3593         * features/rs6000/powerpc-403gc.c: Likewise.
3594         * features/rs6000/powerpc-405.c: Likewise.
3595         * features/rs6000/powerpc-505.c: Likewise.
3596         * features/rs6000/powerpc-601.c: Likewise.
3597         * features/rs6000/powerpc-602.c: Likewise.
3598         * features/rs6000/powerpc-603.c: Likewise.
3599         * features/rs6000/powerpc-604.c: Likewise.
3600         * features/rs6000/powerpc-64.c: Likewise.
3601         * features/rs6000/powerpc-64l.c: Likewise.
3602         * features/rs6000/powerpc-750.c: Likewise.
3603         * features/rs6000/powerpc-860.c: Likewise.
3604         * features/rs6000/powerpc-e500.c: Likewise.
3605         * features/rs6000/powerpc-e500l.c: Likewise.
3606         * features/rs6000/powerpc-isa205-32l.c: Likewise.
3607         * features/rs6000/powerpc-isa205-64l.c: Likewise.
3608         * features/rs6000/rs6000.c: Likewise.
3609
3610 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
3611
3612         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3613         variable.
3614         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3615         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3616         (stap_parse_argument) <e>: Likewise.
3617         (handle_stap_probe) <byte_order>: Likewise.
3618
3619 2012-04-30  Doug Evans  <dje@google.com>
3620
3621         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3622         init_and_read_dies_worker.  All callers updated.
3623         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
3624         replaced with init_cutu_and_read_dies.
3625         (load_partial_comp_unit): Pass 1 for use_existing_cu.
3626         (find_partial_die): Remove FIXME.  Don't free current CU.
3627
3628 2012-04-30  Sterling Augustine  <saugustine@google.com>
3629
3630         * contrib: New directory.
3631         * contrib/test_pubnames_and_indexes.py: New file.
3632
3633 2012-04-30  Doug Evans  <dje@google.com>
3634
3635         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3636         All callers updated.
3637         (init_cu_die_reader): Verify the section is non-empty.
3638         (dwarf_decode_line_header): Don't dereference section->asection
3639         until we know the section is present.
3640
3641 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3642
3643         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3644         probes.
3645
3646 2012-04-29  Yao Qi  <yao@codesourcery.com>
3647
3648         * gdb-code-style.el: New hook gdb-markup-hook
3649         and gdb-comment-hook.
3650
3651 2012-04-28  Doug Evans  <dje@google.com>
3652
3653         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
3654         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3655         objfile->obfd.
3656         * symfile.h (dwarf2_debug_sections): New member addr.
3657         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3658         (ctx_no_get_addr_index): New function.
3659         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3660         (ctx_no_get_addr_index): Declare.
3661         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3662         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3663         (dwarf_expr_ctx_funcs): Update.
3664         (needs_get_addr_index): New function.
3665         (needs_frame_ctx_funcs): Update.
3666         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3667         * dwarf2read.c: #include "gdbcore.h".
3668         (dwarf2_per_objfile): New members addr, dwo_files.
3669         (dwarf2_elf_names): Add entry for addr.
3670         (struct dwo_section_names): New type.
3671         (dwo_section_names): New static global.
3672         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3673         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3674         old debug_types_section member updated to use this.
3675         Rename member debug_types_section to info_or_types_section,
3676         all uses updated.
3677         (signatured_type): Rename member type_offset to type_offset_in_tu,
3678         all uses updated.  New member type_offset_in_section.
3679         (struct dwo_sections): New type.
3680         (struct dwo_unit): New type.
3681         (struct dwo_file): New type.
3682         (die_reader_specs): New member dwo_file.
3683         (dwarf2_locate_sections): Watch for .debug_addr.
3684         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3685         (dwarf2_read_section): Get bfd of section from bfd's asection,
3686         instead of objfile.
3687         (create_cus_from_index): Initialize the_cu->info_or_types_section.
3688         (create_signatured_type_table_from_index): Initialize
3689         sig_type->info_or_types_section.
3690         (dw2_get_file_names): Statement lists for type units with DWO files
3691         live in the DWO file.
3692         (create_debug_types_hash_table): New function.
3693         (create_all_type_units): Rewrite.
3694         (init_cu_die_reader): New arg dwo_file, all callers updated.
3695         (init_and_read_dies_worker): Get section from
3696         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
3697         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3698         continue reading the CU/TU from there.
3699         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3700         updated.  Get section from this_cu->info_or_types_section.
3701         (create_all_comp_units): Initialize this_cu->info_or_types_section.
3702         (skip_one_die): New cases DW_FORM_GNU_addr_index,
3703         DW_FORM_GNU_str_index.
3704         (hash_dwo_file, eq_dwo_file): New functions.
3705         (allocate_dwo_file_hash_table): New function.
3706         (hash_dwo_unit, eq_dwo_unit): New functions.
3707         (allocate_dwo_unit_table): New function.
3708         (dwarf2_locate_dwo_sections): New function.
3709         (struct create_dwo_info_table_data): New type.
3710         (create_debug_info_hash_table_reader): New function.
3711         (create_debug_info_hash_table): New function.
3712         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3713         (lookup_dwo_file): New function.
3714         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3715         (free_dwo_file, free_dwo_file_cleanup): New functions.
3716         (free_dwo_file_from_slot, free_dwo_files): New functions.
3717         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3718         (dwarf2_record_block_ranges): Ditto.
3719         (read_partial_die): Ditto.
3720         (process_enumeration_scope): Update to use type_offset_in_section.
3721         (read_full_die_1): New function.
3722         (read_full_die): Rewrite.
3723         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3724         DW_FORM_GNU_str_index.
3725         (read_addr_index_1, read_addr_index): New functions.
3726         (read_addr_index_from_leb128): New function.
3727         (struct dwarf2_read_addr_index_data): New type.
3728         (dwarf2_read_addr_index_reader): New function.
3729         (dwarf2_read_addr_index): New function.
3730         (read_str_index): New function.
3731         (leb128_size): New function.
3732         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3733         If processing a type unit from a DWO file, get the line section
3734         from the DWO file.
3735         (var_decode_location): Watch for DW_OP_GNU_addr_index.
3736         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3737         DW_FORM_GNU_str_index.
3738         (lookup_die_type): Check whether section offset of type's die is
3739         known before looking it up.  Remove assert.  Condition can
3740         legimately happen for inter-cu type references.
3741         (dwarf_attr_name): Handle Fission attributes.
3742         (dwarf_form_name): Handle Fission forms.
3743         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3744         DW_FORM_GNU_str_index.
3745         (follow_die_sig): Update to use type_offset_in_section.
3746         (decode_locdesc): New case DW_OP_GNU_addr_index.
3747         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3748         DW_FORM_GNU_str_index.
3749         (cu_debug_loc_section): New function.
3750         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3751         (dwarf2_per_objfile_free): Unmap .debug_addr section.
3752         Free DWO files if present.
3753         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3754
3755         Refactor DIE reading.
3756         * dwarf2read.c (dwarf2_per_objfile): Replace members
3757         debug_info_type_hash and debug_types_type_hash with die_type_hash.
3758         (die_reader_specs): New member "die_section".  Temporarily make
3759         member "buffer" non-const, pending constifying all info_ptr uses.
3760         (die_reader_func_ftype): New typedef.
3761         (dw2_get_file_names_reader): New function.
3762         (dw2_get_file_names): Rewrite.
3763         (read_and_check_type_unit_head): Rename arg type_offset to
3764         type_offset_in_tu.
3765         (create_all_type_units): Improve debugging message.
3766         Improve dummy type unit check.
3767         (init_cu_die_reader): New arg "section".  All callers updated.
3768         (init_and_read_dies_worker): New function.
3769         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3770         (init_cutu_and_read_dies_no_follow): New function.
3771         (init_cutu_and_read_dies_simple): New function.
3772         (process_psymtab_comp_unit_reader): New function.
3773         (process_psymtab_comp_unit): Delete args section,
3774         is_debug_types_section.  Rewrite.  All callers updated.
3775         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3776         All callers updated.  Rewrite.
3777         (load_partial_comp_unit_reader): New function.
3778         (load_partial_comp_unit): Rewrite.
3779         (skip_children): New arg reader.  Delete args buffer, cu.
3780         All callers updated.
3781         (skip_one_die): New arg reader.  Delete args buffer, cu.
3782         All callers updated.
3783         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
3784         All callers updated.
3785         (load_full_comp_unit_reader): New function.
3786         (load_full_comp_unit): Rewrite.
3787         (read_comp_unit): Delete.
3788         (read_die_and_children_1): Delete, contents moved ...
3789         (read_die_and_children): ... here.
3790         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
3791         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
3792         All callers updated.
3793         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
3794         All callers updated.
3795         (find_partial_die): Rewrite load_all_dies support.
3796         (read_attribute_value): New arg reader.  Delete args abfd, cu.
3797         All callers updated.
3798         (read_attribute): New arg reader.  Delete args abfd, cu.
3799         All callers updated.
3800         (load_full_type_unit): Add assert.
3801         (read_signatured_type_reader): New function.
3802         (read_signatured_type): Rewrite.
3803         (free_stack_comp_unit): Remove call to age_cached_comp_units.
3804         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3805         All callers updated.  Set per_cu->cu = NULL after freeing it.
3806         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3807         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3808         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3809         (set_die_type): Update.
3810         (get_die_type_at_offset): Update.
3811         (read_file_scope): Call prepare_one_comp_unit.
3812         (read_type_unit_scope): Ditto.
3813         (prepare_one_comp_unit): Set producer if present.
3814
3815 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
3816
3817         * probe.c (compile_rx_or_error): Silence ARI warning about missing
3818          gettext function on `error'.
3819
3820 2012-04-27  Doug Evans  <dje@google.com>
3821
3822         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3823         is empty.
3824
3825 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
3826             Tom Tromey  <tromey@redhat.com>
3827
3828         * breakpoint.c (struct breakpoint_objfile_data)
3829         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3830         <exception_probes>: New fields.
3831         (free_breakpoint_probes): New function.
3832         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3833         `_Unwind_DebugHook'.
3834         (create_exception_master_breakpoint): Likewise.
3835         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3836         * infrun.c: Including necessary header files for handling SystemTap
3837         probes.
3838         (handle_inferior_event): Handling longjmp breakpoint and exceptions
3839         via SystemTap probes.
3840         (check_exception_resume): Remove `func' argument.  Handle exception
3841         unwinding breakpoint set via a SystemTap probe.
3842         (insert_exception_resume_from_probe): New function.
3843
3844 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
3845             Tom Tromey  <tromey@redhat.com>
3846             Jan Kratochvil  <jan.kratochvil@redhat.com>
3847
3848         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3849         (COMMON_OBS): Likewise.
3850         (HFILES_NO_SRCDIR): Add `probe'.
3851         * NEWS: Mention support for static and SystemTap probes.
3852         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3853         SystemTap probes' arguments parser.
3854         * arm-linux-tdep.c: Including headers needed to perform the parsing
3855         of SystemTap probes' arguments.
3856         (arm_stap_is_single_operand): New function.
3857         (arm_stap_parse_special_token): Likewise.
3858         (arm_linux_init_abi): Initializing proper fields used by SystemTap
3859         probes' arguments parser.
3860         * ax-gdb.c (require_rvalue): Removing static declaration.
3861         (gen_expr): Likewise.
3862         * ax-gdb.h (gen_expr): Declaring function.
3863         (require_rvalue): Likewise.
3864         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3865         (bkpt_probe_breakpoint_ops): New variable.
3866         (momentary_breakpoint_from_master): Set the `probe' value.
3867         (add_location_to_breakpoint): Likewise.
3868         (break_command_1): Using proper breakpoint_ops according to the
3869         argument passed by the user in the command line.
3870         (bkpt_probe_insert_location): New function.
3871         (bkpt_probe_remove_location): Likewise.
3872         (bkpt_probe_create_sals_from_address): Likewise.
3873         (bkpt_probe_decode_linespec): Likewise.
3874         (tracepoint_probe_create_sals_from_address): Likewise.
3875         (tracepoint_probe_decode_linespec): Likewise.
3876         (tracepoint_probe_breakpoint_ops): New variable.
3877         (trace_command): Using proper breakpoint_ops according to the
3878         argument passed by the user in the command line.
3879         (initialize_breakpoint_ops): Initializing breakpoint_ops for
3880         static probes on breakpoints and tracepoints.
3881         * breakpoint.h (struct bp_location) <probe>: New field.
3882         * cli-utils.c (skip_spaces_const): New function.
3883         (extract_arg): Likewise.
3884         * cli-utils.h (skip_spaces_const): Likewise.
3885         (extract_arg): Likewise.
3886         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3887         * configure.ac: Append `stap-probe.o' to be generated when ELF
3888         support is present.
3889         * configure: Regenerate.
3890         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3891         * elfread.c: Include `probe.h' and `arch-utils.h'.
3892         (probe_key): New variable.
3893         (elf_get_probes): New function.
3894         (elf_get_probe_argument_count): Likewise.
3895         (elf_evaluate_probe_argument): Likewise.
3896         (elf_compile_to_ax): Likewise.
3897         (elf_symfile_relocate_probe): Likewise.
3898         (stap_probe_key_free): Likewise.
3899         (elf_probe_fns): New variable.
3900         (elf_sym_fns): Add `sym_probe_fns' value.
3901         (elf_sym_fns_lazy_psyms): Likewise.
3902         (elf_sym_fns_gdb_index): Likewise.
3903         (_initialize_elfread): Initialize objfile cache for static
3904         probes.
3905         * gdb_vecs.h (struct probe): New forward declaration.
3906         (probe_p): New VEC declaration.
3907         * gdbarch.c: Regenerate.
3908         * gdbarch.h: Regenerate.
3909         * gdbarch.sh (stap_integer_prefix): New variable.
3910         (stap_integer_suffix): Likewise.
3911         (stap_register_prefix): Likewise.
3912         (stap_register_suffix): Likewise.
3913         (stap_register_indirection_prefix): Likewise.
3914         (stap_register_indirection_suffix): Likewise.
3915         (stap_gdb_register_prefix): Likewise.
3916         (stap_gdb_register_suffix): Likewise.
3917         (stap_is_single_operand): New function.
3918         (stap_parse_special_token): Likewise.
3919         (struct stap_parse_info): Forward declaration.
3920         * i386-tdep.c: Including headers needed to perform the parsing
3921         of SystemTap probes' arguments.
3922         (i386_stap_is_single_operand): New function.
3923         (i386_stap_parse_special_token): Likewise.
3924         (i386_elf_init_abi): Initializing proper fields used by SystemTap
3925         probes' arguments parser.
3926         * i386-tdep.h (i386_stap_is_single_operand): New function.
3927         (i386_stap_parse_special_token): Likewise.
3928         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3929         * mipsread.c (ecoff_sym_fns): Likewise.
3930         * objfiles.c (objfile_relocate1): Support relocation for static
3931         probes.
3932         * parse.c (prefixify_expression): Remove static declaration.
3933         (initialize_expout): Likewise.
3934         (reallocate_expout): Likewise.
3935         * parser-defs.h (initialize_expout): Declare function.
3936         (reallocate_expout): Likewise.
3937         (prefixify_expression): Likewise.
3938         * ppc-linux-tdep.c: Including headers needed to perform the parsing
3939         of SystemTap probes' arguments.
3940         (ppc_stap_is_single_operand): New function.
3941         (ppc_stap_parse_special_token): Likewise.
3942         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3943         probes' arguments parser.
3944         * probe.c: New file, for generic statically defined probe support.
3945         * probe.h: Likewise.
3946         * s390-tdep.c: Including headers needed to perform the parsing of
3947         SystemTap probes' arguments.
3948         (s390_stap_is_single_operand): New function.
3949         (s390_gdbarch_init): Initializing proper fields used by SystemTap
3950         probes' arguments parser.
3951         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3952         * stap-probe.c: New file, for SystemTap probe support.
3953         * stap-probe.h: Likewise.
3954         * symfile.h: Include `gdb_vecs.h'.
3955         (struct sym_probe_fns): New struct.
3956         (struct sym_fns) <sym_probe_fns>: New field.
3957         * symtab.c (init_sal): Initialize `probe' field.
3958         * symtab.h (struct probe): Forward declaration.
3959         (struct symtab_and_line) <probe>: New field.
3960         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3961         locations.
3962         (stop_tracing): Likewise.
3963         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3964
3965 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
3966             Tom Tromey  <tromey@redhat.com>
3967
3968         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3969         and to compile agent expressions.
3970         * infrun.c (siginfo_make_value): New argument `ignore'.
3971         (siginfo_funcs): New struct.
3972         (_initialize_infrun): New argument when calling
3973         `create_internalvar_type_lazy'.
3974         * thread.c (thread_id_make_value): New argument `ignore'.
3975         (thread_funcs): New struct.
3976         (_initialize_thread): New argument when calling
3977         `create_internalvar_type_lazy'.
3978         * tracepoint.c (sdata_make_value): New argument `ignore'.
3979         (sdata_funcs): New struct.
3980         (_initialize_tracepoint): New argument when calling
3981         `create_internalvar_type_lazy'.
3982         * value.c (make_value): New struct.
3983         (create_internalvar_type_lazy): New argument `data'.
3984         (compile_internalvar_to_ax): New function.
3985         (value_of_internalvar): Properly handling `make_value' case.
3986         (clear_internalvar): Likewise.
3987         (show_convenience): Adding `TRY_CATCH' block.
3988         * value.h (internalvar_make_value): Delete, replace by...
3989         (struct internalvar_funcs): ... this.
3990         (create_internalvar_type_lazy) <fun>: Delete argument.
3991         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3992         (compile_internalvar_to_ax): New function.
3993         * windows-tdep.c (tlb_make_value): New argument `ignore'.
3994         (tlb_funcs): New struct.
3995         (_initialize_windows_tdep): New argument when calling
3996         `create_internalvar_type_lazy'.
3997
3998 2012-04-27  Mark Wielaard  <mjw@redhat.com>
3999
4000         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4001         see whether it is an address or a constant offset from DW_AT_low_pc.
4002         (dwarf2_record_block_ranges): Likewise.
4003         (read_partial_die): Likewise.
4004
4005 2012-04-26  Mark Wielaard  <mjw@redhat.com>
4006
4007         * MAINTAINERS (Write After Approval): Add myself to the list.
4008
4009 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
4010
4011         * proc-utils.h (proc_prettyprint_signalset): New prototype.
4012         (proc_prettyprint_signal): Likewise.
4013         (proc_prettyprint_faultset): Likewise.
4014         (proc_prettyprint_fault): Likewise.
4015         (proc_prettyprint_actionset): Likewise.
4016         (proc_prettyprint_flags): Move to new proc-flags.c section.
4017         (proc_prettyfprint_flags): New prototype.
4018         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4019         (proc_syscall, proc_cursig): Likewise.
4020         (proc_set_kill_on_last_close): Likewise.
4021         (proc_unset_kill_on_last_close): Likewise.
4022         (proc_set_watchpoint): Make static.
4023         (proc_delete_dead_threads): Likewise.
4024         (procfs_set_watchpoint): Likewise.
4025         (_initialize_procfs): Add prototype.
4026         * proc-events.c: Include proc-utils.h.
4027         (init_syscall_table): Make static.
4028         * proc-api.c (_initialize_proc_api): Add prototype.
4029         * proc-flags.c: Include proc-utils.h.
4030
4031 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
4032
4033         * configure.ac: Add AC_ARG_PROGRAM.
4034         * configure: Regenerate.
4035
4036 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4037
4038         Fix DW_AT_lower_bound defaults for DWARF-4+.
4039         * dwarf2read.c (read_subrange_type): Remove initialization of low and
4040         high.  New variable low_default_is_valid.  Implement DWARF-4+
4041         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
4042         no default by the DWARF standard.
4043
4044 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
4045             Maciej W. Rozycki  <macro@codesourcery.com>
4046
4047         * infrun.c (handle_inferior_event): Move the check for return
4048         trampolines ahead of the check for function trampolines.
4049         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4050         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4051         (mips_str_mips16_ret_stub): Likewise.
4052         (mips_str_call_fp_stub): Likewise.
4053         (mips_str_call_stub): Likewise.
4054         (mips_str_fn_stub): Likewise.
4055         (mips_str_pic): Likewise.
4056         (mips_in_frame_stub): New function.
4057         (mips_unwind_pc): Return the return address rather than the PC
4058         if the PC of an intermediate frame is inside a call thunk.
4059         (mips_is_stub_suffix): New function.
4060         (mips_is_stub_mode): Likewise.
4061         (mips_get_mips16_fn_stub_pc): Likewise.
4062         (mips_skip_mips16_trampoline_code): Update to handle all the
4063         currently generated stub types.  Don't recurse into __fn_stub
4064         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
4065         Use cooked register accesses.
4066         (mips_in_return_stub): Reintroduce function.
4067         (mips_skip_trampoline_code): Traverse trampolines recursively.
4068         (mips_gdbarch_init): Handle MIPS16 return trampolines.
4069
4070 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
4071
4072         GDB 7.4.1 released.
4073
4074 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
4075
4076         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4077         * features/arm-with-m-vfp-d16.xml: New file. Describes
4078         Cortex-M with VFPv4-sp-d16 FPU register layout.
4079         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4080         * features/arm-with-m-vfp-d16.c: New. Generated from above.
4081         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4082         (arm-register_g_packet_guesses): Add vfp-d16 guess.
4083         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4084
4085 2012-04-25  Doug Evans  <dje@google.com>
4086
4087         * cli/cli-decode.c (print_doc_line): Use stream instead of
4088         current_uiout.
4089
4090 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
4091
4092         * features/arm-with-iwmmxt.c: Regenerate.
4093         * features/arm-with-m-fpa-layout.c: Likewise.
4094         * features/arm-with-m.c: Likewise.
4095         * features/arm-with-neon.c: Likewise.
4096         * features/arm-with-vfpv2.c: Likewise.
4097         * features/arm-with-vfpv3.c: Likewise.
4098         * features/mips-dsp-linux.c: Likewise.
4099         * features/mips-linux.c: Likewise.
4100         * features/mips64-dsp-linux.c: Likewise.
4101         * features/mips64-linux.c: Likewise.
4102         * features/s390-linux32.c: Likewise.
4103         * features/s390-linux32v1.c: Likewise.
4104         * features/s390-linux32v2.c: Likewise.
4105         * features/s390-linux64.c: Likewise.
4106         * features/s390-linux64v1.c: Likewise.
4107         * features/s390-linux64v2.c: Likewise.
4108         * features/s390x-linux64.c: Likewise.
4109         * features/s390x-linux64v1.c: Likewise.
4110         * features/s390x-linux64v2.c: Likewise.
4111         * features/tic6x-c62x-linux.c: Likewise.
4112         * features/tic6x-c62x.c: Likewise.
4113         * features/tic6x-c64x-linux.c: Likewise.
4114         * features/tic6x-c64x.c: Likewise.
4115         * features/tic6x-c64xp-linux.c: Likewise.
4116         * features/tic6x-c64xp.c: Likewise.
4117         * target-descriptions.c: Only generate `field_type' and `type'
4118         variables when needed.
4119
4120 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
4121
4122         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4123
4124 2012-04-25  Doug Evans  <dje@google.com>
4125
4126         Initial pass at Go language support.
4127         * NEWS: Mention Go.
4128         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4129         go-valprint.c.
4130         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4131         (YYFILES): Add go-exp.c.
4132         (YYOBJ): Add go-exp.o.
4133         (local-maintainer-clean): Delete go-exp.c.
4134         * defs.h (enum language): Add language_go.
4135         * dwarf2read.c: #include "go-lang.h".
4136         (fixup_go_packaging): New function.
4137         (process_full_comp_unit): Call it when processing Go CUs.
4138         (dwarf2_physname): Add Go support.
4139         (read_file_scope): Handle missing language spec for GNU Go.
4140         (set_cu_language): Handle DW_LANG_Go.
4141         * go-exp.y: New file.
4142         * go-lang.h: New file.
4143         * go-lang.c: New file.
4144         * go-typeprint.c: New file.
4145         * go-valprint.c: New file.
4146         * symtab.c: #include "go-lang.h".
4147         (symbol_set_language): Handle language_go.
4148         (symbol_find_demangled_name, symbol_set_names): Ditto.
4149         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4150
4151 2012-04-24  Jim Meyering  <meyering@redhat.com>
4152
4153         avoid a few strncpy-induced buffer overruns
4154         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4155         fname and psargs before trying to concatenate.
4156         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4157         "name" before applying strchr.
4158
4159 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
4160
4161         * CONTRIBUTE: Use unified diff instead of context diff when
4162         generating patches.
4163
4164 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
4165
4166         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4167         code.  Handle JR.HB correctly.
4168
4169 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
4170
4171         * mips-tdep.c
4172         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4173         with the other MIPS16 helpers.
4174
4175 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
4176
4177         * observer.sh: Conditionally declare `args', thus cleaning up
4178         unused instances of this variable.
4179
4180 2012-04-24  Yao Qi  <yao@codesourcery.com>
4181
4182         Revert this patch to allow breakpoint always-inserted
4183         in record target.
4184         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
4185         * breakpoint.c: Include record.h.
4186         (breakpoints_always_inserted_mode): Return false when the record
4187         target is in use.
4188
4189         * breakpoint.c (iterate_over_bp_locations): New.
4190         * breakpoint.h: Declare.
4191         New typedef walk_bp_location_callback.
4192         * record.c (record_open): Call record_init_record_breakpoints.
4193         (record_sync_record_breakpoints): New.
4194         (record_init_record_breakpoints): New.
4195         * NEWS: Mention supporting breakpoint always-inserted mode in
4196         record target.
4197
4198 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
4199
4200         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4201         any thread.
4202
4203 2012-04-24  Yao Qi  <yao@codesourcery.com>
4204
4205         * breakpoint.c (ep_is_catchpoint): Renamed to ...
4206         (is_catchpoint): ... it.
4207         (print_one_breakpoint_location): Caller update.
4208         * breakpoint.h: Update declaration.
4209
4210 2012-04-23  David S. Miller  <davem@davemloft.net>
4211
4212         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4213
4214 2012-04-23  Tom Tromey  <tromey@redhat.com>
4215
4216         * buildsym.c (add_free_pendings): Remove.
4217         * buildsym.h (add_free_pendings): Remove.
4218
4219 2012-04-23  Doug Evans  <dje@google.com>
4220
4221         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4222         attr.u.unsnd instead of attr.u.addr.
4223         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4224         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4225         DW_FORM_ref_udata.
4226         (dump_die_shallow): Update cases DW_FORM_ref_addr,
4227         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
4228         DW_FORM_ref_udata.
4229         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4230
4231 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
4232
4233         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4234         (mips_o32_return_value): Likewise.
4235         (mips_o64_return_value): Likewise.
4236
4237 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
4238
4239         * ada-lang.c (ada_evaluate_subexp): Add cases for
4240         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4241         their treatment in eval.c.
4242
4243 2012-04-21  David S. Miller  <davem@davemloft.net>
4244
4245         * sparc-tdep.c (X_DISP10): Define.
4246         (sparc_analyze_control_transfer): Handle compare-and-branch.
4247
4248 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
4249
4250         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4251         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4252
4253 2012-04-20  Nigel Stephens  <nigel@mips.com>
4254             Maciej W. Rozycki  <macro@codesourcery.com>
4255
4256         * mips-tdep.c (mips_float_register_p): New function.
4257         (mips_convert_register_float_case_p): Use mips_float_register_p.
4258         (mips_register_type): Likewise.
4259         (mips_print_register): Likewise.
4260         (print_gp_register_row): Likewise.
4261         (mips_print_registers_info): Likewise.
4262
4263 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
4264
4265         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4266         of mips16 symbols.
4267
4268 2012-04-20  Andrew Pinski  <apinski@cavium.com>
4269
4270         * MAINTAINERS (Write After Approval): Add myself to the list.
4271
4272 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
4273
4274         * MAINTAINERS: Update my e-mail address.
4275
4276 2012-04-20  Pedro Alves  <palves@redhat.com>
4277
4278         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4279         $srcdir.
4280         * configure: Regenerate.
4281
4282 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
4283
4284         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
4285         declaration.
4286         * gdb_vecs.h: Declare `const_char_ptr' VEC.
4287
4288 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4289
4290         Fix compilation compatibility with python-2.4
4291         * python/py-type.c (convert_field): Cast ADDRSTRING for
4292         PyObject_SetAttrString as non-const.  New comment.
4293
4294 2012-04-19  Tom Tromey  <tromey@redhat.com>
4295
4296         * top.c (quit_target): Use all_cleanups.
4297         * main.c (captured_command_loop): Use all_cleanups.
4298         * exceptions.c (throw_exception): Use all_cleanups.
4299
4300 2012-04-19  Pedro Alves  <palves@redhat.com>
4301
4302         * Makefile.in (GNULIB_BUILDDIR): New.
4303         (LIBGNU, INCGNU, GNULIB_H): Adjust.
4304         (SUBDIRS): Add $(GNULIB_BUILDDIR).
4305         (CLEANDIRS). Remove gnulib/import.
4306         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4307         (all-lib): Ditto.
4308         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4309         (gnulib/import/Makefile): Replace gnulib/import with
4310         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
4311         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4312         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
4313         acx_configure_dir.m4.
4314         * acinclude.m4: Include acx_configure_dir.m4.
4315         * acx_configure_dir.m4: New file.
4316         * aclocal.m4: Regenerate.
4317         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4318         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
4319         (GNULIB): New variable.
4320         (GNULIB_STDINT_H): Adjust.
4321         (AC_OUTPUT): Don't output gnulib/Makefile.
4322         * gdb/defs.h: Include build-gnulib/config.h.
4323         * aclocal.m4: Regenerate.
4324         * config.in: Regenerate.
4325         * configure: Regenerate.
4326
4327         * gnulib/Makefile.in: New file.
4328         * gnulib/configure.ac: New file.
4329         * gnulib/aclocal.m4: New file.
4330         * gnulib/config.in: New file.
4331         * gnulib/configure: New file.
4332         * gnulib/: Re-run gnulib-tool to adjust.
4333
4334 2012-04-19  Doug Evans  <dje@google.com>
4335
4336         * cleanups.h (struct cleanup): Move to cleanups.c.
4337         (make_cleanup_dtor_ftype): New typedef.
4338         (make_cleanup_dtor): Use it.
4339         (ALL_CLEANUPS): Replace with ...
4340         (all_cleanups): ... this.  Declare.  All uses updated.
4341         * cleanups.c: #include "gdb_assert.h".
4342         (sentinel_cleanup): New static global.
4343         (SENTINEL_CLEANUP): Define.
4344         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4345         (make_my_cleanup2): Assert result is non-NULL.
4346         (all_cleanups): New function.
4347         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4348         of NULL.
4349
4350 2012-04-19  Pedro Alves  <palves@redhat.com>
4351
4352         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4353         Adjust paths to gnulib imported files.
4354
4355 2012-04-19  Pedro Alves  <palves@redhat.com>
4356
4357         * gnulib/: Move whole directory ...
4358         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4359         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4360         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4361         (aclocal_m4_deps): Adjust.
4362         * aclocal.m4: Regenerate.
4363         * configure: Regenerate.
4364         * configure.ac: Adjust AC_OUTPUT output.
4365
4366 2012-04-19  Yao Qi  <yao@codesourcery.com>
4367
4368         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4369         (vec.o): New rule.
4370         * vec.c: Move it ...
4371         * common/vec.c: ... here.
4372         * vec.h: Move it ...
4373         * common/vec.h: ... here.
4374
4375 2012-04-19  Yao Qi  <yao@codesourcery.com>
4376
4377         * gdb-code-style.el: New.
4378
4379 2012-04-18  Pedro Alves  <palves@redhat.com>
4380
4381         Update gnulib from latest git.
4382         (639ea5ae15e39fe48d43e04864b2997301e4b969)
4383
4384         * gnulib/Makefile.am: Update.
4385         * gnulib/dummy.c: Update.
4386         * gnulib/extra/arg-nonnull.h: Update.
4387         * gnulib/extra/c++defs.h: Update.
4388         * gnulib/extra/update-copyright: Update.
4389         * gnulib/extra/warn-on-use.h: Update.
4390         * gnulib/inttypes.in.h: Update.
4391         * gnulib/m4/00gnulib.m4: Update.
4392         * gnulib/m4/extensions.m4: Update.
4393         * gnulib/m4/gnulib-cache.m4: Update.
4394         * gnulib/m4/gnulib-common.m4: Update.
4395         * gnulib/m4/gnulib-comp.m4: Update.
4396         * gnulib/m4/gnulib-tool.m4: Update.
4397         * gnulib/m4/include_next.m4: Update.
4398         * gnulib/m4/inttypes-pri.m4: Update.
4399         * gnulib/m4/inttypes.m4: Update.
4400         * gnulib/m4/longlong.m4: Update.
4401         * gnulib/m4/memchr.m4: Update.
4402         * gnulib/m4/memmem.m4: Update.
4403         * gnulib/m4/mmap-anon.m4: Update.
4404         * gnulib/m4/multiarch.m4: Update.
4405         * gnulib/m4/onceonly.m4: Update.
4406         * gnulib/m4/stddef_h.m4: Update.
4407         * gnulib/m4/stdint.m4: Update.
4408         * gnulib/m4/string_h.m4: Update.
4409         * gnulib/m4/warn-on-use.m4: Update.
4410         * gnulib/m4/wchar_h.m4: Update.
4411         * gnulib/m4/wchar_t.m4: Update.
4412         * gnulib/m4/wint_t.m4: Update.
4413         * gnulib/memchr.c: Update.
4414         * gnulib/memmem.c: Update.
4415         * gnulib/stddef.in.h: Update.
4416         * gnulib/stdint.in.h: Update.
4417         * gnulib/str-two-way.h: Update.
4418         * gnulib/string.in.h: Update.
4419         * gnulib/wchar.in.h: Update.
4420
4421         * gnulib/extra/arg-nonnull.h: Delete.
4422         * gnulib/extra/c++defs.h: Delete.
4423         * gnulib/extra/warn-on-use.h: Delete.
4424         * gnulib/m4/wchar_h.m4: Delete.
4425         * gnulib/m4/wint_t.m4: Delete.
4426         * gnulib/wchar.in.h: Delete.
4427
4428         * gnulib/extra/snippets/arg-nonnull.h: New.
4429         * gnulib/extra/snippets/c++defs.h: New.
4430         * gnulib/extra/snippets/warn-on-use.h: New.
4431
4432         * aclocal.m4: Regenerate.
4433         * config.in: Regenerate.
4434         * configure: Regenerate.
4435         * gnulib/Makefile.in: Regenerate.
4436
4437 2012-04-18  Pedro Alves  <palves@redhat.com>
4438
4439         Reimport the update-copyright module from gnulib
4440         (250b80067c1e1d8faa0c42fb572f721975b929c5).
4441
4442         * configure: Regenerate.
4443         * gnulib/Makefile.am: Update.
4444         * gnulib/Makefile.in: Regenerate.
4445         * gnulib/extra/update-copyright: Update.
4446         * gnulib/m4/gnulib-cache.m4: Update.
4447         * gnulib/m4/gnulib-comp.m4: Update.
4448
4449 2012-04-18  Tristan Gingold  <gingold@adacore.com>
4450
4451         * configure.ac (aix): Put -lpthread into libs.
4452         * configure: Regenerate.
4453
4454 2012-04-18  Tom Tromey  <tromey@redhat.com>
4455
4456         * linespec.c (convert_linespec_to_sals): Don't use
4457         SYMBOL_OBJ_SECTION.
4458         (compare_msymbols): Arguments are minsym_and_objfile, not
4459         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
4460
4461 2012-04-18  Pedro Alves  <palves@redhat.com>
4462
4463         Revert gnulib/ part of:
4464         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
4465         Copyright year update in most files (performed by copyright.sh).
4466
4467 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4468
4469         Fix 64-bit constants on 32-bit hosts.
4470         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4471         from unsigned long to ULONGEST.
4472         (read_signed_leb128): Change declaration return type from long to
4473         LONGEST.
4474         (dwarf2_const_value_attr): Change declaration parameter value from long
4475         to LONGEST.
4476         (dwarf2_compute_name): Change variable value from long to LONGEST.
4477         (read_unsigned_leb128): Change return type, variable result and some
4478         casts from unsigned long to ULONGEST.
4479         (read_signed_leb128): Change return type, variable result and some
4480         casts from long to LONGEST.
4481         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4482         value from long to LONGEST.
4483         (dwarf2_const_value): Change variable value from long to LONGEST.
4484         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4485         plongest and hex_string.
4486         * symtab.h (struct general_symbol_info): Change ivalue from long to
4487         LONGEST, remove the comment.
4488         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4489         Change SYMBOL_VALUE format strings to use plongest and hex_string.
4490
4491 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4492
4493         PR symtab/7259:
4494         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4495         * ada-lang.c (ada_discrete_type_high_bound)
4496         (ada_discrete_type_low_bound): Fix function comment.  Use
4497         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4498         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4499         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4500         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4501         Use TYPE_FIELD_ENUMVAL.
4502         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4503         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4504         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4505         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
4506         TYPE_CODE_ENUM.
4507         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4508         * dwarf2read.c (process_enumeration_scope): Likewise.
4509         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4510         field.bitpos.
4511         (class StructMainTypePrettyPrinter): Support also
4512         FIELD_LOC_KIND_ENUMVAL.
4513         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4514         TYPE_CODE_ENUM.
4515         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4516         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4517         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4518         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
4519         field enumval.
4520         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4521         accommodate enumval.
4522         (struct call_site): Adjust loc_kind to accommodate enumval.
4523         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4524         (TYPE_FIELD_ENUMVAL): New macros.
4525         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4526         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4527         TYPE_CODE_ENUM.
4528         * p-typeprint.c (pascal_type_print_base): Likewise.
4529         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4530         enumval.
4531         * python/lib/gdb/types.py (make_enum_dict): Likewise.
4532         * python/py-type.c (convert_field): New variable addrstring.  Use
4533         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4534         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4535         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4536         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4537         TYPE_CODE_ENUM.
4538         * valprint.c (generic_val_print): Likewise.
4539
4540 2012-04-17  Doug Evans  <dje@google.com>
4541
4542         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4543
4544         * dwarf2read.c: Whitespace fixes.
4545         (lookup_signatured_type): Tweak comment.
4546         (get_die_type_at_offset): Fix comment.
4547
4548 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
4549
4550         * xcoffread.c (xcoff_secnum_to_sections): New function.
4551         (secnum_to_section, secnum_to_bfd_section): Reimplement
4552         using xcoff_secnum_to_sections.  Rename "secnum" parameter
4553         into "n_scnum".
4554         (RECORD_MINIMAL_SYMBOL): Delete.
4555         (record_minimal_symbol): New function.
4556         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4557         by call to record_minimal_symbol and set misc_func_recorded
4558         to 1.  Set last_csect_sec to the XCOFF section index instead
4559         of GDB's section_offset index.  Update calls to
4560         prim_record_minimal_symbol_and_info to pass the BFD section
4561         as well.
4562
4563 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
4564
4565         * xcoffread.c (read_xcoff_symtab): Delete variables
4566         last_csect_val and last_csect_sec and associated code.
4567
4568 2012-04-17  Doug Evans  <dje@google.com>
4569
4570         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4571         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4572         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4573         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4574
4575         * cleanups.h: New file.
4576         * cleanups.c: New file.
4577         * Makefile.in (SFILES): Add cleanups.c.
4578         (HFILES_NO_SRCDIR): Add cleanups.h.
4579         (COMMON_OBS): Add cleanups.o.
4580         * defs.h (struct cleanup): Moved to cleanups.h.
4581         (do_cleanups,do_final_cleanups): Ditto.
4582         (discard_cleanups,discard_final_cleanups): Ditto
4583         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4584         (save_cleanups,save_final_cleanups): Ditto.
4585         (restore_cleanups,restore_final_cleanups): Ditto.
4586         (null_cleanup): Ditto.
4587         (make_my_cleanup,make_my_cleanup2): Ditto.
4588         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4589         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4590         (do_cleanups,do_final_cleanups): Ditto.
4591         (discard_cleanups,discard_final_cleanups): Ditto
4592         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4593         (save_cleanups,save_final_cleanups): Ditto.
4594         (restore_cleanups,restore_final_cleanups): Ditto.
4595         (null_cleanup): Ditto.
4596         (make_my_cleanup,make_my_cleanup2): Ditto.
4597         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4598
4599         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4600         make_my_cleanup.
4601         (make_cleanup_dyn_string_delete): Ditto.
4602         (make_cleanup_ui_file_delete): Ditto.
4603         (make_cleanup_ui_out_redirect_pop): Ditto.
4604         (make_cleanup_free_section_addr_info): Ditto.
4605         (make_cleanup_restore_integer): Ditto.
4606         (make_cleanup_unpush_target): Ditto.
4607         (make_cleanup_value_free_to_mark): Ditto.
4608         (make_cleanup_value_free): Ditto.
4609         (make_cleanup_free_so): Ditto.
4610
4611 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4612
4613         New option "set debug auto-load".
4614         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4615         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4616         (auto_load_safe_path_vec_update)
4617         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4618         if DEBUG_AUTO_LOAD.
4619         (file_is_auto_load_safe): New parameters debug_fmt and ....
4620         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4621         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4622         caller by explanatory string.
4623         (_initialize_auto_load): Register "set debug auto-load".
4624         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4625         and ....
4626         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4627         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4628         by explanatory string.
4629         * main.c (captured_main): Likewise.
4630         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4631         (source_section_scripts): Likewise.
4632
4633 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4634
4635         New option "set auto-load safe-path".
4636         * NEWS: New commands "set auto-load safe-path"
4637         and "show auto-load safe-path".
4638         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4639         (auto_load_safe_path, auto_load_safe_path_vec)
4640         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4641         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4642         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4643         (source_gdb_script_for_objfile): New variable is_safe.  Call
4644         file_is_auto_load_safe.  Return if it is not.
4645         (struct loaded_script): New field loaded.
4646         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
4647         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
4648         output "Missing" to "No".
4649         (_initialize_auto_load): New variable cmd.  Initialize
4650         auto_load_safe_path.  Register "set auto-load safe-path",
4651         "show auto-load safe-path" and "add-auto-load-safe-path".
4652         * auto-load.h (maybe_add_script): Add parameter loaded.
4653         (file_is_auto_load_safe): New declaration.
4654         * config.in: Regenerate.
4655         * configure: Regenerate.
4656         * configure.ac: New parameters --with-auto-load-safe-path
4657         and --without-auto-load-safe-path.
4658         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4659         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4660         * main.c (captured_main): Check file_is_auto_load_safe for
4661         LOCAL_GDBINIT.
4662         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4663         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
4664         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
4665         not.
4666
4667 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4668
4669         auto-load: Implementation.
4670         * NEWS: New descriptions for "info auto-load",
4671         "info auto-load gdb-scripts", "info auto-load python-scripts",
4672         "info auto-load local-gdbinit" and "info auto-load libthread-db".
4673         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4674         and "show auto-load-scripts".  New description for "set auto-load",
4675         "show auto-load", "set auto-load gdb-scripts",
4676         "show auto-load gdb-scripts", "set auto-load python-scripts",
4677         "show auto-load python-scripts", "set auto-load local-gdbinit",
4678         "show auto-load local-gdbinit", "set auto-load libthread-db" and
4679         "show auto-load libthread-db".
4680         * auto-load.c: Remove include python/python-internal.h.  Add includes
4681         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4682         cli/cli-setshow.h.
4683         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4684         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4685         (gdbpy_global_auto_load): Rename to ...
4686         (global_auto_load): ... here.
4687         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4688         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4689         (script_language_gdb, source_gdb_script_for_objfile): New.
4690         (struct loaded_script): New field language.
4691         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4692         LANGUAGE.
4693         (maybe_add_script): Add parameter language.  Drop redundant
4694         entry.full_path initialization.  Initialize entry.language and
4695         (*slot)->language.
4696         (auto_load_objfile_script): Change parameter suffix to language.
4697         Remove the call of maybe_add_script.
4698         Call language->source_script_for_objfile.
4699         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4700         New.
4701         (collect_matching_scripts): Adjust it for
4702         struct collect_matching_scripts_data.
4703         (auto_load_info_scripts_pattern_nl): New variable.
4704         (info_auto_load_scripts): Rename to ...
4705         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
4706         for struct collect_matching_scripts_data.
4707         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4708         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4709         (auto_load_show_cmdlist_get, info_auto_load_cmd)
4710         (auto_load_info_cmdlist_get): New.
4711         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4712         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
4713         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4714         "info auto-load local-gdbinit".
4715         * auto-load.h (struct script_language): New.
4716         (gdbpy_global_auto_load): Rename to ...
4717         (global_auto_load): ... here.
4718         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4719         (auto_load_local_gdbinit_loaded): New declarations.
4720         (maybe_add_script): New parameter language.
4721         (auto_load_objfile_script): Change parameter suffix to language.
4722         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4723         (auto_load_info_scripts, auto_load_set_cmdlist_get)
4724         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4725         declarations.
4726         * linux-thread-db.c: Include auto-load.h and ctype.h.
4727         (auto_load_thread_db, show_auto_load_thread_db): New.
4728         (struct thread_db_info): New field filename.
4729         (delete_thread_db_info): Call xfree for FILENAME.
4730         (try_thread_db_load): Initialize FILENAME.
4731         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4732         if !AUTO_LOAD_THREAD_DB.
4733         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4734         (_initialize_thread_db): Install auto_load_thread_db
4735         as "set auto-load libthread-db" and install info_auto_load_libthread_db
4736         as "info auto-load libthread-db".
4737         * main.c (captured_main): Rename gdbpy_global_auto_load to
4738         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4739         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4740         (print_gdb_help): Extend the help for 'local init file'.
4741         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4742         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4743         (auto_load_scripts): Rename to ...
4744         (auto_load_python_scripts): ... here, update the comment.
4745         (gdbpy_load_auto_script_for_objfile): New declaration.
4746         (show_auto_load_python_scripts, script_language_python)
4747         (gdbpy_load_auto_script_for_objfile): New.
4748         (source_section_scripts): Refactor the code.
4749         (load_auto_scripts_for_objfile): Rename to ...
4750         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4751         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4752         (info_auto_load_python_scripts): New.
4753         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4754         Rename "set auto-load-scripts" to "set auto-load python-scripts".
4755         Register "set auto-load-scripts" as its deprecated alias.  Register
4756         "info auto-load python-scripts".  Register "info auto-load-scripts" as
4757         its deprecated alias.
4758         (load_auto_scripts_for_objfile): Rename to ...
4759         (gdbpy_load_auto_scripts_for_objfile): ... here.
4760         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4761         (gdbpy_load_auto_scripts_for_objfile): ... here.
4762
4763 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4764
4765         auto-load: Move files.
4766         * Makefile.in (SFILES): Add auto-load.c.
4767         (HFILES_NO_SRCDIR): Add auto-load.h.
4768         (COMMON_OBS): Add auto-load.o.
4769         (distclean): Change .gdbinit for gdb-gdb.gdb.
4770         * auto-load.c: New file, with parts from python/py-auto-load.c.
4771         * auto-load.h: New file, with parts from python/python.h.
4772         * configure: Regenerate.
4773         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4774         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4775         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4776         * main.c: Include auto-load.h.
4777         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4778         command.h, observer.h and progspace.h to auto-load.c.  Add include
4779         auto-load.h.
4780         (gdbpy_global_auto_load, struct auto_load_pspace_info)
4781         (struct loaded_script, auto_load_pspace_data)
4782         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4783         (hash_loaded_script_entry, eq_loaded_script_entry)
4784         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4785         (maybe_add_script): Move to auto-load.c.
4786         (source_section_scripts): Change maybe_add_script parameters passing,
4787         use script_not_found_warning_print.
4788         (clear_section_scripts, auto_load_objfile_script)
4789         (auto_load_new_objfile, loaded_script_ptr)
4790         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4791         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4792         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4793         auto_load_new_objfile and info_auto_load_scripts initizations to
4794         auto-load.c.
4795         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4796
4797 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4798
4799         Code cleanup.
4800         * charset.c (find_charset_names): Remove variables ix and elt.
4801         Use free_char_ptr_vec.
4802         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4803         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
4804         debugdir_end.  New variable debugdir_len.
4805         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4806         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4807         declarations.
4808         * progspace.c (clear_program_space_solib_cache): Remove variables ix
4809         and elt.  Use free_char_ptr_vec.
4810         * source.c (add_path): Remove variables argv, arg and argv_index.
4811         New variables dir_vec, back_to, ix and name.
4812         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
4813         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
4814         no longer expecting DIRNAME_SEPARATOR.
4815         (openp): Remove variable p, p1 and len.  New variables dir_vec,
4816         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
4817         no longer expecting DIRNAME_SEPARATOR.
4818         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4819         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
4820         debugdir_end.
4821         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4822         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4823         (dirnames_to_char_ptr_vec): New functions.
4824
4825 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4826
4827         Code cleanup.
4828         * source.c (add_path): Remove always true conditional 'p == 0' and
4829         unindent its code block.
4830
4831 2012-04-17  Pedro Alves  <palves@redhat.com>
4832
4833         * gdbtypes.h (FIELD_BITPOS): Rename to ...
4834         (FIELD_BITPOS_LVAL): ... this.
4835         (FIELD_BITPOS): New.
4836         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4837         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4838         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4839         SET_FIELD_BITPOS.
4840         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4841         SET_FIELD_BITPOS.
4842         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4843         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4844         * target-descriptions.c (tdesc_gdb_type): Adjust to use
4845         SET_FIELD_BITPOS.
4846
4847 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4848
4849         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4850         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4851         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4852         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4853         * jv-lang.c (java_link_class_type): Likewise, once.
4854         * stabsread.c (read_enum_type): Likewise.
4855
4856 2012-04-16  Yao Qi  <yao@codesourcery.com>
4857
4858         * common/agent.c (agent_run_command): Add one more parameter `len'.
4859         Update callers.
4860         * common/agent.h: Update declaration.
4861         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4862         Update.
4863         (linux_child_static_tracepoint_markers_by_strid): Ditto.
4864
4865 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
4866
4867         PR mi/13393
4868         * value.c (value_actual_type): New function.
4869         * value.h (value_actual_type): New declaration.
4870         * varobj.c (update_type_if_necessary): New function.
4871         (varobj_create): Call value_actual_type instead of
4872         value_type.
4873         (install_dynamic_child): distinct changed and type changed MI variable
4874         objects.
4875         (update_dynamic_varobj_children): Updated for install_dynamic_child
4876         change.  All callers updated.
4877         (varobj_update): Support for MI variable object type change if
4878         the value changed and RTTI is used to determine the type.
4879         (create_child_with_value): Call value_actual_type instead of
4880         value_type.
4881         (adjust_value_for_child_access): Extended with a new parameter which
4882         specify whether the given value should be casted to enclosing type.
4883         All callers updated.
4884
4885 2012-04-14  Yao Qi  <yao@codesourcery.com>
4886
4887         Import gnulib module inttypes from git
4888         (250b80067c1e1d8faa0c42fb572f721975b929c5)
4889         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4890         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4891         gnulib/m4/inttypes-pri.m4
4892         * aclocal.m4, config.in, configure: Regenerated.
4893         * gnulib/Makefile.am: Update.
4894         * gnulib/Makefile.in: Update.
4895         * gnulib/m4/gnulib-cache.m4: Update.
4896         * gnulib/m4/gnulib-comp.m4: Update.
4897         * gnulib/inttypes.in.h: New.
4898         * gnulib/m4/inttypes-pri.m4: New.
4899         * gnulib/m4/inttypes.m4: New.
4900
4901 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
4902
4903         * infrun.c (resume): Update PC address to the real PC after
4904         preparing to do displaced stepping.
4905
4906 2012-04-12  Doug Evans  <dje@google.com>
4907
4908         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4909         All callers updated.
4910
4911 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
4912
4913         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4914
4915 2012-04-12  Doug Evans  <dje@google.com>
4916
4917         * dwarf2read.c (create_all_type_units): Renamed from
4918         create_debug_types_hash_table.  All callers updated.
4919
4920         * dwarf2read.c (create_signatured_type_table_from_index): Rename
4921         local type_sig to sig_type, type_offset to type_offset_in_tu.
4922         (hash_signatured_type): Renamed from hash_type_signature,
4923         all callers updated.
4924         (eq_signatured_type): Renamed from eq_type_signature,
4925         all callers updated.
4926         (create_debug_types_hash_table): Rename local type_sig to sig_type.
4927         (process_enumeration_scope): Ditto.
4928         (lookup_signatured_type_at_offset): Ditto.
4929         (load_full_type_unit, read_signatured_type): Ditto.
4930
4931 2012-04-12  Yao Qi  <yao@codesourcery.com>
4932
4933         * remote.c (async_remote_interrupt): Correct function name in
4934         debug message.
4935         (async_remote_interrupt_twice): Ditto.
4936
4937 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
4938
4939         * source.c (find_and_open_source): Consistently pass resulting
4940         full path through xfullpath.
4941
4942 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4943
4944         Provide more specific displaced-stepping memory error message.
4945         * infrun.c (displaced_step_prepare): New variable status.  Call
4946         target_read_memory instead of read_memory, provide more specific
4947         error message.
4948
4949 2012-04-11  Tristan Gingold  <gingold@adacore.com>
4950
4951         PR gdb/13901
4952         * darwin-nat.c (darwin_execvp): Revert previous patch.
4953
4954 2012-04-11  Tristan Gingold  <gingold@adacore.com>
4955
4956         PR gdb/13901
4957         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4958         in case of change.
4959
4960 2012-04-11  Tristan Gingold  <gingold@adacore.com>
4961
4962         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4963         warning.
4964
4965 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
4966
4967         New command 'explore' which helps explore values and types in
4968         scope.
4969         * NEWS: Add an entry about the new 'explore' command.
4970         * data-directory/Makefile.in: Add gdb/command/explore.py
4971         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4972         command using the GDB Python API.
4973
4974 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
4975
4976         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4977         extension in jump target calculation.
4978
4979 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
4980
4981         * mips-tdep.c (mips32_next_pc): Handle JALX.
4982
4983 2012-04-10  Yao Qi  <yao@codesourcery.com>
4984
4985         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4986
4987 2012-04-10  Yao Qi  <yao@codesourcery.com>
4988
4989         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4990         and gnulib/m4/gnulib-tool.m4.
4991
4992 2012-04-10  Doug Evans  <dje@google.com>
4993
4994         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4995         (load_partial_dies): Clarify comment.
4996         (find_partial_die): Support rereading type units.
4997         Clarify CU handling, if we know offset is in CU, don't search for the
4998         containing CU.  Add comment regarding memory waste.
4999
5000 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5001
5002         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5003         i386/x32-avx and i386/x32-avx-linux.
5004         (i386/x32-expedite): New.
5005         (i386/x32-linux-expedite): Likewise.
5006         (i386/x32-avx-expedite): Likewise.
5007         (i386/x32-avx-linux-expedite): Likewise.
5008         ($(outdir)/i386/x32.dat): Likewise.
5009         ($(outdir)/i386/x32-linux.dat): Likewise.
5010         ($(outdir)/i386/x32-avx.dat): Likewise.
5011         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5012
5013         * features/i386/x32-avx-linux.xml: New file.
5014         * features/i386/x32-avx.xml: Likewise.
5015         * features/i386/x32-core.xml: Likewise.
5016         * features/i386/x32-linux.xml: Likewise.
5017         * features/i386/x32.xml: Likewise.
5018
5019         * features/i386/x32-avx-linux.c: New.  Generated.
5020         * features/i386/x32-avx.c: Likewise.
5021         * features/i386/x32-linux.c: Likewise.
5022         * features/i386/x32.c: Likewise.
5023         * regformats/i386/x32-avx-linux.dat: Likewise.
5024         * regformats/i386/x32-avx.dat: Likewise.
5025         * regformats/i386/x32-linux.dat: Likewise.
5026         * regformats/i386/x32.dat: Likewise.
5027
5028 2012-04-10  Tristan Gingold  <gingold@adacore.com>
5029
5030         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5031         code to kill the inferior.
5032
5033 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
5034
5035         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5036         defines.
5037         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5038         defines.
5039         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5040         (yyvsp): New defines.
5041         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5042         defines.
5043         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5044         defines.
5045         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5046         defines.
5047         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5048         defines.
5049         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5050         defines.
5051
5052 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
5053
5054         * sparc64-tdep.c (sparc64_store_arguments)
5055         (sparc64_store_arguments): Fix coding style.
5056
5057 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
5058
5059         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5060         complex floats, adjust some related comments and tighten a related
5061         assertion.
5062         (sparc64_extract_return_value): Handle complex floats.
5063
5064 2012-04-07  Doug Evans  <dje@google.com>
5065
5066         * dwarf2read.c (load_partial_dies): Change condition to assert.
5067
5068 2012-04-06  Doug Evans  <dje@google.com>
5069
5070         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5071         "mov %rsp,%rbp".
5072
5073 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
5074
5075         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5076         fencepost error.
5077         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5078         (v850_gdbarch_init): Set `num_regs' as appropriate for the
5079         architecture.
5080
5081 2012-04-05  Keith Seitz  <keiths@redhat.com>
5082
5083         * linespec.c (decode_compound): Remove.
5084         (enum offset_relative_sign): New enum.
5085         (struct line_offset): New struct.
5086         (struct linespec): New struct.
5087         (struct linespec_state): Move file_symtabs,
5088         user_filename, and user_function into struct linespec.
5089         Make result an anonymous struct holding vectors of
5090         symbolp and minsym_and_objfile_d.
5091         Add language member.
5092         (enum ls_token_type): New enum.
5093         (linespec_keywords): New array.
5094         (struct ls_token): New struct.
5095         (struct ls_parser): New struct.
5096         (linespec_lexer_lex_number): New function.
5097         (linespec_lexer_lex_keyword): New function.
5098         (is_ada_operator): New function.
5099         (skip_quote_char): New function.
5100         (copy_token_string): New function.
5101         (is_closing_quote_enclosed): New function.
5102         (find_parameter_list_end): New function.
5103         (linespec_lexer_lex_string): New function.
5104         (linespec_lexer_lex_one): New function.
5105         (linespec_lexer_consume_token): New function.
5106         (linespec_lexer_peek_token): New function.
5107         (cplusplus_error): Remove unused function.
5108         (find_methods): Update comment.
5109         (find_toplevel_char): Return const.
5110         (is_objc_method_format): Remove unused function.
5111         (find_toplevel_string): New function.
5112         (is_linespec_boundary): Remove.
5113         (symbol_not_found_error): New function.
5114         (find_method_overload_end): Remove function.
5115         (unexpected_linespec_error): New function.
5116         (keep_name_info): Remove.
5117         (linespec_parse_line_offset): New function.
5118         (linespec_parse_basic): New function.
5119         (canonicalize_linespec): New function.
5120         (decode_line_internal): Remove.
5121         (create_sals_line_offset): New function adapted from
5122         decode_all_digits.
5123         (convert_linespec_to_sals): New function.
5124         (parse_linespec): New function.
5125         (linespec_parser_new): New function.
5126         (linespec_state_destructor): Change parameter type to
5127         struct linespec_state *.
5128         Add language parameter.
5129         Remove freeing of moved members.
5130         (linespec_parser_delete): New function.
5131         (decode_line_full): Use parse_linespec and linespec_parser_new.
5132         (decode_line_1): Likewise.
5133         (decode_indirect): Rename to ...
5134         (linespec_expression_to_pc): ... this and rewrite
5135         to simply find CORE_ADDR, storing this result for later
5136         conversion to SALs.
5137         (locate_first_half): Remove.
5138         (deocde_objc): Add parameter LS.
5139         Initialize new struct collect_info members.
5140         Handle minimal symbols, too.
5141         (decode_compound): Delete.
5142         (lookup_prefix_sym): Rewrite.
5143         (compare_msymbols): New function.
5144         (find_method): Rewrite.
5145         Do not call cplusplus_error.
5146         (symtabs_from_filename): Rewrite.
5147         (collect_function_symbols): Delete.
5148         (find_function_symbols): Rewrite without ARGPTR-style
5149         processing.
5150         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5151         (decode_dollar): Adapted and renamed to ...
5152         (linespec_parse_variable): ... this.
5153         (find_linespec_symbols): New function.
5154         (decode_label): Adapted and renamed to ...
5155         (find_label_symbols): ... this.
5156         (decode_digits_list_mode): Add and use LS argument.
5157         (decode_digits_ordinary): Likewise.
5158         (collect_symbols): Do not collect SALs, just symbols and msymbols.
5159         If in list mode, allow any symbol class.  Otherwise, only
5160         permit LOC_BLOCK symbols.
5161         (minsym_found): Update comments.
5162         (search_minsyms_for_name): Do not convert the matching symbol
5163         into a SAL.  Simply push the symbol and objfile into the
5164         result vector.
5165         (decode_variable): Delete. Contents adapted into
5166         find_linespec_symbols.
5167
5168         * cp-support.c (SKIP_SPACE): Remove.
5169         (operator_tokens): Remove unused global.
5170         (cp_validate_operator): Remove.
5171         * cp-support.h (cp_validate_operator): Remove declaration.
5172
5173 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5174
5175         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5176         for TYPE_VPTR_FIELDNO.
5177         * valprint.c (valprint_check_validity): Make it global, move the
5178         function comment ...
5179         * value.h (valprint_check_validity): ... to this new declaration.
5180
5181 2012-04-02  Tristan Gingold  <gingold@adacore.com>
5182
5183         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5184         the STATE32 api for i386 state.
5185         (i386_darwin_store_inferior_registers): Likewise.
5186
5187 2012-04-02  Tristan Gingold  <gingold@adacore.com>
5188
5189         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5190         SS offset.
5191         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5192         format_string.
5193
5194 2012-04-02  Tristan Gingold  <gingold@adacore.com>
5195
5196         PR gdb/13901
5197         * darwin-nat.c (darwin_execvp): Set binary preference.
5198
5199 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5200
5201         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5202
5203 2012-03-30  Tom Tromey  <tromey@redhat.com>
5204
5205         * python/python.c (gdbpy_decode_line): Move cleanup creation out
5206         of TRY_CATCH.  Fix error handling.
5207         * python/py-value.c (convert_value_from_python): Move 'old'
5208         declaration to innermost scope.
5209
5210 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5211             Andrey Smirnov  <andrew.smirnov@gmail.com>
5212
5213         -Wshadow warning fix.
5214         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5215         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5216         Adjust code accordingly.
5217
5218 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5219
5220         * ada-lang.c (symbol_completion_add): Rename parameter
5221         "encoded" into "encoded_p".  Ajust code and documentation
5222         accordingly.
5223
5224 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5225             Andrey Smirnov  <andrew.smirnov@gmail.com>
5226
5227         -Wshadow warning fix.
5228         * ada-lang.c (symbol_completion_add): Rename parameter
5229         "wild_match" into wild_match_p.  Update code and documentation
5230         accordingly.
5231
5232 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5233
5234         * ada-lang.c (symbol_completion_match): Rename parameter
5235         "encoded" into "encoded_p".  Ajust code and documentation
5236         accordingly.
5237
5238 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5239             Andrey Smirnov  <andrew.smirnov@gmail.com>
5240
5241         -Wshadow warning fix.
5242         * ada-lang.c (symbol_completion_match): Rename parameter
5243         "wild_match" into "wild_match_p".  Adjust code and function
5244         documentation accordingly.
5245
5246 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5247             Andrey Smirnov  <andrew.smirnov@gmail.com>
5248
5249         -Wshadow warning fix.
5250         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5251         "symbol_info" into "info".  Adjust code accordingly.
5252         (ada_lookup_symbol): Likewise.
5253
5254 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5255
5256         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5257         of this function's documentation.
5258
5259 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5260             Andrey Smirnov  <andrew.smirnov@gmail.com>
5261
5262         -Wshadow warning fix.
5263         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5264         variable into "wild_match_p".  Adjust code accordingly.
5265
5266 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5267             Andrey Smirnov  <andrew.smirnov@gmail.com>
5268
5269         -Wshadow warning fix.
5270         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5271         parameter into "wild_match_p".  Adjust code accordingly.
5272         Document this parameter in the function description.
5273
5274 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5275             Andrey Smirnov  <andrew.smirnov@gmail.com>
5276
5277         -Wshadow warning fix.
5278         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5279         "wild_match" parameter to "wild_match_p" (-Wshadow).
5280
5281 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5282
5283         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5284         in function documentation.
5285
5286 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5287             Andrey Smirnov  <andrew.smirnov@gmail.com>
5288
5289         -Wshadow warning fix.
5290         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5291         variable into wild_match_p.  Adjust code accordingly.
5292
5293 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5294             Andrey Smirnov  <andrew.smirnov@gmail.com>
5295
5296         * ada-valprint.c (ada_val_print_1): Move the code handling
5297         TYPE_CODE_ENUM inside its own lexical block.  Declare
5298         variables len and val there, instead of in the function's
5299         top level block.  Avoid declaring deref_val again in a way
5300         that shadows another variable of the same name declared
5301         in one of the up-level blocks.  Just re-use the up-level
5302         variable instead.
5303
5304 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5305
5306         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5307         Replace block_found argument by symbol_info.  Adjust
5308         implementation accordingly.  Add function documentation.
5309         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5310         Fix documentation.
5311         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5312         * ada-exp.y (write_object_renaming): Adjust to new
5313         ada_lookup_encoded_symbol API.
5314
5315 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
5316
5317         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
5318         documentation.
5319
5320 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
5321
5322         * v850-tdep.c: Add the enum values for mpu and fpu registers.
5323         (v850_register_name): Add the mpu and fpu register names.
5324         (v850e_register_name): Add the mpu and fpu register names.
5325         (v850e2_register_name): New function.
5326         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5327         bfd_mach_v850e2v3.
5328
5329 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
5330
5331         * NEWS: Add entry for Ada varobj support.
5332
5333 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
5334
5335         * varobj.c (default_value_is_changeable_p): New function,
5336         extracted from varobj_value_is_changeable_p.  Add declaration.
5337         (ada_value_is_changeable_p): New function, extracted from
5338         varobj_value_is_changeable_p.  Add declaration.
5339         (struct language_specific): New field "value_is_changeable_p".
5340         (languages): Add entries for new field.
5341         (varobj_create): Set language before calling install_new_value.
5342         (varobj_value_is_changeable_p): Reimplement to call the varobj's
5343         "value_is_changeable_p" language callback.
5344
5345 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
5346
5347         * ada-varobj.h, ada-varobj.c: New files.
5348         * Makefile.in (SFILES): Add ada-varobj.c.
5349         (HFILES_NO_SRCDIR): Add ada-varobj.h.
5350         (COMMON_OBS): Add ada-varobj.o.
5351
5352 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
5353
5354         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
5355         (struct language_specific): New field "value_has_mutated".
5356         (languages): Set field "value_has_mutated" in each entry of array.
5357         (varobj_value_has_mutated): New function.
5358         (varobj_udpdate): Add handling of type mutation.
5359         (value_of_root): Add handling of type mutation.
5360         (ada_value_has_mutated): New function.
5361
5362 2012-03-28  Pedro Alves  <palves@redhat.com>
5363
5364         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5365         Always supply $fr0 as 0.0 and $fr1 as 1.0.
5366
5367 2012-03-28  Tom Tromey  <tromey@redhat.com>
5368
5369         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5370         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
5371         before returning.
5372
5373 2012-03-28  Tom Tromey  <tromey@redhat.com>
5374
5375         * .dir-locals.el: New file.
5376
5377 2012-03-28  Pedro Alves  <palves@redhat.com>
5378
5379         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5380
5381 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
5382
5383         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5384         handling for r0.
5385
5386 2012-03-27  Pedro Alves  <palves@redhat.com>
5387
5388         Eliminate struct ui_stream.
5389
5390         * ui-out.h (struct ui_stream): Delete.
5391         (ui_out_field_stream): Adjust prototype.
5392         (ui_out_stream_new, ui_out_stream_delete)
5393         (make_cleanup_ui_out_stream_delete): Delete declarations.
5394         * ui-out.c (ui_out_field_stream): Change prototype to take a
5395         ui_file instead of a ui_stream.  Adjust.
5396         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5397         (make_cleanup_ui_out_stream_delete): Delete.
5398         * breakpoint.c (print_breakpoint_location)
5399         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5400         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5401         * disasm.c (dump_insns): Ditto.
5402         (do_mixed_source_and_assembly, do_assembly_only): Adjust
5403         prototype.
5404         (gdb_disassembly): Use ui_file/mem_fileopen instead of
5405         ui_stream/ui_out_stream_new.
5406         * infcmd.c (print_return_value): Ditto.
5407         * osdata.c (info_osdata_command): Don't allocate a local
5408         ui_stream.
5409         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5410         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5411         * tracepoint.c (print_one_static_tracepoint_marker): Don't
5412         allocate a local ui_stream.
5413         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5414         instead of ui_stream/ui_out_stream_new.
5415         (list_args_or_locals): Don't allocate a local ui_stream.
5416         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5417         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5418         ui_stream/ui_out_stream_new.
5419         * cli/cli-setshow.c (do_setshow_command): Ditto.
5420
5421 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
5422
5423         * arm-linux-tdep.c (arm_linux_init_abi): Call
5424         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
5425         * arm-tdep.c (arm_process_record): New function.
5426         (deallocate_reg_mem): New function.
5427         (decode_insn): New function.
5428         (thumb_record_branch): New function.
5429         (thumb_record_ldm_stm_swi(): New function.
5430         (thumb_record_misc): New function.
5431         (thumb_record_ld_st_stack): New function.
5432         (thumb_record_ld_st_imm_offset): New function.
5433         (thumb_record_ld_st_reg_offset(): New function.
5434         (thumb_record_add_sub_cmp_mov): New function.
5435         (thumb_record_shift_add_sub): New function.
5436         (arm_record_coproc_data_proc): New function.
5437         (arm_record_coproc): New function.
5438         (arm_record_b_bl): New function.
5439         (arm_record_ld_st_multiple): New function.
5440         (arm_record_ld_st_reg_offset): New function.
5441         (arm_record_ld_st_imm_offset): New function.
5442         (arm_record_data_proc_imm): New function.
5443         (arm_record_data_proc_misc_ld_str): New function.
5444         (arm_record_extension_space): New function.
5445         (arm_record_strx): New function.
5446         (sbo_sbz): New function.
5447         (struct insn_decode_record): New structure for arm insn record.
5448         (REG_ALLOC): New macro for reg allocations.
5449         (MEM_ALLOC): New macro for memory allocations.
5450         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5451
5452 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
5453
5454         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5455         (store_register): Likewise.
5456
5457 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
5458
5459         * MAINTAINERS (Write After Approval): Add myself to the list.
5460
5461 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5462
5463         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5464         Describe also the option "auto".
5465
5466 2012-03-22  Richard Henderson  <rth@redhat.com>
5467
5468         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5469         * sparc-nat.c (sparc_xfer_wcookie): Make static.
5470
5471 2012-03-22  Richard Henderson  <rth@redhat.com>
5472
5473         * jit.c (jit_read_code_entry): Compute alignment and offset of
5474         int64_t member before computing entry_size.
5475
5476 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
5477
5478         Python scripting: Add new method Value.referenced_value to
5479         gdb.Value which can dereference pointer as well as reference
5480         values.
5481         * NEWS: Add entry under 'Python scripting' about the new method
5482         Value.referenced_value on gdb.Value objects.
5483         * python/py-value.c (valpy_referenced_value): New function
5484         defining a new method on gdb.Value objects which can dereference
5485         pointer and reference values.
5486
5487 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
5488
5489         * MAINTAINERS (Write After Approval): Add myself to the list.
5490
5491 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
5492
5493         * symtab.c (skip_prologue_sal): Change test to check for "main()"
5494         in addition to "main".
5495
5496 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
5497
5498         * expression.h (op_name): Add declaration.
5499         * expprint.c (op_name): Remove declaration.  Make non-static.
5500         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5501
5502 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5503
5504         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5505         of struct siginfo.
5506         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5507         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5508         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5509         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5510         (linux_nat_get_siginfo): Likewise.
5511         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5512         (linux_nat_get_siginfo): Likewise.
5513         * linux-tdep.c (linux_get_siginfo_type): Likewise.
5514         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5515         * procfs.c (gdb_siginfo_t): Likewise.
5516
5517 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
5518
5519         * .gitignore: Ignore more files.
5520
5521 2012-03-20  Pedro Alves  <palves@redhat.com>
5522
5523         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5524         returns.
5525
5526 2012-03-20  Yao Qi  <yao@codesourcery.com>
5527
5528         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5529         comment.
5530
5531 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5532
5533         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5534         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5535         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5536         sect_offset.
5537         * dwarf2expr.h (cu_offset, sect_offset): New types.
5538         (struct dwarf_expr_context_funcs) <dwarf_call>
5539         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5540         sect_offset.
5541         (struct dwarf_expr_context) <len>: Improve the comment.
5542         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5543         cu_offset and sect_offset.
5544         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5545         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5546         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5547         * dwarf2loc.h: Include dwarf2expr.h.
5548         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5549         and sect_offset.
5550         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5551         Improve the comment.
5552         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5553         (struct signatured_type, struct line_header, struct partial_die_info)
5554         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5555         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5556         (get_die_type_at_offset, create_cus_from_index)
5557         (create_signatured_type_table_from_index, dw2_get_file_names)
5558         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5559         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5560         (create_debug_types_hash_table, process_psymtab_comp_unit)
5561         (load_partial_comp_unit, create_all_comp_units)
5562         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5563         (load_full_comp_unit, dwarf2_physname, read_import_statement)
5564         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5565         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5566         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5567         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5568         (find_partial_die, read_attribute_value, lookup_die_type)
5569         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5570         (is_ref_attr): New function comment.
5571         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5572         Use cu_offset and sect_offset.
5573         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5574         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5575         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5576         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5577         (offset_and_type_hash, offset_and_type_eq, set_die_type)
5578         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5579         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5580         sect_offset.
5581
5582 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5583
5584         Code cleanup.
5585         * python/py-auto-load.c (source_section_scripts): New variable back_to.
5586         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5587         with xfree.
5588         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5589
5590 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5591
5592         * NEWS: Describe new options --init-command=FILE, -ix and
5593         --init-eval-command=COMMAND, -iex.
5594         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5595         CMDARG_INIT_COMMAND.
5596         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
5597         "init-command", "init-eval-command", "ix" and "iex" to the variable
5598         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
5599         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5600         (print_gdb_help): Describe --init-command=FILE, -ix and
5601         --init-eval-command=COMMAND, -iex.
5602
5603 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5604
5605         Code cleanup.
5606         * main.c (struct cmdarg): Move it here from main.  Add more comments.
5607         (cmdarg_s, VEC (cmdarg_s)): New.
5608         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
5609         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
5610         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
5611         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
5612         of CMDARG.
5613
5614 2012-03-19  Tom Tromey  <tromey@redhat.com>
5615
5616         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5617
5618 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5619
5620         PR symtab/13777
5621         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5622         GCC >=4.5.
5623
5624 2012-03-16  Chris January  <chris.january@allinea.com>
5625
5626         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5627         of clear.
5628
5629 2012-03-16  Chris January  <chris.january@allinea.com>
5630
5631         * source.c (add_path): Use memmove instead of strcpy because the
5632         strings overlap.
5633
5634 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
5635
5636         * value.h (set_value_parent): Add declaration.
5637         * value.c (set_value_parent): New function.
5638         (value_address): If VALUE->PARENT is not NULL, then use it as
5639         the base address instead of VALUE->LOCATION.address.
5640         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5641         the same as OBJ's address.  Adjust V's offset accordingly.
5642         Set V's parent.
5643
5644 2012-03-16  Gary Benson  <gbenson@redhat.com>
5645
5646         PR breakpoints/10738
5647         * dwarf2read.c (use_deprecated_index_sections): New global.
5648         (struct partial_die_info): New member may_be_inlined.
5649         (read_partial_die): Set may_be_inlined where appropriate.
5650         (add_partial_subprogram): Add partial symbols for partial
5651         DIEs that may be inlined.
5652         (new_symbol_full): Add inlined subroutines to the current
5653         scope.
5654         (write_psymtabs_to_index): Bump version number.
5655         (dwarf2_read_index): Read only version 6 indices unless
5656         use_deprecated_index_sections is set.
5657         * linespec.c (symbol_and_data_callback): New structure.
5658         (iterate_inline_only): New function.
5659         (iterate_over_all_matching_symtabs): New argument
5660         "include_inline".  If nonzero, also call the callback for
5661         symbols representing inlined subroutines.
5662         (lookup_prefix_sym): Pass extra argument to the above.
5663         (find_function_symbols): Likewise.
5664         (add_matching_symbols_to_info): Likewise.
5665         * NEWS: Mention that GDB can now set breakpoints on inlined
5666         functions.
5667
5668 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5669
5670         * p-typeprint.c (pascal_type_print_method_args):
5671         Fix display of parameter of methods.
5672
5673 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5674
5675         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5676         Add missing prototype.
5677
5678 2012-03-16  Yao Qi  <yao@codesourcery.com>
5679             Jan Kratochvil  <jan.kratochvil@redhat.com>
5680
5681         Fix false compilation warning.
5682         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5683
5684 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
5685             Pedro Alves  <pedro@codesourcery.com>
5686
5687         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5688         (arm_register_g_packet_guesses): New function.
5689         (arm_gdbarch_init): Don't force a target description with
5690         registers when the executable is detected as M-profile.  Instead
5691         set gdbarch->tdep->is_m.  Register `g' packet guesses.
5692         (_initialize_arm_tdep): Initialize the new target description.
5693         * features/arm-with-m-fpa-layout.xml: New description.
5694         * features/arm-with-m-fpa-layout.c: New, generated.
5695
5696 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
5697
5698         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5699         Update function description.
5700         (insert_bp_location): Do not wipe bl->target_info out.
5701         * mem-break.c: #include "gdb_string.h".
5702         (default_memory_insert_breakpoint): Do not call target_read_memory
5703         with a pointer to the breakpoint's shadow_contents buffer.  Use
5704         a local buffer instead.
5705         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5706
5707 2012-03-15  Tom Tromey  <tromey@redhat.com>
5708
5709         * NEWS: Mention "info vtbl", not "info vtable".
5710         * cp-support.c (info_vtbl_command): Fix comment.
5711         (_initialize_cp_support): Fix text.
5712
5713 2012-03-15  Tom Tromey  <tromey@redhat.com>
5714
5715         * cp-valprint.c (cp_print_value_fields): Use
5716         print_function_pointer_address for vtable slot.
5717
5718 2012-03-15  Tom Tromey  <tromey@redhat.com>
5719
5720         * gnu-v3-abi.c (struct value_and_voffset): New.
5721         (hash_value_and_voffset, eq_value_and_voffset)
5722         (compare_value_and_voffset, compute_vtable_size)
5723         (print_one_vtable, gnuv3_print_vtable): New functions.
5724         (init_gnuv3_ops): Initialize 'print_vtable' field.
5725         * cp-support.c (info_vtbl_command): New function.
5726         (_initialize_cp_support): Add "info vtbl".
5727         * cp-abi.h (cplus_print_vtable): Declare.
5728         (struct cp_abi_ops) <print_vtable>: New field.
5729         * cp-abi.c (cplus_print_vtable): New function.
5730         * NEWS: Update.
5731
5732 2012-03-15  Tom Tromey  <tromey@redhat.com>
5733
5734         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5735         iterate_over_symbols.
5736
5737 2012-03-14  Doug Evans  <dje@google.com>
5738
5739         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5740         DW_OP_GNU_parameter_ref.
5741
5742 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5743
5744         Fix double prompt of 'interpreter-exec mi'.
5745         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5746         (mi_interpreter_resume): use it.
5747         (mi_execute_command_input_handler): New function.
5748         * mi/mi-main.c (mi_execute_command): Move prompt printing to
5749         mi_execute_command_input_handler.
5750
5751 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
5752
5753         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5754         prototype.
5755         (darwin_debug_port_info): Make static.
5756         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5757         * machoread.c (_initialize_machoread): Add prototype.
5758         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5759         (i386_darwin_set_control, i386_darwin_get_control)
5760         i386_darwin_dr_set_addr, i386_darwin_get_addr)
5761         i386_darwin_get_status, i386_darwin_get_control):
5762         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5763
5764 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
5765
5766         * ax-gdb.c (gen_usual_unary): Remove special handling of
5767         enum and bool types.
5768
5769 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
5770
5771         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5772
5773 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
5774
5775         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5776
5777 2012-03-13  Chris January  <chris.january@allinea.com>
5778
5779         * aix-thread.c (fill_sprs): Store the floating point registers
5780         at the correct offsets into vals.
5781
5782 2012-03-13  Doug Evans  <dje@google.com>
5783
5784         * NEWS: Mention symbol-reloading has been deleted.
5785         * symfile.c (symbol_reloading): Delete.
5786         (show_symbol_reloading): Delete.
5787         (_initialize_symfile): Delete set/show symbol-reloading.
5788
5789         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5790         read_in_chain until we have successfully read it in.
5791         (load_full_comp_unit): Ditto.
5792         (read_signatured_type): Add comment.
5793
5794 2012-03-13  Chris January  <chris.january@allinea.com>
5795
5796         * stabsread.c (fix_common_block): Change type of valu argument
5797         to CORE_ADDR.
5798
5799 2012-03-13  Chris January  <chris.january@allinea.com>
5800
5801         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5802         instruction.
5803
5804 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5805
5806         * common/linux-procfs.c (linux_proc_get_int): New, from
5807         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5808         field.
5809         (linux_proc_get_tgid): Only call linux_proc_get_int.
5810         (linux_proc_get_tracerpid): New.
5811         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5812         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5813         linux_proc_pid_has_state.
5814         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5815         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5816         (linux_ptrace_attach_warnings): New.
5817         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5818         New declaration.
5819         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5820         (linux_nat_attach): New variables ex, buffer, message and message_s.
5821         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5822
5823 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5824
5825         * Makefile.in (linux-ptrace.o): New.
5826         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5827         from linux-nat.c.
5828         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5829         * common/linux-ptrace.c: New file.
5830         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5831         * config/arm/linux.mh: Likewise.
5832         * config/i386/linux.mh: Likewise.
5833         * config/i386/linux64.mh: Likewise.
5834         * config/ia64/linux.mh: Likewise.
5835         * config/m32r/linux.mh: Likewise.
5836         * config/m68k/linux.mh: Likewise.
5837         * config/mips/linux.mh: Likewise.
5838         * config/pa/linux.mh: Likewise.
5839         * config/powerpc/linux.mh: Likewise.
5840         * config/powerpc/ppc64-linux.mh: Likewise.
5841         * config/powerpc/spu-linux.mh: Likewise.
5842         * config/s390/s390.mh: Likewise.
5843         * config/sparc/linux.mh: Likewise.
5844         * config/sparc/linux64.mh: Likewise.
5845         * config/xtensa/linux.mh: Likewise.
5846         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5847         common/linux-procfs.c.
5848         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5849
5850 2012-03-13  Hui Zhu  <teawater@gmail.com>
5851             Pedro Alves  <palves@redhat.com>
5852
5853         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
5854         CREATE_BREAKPOINT_FLAGS_INSERTED.
5855         (create_breakpoint_sal, create_breakpoints_sal)
5856         (base_breakpoint_create_breakpoints_sal)
5857         (tracepoint_create_breakpoints_sal)
5858         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
5859         down.
5860         (break_command_1, handle_gnu_v3_exceptions, trace_command)
5861         (ftrace_command, strace_command): Adjust.
5862         (create_tracepoint_from_upload): Pass
5863         CREATE_BREAKPOINT_FLAGS_INSERTED.
5864         * breakpoint.h (enum breakpoint_create_flags): New.
5865         (create_breakpoint): New flags parameter.
5866         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5867         * python/py-breakpoint.c (bppy_init): Adjust.
5868         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5869         * spu-tdep.c (spu_catch_start): Adjust.
5870
5871 2012-03-13  Pedro Alves  <palves@redhat.com>
5872             Hui Zhu  <teawater@gmail.com>
5873             Yao Qi  <yao@codesourcery.com>
5874
5875         * remote.c (struct remote_state): New field `starting_up'.
5876         (remote_start_remote): Set and clear it.
5877         (remote_can_download_tracepoint): If starting up, return false.
5878
5879 2012-03-13  Yao Qi  <yao@codesourcery.com>
5880
5881         * inferior.h (struct inferior): Remove fields any_syscall_count,
5882         syscalls_counts and total_syscalls_count.  Move them to new
5883         struct catch_syscall_inferior_data in breakpoint.c.
5884         * breakpoint.c: Call DEF_VEC_I(int).
5885         (struct catch_syscall_inferior_data): New.
5886         (get_catch_syscall_inferior_data): New.
5887         (catch_syscall_inferior_data_cleanup): New.
5888         (insert_catch_syscall): Update to access data in
5889         struct catch_syscall_inferior_data.
5890         (insert_catch_syscall): Likewise.
5891         (remove_catch_syscall): Likewise.
5892         (remove_catch_syscall): Likewise.
5893         (is_syscall_catchpoint_enabled): Likewise.
5894         (add_catch_command): Likewise.
5895         (_initialize_breakpoint): Register cleanup.
5896         * breakpoint.h: Removed DEF_VEC_I(int).
5897         * dwarf2loc.c: Call DEF_VEC_I(int).
5898         * mi/mi-main.c: Likewise.
5899
5900 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
5901
5902         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5903
5904 2012-03-12  Chris January  <chris.january@allinea.com>
5905
5906         * aix-thread.c (_initialize_aix_thread): Add prototype.
5907         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5908         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5909
5910 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
5911
5912         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5913         include of "amd64-nat.h".
5914
5915 2012-03-12  Tom Tromey  <tromey@redhat.com>
5916
5917         * buildsym.c (record_pending_block): Now static.
5918         * buildsym.h: (record_pending_block): Remove.
5919
5920 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
5921
5922         * amd64bsd-nat.c: Include amd64bsd-nat.h.
5923
5924 2012-03-09  Tom Tromey  <tromey@redhat.com>
5925
5926         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5927         producer_is_gxx_lt_4_6>: New fields.
5928         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5929
5930 2012-03-09  Tom Tromey  <tromey@redhat.com>
5931
5932         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5933
5934 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
5935
5936         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5937         prototype.
5938
5939 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
5940
5941         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5942
5943 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5944
5945         Fix -Wmissing-prototypes build.
5946         * arm-linux-nat.c (get_thread_id): Make it static.
5947         * xtensa-linux-nat.c (get_thread_id): Likewise.
5948
5949 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
5950
5951         * server.c (process_point_options): If a conditional expression
5952         is found, only print a message if remote_debug is nonzero.
5953
5954 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
5955
5956         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5957         of internal error for unknown/unsupported types.
5958
5959 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5960
5961         Fix CU relative vs. absolute DIE offsets.
5962         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5963         offset to offset_in_cu.
5964         * dwarf2read.c (process_enumeration_scope): Add CU offset to
5965         TYPE_OFFSET.
5966         (dwarf2_fetch_die_location_block): Rename parameter offset to
5967         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
5968
5969 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5970
5971         * libunwind-frame.c: Rename to ...
5972         * ia64-libunwind-tdep.c: ... here.
5973         * libunwind-frame.h: Rename to ...
5974         * ia64-libunwind-tdep.h: ... here.
5975         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5976         ia64-libunwind-tdep.h.
5977         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5978         * README (--with-libunwind): Rename to ...
5979         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5980         * config.in: Regenerate.
5981         * configure: Regenerate.
5982         * configure.ac: New option --with-libunwind-ia64, make the
5983         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
5984         Remove AC_DEFINE for HAVE_LIBUNWIND.
5985         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5986         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5987         Rename libunwind-frame in the general comment.
5988         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5989         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5990         Move forward declarations inside #ifndef.  Rename libunwind-frame in
5991         the general comment.
5992         * ia64-tdep.c: Rename libunwind-frame.h #include to
5993         ia64-libunwind-tdep.h.
5994         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5995         (ia64_libunwind_descr): Rename libunwind-frame to
5996         ia64-libunwind-tdep in these function comments.
5997         * ia64-tdep.h: Rename libunwind-frame.h #include to
5998         ia64-libunwind-tdep.h.
5999         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6000         ia64-libunwind-tdep in that data comment.
6001
6002 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6003
6004         * libunwind-frame.h (struct frame_unwind): New declaration.
6005
6006 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
6007
6008         * breakpoint.c (_initialize_breakpoint): Fix error in help of
6009         "set breakpoint condition-evaluation" command.
6010
6011 2012-03-08  Tristan Gingold  <gingold@adacore.com>
6012
6013         * sparc-stub.c: Move to stubs/
6014         * sh-stub.c: Likewise.
6015         * m68k-stub.c: Likewise.
6016         * m32r-stub.c: Likewise.
6017         * i386-stub.c: Likewise.
6018
6019 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
6020
6021         * m68klinux-tdep.c (m68k_linux_init_abi): Register
6022         linux_get_siginfo_type.
6023
6024         * m68klinux-nat.c: Include "gdb_proc_service.h".
6025         (PTRACE_GET_THREAD_AREA): Define.
6026         (ps_get_thread_area): New function.
6027
6028 2012-03-08  Yao Qi  <yao@codesourcery.com>
6029
6030         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6031         `xsnprintf'.
6032         (remote_query_attached): Likewise.
6033         (remote_static_tracepoint_marker_at): Likewise.
6034         (remote_set_permissions): Likewise.
6035         (remote_detach_1, extended_remote_attach_1): Likewise.
6036         (send_g_packet, remote_vkill): Likewise.
6037         (extended_remote_disable_randomization): Likewise.
6038         (remote_add_target_side_condition): Likewise.
6039         (remote_insert_breakpoint): Likewise.
6040         (remote_remove_breakpoint): Likewise.
6041         (remote_insert_watchpoint): Likewise.
6042         (remote_remove_watchpoint): Likewise.
6043         (remote_insert_hw_breakpoint): Likewise.
6044         (remote_insert_hw_breakpoint): Likewise.
6045         (remote_remove_hw_breakpoint): Likewise.
6046         (remote_download_command_source): Likewise.
6047         (remote_download_tracepoint): Likewise.
6048         (remote_download_trace_state_variable): Likewise.
6049         (remote_disable_tracepoint): Likewise.
6050         (remote_trace_set_readonly_regions): Likewise.
6051         (remote_get_tracepoint_status): Likewise.
6052         (remote_trace_find): Likewise.
6053         (remote_get_trace_state_variable_value): Likewise.
6054         (remote_set_disconnected_tracing): Likewise.
6055         (remote_set_circular_trace_buffer): Likewise.
6056         (remote_get_min_fast_tracepoint_insn_len): Likewise.
6057         (remote_use_agent): Likewise.
6058         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6059         Update callers.
6060
6061 2012-03-07  Pedro Alves  <palves@redhat.com>
6062
6063         * NEWS: Mention QProgramSignals.
6064         * inferior.h (update_signals_program_target): Declare.
6065         * infrun.c: (update_signals_program_target): New.
6066         (handle_command): Update the target of the new program signals
6067         array changes.
6068         * remote.c (PACKET_QProgramSignals): New enum.
6069         (last_program_signals_packet): New global.
6070         (remote_program_signals): New.
6071         (remote_start_remote): Update the target with the program signals
6072         list.
6073         (remote_protocol_features): Add entry for QPassSignals.
6074         (remote_open_1): Free anc clear last_program_signals_packet.
6075         (init_remote_ops): Install remote_program_signals.
6076         * target.c (update_current_target): Adjust.
6077         (target_program_signals): New.
6078         * target.h (struct target_ops) <to_program_signals>: New field.
6079         (target_program_signals): Declare.
6080
6081 2012-03-07  Pedro Alves  <palves@redhat.com>
6082
6083         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6084         extensions.
6085
6086 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
6087
6088         * m68klinux-nat.c (getregs_supplies): Make static.
6089         (getfpregs_supplies): Likewise.
6090         (have_ptrace_getregs): Likewise.
6091
6092 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
6093
6094         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6095         in call to get_die_type_at_offset.
6096
6097 2012-03-06  Stan Shebs  <stan@codesourcery.com>
6098
6099         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6100         * mi/mi-cmd-disas.c: Ditto.
6101         * mi/mi-cmd-env.c: Ditto.
6102         * mi/mi-cmd-file.c: Ditto.
6103         * mi/mi-cmd-stack.c: Ditto.
6104         * mi/mi-cmd-target.c: Ditto.
6105         * mi/mi-cmd-var.c: Ditto.
6106         * mi/mi-cmds.c: Ditto.
6107         * mi/mi-cmds.h: Ditto.
6108         * mi/mi-console.c: Ditto.
6109         * mi/mi-getopt.c: Ditto.
6110         * mi/mi-getopt.h: Ditto.
6111         * mi/mi-interp.c: Ditto.
6112         * mi/mi-main.c: Ditto.
6113         * mi/mi-out.c: Ditto.
6114         * mi/mi-parse.c: Ditto.
6115         * mi/mi-parse.h: Ditto.
6116         * mi/mi-symbol-cmds.c: Ditto.
6117
6118         * mi/mi-getopt.h: Move mi_opt struct up.
6119         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6120         return.
6121         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6122
6123 2012-03-06  Tom Tromey  <tromey@redhat.com>
6124
6125         * proc-service.c (ps_pglobal_lookup): Set the current program
6126         space.
6127
6128 2012-03-06  Pedro Alves  <palves@redhat.com>
6129
6130         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6131
6132 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
6133
6134         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6135
6136 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6137
6138         Code cleanup.
6139         * common/linux-osdata.c (linux_common_core_of_thread): New function
6140         comment.
6141         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6142         call by linux_common_core_of_thread.
6143         (linux_nat_core_of_thread_1): Remove.
6144         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6145         * linux-thread-db.c: Include linux-osdata.h.
6146         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6147         linux_common_core_of_thread.
6148
6149 2012-03-05  Tom Tromey  <tromey@redhat.com>
6150
6151         * value.c (value_primitive_field): Don't fetch contents for
6152         non-virtual bases.
6153
6154 2012-03-05  Tom Tromey  <tromey@redhat.com>
6155
6156         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6157
6158 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6159
6160         * s390-nat.c: Include "gregset.h".
6161
6162 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6163
6164         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6165         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6166         (libunwind_load): New variable so_error, use it for dlerror.  Try to
6167         load also LIBUNWIND_SO_7.
6168
6169 2012-03-05  Pedro Alves  <palves@redhat.com>
6170
6171         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6172         is not NULL, and remove resulting dead code.
6173
6174 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
6175
6176         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6177         prologue to sh_analyze_prologue.
6178         (sh_analyze_prologue): Make better use of such an upper limit, and
6179         generally be more cautious about accessing memory.
6180
6181 2012-03-05  Tom Tromey  <tromey@redhat.com>
6182
6183         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6184         _initialize_ia64_hpux_tdep.
6185
6186 2012-03-05  Pedro Alves  <palves@redhat.com>
6187
6188         PR gdb/13766
6189
6190         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6191         the register state is clear, supply explicit zero, instead of
6192         marking the register unavailable.
6193
6194 2012-03-05  Tristan Gingold  <gingold@adacore.com>
6195
6196         * NEWS: Mention OpenVMS ia64 new target.
6197
6198 2012-03-05  Tristan Gingold  <gingold@adacore.com>
6199
6200         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6201         (ia64_unw_accessors, ia64_unw_rse_accessors)
6202         (ia64_libunwind_descr): Declare.
6203         * ia64-vms-tdep.c: New file.
6204         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6205         (ia64_libunwind_descr): Make them public.
6206         * configure.tgt: Add ia64-*-*vms*.
6207         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6208         (ALLDEPFILES): Add ia64-vms-tdep.c
6209
6210 2012-03-05  Tristan Gingold  <gingold@adacore.com>
6211
6212         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6213         * remote.c (PACKET_qXfer_uib): New enum value.
6214         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6215         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6216         (_initialize_remote): Call add_packet_config_cmd for
6217         xfer:uib packet.
6218
6219 2012-03-05  Tristan Gingold  <gingold@adacore.com>
6220
6221         * osabi.c (gdb_osabi_names): Add OpenVMS.
6222         (generic_elf_osabi_sniffer): Likewise.
6223         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6224
6225 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6226
6227         Removed unused code.
6228         * libunwind-frame.c (libunwind_frame_unwind)
6229         (libunwind_frame_base_address): Remove.
6230         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6231
6232 2012-03-04  Yao Qi  <yao@codesourcery.com>
6233
6234         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6235         remove trailing new line.
6236         (agent_run_command, agent_run_command): Add _ markup.
6237         (agent_capability_check): Likewise.
6238
6239 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6240
6241         * breakpoint.c (set_condition_evaluation_mode): Set
6242         CONDITION_EVALUATION_MODE unconditionally.
6243
6244 2012-03-03  Yao Qi  <yao@codesourcery.com>
6245
6246         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6247         * common/agent.h: Update declaration.
6248         * inf-child.c (inf_child_use_agent): New.
6249         (inf_child_can_use_agent): New.
6250         (inf_child_target): Initialize fields `to_use_agent'
6251         and `to_can_use_agent'.
6252         * agent.c (agent_new_objfile): New.
6253         (_initialize_agent): Add agent_new_objfile to new_objfile
6254         observer.
6255
6256         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6257         New.
6258         (linux_target_install_ops): Initialize field
6259         `to_static_tracepoint_markers_by_strid'.
6260         * remote.c (free_current_marker): Move it to ...
6261         * tracepoint.c (free_current_marker): ... here.  New.
6262         (cleanup_target_stop): New.
6263         * tracepoint.h: Declare free_current_marker.
6264         * NEWS: Add one entry about `info static-tracepoint-marker'.
6265
6266 2012-03-03  Yao Qi  <yao@codesourcery.com>
6267
6268         * common/agent.c (agent_loaded_p): New.
6269         (agent_look_up_symbols): New global.
6270         * common/agent.h: Declare agent_loaded_p.
6271
6272 2012-03-03  Yao Qi  <yao@codesourcery.com>
6273
6274         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6275         (agent_capability_check, agent_capability_invalidate): New.
6276         (symbol_list): New array element.
6277         * common/agent.h (enum agent_capa): New.
6278         * target.c (target_pre_inferior): Call agent_capability_invalidate.
6279
6280 2012-03-03  Yao Qi  <yao@codesourcery.com>
6281
6282         * target.h (struct target_ops) <to_use_agent>: New field.
6283         (struct target_ops) <to_can_use_agent>: New field.
6284         (target_use_agent, target_can_use_agent): New macro.
6285         * target.c (update_current_target): Update.
6286         * remote.c: New enum `PACKET_QAgent'.
6287         (remote_protocol_features): Add a new element.
6288         (remote_use_agent, remote_can_use_agent): New.
6289         (init_remote_ops): Initialize field `can_use_agent' with
6290         remote_can_use_agent.  Intiailize field `use_agent' with
6291         remote_use_agent.
6292         * common/agent.c (use_agent): New global.
6293         * common/agent.h: Declare it.
6294         * tracepoint.c (info_static_tracepoint_markers_command): Add
6295         comment.
6296         * Makefile.in (SFILES): Add common/agent.c and agent.c.
6297         (COMMON_OBS): Add common/agent.o and agent.o
6298         (common-agent.o): New rule.
6299         * agent.c: New.
6300
6301 2012-03-03  Yao Qi  <yao@codesourcery.com>
6302
6303         * common/agent.c: New.
6304         * common/agent.h: New.
6305         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6306         AC_CHECK_HEADERS.
6307         * configure, configh.in: Regenerated.
6308
6309 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
6310
6311         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6312         unless it exists for this architecture.
6313
6314 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
6315
6316         * language.h (struct language_defn): New "method" la_read_var_value.
6317         * findvar.c: #include "language.h".
6318         (default_read_var_value): Renames read_var_value.  Rewrite
6319         function description.
6320         (read_var_value): New function.
6321         * value.h (default_read_var_value): Add prototype.
6322         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6323         New functions.
6324         (ada_language_defn): Add entry for la_read_var_value.
6325         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6326         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6327         language_defn structures to add entry for new la_read_var_value
6328         field.
6329
6330 2012-03-02  Tom Tromey  <tromey@redhat.com>
6331             Pedro Alves  <palves@redhat.com>
6332
6333         PR breakpoints/13776:
6334         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6335         breakpoints.
6336         (delete_longjmp_breakpoint_at_next_stop): New.
6337         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6338         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6339         before deleting the inferior.  Add comments.
6340         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6341         breakpoints immediately, but only on next stop.  Move that code
6342         next to where we mark other breakpoints for deletion.
6343
6344 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
6345
6346         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6347         marker.
6348         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6349         violation.
6350
6351 2012-03-02  Pedro Alves  <palves@redhat.com>
6352
6353         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6354
6355 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
6356
6357         Fix -Wmissing-prototypes build.
6358         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6359         * remote-sim.c (gdbsim_has_all_memory): Likewise.
6360         (gdbsim_has_memory): Likewise.
6361
6362 2012-03-02  Yao Qi  <yao@codesourcery.com>
6363
6364         Fix -Wmissing-prototypes build.
6365         * charset.c (phony_iconv_open): Make static.
6366         (phony_iconv_close, phony_iconv): Likewise.
6367         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6368         * i386-windows-nat.c (_initialize_i386_windows_nat): New
6369         prototype.
6370         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6371         * ser-mingw.c (create_select_thread): Make static.
6372         * windows-termcap.c (tgetent): New prototype.
6373         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6374
6375 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
6376
6377         Fix -Wmissing-prototypes build.
6378         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6379         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6380         (_initialize_loadable): New prototypes.
6381
6382 2012-03-02  Doug Evans  <dje@google.com>
6383
6384         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6385         abbrev table, read_comp_unit will do it.
6386
6387 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6388
6389         Fix -Wmissing-prototypes build.
6390         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6391         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6392         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6393         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6394         (_initialize_arm_symbian_tdep): New prototype.
6395         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6396         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6397         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6398         static.
6399         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6400         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6401         prototype.
6402         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6403         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6404         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6405         static.
6406         * moxie-tdep.c (moxie_process_record): Likewise.
6407         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6408         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6409         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6410         (_initialize_rl78_tdep): New prototype.
6411         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6412         (_initialize_rx_tdep): New prototype.
6413         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6414         (_initialize_darwin_solib): New prototype.
6415         * solib-spu.c: Include solib-spu.h.
6416         (_initialize_spu_solib): New prototype.
6417         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6418         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6419         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6420         (tic6x_software_single_step): Make it static.
6421         (_initialize_tic6x_tdep): New prototype.
6422
6423 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6424
6425         Fix -Wmissing-prototypes build.
6426         * cris-tdep.c (cris_can_use_hardware_watchpoint)
6427         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6428
6429 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6430
6431         Fix -Wmissing-prototypes build.
6432         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6433         (frv_have_stopped_data_address): Remove.
6434
6435 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6436
6437         Fix -Wmissing-prototypes build.
6438         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6439         * sh-tdep.c: Include sh64-tdep.h.
6440         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6441         * sh64-tdep.c: Include sh64-tdep.h.
6442         * sh64-tdep.h: New file.
6443
6444 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
6445
6446         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6447
6448 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
6449
6450         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6451         sp_regnum once the gdbarch_init_osabi hook has been called.
6452
6453 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
6454
6455         * mips-tdep.c (mips32_bc1_pc): New function.
6456         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6457         BPOSGE32 and BPOSGE64 instructions.
6458         (deal_with_atomic_sequence): Likewise.
6459         (mips32_instruction_has_delay_slot): Likewise.
6460
6461 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
6462             Chris Dearman  <chris@mips.com>
6463             Maciej W. Rozycki  <macro@codesourcery.com>
6464             Joseph Myers  <joseph@codesourcery.com>
6465
6466         * features/mips-dsp.xml: New file.
6467         * features/mips64-dsp.xml: New file.
6468         * features/mips-dsp-linux.xml: New file.
6469         * features/mips64-dsp-linux.xml: New file.
6470         * features/Makefile (WHICH): Add mips-dsp-linux and
6471         mips64-dsp-linux.
6472         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6473         * features/mips-dsp-linux.c: New file.
6474         * features/mips64-dsp-linux.c: New file.
6475         * regformats/mips-dsp-linux.dat: New file.
6476         * regformats/mips64-dsp-linux.dat: New file.
6477         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6478         registers.
6479         (mips64_linux_register_addr): Likewise.
6480         (mips64_linux_regsets_fetch_registers): Likewise.
6481         (mips64_linux_regsets_store_registers): Likewise.
6482         (mips64_linux_fetch_registers): Update call to
6483         mips64_linux_regsets_fetch_registers.
6484         (mips64_linux_store_registers): Update call to
6485         mips64_linux_regsets_store_registers.
6486         (mips_linux_read_description): Probe for DSP registers.
6487         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6488         and initialize_tdesc_mips64_dsp_linux.
6489         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6490         Remove padding of no longer used embedded register slots.
6491         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6492         (MIPS_RESTART_REGNUM): Redefine enum value.
6493         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6494         strings.
6495         (mips_tx39_reg_names): Likewise.
6496         (mips_linux_reg_names): New array of register names for Linux
6497         targets.
6498         (mips_register_name): Check for a null pointer in
6499         mips_processor_reg_names and return an empty string.
6500         (mips_register_type): Exclude embedded registers for the IRIX
6501         and Linux ABIs.
6502         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
6503         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
6504         DSP registers.
6505         (mips_stab_reg_to_regnum): Handle DSP accumulators.
6506         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6507         (mips_gdbarch_init): Likewise.  Initialize internal register
6508         indices for the Linux ABI.  Use dynamic numbers to refer to
6509         registers, as applicable, while parsing the target description.
6510         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6511
6512 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
6513
6514         * frame.h (read_frame_register_unsigned): Fix typo in function
6515         description.
6516
6517 2012-03-01  Pedro Alves  <palves@redhat.com>
6518
6519         * jit-reader.in [!__cplusplus]
6520         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6521
6522 2012-03-01  Pedro Alves  <palves@redhat.com>
6523
6524         * configure.ac (build_warnings): Add -Wmissing-prototypes.
6525         * configure: Regenerate.
6526
6527 2012-03-01  Pedro Alves  <palves@redhat.com>
6528
6529         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6530         * breakpoint.c (create_exception_master_breakpoint, trace_command)
6531         (ftrace_command, strace_command): Make static.
6532         * d-lang.c (_initialize_d_language): Declare.
6533         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6534         * dwarf2loc.c (_initialize_dwarf2loc):
6535         * dwarf2read.c (process_psymtab_comp_unit): Make static.
6536         * exec.c (exec_get_section_table): Make static.
6537         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6538         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6539         * inferior.c (remove_inferior_command, add_inferior_command)
6540         (clone_inferior_command): Make static.
6541         * linux-nat.c (linux_nat_thread_address_space)
6542         (linux_nat_core_of_thread): Make static.
6543         * linux-tdep.c (_initialize_linux_tdep): Declare.
6544         * objc-lang.c (_initialize_objc_lang): Declare.
6545         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6546         Make static.
6547         (_initialize_opencl_language): Declare.
6548         * record.c (_initialize_record): Declare.
6549         * remote.c (demand_private_info, remote_get_tib_address)
6550         (remote_supports_cond_tracepoints)
6551         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6552         Make static.
6553         * skip.c (_initialize_step_skip): Declare.
6554         * symtab.c (skip_prologue_using_lineinfo): Make static.
6555         * tracepoint.c (delete_trace_state_variable)
6556         (trace_variable_command, delete_trace_variable_command)
6557         (get_uploaded_tsv, find_matching_tracepoint_location)
6558         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6559         Make static.
6560         * value.c (pack_unsigned_long): Make static.
6561         * varobj.c (varobj_ensure_python_env): Make static.
6562         * windows-tdep.c (_initialize_windows_tdep): Declare.
6563         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6564
6565 2012-03-01  Pedro Alves  <palves@redhat.com>
6566
6567         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
6568         gdbarch parameter.
6569         (linux_init_abi): Install it as has_shared_address_space gdbarch
6570         callback.
6571
6572 2012-03-01  Pedro Alves  <palves@redhat.com>
6573
6574         * observer.c (observer_test_first_notification_function)
6575         (observer_test_second_notification_function)
6576         (observer_test_third_notification_function): Add declarations.
6577
6578 2012-03-01  Pedro Alves  <palves@redhat.com>
6579
6580         * common/signals.c (default_target_signal_to_host)
6581         (default_target_signal_from_host): Move ...
6582         * arch-utils.c: ... here.
6583         * arch-utils.h (default_target_signal_to_host)
6584         (default_target_signal_from_host): Declare.
6585
6586         * common/signals.c (target_signal_from_command): Move ...
6587         * infrun.c: ... here.
6588         * inferior.h (target_signal_from_command): Declare.
6589         * target.h (target_signal_from_command)
6590         (default_target_signal_from_host, default_target_signal_to_host):
6591         Delete declarations.
6592
6593         * common/signals.c (_initialize_signals): Delete.
6594
6595 2012-03-01  Pedro Alves  <palves@redhat.com>
6596
6597         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6598         both __cplusplus and !__cplusplus.
6599
6600 2012-03-01  Pedro Alves  <palves@redhat.com>
6601
6602         * psymtab.c (find_and_open_source): Delete declaration.
6603         * source.c (find_and_open_source): Move comment ...
6604         * source.h (find_and_open_source): ... to this new declaration.
6605
6606 2012-03-01  Pedro Alves  <palves@redhat.com>
6607
6608         * inline-frame.c: Include inline-frame.h.
6609
6610 2012-03-01  Pedro Alves  <palves@redhat.com>
6611
6612         * tui/tui-data.c (set_gen_win_origin): Delete.
6613         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6614         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6615
6616 2012-03-01  Pedro Alves  <palves@redhat.com>
6617
6618         * remote.c (encode_actions): Delete declaration.
6619         * tracepoint.c (encode_actions): Make extern.
6620         * tracepoint.h (encode_actions): Declare.
6621
6622 2012-03-01  Pedro Alves  <palves@redhat.com>
6623
6624         * python/py-breakpoint.c: Include python.h.
6625         * python/py-continueevent.c (create_continue_event_object): Make
6626         static.
6627         * python/py-lazy-string.c (stpy_get_type): Make static.
6628         * python/py-newobjfileevent.c (create_new_objfile_event_object):
6629         Make static.
6630         * python/py-utils.c (unicode_to_target_python_string): Make
6631         static.
6632         * python/py-value.c: Include python.h.
6633
6634 2012-03-01  Pedro Alves  <palves@redhat.com>
6635
6636         * inferior.c (delete_threads_of_inferior): Delete.
6637
6638 2012-03-01  Pedro Alves  <palves@redhat.com>
6639
6640         Import fallback definitions from glibc.
6641
6642         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6643         ps_prochandle): Forward declare.
6644         (ps_err_e): Use glibc's comments.
6645         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6646         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6647         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6648         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6649         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6650         (struct ps_prochandle): Adjust comment.
6651
6652 2012-03-01  Pedro Alves  <palves@redhat.com>
6653
6654         * ada-lang.c (ada_modulus_from_name): Delete.
6655         * ada-lex.l (lexer_init): Make static.
6656
6657 2012-03-01  Pedro Alves  <palves@redhat.com>
6658
6659         PR gdb/13767
6660
6661         * frame.c (read_frame_register_unsigned): New.
6662         * frame.h (read_frame_register_unsigned): Declare.
6663         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6664         Handle it.
6665         (print_i387_control_word): New parameter `control_p'.  Handle it.
6666         (i387_print_float_info): Handle unavailable float registers.
6667
6668 2012-03-01  Keith Seitz  <keiths@redhat.com>
6669
6670         * linespec.c (decode_line_2): Sort the list of methods
6671         alphabetically before presenting the user with a selection
6672         menu.
6673
6674 2012-03-01  Doug Evans  <dje@google.com>
6675
6676         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6677         has_namespace_info.
6678         (dwarf2_read_abbrevs): Remove corresponding initialization.
6679
6680 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
6681
6682         * NEWS: Mention new python command class gdb.COMMAND_USER.
6683         * cli/cli-cmds.c (show_user): Print error when used on a python
6684         command.
6685         (init_cli_cmds): Update documentation strings for "show user" and
6686         "set/show max-user-call-depth" to clarify that it does not apply to
6687         python commands.
6688         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6689         error check.
6690         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6691         gdb python api.
6692         * top.c (execute_command): Only execute a user-defined command as a
6693         legacy macro if c->user_commands is set.
6694
6695 2012-03-01  Tom Tromey  <tromey@redhat.com>
6696
6697         * valprint.h (struct generic_val_print_decorations): New.
6698         (generic_val_print): Declare.
6699         * valprint.c (generic_val_print): New function.
6700         * p-valprint.c (p_decorations): New global.
6701         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6702         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6703         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6704         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6705         * m2-valprint.c (m2_decorations): New global.
6706         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6707         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6708         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6709         TYPE_CODE_ERROR>: Call generic_val_print.
6710         * f-valprint.c (f_decorations): New global.
6711         (f_val_print): Use print_function_pointer_address.
6712         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6713         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6714         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6715         generic_val_print.
6716         * c-valprint.c (c_decorations): New global.
6717         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6718         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6719         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6720         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6721         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6722         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6723         case.
6724
6725 2012-03-01  Tom Tromey  <tromey@redhat.com>
6726
6727         * valprint.c (val_print): Update.
6728         * p-valprint (pascal_val_print): Return void.
6729         * p-lang.h (pascal_val_print): Return void.
6730         * m2-valprint.c (m2_val_print): Return void.
6731         * m2-lang.h (m2_val_print): Return void.
6732         * language.h (struct language_defn) <la_val_print>: Return void.
6733         * language.c (unk_lang_val_print): Return void.
6734         * jv-valprint.c (java_val_print): Return void.
6735         * jv-lang.h (java_val_print): Return void.
6736         * f-valprint.c (f_val_print): Return void.
6737         * f-lang.h (f_val_print): Return void.
6738         * d-valprint.c (d_val_print): Return void.
6739         (dynamic_array_type): Update.
6740         * d-lang.h (d_val_print): Return void.
6741         * c-valprint.c (c_val_print): Return void.
6742         * c-lang.h (c_val_print): Return void.
6743         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6744         void.
6745         * ada-lang.h (ada_val_print): Return void.
6746
6747 2012-03-01  Tom Tromey  <tromey@redhat.com>
6748
6749         * value.h (val_print): Return void.
6750         * valprint.c (val_print): Return void.
6751
6752 2012-03-01  Tom Tromey  <tromey@redhat.com>
6753
6754         * value.h (common_val_print): Return void.
6755         * valprint.c (common_val_print): Return void.
6756
6757 2012-03-01  Tom Tromey  <tromey@redhat.com>
6758
6759         * value.h (value_print): Return void.
6760         * valprint.c (value_print): Return void.
6761         * p-valprint.c (pascal_value_print): Return void.
6762         * p-lang.h (pascal_value_print): Return void.
6763         * language.h (struct language_defn) <la_value_print>: Return
6764         void.
6765         * language.c (unk_lang_value_print): Return void.
6766         * jv-valprint.c (java_value_print): Return void.
6767         * jv-lang.h (java_value_print): Return void.
6768         * f-valprint.c (c_value_print): Don't declare.
6769         Include c-lang.h.
6770         * c-valprint.c (c_value_print): Return void.
6771         * c-lang.h (c_value_print): Return void.
6772         * ada-valprint.c (ada_value_print): Return void.
6773         * ada-lang.h (ada_value_print): Return void.
6774
6775 2012-03-01  Tom Tromey  <tromey@redhat.com>
6776
6777         * value.c (value_primitive_field): Handle virtual base classes.
6778
6779 2012-03-01  Tom Tromey  <tromey@redhat.com>
6780
6781         * gdbtypes.h (struct vbase): Remove.
6782
6783 2012-03-01  Tom Tromey  <tromey@redhat.com>
6784
6785         * c-valprint.c (print_function_pointer_address): Move...
6786         * valprint.c: ... here.  Make non-static.
6787         * m2-valprint.c (print_function_pointer_address): Remove.
6788         * valprint.h (print_function_pointer_address): Declare.
6789
6790 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
6791
6792         * NEWS: Document the fact that one can provide a condition when
6793         creating an Ada exception catchpoint.
6794
6795 2012-03-01  Tom Tromey  <tromey@redhat.com>
6796
6797         * valprint.c (val_print_type_code_flags): Fix placement of
6798         trailing brace.
6799
6800 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
6801
6802         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6803         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6804         environment variable before calling update-copyright.
6805
6806 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
6807
6808         * gnulib/extra/update-copyright: Update to the latest from
6809         gnulib's git repository.
6810         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6811         variable to 2 instead of 1.
6812
6813 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6814
6815         * varobj.c (c_value_of_variable): Remove dead code.
6816
6817 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6818
6819         * ada-lex.p (processId): Do not modify already encoded IDs.
6820         Update function documentation.
6821
6822 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6823
6824         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6825         "name" with "struct symbol *name_sym".
6826         * ada-exp.y (write_var_or_type): Update call to
6827         ada_find_renaming_symbol.
6828         "name" with "struct symbol *name_sym". Adjust Implementation
6829         accordingly.  Adjust the function documentation.
6830
6831 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6832
6833         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6834         * ada-lang.c (ada_find_any_type): Add advance declaration.
6835         Make static.  Replace ada_find_any_symbol by
6836         ada_find_any_type_symbol.
6837         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6838         Improve function description.  Make static.
6839         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6840         Replace ada_find_any_symbol by ada_find_any_type_symbol.
6841
6842 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6843
6844         * ada-lang.c (struct tag_args): Delete.
6845         (ada_get_tsd_type): Function body moved up in source file.
6846         (ada_tag_name_1, ada_tag_name_2): Delete.
6847         (ada_get_tsd_from_tag): New function.
6848         (ada_tag_name_from_tsd): New function.
6849         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6850         to determine the tag name.
6851
6852 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6853
6854         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6855         declaration.
6856         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6857         function.
6858
6859 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6860
6861         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6862
6863 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6864
6865         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6866         full searches.
6867
6868 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6869
6870         * ada-lang.c (constrained_packed_array_type): If there is a
6871         parallel XA type, use it to determine the array index type.
6872
6873 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6874
6875         * ada-valprint.c (ada_val_print_1): If our value is a reference
6876         to an array descriptor, dereference it before converting it
6877         to a simple array.
6878
6879 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6880
6881         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6882         creating fixed value.
6883         (ada_value_ind, ada_coerce_ref, assign_component)
6884         (ada_evaluate_subexp): Remove call to unwrap_value before
6885         call to ada_to_fixed_value.
6886
6887 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6888
6889         * ada-lang.c (to_fixed_array_type): Set result's type name.
6890
6891 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
6892
6893         * ada-lang.c (catch_ada_exception_command_split): Add new
6894         argument cond_string.  Add support for condition at end of
6895         "catch exception" commands.
6896         (ada_decode_exception_location): Add new argument cond_string.
6897         Update call to catch_ada_exception_command_split.
6898         (create_ada_exception_catchpoint): Add new argument cond_string.
6899         Set the breakpoint condition if needed.
6900         (catch_ada_exception_command): Update call to
6901         ada_decode_exception_location.
6902         (ada_decode_assert_location): Add function documentation.
6903         Add support for condition at end of "catch assert" command.
6904         (catch_assert_command): Update calls to ada_decode_assert_location
6905         and create_ada_exception_catchpoint.
6906
6907 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
6908
6909         Fix disp-step-syscall.exp: fork: single step over fork.
6910         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6911         (i386_linux_get_syscall_number_from_regcache): ... here, new function
6912         comment, change parameters gdbarch and ptid to regcache.  Remove
6913         parameter regcache, initialize gdbarch from regcache here.
6914         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6915         New functions.
6916         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6917         instead.
6918         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6919         'syscall'.  Make the 'int' check more strict.
6920
6921 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
6922
6923         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6924         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6925         (i386_linux_intx80_sysenter_syscall_record): ... here.
6926         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6927         Use the renamed function name.
6928
6929 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
6930
6931         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6932         * breakpoint.c (until_break_command): Likewise.
6933         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6934         * infcall.c (call_function_by_hand): Likewise.
6935         * infcmd.c (finish_forward): Likewise.
6936         * infrun.c (insert_exception_resume_breakpoint): Likewise.
6937
6938 2012-02-28  Tristan Gingold  <gingold@adacore.com>
6939
6940         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6941         avoid variable assignments inside condition.
6942
6943 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6944
6945         Fix static analysis issue found by cppcheck.
6946         * microblaze-tdep.c (microblaze_extract_return_value): Fix
6947         uninitialized BUF for size 2.
6948
6949 2012-02-27  Chris Dearman  <chris@mips.com>
6950             Nathan Froyd  <froydnj@codesourcery.com>
6951             Maciej W. Rozycki  <macro@codesourcery.com>
6952
6953         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6954         (mips16_instruction_has_delay_slot): Likewise.
6955         (mips_segment_boundary): Likewise.
6956         (mips_adjust_breakpoint_address): Likewise.
6957         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6958
6959 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
6960             Maciej W. Rozycki  <macro@codesourcery.com>
6961
6962         * infrun.c (handle_inferior_event): Don't proceed through
6963         shared library trampolines if stepping at the machine
6964         instruction level.
6965
6966 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
6967
6968         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6969         too.
6970
6971 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
6972
6973         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6974         (sh_stub_unwind_sniffer): New functions.
6975         (sh_stub_unwind): New variable.
6976         (sh_gdbarch_init): Wire everything.
6977
6978 2012-02-27  Pedro Alves  <palves@redhat.com>
6979
6980         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6981         (linux_nat_post_attach_wait): Adjust to use
6982         linux_proc_pid_is_stopped.
6983         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6984         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6985         based on pid_is_stopped from both linux-nat.c and
6986         gdbserver/linux-low.c, and renamed.
6987
6988 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
6989
6990         * remote.c (remote_watchpoint_addr_within_range): New function.
6991         (init_remote_ops): Use it.
6992
6993 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
6994
6995         * target.h (target_watchpoint_addr_within_range): Document macro.
6996
6997 2012-02-24  Pedro Alves  <palves@redhat.com>
6998
6999         * stack.c (set_last_displayed_sal): Issue internal_error instead
7000         of warning, and issue it after clearing the last displayed sal.
7001
7002 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7003             Pedro Alves  <palves@redhat.com>
7004
7005         * breakpoint.c (until_break_command): Install breakpoints after
7006         all frame manipulations.
7007
7008 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
7009
7010         * remote.c (remote_supports_cond_breakpoints): New forward
7011         declaration.
7012         (remote_add_target_side_condition): New function.
7013         (remote_insert_breakpoint): Add target-side breakpoint
7014         conditional if supported.
7015         (remote_insert_hw_breakpoint): Likewise.
7016         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7017         hook.
7018
7019         * target.c (update_current_target): Inherit
7020         to_supports_evaluation_of_breakpoint_conditions.
7021         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7022
7023         * target.h (struct target_ops)
7024         <to_supports_evaluation_of_breakpoint_conditions>: New field.
7025         (target_supports_evaluation_of_breakpoint_conditions): New #define.
7026
7027         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7028         (condition_evaluation_both, condition_evaluation_auto,
7029         condition_evaluation_host, condition_evaluation_target,
7030         condition_evaluation_enums, condition_evaluation_mode_1,
7031         condition_evaluation_mode): New static globals.
7032         (translate_condition_evaluation_mode): New function.
7033         (breakpoint_condition_evaluation_mode): New function.
7034         (gdb_evaluates_breakpoint_condition_p): New function.
7035         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7036         (mark_breakpoint_modified): New function.
7037         (mark_breakpoint_location_modified): New function.
7038         (set_condition_evaluation_mode): New function.
7039         (show_condition_evaluation_mode): New function.
7040         (bp_location_compare_addrs): New function.
7041         (get_first_location_gte_addr): New helper function.
7042         (set_breakpoint_condition): Free condition bytecode if locations
7043         has become unconditional.  Call mark_breakpoint_modified (...).
7044         (condition_command): Call update_global_location_list (1) for
7045         breakpoints.
7046         (breakpoint_xfer_memory): Use is_breakpoint (...).
7047         (is_breakpoint): New function.
7048         (parse_cond_to_aexpr): New function.
7049         (build_target_condition_list): New function.
7050         (insert_bp_location): Handle target-side conditional
7051         breakpoints and call build_target_condition_list (...).
7052         (update_inserted_breakpoint_locations): New function.
7053         (insert_breakpoint_locations): Handle target-side conditional
7054         breakpoints.
7055         (bpstat_check_breakpoint_conditions): Add comment.
7056         (bp_condition_evaluator): New function.
7057         (bp_location_condition_evaluator): New function.
7058         (print_breakpoint_location): Print information on where the condition
7059         will be evaluated.
7060         (print_one_breakpoint_location): Likewise.
7061         (init_bp_location): Call mark_breakpoint_location_modified (...) for
7062         breakpoint location.
7063         (force_breakpoint_reinsertion): New functions.
7064         (update_global_location_list): Handle target-side breakpoint
7065         conditions.
7066         Reinsert locations that are already inserted if conditions have
7067         changed.
7068         (bp_location_dtor): Free agent expression bytecode.
7069         (disable_breakpoint): Call mark_breakpoint_modified (...).
7070         Call update_global_location_list (...) with parameter 1 for breakpoints.
7071         (disable_command): Call mark_breakpoint_location_modified (...).
7072         Call update_global_location_list (...) with parameter 1 for breakpoints.
7073         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7074         (enable_command): mark_breakpoint_location_modified (...).
7075         (_initialize_breakpoint): Update documentation and add
7076         condition-evaluation breakpoint subcommand.
7077
7078         * breakpoint.h: Include ax.h.
7079         (condition_list): New data structure.
7080         (condition_status): New enum.
7081         (bp_target_info) <cond_list>: New field.
7082         (bp_location) <condition_changed, cond_bytecode>: New fields.
7083         (is_breakpoint): New prototype.
7084
7085 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
7086
7087         * remote.c (remote_state) <cond_breakpoints>: New field.
7088         (PACKET_ConditionalBreakpoints): New enum.
7089         (remote_cond_breakpoint_feature): New function.
7090         (remote_protocol_features): Add new ConditionalBreakpoints entry.
7091         (remote_supports_cond_breakpoints): New function.
7092         (_initialize_remote): Add new packet configuration for
7093         target-side conditional breakpoints.
7094
7095 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
7096
7097         * NEWS: Mention target-side conditional breakpoint support,
7098         new condition-evaluation breakpoint subcommand and remote
7099         packet extensions.
7100
7101 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
7102
7103         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7104         number.
7105
7106 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
7107
7108         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7109         (after_prologue): Remove.
7110
7111 2012-02-23  Tom Tromey  <tromey@redhat.com>
7112
7113         * jv-valprint.c (java_val_print): Remove dead code.
7114
7115 2012-02-23  Tristan Gingold  <gingold@adacore.com>
7116
7117         * ada-tasks.c (struct ada_tasks_inferior_data): Add
7118         known_tasks_element and known_tasks_length fields.
7119         (read_known_tasks_array): Change argument type.  Use pointer type
7120         and number of elements from DATA.  Adjust.
7121         (read_known_tasks_list): Likewise.
7122         (get_known_tasks_addr): Remove.
7123         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7124         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
7125         type and array length.  Merge former get_known_tasks_addr code.
7126
7127 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
7128
7129         PR backtrace/13716
7130         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7131         it after set_momentary_breakpoint.
7132
7133 2012-02-22  Sterling Augustine  <saugustine@google.com>
7134
7135         PR 13689:
7136         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7137
7138 2012-02-22  Gary Benson  <gbenson@redhat.com>
7139
7140         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7141         (find_slot_in_mapped_hash): Likewise.
7142
7143 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7144
7145         PR build/13638
7146         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7147         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7148         * configure: Regenerate.
7149
7150 2012-02-21  Tristan Gingold  <gingold@adacore.com>
7151             Pedro Alves  <palves@redhat.com>
7152
7153         * ia64-tdep.c: Do not include libunwind-ia64.h.
7154         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7155         Include libunwind-ia64.h instead of libunwind.h.
7156         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7157         for libunwind.h existence.
7158         * configure, config.in: Regenerate.
7159
7160 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
7161
7162         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7163         instead of value_rtti_target_type.
7164         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7165         instead of value_rtti_target_type.
7166         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7167         value_rtti_target_type.
7168         * valops.c (value_ind): Extract function readjust_indirect_value_type.
7169         (value_rtti_target_type): Rename to ...
7170         (value_rtti_indirect_type): ... here and make it indirect.  Update
7171         function comment.
7172         * value.c (readjust_indirect_value_type): New function.
7173         (coerce_ref): Support for enclosing type setting for references
7174         with readjust_indirect_value_type.
7175         * value.h (readjust_value_type): New declaration.
7176         (value_rtti_target_type): Rename to ...
7177         (value_rtti_indirect_type): ... here.
7178
7179 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
7180
7181         * MAINTAINERS (Write After Approval): Add myself to the list.
7182
7183 2012-02-20  Doug Evans  <dje@google.com>
7184
7185         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7186         Rename objfile_p_char parameter to objfilep.
7187         (build_objfile_section_table): Result is now void.  All callers
7188         updated.
7189         * objfiles.h (struct objfile): Tweak comments, whitespace.
7190         (build_objfile_section_table): Update.
7191
7192         * elfread.c (elf_symfile_segments): Fix warning text.
7193
7194 2012-02-20  Tom Tromey  <tromey@redhat.com>
7195
7196         PR gdb/13498:
7197         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7198         particular set of file names once.
7199         (dw2_map_symbol_filenames): Likewise.
7200
7201 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7202
7203         Code cleanup.
7204         * main.c (write_files): Remove the declaration.
7205         (external_editor_command): Move the declaration ...
7206         [GDBTK] (external_editor_command): ... here.  Fix the comment.
7207
7208 2012-02-20  Tom Tromey  <tromey@redhat.com>
7209
7210         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7211         extraneous block.
7212
7213 2012-02-20  Tristan Gingold  <gingold@adacore.com>
7214
7215         * darwin-nat.h (enum darwin_msg_state): Add comments.
7216
7217 2012-02-20  Tristan Gingold  <gingold@adacore.com>
7218
7219         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7220         value.
7221
7222 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
7223
7224         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7225         between function description and implementation.
7226
7227 2012-02-17  Tom Tromey  <tromey@redhat.com>
7228
7229         PR python/12070:
7230         * python/py-event.c (event_object_getset): New global.
7231         (event_object_type): Reference it.
7232         * python/py-type.c (field_object_getset): New global.
7233         (field_object_type): Reference it.
7234         * python/python-internal.h (gdb_py_generic_dict): Declare.
7235         * python/py-utils.c (gdb_py_generic_dict): New function.
7236
7237 2012-02-17  Tristan Gingold  <gingold@adacore.com>
7238
7239         * solib-darwin.c (darwin_current_sos): Check magic and filetype
7240
7241 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
7242
7243         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7244         TYPE_CALLING_CONVENTION annotation.
7245
7246 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
7247
7248         * MAINTAINERS: Add rx to target ISA section.
7249         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7250         (ALLDEPFILES): Add rx-tdep.c.
7251
7252 2012-02-16  Tom Tromey  <tromey@redhat.com>
7253
7254         * symfile.c (symbol_file_add_main_1): Use inferior's
7255         symfile_flags.
7256         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7257         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7258         inferior.
7259         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7260         inferior.
7261         (follow_exec): Use inferior's symfile_flags.
7262         * inferior.h (struct inferior) <symfile_flags>: New field.
7263
7264 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
7265
7266         PR gdb/9734:
7267         * remote-sim.c (gdbsim_create_inferior): Call error() when
7268         sim_create_inferior() fails.
7269
7270 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
7271
7272         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7273
7274 2012-02-16  Tom Tromey  <tromey@redhat.com>
7275
7276         PR c++/13653:
7277         * thread.c (struct current_thread_cleanup) <was_removable>: New
7278         field.
7279         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7280         (make_cleanup_restore_current_thread): Initialize new field.
7281
7282 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
7283
7284         * MAINTAINERS: Add rl78 to target ISA section.
7285         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7286         (ALLDEPFILES): Add rl78-tdep.c.
7287         * NEWS: Mention rl78 as a new target.
7288
7289 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
7290
7291         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7292         data.
7293         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7294
7295 2012-02-15  Tom Tromey  <tromey@redhat.com>
7296
7297         PR gdb/12659:
7298         * infcmd.c (registers_info): Print just the current register's
7299         name.
7300
7301 2012-02-15  Tom Tromey  <tromey@redhat.com>
7302
7303         * python/py-symbol.c (sympy_value): Use _().
7304
7305 2012-02-15  Pedro Alves  <palves@redhat.com>
7306
7307         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7308         output to be like native targets'.
7309         (remote_pid_to_str): Special case the null ptid.
7310
7311 2012-02-14  Stan Shebs  <stan@codesourcery.com>
7312
7313         * NEWS: Mention enable count command.
7314         * breakpoint.h (struct breakpoint): New field enable_count.
7315         * breakpoint.c (enable_breakpoint_disp): Add count argument.
7316         (enable_breakpoint): Add arg to call.
7317         (struct disp_data): New struct.
7318         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7319         (do_map_enable_once_breakpoint): Create a struct and pass it.
7320         (do_map_enable_delete_breakpoint): Ditto.
7321         (do_map_enable_count_breakpoint): New function.
7322         (enable_count_command): New function.
7323         (bpstat_stop_status): Decrement enable_count.
7324         (print_one_breakpoint_location): Report enable count.
7325         (_initialize_breakpoint): Add enable count command.
7326
7327 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
7328
7329         * rl78-tdep.c (reggroups.h): Include.
7330         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7331         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7332         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7333         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7334         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7335         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7336         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7337         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7338         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7339         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7340         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7341         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7342         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7343         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7344         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7345         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7346         beginning of register list.
7347         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7348         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7349         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7350         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7351         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7352         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7353         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7354         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7355         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7356         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7357         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7358         the pseudo registers.  Rearrange other pseudo registers too so
7359         that the bank registers appear at the end.
7360         (rl78_register_type): Account for the fact that the byte sized
7361         bank registers are now pseudo-registers.
7362         (rl78_register_name): Rearrange the register name array.  Make
7363         initial set of raw banked registers inaccessible.
7364         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7365         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7366         case for copying bytes back and forth between raw and pseudo
7367         versions of the banked registers.  Update other cases to reflect
7368         the changed names.
7369         (rl78_return_value): Update to account for changed names of
7370         raw registers.
7371         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7372         rl78_register_sim_regno().
7373
7374 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
7375
7376         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7377         the name parameter being passed to find_pc_partial_function().
7378
7379 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7380
7381         * MAINTAINERS: Step down from being ia64 target maintainer.
7382
7383 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7384
7385         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7386         compilation warning.
7387
7388 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7389
7390         Fix crash on loaded shlibs without loaded exec_bfd.
7391         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7392         (set_section_command): Replace exec_bfd by p->bfd.
7393
7394 2012-02-10  Tom Tromey  <tromey@redhat.com>
7395
7396         * linespec.c (decode_line_internal): Skip symtabs_from_filename
7397         when we have a C++ qualified name.
7398
7399 2012-02-10  Pedro Alves  <palves@redhat.com>
7400
7401         * inferior.c (inferior_pid_to_str): New.
7402         (print_inferior, inferior_command): Use it.
7403
7404 2012-02-10  Pedro Alves  <palves@redhat.com>
7405
7406         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7407         the test CFLAGS.
7408         * configure: Regenerate.
7409
7410 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7411
7412         * linespec.c (decode_line_internal): Fix comment correctness.
7413
7414 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
7415
7416         PR gdb/12953
7417         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7418         * amd64bsd-nat.c: Add support for debug registers (adapted from
7419         i386bsd-nat.c).
7420         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7421         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7422         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7423         (amd64bsd_dr_get_control): New functions.
7424         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7425         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7426         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7427         watchpoints initialization.
7428         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7429
7430 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7431
7432         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7433         flds_bnds.fields.
7434         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7435
7436 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7437
7438         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
7439
7440 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
7441
7442         * language.h (symbol_name_cmp_ftype): Renames
7443         symbol_name_match_p_ftype.
7444         (struct language_defn)[la_get_symbol_name_cmp]: Renames
7445         la_get_symbol_name_match_p.
7446         * ada-lang.c (ada_get_symbol_name_cmp): Renames
7447         ada_get_symbol_name_match_p.  Update comment.
7448         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7449         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7450         Renames symbol_name_match_p.  Update field type.
7451         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7452         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7453         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7454         "la_get_symbol_name_cmp" in comments.
7455         * language.c: Likewise.
7456
7457 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7458
7459         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7460         %eflags offset.
7461         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7462         (amd64_sol2_gregset32_reg_offs): Likewise.
7463
7464 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
7465
7466         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7467         of the returned BFD is allocated by GDB.
7468
7469 2012-02-07  Tom Tromey  <tromey@redhat.com>
7470
7471         PR python/12027:
7472         * python/python-internal.h (frame_object_type): Declare.
7473         * python/py-symbol.c (sympy_needs_frame): New function.
7474         (sympy_value): New function.
7475         (symbol_object_getset): Add "needs_frame".
7476         (symbol_object_methods): Add "value".
7477         * python/py-frame.c (frame_object_type): No longer static.
7478
7479 2012-02-07  Tom Tromey  <tromey@redhat.com>
7480
7481         PR python/13599:
7482         * python/py-symbol.c (sympy_line): New function.
7483         (symbol_object_getset): Add "line".
7484
7485 2012-02-07  Tom Tromey  <tromey@redhat.com>
7486
7487         * charset.c (find_charset_names): Check 'in' against NULL.
7488
7489 2012-02-06  Doug Evans  <dje@google.com>
7490
7491         * gdbtypes.h (struct main_type): Change type of name,tag_name,
7492         and fields.name members from char * to const char *.  All uses updated.
7493         (struct cplus_struct_type): Change type of fn_fieldlists.name member
7494         from char * to const char *.  All uses updated.
7495         (type_name_no_tag): Update.
7496         (lookup_unsigned_typename, lookup_signed_typename): Update.
7497         * gdbtypes.c (type_name_no_tag): Change result type
7498         from char * to const char *.  All callers updated.
7499         (lookup_unsigned_typename, lookup_signed_typename): Change type of
7500         name parameter from char * to const char *.
7501         * symtab.h (struct cplus_specific): Change type of demangled_name
7502         member from char * to const char *.  All uses updated.
7503         (struct general_symbol_info): Change type of name and
7504         mangled_lang.demangled_name members from char * to const char *.
7505         All uses updated.
7506         (symbol_get_demangled_name, symbol_natural_name): Update.
7507         (symbol_demangled_name, symbol_search_name): Update.
7508         * symtab.c (symbol_get_demangled_name): Change result type
7509         from char * to const char *.  All callers updated.
7510         (symbol_natural_name, symbol_demangled_name): Ditto.
7511         (symbol_search_name): Ditto.
7512         (completion_list_add_name): Change type of symname,sym_text,
7513         text,word parameters from char * to const char *.
7514         (completion_list_objc_symbol): Change type of sym_text,
7515         text,word parameters from char * to const char *.
7516         * ada-lang.c (find_struct_field): Change type of name parameter
7517         from char * to const char *.
7518         (encoded_ordered_before): Similarly for N0,N1 parameters.
7519         (old_renaming_is_invisible): Similarly for function_name parameter.
7520         (ada_type_name): Change result type from char * to const char *.
7521         All callers updated.
7522         * ada-lang.h (ada_type_name): Update.
7523         * buildsym.c (hashname): Change type of name parameter
7524         from char * to const char *.
7525         * buildsym.h (hashname): Update.
7526         * dbxread.c (end_psymtab): Change type of include_list parameter
7527         from char ** to const char **.
7528         * dwarf2read.c (determine_prefix): Change result type
7529         from char * to const char *.  All callers updated.
7530         * f-lang.c (find_common_for_function): Change type of name, funcname
7531         parameters from char * to const char *.
7532         * f-lang.c (find_common_for_function): Update.
7533         * f-valprint.c (list_all_visible_commons): Change type of funcname
7534         parameters from char * to const char *.
7535         * gdbarch.sh (static_transform_name): Change type of name parameter
7536         and result from char * to const char *.
7537         * gdbarch.c: Regenerate.
7538         * gdbarch.h: Regenerate.
7539         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7540         of name parameter from char * to const char *.
7541         * jv-lang.c (java_primitive_type_from_name): Ditto.
7542         (java_demangled_signature_length): Similarly for signature parameter.
7543         (java_demangled_signature_copy): Ditto.
7544         (java_demangle_type_signature): Ditto.
7545         * jv-lang.h (java_primitive_type_from_name): Update.
7546         (java_demangle_type_signature): Update.
7547         * objc-lang.c (specialcmp): Change type of a,b parameters
7548         from char * to const char *.
7549         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7550         from char * to const char *.  All callers updated.
7551         * p-lang.h (is_pascal_string_type): Update.
7552         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7553         of name parameter from char * to const char *.
7554         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7555         * utils.c (fprintf_symbol_filtered): Ditto.
7556         * defs.h (fprintf_symbol_filtered): Update.
7557         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7558         * stabsread.h (end_psymtab): Update.
7559         * stack.c (find_frame_funname): Change type of funname parameter
7560         from char ** to const char **.
7561         * stack.h (find_frame_funname): Update.
7562         * typeprint.c (type_print): Change type of varstring parameter
7563         from char * to const char *.
7564         * value.h (type_print): Update.
7565         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7566         from char * to const char *.  All callers updated.
7567         (xcoff_end_psymtab): Change type of include_list parameter
7568         from char ** to const char **.  All callers updated.
7569         (swap_sym): Similarly for name parameter.  All callers updated.
7570         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7571         Use xstrdup.
7572         (process_coff_symbol): Use xstrdup.
7573         * stabsread.c (stabs_method_name_from_physname): Renamed from
7574         update_method_name_from_physname.  Change result type from void
7575         to char *.  All callers updated.
7576         (read_member_functions): In has_destructor case, store name in objfile
7577         obstack instead of malloc space.  In !has_stub case, fix mem leak.
7578
7579 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
7580
7581         * configure: Rebuild.
7582         * configure.ac: Put -L../bfd and -L../libiberty at the front of
7583         LDFLAGS.
7584
7585 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
7586
7587         * configure.tgt (rl78-*-elf): New target.
7588         * rl78-tdep.c: New file.
7589
7590 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7591
7592         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7593         and continue the loop.  Add QUIT statement.
7594
7595 2012-02-03  Tom Tromey  <tromey@redhat.com>
7596
7597         PR gdb/13596:
7598         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7599         bfd_lookup_symbol_from_symtab.
7600         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7601         gdb_bfd_lookup_symbol_from_symtab.
7602
7603 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
7604
7605         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7606         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7607         symbol.  Add assertion that sym2 is never NULL.
7608
7609 2012-02-02  Doug Evans  <dje@google.com>
7610
7611         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7612         "name" parameter to const char ** from char **.  All callers updated.
7613         (find_pc_partial_function): Ditto.
7614         (cache_pc_function_name): Change type to const char * from char *.
7615         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7616         (find_pc_partial_function): Update.
7617         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7618         type of "name" parameter to const char * from char *.
7619         All uses updated.
7620         * arch-utils.c (generic_in_solib_return_trampoline): Change
7621         type of "name" parameter to const char * from char *.
7622         * arch-utils.h (generic_in_solib_return_trampoline): Update.
7623         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7624         type of "name" parameter to const char * from char *.
7625         * gdbarch.sh (in_solib_return_trampoline): Ditto.
7626         * gdbarch.c: Regenerate.
7627         * gdbarch.h: Regenerate.
7628         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7629         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7630         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7631         type of "name" parameter to const char * from char *.
7632         * skip.c (skip_function_pc): Ditto.
7633         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7634         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7635         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7636         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7637         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7638         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7639         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7640         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7641         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7642
7643 2012-02-02  Pedro Alves  <palves@redhat.com>
7644
7645         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7646         the current inferior has no execution.  Make sure the current
7647         remote process matches gdb's current inferior.
7648
7649 2012-02-02  Tom Tromey  <tromey@redhat.com>
7650
7651         PR gdb/13405:
7652         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7653         read-only memory.
7654
7655 2012-02-02  Tom Tromey  <tromey@redhat.com>
7656
7657         PR gdb/9307:
7658         * symtab.c (lookup_language_this): Set block_found.
7659
7660 2012-02-01  Tom Tromey  <tromey@redhat.com>
7661
7662         PR gdb/13431:
7663         * jit.c (struct jit_inferior_data): Rewrite.
7664         (struct jit_objfile_data): New.
7665         (get_jit_objfile_data): New function.
7666         (add_objfile_entry): Update.
7667         (jit_read_descriptor): Return int.  Replace descriptor_addr
7668         argument with inf_data.  Update.  Don't call error.
7669         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
7670         descriptor here.
7671         (jit_inferior_init): Don't look up descriptor.  Don't call error.
7672         (jit_reset_inferior_data_and_breakpoints)
7673         (jit_inferior_created_observer): Remove.
7674         (jit_inferior_exit_hook): Update.
7675         (jit_executable_changed_observer): Remove.
7676         (jit_event_handler): Update.
7677         (free_objfile_data): Reset inferior data if needed.
7678         (_initialize_jit): Update.
7679
7680 2012-02-01  Tom Tromey  <tromey@redhat.com>
7681
7682         * jit.c (bfd_open_from_target_memory): Move higher in file.
7683
7684 2012-02-01  Tristan Gingold  <gingold@adacore.com>
7685
7686         * libunwind-frame.c (libunwind_load): Display message if dlopen
7687         failed.
7688
7689 2012-02-01  Gary Benson  <gbenson@redhat.com>
7690
7691         * symtab.h (symbol_found_callback_ftype): New typedef.
7692         (iterate_over_symbols): Use the above.
7693         * symtab.c (iterate_over_symbols): Likewise.
7694         * language.h (language_defn->la_iterate_over_symbols): Likewise.
7695         * ada-lang.c (ada_iterate_over_symbols): Likewise.
7696         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7697         (iterate_name_matcher): Document return values.
7698         (collect_one_symbol): Likewise.
7699         (collect_function_symbols): Likewise.
7700         (collect_symbols): Likewise.
7701
7702 2012-02-01  Tom Tromey  <tromey@redhat.com>
7703
7704         * ada-lang.c (resolve_subexp): Update.
7705         (ada_lookup_symbol_list): Add 'full_search' argument.
7706         (ada_iterate_over_symbols): Pass 0 as full_search argument to
7707         ada_lookup_symbol_list.
7708         (ada_lookup_encoded_symbol): Update.
7709         (get_var_value): Update.
7710         * ada-exp.y (block_lookup): Update.
7711         (write_var_or_type): Update.
7712         (write_name_assoc): Update.
7713         * ada-lang.h (ada_lookup_symbol_list): Update.
7714
7715 2012-01-31  Tom Tromey  <tromey@redhat.com>
7716
7717         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7718         comment.
7719
7720 2012-01-31  Doug Evans  <dje@google.com>
7721
7722         * symtab.h: Remove outdated comment.
7723         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7724
7725 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7726
7727         Fix build error in Darwin port.
7728         * i386-darwin-nat.c: Include i386-nat.h.
7729
7730 2012-01-30  Tom Tromey  <tromey@redhat.com>
7731
7732         PR breakpoints/13568:
7733         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7734         argument.  Check for recursive includes.
7735         (dwarf_decode_macros): Create an include hash.
7736
7737 2012-01-30  Michael Eager  <eager@eagercon.com>
7738
7739         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7740         * ppc-linux-tdep.c: Include glibc-tdep.h.
7741         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7742         (powerpc_linux_in_plt_stub): New function.
7743         (powerpc_linux_in_dynsym_resolve_code): New function.
7744         (ppc_skip_trampoline_code): New function.
7745         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7746         Use glibc_skip_solib_resolver.
7747
7748 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7749
7750         Code cleanup: Make 1440 bytes of data segment read-only.
7751         * arch-utils.c (endian_enum): Make it const char *const [].
7752         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7753         Likewise.
7754         * breakpoint.c (always_inserted_enums): Likewise.
7755         * cli/cli-cmds.c (script_ext_enums): Likewise.
7756         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7757         enumlist parameter const char *const *.
7758         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7759         const char *const *.
7760         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7761         parameter const char *const *.
7762         * cris-tdep.c (cris_modes): Make it const char *const [].
7763         * filesystem.c (target_file_system_kinds): Likewise.
7764         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7765         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7766         (can_use_displaced_stepping_enum, scheduler_enums)
7767         (exec_direction_names): Likewise.
7768         * language.c (_initialize_language): Make the type_or_range_names and
7769         case_sensitive_names variables const char *const [].
7770         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7771         * python/python.c (python_excp_enums): Likewise.
7772         * remote.c (interrupt_sequence_modes): Likewise.
7773         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7774         * serial.c (logbase_enums): Likewise.
7775         * sh-tdep.c (sh_cc_enum): Likewise.
7776         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7777         Likewise.
7778         * symtab.c (multiple_symbols_modes): Likewise.
7779         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7780         Likewise.
7781         * utils.c (internal_problem_modes): Likewise.
7782
7783 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7784
7785         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7786         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7787         result.
7788
7789 2012-01-27  Doug Evans  <dje@google.com>
7790
7791         * configure.ac (with_python): Fix absolute path handling for win32.
7792         * configure: Regenerate.
7793
7794 2012-01-26  Doug Evans  <dje@google.com>
7795
7796         * symtab.c: Whitespace cleanup, no code changes.
7797
7798         * symtab.c (lookup_symbol_in_language): Improve comment.
7799         (lookup_symbol_aux): Fix comment.
7800
7801         * psymtab.c (add_psymbol_to_list): Result is now "void".
7802         * psympriv.h (add_psymbol_to_list): Update.
7803
7804         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7805
7806 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7807
7808         Do not open script filenames twice.
7809         * cli/cli-cmds.c (source_script_from_stream): Pass to
7810         source_python_script also STREAM.
7811         * python/py-auto-load.c (source_section_scripts): Pass to
7812         source_python_script_for_objfile also STREAM.
7813         (auto_load_objfile_script): Pass to source_python_script_for_objfile
7814         also INPUT.
7815         * python/python-internal.h (source_python_script_for_objfile): New
7816         parameter file, rename parameter file to filename.
7817         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7818         instead if !_WIN32.  Update the function comment.
7819         (source_python_script, source_python_script_for_objfile)
7820         (source_python_script): New parameter file, rename parameter file to
7821         filename.  Pass FILENAME to python_run_simple_file.
7822         * python/python.h (source_python_script): New parameter file, rename
7823         parameter file to filename.
7824
7825 2012-01-26  Pedro Alves  <palves@redhat.com>
7826
7827         * corelow.c (core_has_fake_pid): Delete.
7828         (core_close): Delete references to `core_has_fake_pid'.
7829         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7830         (core_open): Delete references to `core_has_fake_pid'.
7831         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7832         the removed global.
7833
7834 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
7835
7836         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7837         Remove language parameter from name_matcher.  Adjust the comment.
7838         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7839         Remove language parameter.
7840         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7841         * linespec.c (iterate_name_matcher): Likewise.
7842         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7843         name_matcher.  Adjust call accordingly.
7844         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7845         (maintenance_check_symtabs): Adjust type of parameter "fun".
7846         * psymtab.h (maintenance_check_symtabs): Likewise.
7847
7848 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
7849
7850         * language.h (symbol_name_match_p_ftype): New typedef.
7851         (struct language_defn): Replace field la_symbol_name_compare
7852         by la_get_symbol_name_match_p.
7853         * ada-lang.c (ada_get_symbol_name_match_p): New function.
7854         (ada_language_defn): Use it.
7855         * linespec.c (struct symbol_matcher_data): New type.
7856         (iterate_name_matcher): Rewrite.
7857         (iterate_over_all_matching_symtabs): Pass a pointer to
7858         a symbol_matcher_data struct to expand_symtabs_matching
7859         instead of just the lookup name.
7860         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7861         opencl-lang.c, p-lang.c, language.c: Delete field
7862         la_symbol_name_compare, and replace by NULL for new field
7863         la_get_symbol_name_match_p.
7864         * symfile.h (struct quick_symbol_functions): Update comment.
7865
7866 2012-01-25  Tom Tromey  <tromey@redhat.com>
7867
7868         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7869         dereferencing.
7870
7871 2012-01-24  Tom Tromey  <tromey@redhat.com>
7872
7873         PR symtab/12406:
7874         * solib.c (update_solib_list): Update the program space's
7875         added_solibs and deleted_solibs fields.
7876         * progspace.h (struct program_space) <added_solibs,
7877         deleted_solibs>: New fields.
7878         (clear_program_space_solib_cache): Declare.
7879         * progspace.c (release_program_space): Call
7880         clear_program_space_solib_cache.
7881         (clear_program_space_solib_cache): New function.
7882         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7883         bpstat_stop_status.  Use handle_solib_event.
7884         * breakpoint.c: Include gdb_regex.h.
7885         (print_solib_event): New function.
7886         (bpstat_print): Use print_solib_event.
7887         (bpstat_stop_status): Add special case for bp_shlib_event.
7888         (handle_solib_event): New function.
7889         (bpstat_what): Use handle_solib_event.
7890         (struct solib_catchpoint): New.
7891         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7892         (breakpoint_hit_catch_solib, check_status_catch_solib)
7893         (print_it_catch_solib, print_one_catch_solib)
7894         (print_mention_catch_solib, print_recreate_catch_solib): New
7895         functions.
7896         (catch_solib_breakpoint_ops): New global.
7897         (catch_load_or_unload, catch_load_command_1)
7898         (catch_unload_command_1): New functions.
7899         (internal_bkpt_check_status): Add special case for
7900         bp_shlib_event.
7901         (internal_bkpt_print_it): Use print_solib_event.
7902         (initialize_breakpoint_ops): Initialize
7903         catch_solib_breakpoint_ops.
7904         (_initialize_breakpoint): Register "catch load" and "catch
7905         unload".
7906         * breakpoint.h (handle_solib_event): Declare.
7907         * NEWS: Add entry for "catch load" and "catch unload".
7908
7909 2012-01-24  Tom Tromey  <tromey@redhat.com>
7910
7911         * ada-lang.c: Include gdb_vecs.h.
7912         * charset.c: Include gdb_vecs.h.
7913         * tracepoint.h: Include gdb_vecs.h.
7914         * gdb_vecs.h: New file.
7915
7916 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
7917
7918         * breakpoint.c (breakpoint_hit_catch_fork)
7919         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7920         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7921         * infrun.c (inferior_has_forked, inferior_has_vforked)
7922         (inferior_has_execd, inferior_has_called_syscall): Delete.
7923         (handle_syscall_event): Get syscall_number from the execution
7924         control state's wait status.
7925         (wait_for_inferior): Don't clear syscall_number.
7926
7927 2012-01-24  Pedro Alves  <palves@redhat.com>
7928
7929         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7930         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7931         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7932         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7933         `ws' parameter.
7934         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
7935         false for events other than TARGET_SIGNAL_TRAP.
7936         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7937         Add `ws' parameter.
7938         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
7939         events other than TARGET_SIGNAL_TRAP.
7940         (tracepoint_breakpoint_hit): Add `ws' parameter.
7941         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7942         parameter.
7943         (bpstat_stop_status): Same.
7944         (pc_at_non_inline_function): Same.
7945         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7946         to pass the current event's waitstatus to bpstat_stop_status
7947         and pc_at_non_inline_function.
7948
7949 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7950
7951         Code cleanup.
7952         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7953         Update the function comment for it.
7954         (source_script_with_search): Call make_cleanup_fclose for STREAM.
7955         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7956         for STREAM.
7957
7958 2012-01-24  Pedro Alves  <palves@redhat.com>
7959
7960         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7961         outside `bs->stop' block.
7962         (bpstat_what): Rework bp_shlib_event handling.
7963         (internal_bkpt_check_status): If the breakpoint is a
7964         bp_shlib_event, then set bs->stop and bs->print if
7965         stop_on_solib_events is set.
7966
7967 2012-01-24  Gary Benson  <gbenson@redhat.com>
7968
7969         Delete #if 0'd out code.
7970         * stack.c (print_frame_label_vars): Remove.
7971         (catch_info): Likewise.
7972         (_initialize_stack): Remove "info catch" command.
7973         * NEWS: Mention the above.
7974
7975 2012-01-24  Pedro Alves  <palves@redhat.com>
7976
7977         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
7978         it.
7979         (remote_notice_new_inferior): If the remote end doesn't support
7980         the multiprocess extensions, then the PID is fake.
7981         (add_current_inferior_and_thread): New.
7982         (remote_start_remote): Use it.
7983         (extended_remote_attach_1): Adjust.
7984         (extended_remote_create_inferior_1): Use
7985         add_current_inferior_and_thread.
7986
7987 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7988
7989         Fix watchpoints to be specific for each inferior.
7990         * breakpoint.c (watchpoint_in_thread_scope): Verify also
7991         current_program_space.
7992         * i386-nat.c (i386_inferior_data_cleanup): New.
7993         (i386_inferior_data_get): Replace variable inf_data_local by an
7994         inferior_data call.
7995         (i386_use_watchpoints): Initialize i386_inferior_data.
7996         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7997         specific iterate_over_lwps.
7998
7999 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
8000
8001         Fix watchpoints across inferior fork.
8002         * amd64-linux-nat.c (update_debug_registers_callback): Update the
8003         comment for linux_nat_iterate_watchpoint_lwps.
8004         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8005         linux_nat_iterate_watchpoint_lwps.
8006         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8007         * i386-linux-nat.c (update_debug_registers_callback): Update the
8008         comment for linux_nat_iterate_watchpoint_lwps.
8009         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8010         linux_nat_iterate_watchpoint_lwps.
8011         (i386_linux_prepare_to_resume): New comment on Linux kernel.
8012         * i386-nat.c: Include inferior.h.
8013         (dr_mirror): Remove.
8014         (i386_inferior_data, struct i386_inferior_data)
8015         (i386_inferior_data_get): New.
8016         (i386_debug_reg_state): Use i386_inferior_data_get.
8017         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8018         (i386_insert_watchpoint, i386_remove_watchpoint)
8019         (i386_stopped_data_address, i386_insert_hw_breakpoint)
8020         (i386_remove_hw_breakpoint): New variable state, use
8021         i386_debug_reg_state instead of DR_MIRROR.
8022         * linux-nat.c (delete_lwp): New declaration.
8023         (num_lwps): Move here from downwards.
8024         (delete_lwp_cleanup): New.
8025         (linux_child_follow_fork): Create new child_lp, call
8026         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8027         PTRACE_DETACH.
8028         (num_lwps): Move upwards.
8029         (linux_nat_iterate_watchpoint_lwps): New.
8030         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8031         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8032
8033 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
8034
8035         GDB 7.4 released.
8036
8037 2012-01-23  Pedro Alves  <palves@redhat.com>
8038
8039         * top.c (caution): Rename to ...
8040         (confirm): ... this.
8041         (show_caution): Rename to ...
8042         (show_confirm): ... this.
8043         (quit_cover): Adjust.
8044         (init_main): Adjust.
8045         * top.h (caution): Rename to ...
8046         (confirm): ... this.
8047         * utils.c (internal_vproblem, defaulted_query): Adjust.
8048
8049 2012-01-23  Pedro Alves  <palves@redhat.com>
8050
8051         * top.c (caution): Update comment.
8052         (execute_command): Don't consider the current value of `caution'.
8053
8054 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
8055
8056         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8057
8058 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
8059
8060         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8061         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8062         * target.c (target_fileio_pwrite): Remove buffer address from
8063         debug output.
8064         (target_fileio_pread): Likewise.
8065
8066 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8067
8068         * NEWS: Document remote "info proc" and "generate-core-file".
8069
8070 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8071
8072         * gdbarch.sh (find_memory_regions): New callback.
8073         * gdbarch.c, gdbarch.h: Regenerate.
8074
8075         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8076         callback before falling back to target method.
8077
8078         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8079         (linux_target_install_ops): No longer install it.
8080
8081         * linux-tdep.c (linux_find_memory_regions): New function.
8082         (linux_init_abi): Install it.
8083
8084 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8085
8086         * gdbarch.sh (make_corefile_notes): New architecture callback.
8087         * gdbarch.c: Regenerate.
8088         * gdbarch.h: Likewise.
8089
8090         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8091         before target_make_corefile_notes.  If NULL is returned, the
8092         target does not support core file generation.
8093
8094         * linux-nat.c: Include "linux-tdep.h".
8095         (find_signalled_thread, find_stop_signal): Remove.
8096         (linux_nat_do_thread_registers): Likewise.
8097         (struct linux_nat_corefile_thread_data): Likewise.
8098         (linux_nat_corefile_thread_callback): Likewise.
8099         (iterate_over_spus): Likewise.
8100         (struct linux_spu_corefile_data): Likewise.
8101         (linux_spu_corefile_callback): Likewise.
8102         (linux_spu_make_corefile_notes): Likewise.
8103         (linux_nat_collect_thread_registers): New function.
8104         (linux_nat_make_corefile_notes): Replace contents by call to
8105         linux_make_corefile_notes passing linux_nat_collect_thread_registers
8106         as native-only callback.
8107
8108         * linux-tdep.h: Include "bfd.h".
8109         (struct regcache): Add forward declaration.
8110         (linux_collect_thread_registers_ftype): New typedef.
8111         (linux_make_corefile_notes): Add prototype.
8112         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8113         "regset.h", and "elf-bfd.h".
8114         (find_signalled_thread, find_stop_signal): New functions.
8115         (linux_spu_make_corefile_notes): Likewise.
8116         (linux_collect_thread_registers): Likewise.
8117         (struct linux_corefile_thread_data): New data structure.
8118         (linux_corefile_thread_callback): New funcion.
8119         (linux_make_corefile_notes): Likewise.
8120         (linux_make_corefile_notes_1): Likewise.
8121         (linux_init_abi): Install it.
8122
8123 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8124
8125         * gdbarch.sh (info_proc): New callback.
8126         * gdbarch.c, gdbarch.h: Regenerate.
8127
8128         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8129         before falling back to the target info_proc callback.
8130
8131         * linux-nat.c: Do not include "cli/cli-utils.h".
8132         (linux_nat_info_proc): Remove.
8133         (linux_target_install_ops): No longer install it.
8134
8135         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8136         (read_mapping): New function.
8137         (linux_info_proc): Likewise.
8138         (linux_init_abi): Install it.
8139
8140 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8141
8142         * defs.h (enum info_proc_what): Moved here from linux-nat.c
8143         * infcmd.c: (info_proc_cmd_1): New function.
8144         (info_proc_cmd): New function, moved here from equivalent routine
8145         orignally in linux-nat.c.
8146         (info_proc_cmd_mappings): Likewise.
8147         (info_proc_cmd_stat): Likewise.
8148         (info_proc_cmd_status): Likewise.
8149         (info_proc_cmd_cwd): Likewise.
8150         (info_proc_cmd_cmdline): Likewise.
8151         (info_proc_cmd_exe): Likewise.
8152         (info_proc_cmd_all): Likewise.
8153         (_initialize_infcmd): Install "info proc" command and subcommands.
8154
8155         * target.h (struct target_ops): Add to_info_proc.
8156         (target_info_proc): Add prototype.
8157         * target.c (target_info_proc): New function.
8158
8159         * procfs.c (procfs_info_proc): Add prototype.
8160         (info_proc_cmd): Rename into ...
8161         (procfs_info_proc): ... this.  Update argument types as appropriate
8162         for a to_info_proc implementation.  Handle "what" argument.
8163         (procfs_target): Install procfs_info_proc.
8164         (_initialize_procfs): No longer install "info proc" command.
8165
8166         * linux-nat.c: (enum info_proc_what): Remove.
8167         (linux_nat_info_proc_cmd_1): Rename into ...
8168         (linux_nat_info_proc): ... this.  Update argument types as appropriate
8169         for a to_info_proc implementation.
8170         (linux_nat_info_proc_cmd): Remove.
8171         (linux_nat_info_proc_cmd_mappings): Likewise.
8172         (linux_nat_info_proc_cmd_stat): Likewise.
8173         (linux_nat_info_proc_cmd_status): Likewise.
8174         (linux_nat_info_proc_cmd_cwd): Likewise.
8175         (linux_nat_info_proc_cmd_cmdline): Likewise.
8176         (linux_nat_info_proc_cmd_exe): Likewise.
8177         (linux_nat_info_proc_cmd_all): Likewise.
8178         (linux_target_install_ops): Install linux_nat_info_proc.
8179         (_initialize_linux_nat): No longer install "info proc" command
8180         and subcommands.
8181
8182 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
8183
8184         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8185         * config.in, configure: Regenerate.
8186
8187         * target.h (struct target_ops): Add to_fileio_readlink.
8188         (target_fileio_readlink): Add prototype.
8189         * target.c (target_fileio_readlink): New function.
8190
8191         * inf-child.c: Conditionally include <sys/param.h>.
8192         (inf_child_fileio_readlink): New function.
8193         (inf_child_target): Install it.
8194
8195         * remote.c (PACKET_vFile_readlink): New enum value.
8196         (remote_hostio_readlink): New function.
8197         (init_remote_ops): Install it.
8198         (_initialize_remote): Handle vFile:readlink packet type.
8199
8200 2012-01-20  Pedro Alves  <palves@redhat.com>
8201             Ulrich Weigand  <ulrich.weigand@linaro.org>
8202
8203         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8204         * config.in, configure: Regenerate.
8205
8206         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8207         to_fileio_pread, to_fileio_close, to_fileio_unlink.
8208         (target_fileio_open): Add prototype.
8209         (target_fileio_pwrite): Likewise.
8210         (target_fileio_pread): Likewise.
8211         (target_fileio_close): Likewise.
8212         (target_fileio_unlink): Likewise.
8213         (target_fileio_read_alloc): Likewise.
8214         (target_fileio_read_stralloc): Likewise.
8215
8216         * target.c: Include "gdb/fileio.h".
8217         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8218         (default_fileio_target): New function.
8219         (target_fileio_open): Likewise.
8220         (target_fileio_pwrite): Likewise.
8221         (target_fileio_pread): Likewise.
8222         (target_fileio_close): Likewise.
8223         (target_fileio_unlink): Likewise.
8224         (target_fileio_close_cleanup): Likewise.
8225         (target_fileio_read_alloc_1): Likewise.
8226         (target_fileio_read_alloc): Likewise.
8227         (target_fileio_read_stralloc): Likewise.
8228
8229         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8230         <fcntl.h>, and <unistd.h>.
8231         (inf_child_fileio_open_flags_to_host): New function.
8232         (inf_child_errno_to_fileio_error): Likewise.
8233         (inf_child_fileio_open): Likewise.
8234         (inf_child_fileio_pwrite): Likewise.
8235         (inf_child_fileio_pread): Likewise.
8236         (inf_child_fileio_close): Likewise.
8237         (inf_child_fileio_unlink): Likewise.
8238         (inf_child_target): Install to_fileio routines.
8239
8240         * remote.c (init_remote_ops): Install to_fileio routines.
8241
8242 2012-01-20  Pedro Alves  <palves@redhat.com>
8243             Ulrich Weigand  <ulrich.weigand@linaro.org>
8244
8245         * remote.c (remote_multi_process_p): Only check for multi-process
8246         protocol feature, do not check for extended protocol.
8247         (remote_supports_multi_process): Check for extended protocol here.
8248         (set_general_process): Likewise.
8249         (extended_remote_kill): Likewise.
8250         (remote_pid_to_str): Likewise.
8251         (remote_query_supported): Always query multiprocess mode.
8252
8253 2012-01-20  Pedro Alves  <palves@redhat.com>
8254             Ulrich Weigand  <ulrich.weigand@linaro.org>
8255
8256         * inferior.h (struct inferior): Add fake_pid_p.
8257         * inferior.c (exit_inferior_1): Clear fake_pid_p.
8258         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8259         magic_null_ptid since the remote side doesn't provide a real PID.
8260
8261 2012-01-19  Tom Tromey  <tromey@redhat.com>
8262
8263         * NEWS: Combine the two Python sections.
8264
8265 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8266
8267         * target.h (target_close): Update comment on the target's unpush state.
8268
8269 2012-01-19  Pedro Alves  <palves@redhat.com>
8270
8271         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8272         linux_nat_async directly instead of going through the target
8273         vector.
8274         * target.c (unpush_target): Close target after unpushing it, not
8275         before.
8276
8277 2012-01-19  Gary Benson  <gbenson@redhat.com>
8278
8279         * mdebugread.c (sort_blocks): Replace integer constants with ones
8280         derived from FIRST_LOCAL_BLOCK.
8281
8282 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8283             Jan Kratochvil  <jan.kratochvil@redhat.com>
8284
8285         PR gdb/9538
8286         * symfile.c (find_separate_debug_file): New function.
8287         (terminate_after_last_dir_separator): Likewise.
8288         (find_separate_debug_file_by_debuglink): Also try realpath.
8289         * configure.ac (AC_CHECK_FUNCS): Add lstat.
8290         * configure: Regenerate.
8291         * config.in: Regenerate.
8292
8293 2012-01-18  Doug Evans  <dje@google.com>
8294
8295         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8296         (main.o): Remove rule.
8297         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8298         (--with-sysroot): Rewrite.
8299         * configure: Regenerate.
8300         * config.in: Regenerate.
8301
8302 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
8303
8304         * parse.c (initialize_expout): New function.
8305         (reallocate_expout): Likewise.
8306         (parse_exp_in_context): Use `initialize_expout' and
8307         `reallocate_expout' when appropriate.
8308
8309 2012-01-18  Pedro Alves  <palves@redhat.com>
8310
8311         * record.c (struct record_breakpoint, record_breakpoint_p)
8312         (record_breakpoints): New.
8313         (record_insert_breakpoint, record_remove_breakpoint): Manage
8314         record breakpoints list.  Only remove breakpoints from the
8315         inferior if they had been inserted there in the first place.
8316
8317 2012-01-17  Doug Evans  <dje@google.com>
8318
8319         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8320         if we know we don't have a file name to look for.
8321
8322 2012-01-17  Pedro Alves  <palves@redhat.com>
8323
8324         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8325         the frame's stop reason is UNWIND_UNAVAILABLE.
8326
8327 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8328
8329         Fix compilation error.
8330         * m2-exp.y (yyerror): Use ANSI C prototype.
8331
8332 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
8333
8334         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8335         (growbuf_by_size): Likewise.
8336         (yyerror): Likewise.
8337         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8338         (modblock): Remove variable (was #if 0'ed).
8339         (parse_number): Convert prototype from K&R to ANSI C.
8340         (yyerror): Likewise.
8341         * objc-exp.y (parse_number): Likewise.
8342         (yyerror): Likewise.
8343         (yylex): Remove #if 0'ed code.
8344         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8345         (yyerror): Likewise.
8346
8347 2012-01-16  Tom Tromey  <tromey@redhat.com>
8348
8349         * NEWS: Add item.
8350         * symtab.h (compare_filenames_for_search): Declare.
8351         * symtab.c (compare_filenames_for_search): New function.
8352         (iterate_over_some_symtabs): Use it.
8353         * symfile.h (struct quick_symbol_functions)
8354         <map_symtabs_matching_filename>: Change spec.
8355         * psymtab.c (partial_map_symtabs_matching_filename): Use
8356         compare_filenames_for_search.  Update for new spec.
8357         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8358         compare_filenames_for_search.  Update for new spec.
8359         * breakpoint.c (clear_command): Use compare_filenames_for_search.
8360
8361 2012-01-16  Tom Tromey  <tromey@redhat.com>
8362
8363         PR python/13281:
8364         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8365         (struct main_type) <flag_flag_enum>: New field.
8366         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8367         * NEWS: Add entries.
8368         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8369         enums.
8370         * python/lib/gdb/printing.py (_EnumInstance): New class.
8371         (FlagEnumerationPrinter): Likewise.
8372
8373 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
8374
8375         * breakpoint.c (create_sals_from_address_default): New function.
8376         (create_breakpoints_sal_default): Likewise.
8377         (decode_linespec_default): Likewise.
8378         (is_marker_spec): Removed.
8379         (strace_marker_p): New function.
8380         (init_breakpoint_sal): Using `strace_marker_p' instead of
8381         `is_marker_spec'.
8382         (create_breakpoint): Call method `create_sals_from_address' from
8383         breakpoint_ops, replacing code that created SALs conditionally
8384         on the type of the breakpoint.  Call method `create_breakpoints_sal',
8385         replacing code that created breakpoints conditionally on the type
8386         wanted.
8387         (base_breakpoint_create_sals_from_address): New function.
8388         (base_breakpoint_create_breakpoints_sal): Likewise.
8389         (base_breakpoint_decode_linespec): Likewise.
8390         (base_breakpoint_ops): Add methods
8391         `base_breakpoint_create_sals_from_address',
8392         `base_breakpoint_create_breakpoints_sal' and
8393         `base_breakpoint_decode_linespec'.
8394         (bkpt_create_sals_from_address): New function.
8395         (bkpt_create_breakpoints_sal): Likewise.
8396         (bkpt_decode_linespec): Likewise.
8397         (tracepoint_create_sals_from_address): Likewise.
8398         (tracepoint_create_breakpoints_sal): Likewise.
8399         (tracepoint_decode_linespec): Likewise.
8400         (strace_marker_create_sals_from_address): Likewise.
8401         (strace_marker_create_breakpoints_sal): Likewise.
8402         (strace_marker_decode_linespec): Likewise.
8403         (strace_marker_breakpoint_ops): New variable.
8404         (addr_string_to_sals): Remove `marker_spec'.  Call method
8405         `decode_linespec' from breakpoint_ops, replacing code that decoded
8406         an address string into a SAL.  Use `strace_marker_p' instead of
8407         `marker_spec'.
8408         (strace_command): Decide whether we are dealing with a static
8409         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
8410         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8411         * breakpoint.h (linespec_result, linespec_sals): New forward
8412         declarations.
8413         (breakpoint_ops) <create_sals_from_address>,
8414         <create_breakpoints_sal>, <decode_linespec>: New methods.
8415
8416 2012-01-14  Doug Evans  <dje@google.com>
8417
8418         * NEWS: Update text for "maint set python print-stack".
8419         It is deprecated in gdb 7.4 and deleted in 7.5.
8420
8421 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
8422
8423         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8424         including curses.h.
8425
8426 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8427
8428         * configure: Regenerate.
8429         * config.in: Regenerate.
8430
8431 2012-01-12  Keith Seitz  <keiths@redhat.com>
8432
8433         PR mi/10586
8434         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8435         (ANONYMOUS_UNION_NAME): Define.
8436         (is_path_expr_parent): New function.
8437         (get_path_expr_parent): New function.
8438         (is_anonymous_child): New function.
8439         (create_child_with_value): If the child is anonymous and without
8440         a name, assign an object name to it.
8441         (c_describe_child): Use get_path_expr_parent to determine
8442         the parent expression.
8443         If there field represents an anonymous struct or union and
8444         has no name, set an appropriate display name and expression.
8445         (cplus_describe_child): Likewise.
8446
8447 2012-01-12  Pedro Alves  <palves@redhat.com>
8448
8449         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8450         available when %ebp is found to be zero (outermost).
8451
8452 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
8453
8454         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8455         an internal gdb_static_assert.
8456         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8457
8458 2012-01-11  Tom Tromey  <tromey@redhat.com>
8459
8460         PR gdb/9598:
8461         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8462         catch" and "catch throw".
8463
8464 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
8465
8466         * blockframe.c (block_innermost_frame): Start search from selected
8467         frame, if present, or otherwise the current frame.
8468
8469         * c-exp.y (variable): Update innermost_block for
8470         'block COLONCOLON NAME' clause.
8471         * m2-exp.y (variable): Ditto.
8472         * objc-exp.y (variable): Ditto.
8473
8474 2012-01-10  Tom Tromey  <tromey@redhat.com>
8475
8476         PR python/13199:
8477         * python/python.c (finish_python_initialization): Set sys.argv.
8478
8479 2012-01-10  Doug Evans  <dje@google.com>
8480
8481         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
8482         "want_line_info".  All callers updated.
8483         (dwarf_decode_lines_1): New function.
8484         (handle_DW_AT_stmt_list): Add function comment.
8485         New arg "want_line_info".  All callers updated.
8486         (read_file_scope,read_type_unit_scope): Move comment from
8487         handle_DW_AT_stmt_list to here.
8488
8489 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8490
8491         Fix regression after libiberty/ update for GCC PR 6057 and others.
8492         * c-exp.y (operator) <OPERATOR DELETE>
8493         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8494         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8495         (make_builtin_type, make_name): New variable i, add gdb_assert.
8496         (operator) <OPERATOR NEW>: Update ARGS to 3.
8497         (operator) <OPERATOR DELETE>: Add trailing space.
8498         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8499         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8500         * cp-support.c (cp_canonicalize_string): Check NULL from
8501         cp_comp_to_string, call warning and return.
8502
8503 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8504
8505         Fix duplicate .o files after omitting libbfd.a.
8506         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8507         (SFILES): Add corelow.c.
8508         (COMMON_OBS): Add corelow.o.
8509         (ALLDEPFILES): Remove corelow.c.
8510         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8511         * config/alpha/alpha-osf3.mh: Likewise.
8512         * config/alpha/fbsd.mh: Likewise.
8513         * config/arm/nbsdaout.mh: Likewise.
8514         * config/arm/nbsdelf.mh: Likewise.
8515         * config/i386/i386gnu.mh: Likewise.
8516         * config/ia64/hpux.mh: Likewise.
8517         * config/ia64/linux.mh: Likewise.
8518         * config/m32r/linux.mh: Likewise.
8519         * config/m68k/linux.mh: Likewise.
8520         * config/mips/irix5.mh: Likewise.
8521         * config/mips/irix6.mh: Likewise.
8522         * config/pa/hpux.mh: Likewise.
8523         * config/pa/linux.mh: Likewise.
8524         * config/powerpc/aix.mh: Likewise.
8525         * config/sparc/linux.mh: Likewise.
8526         * config/sparc/linux64.mh: Likewise.
8527         * config/sparc/sol2.mh: Likewise.
8528         * config/vax/vax.mh: Likewise.
8529         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8530         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8531         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8532         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8533         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8534         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8535         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8536         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8537         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8538         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8539         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8540         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8541         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8542         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8543         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8544         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8545         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8546         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8547         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8548         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8549         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8550         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8551         corelow.o from gdb_target_obs.
8552         * corefile.c (core_target): Update the comment on NULL value.
8553         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8554         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8555         MATCHES.  Drop YUMMY set on NULL.
8556         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
8557         reclaim CORE_DATA if it is already NULL.
8558
8559 2012-01-09  Doug Evans  <dje@google.com>
8560
8561         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8562         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8563
8564 2012-01-09  Keith Seitz  <keiths@redhat.com>
8565
8566         * breakpoint.c (wrapper.h): Don't include.
8567
8568 2012-01-09  Keith Seitz  <keiths@redhat.com>
8569
8570         * Makefile.in (SFILES): Remove wrapper.c.
8571         (HFILES_NO_SRCDIR): Remove wrapper.h.
8572         (COMMON_OBS): Remove wrapper.o.
8573         * cli/cli-interp.c: Don't inlude wrapper.h.
8574         * corelow.c: Likewise.
8575         (core_open): Replace gdb_target_find_new_threads with
8576         TRY_CATCH around target_find_new_threads.
8577         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8578         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8579         * varobj.c (varobj_create): Likewise for parse_exp_1 and
8580         evaluate_expression.
8581         (varobj_set_value): Likewise for evaluate_expression and
8582         value_assign.
8583         (install_new_variable): Likewise for value_fetch_lazy.
8584         (adjust_value_for_child_access): Likewise for value_ind.
8585         (c_describe_child): Likewise for value_subscript and
8586         value_ind.
8587         (c_value_of_root): Likewise for evaluate_expression.
8588         * wrapper.c: Remove.
8589         * wrapper.h: Remove.
8590
8591 2012-01-09  Doug Evans  <dje@google.com>
8592
8593         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8594         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
8595         "abfd" args with "section".  All callers updated.
8596         Error checking code moved ...
8597         (error_check_comp_unit_head): ... here.  New function.
8598         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8599         Delete arg "abfd".  New arg "type_offset".  All callers updated.
8600         (create_debug_types_hash_table): Simplify by using
8601         read_and_check_type_unit_head.
8602
8603         * parser-defs.h (namecopy): Delete.
8604         * parse.c (namecopy, namecopy_size): Move into copy_name.
8605
8606 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8607
8608         Partially fix duplicate .o files after omitting libbfd.a.
8609         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8610         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8611         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8612         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8613         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8614         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8615         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8616
8617 2012-01-09  Pedro Alves  <palves@redhat.com>
8618
8619         * MAINTAINERS: Update my email address.
8620
8621 2012-01-08  Doug Evans  <dje@google.com>
8622
8623         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8624         n_type_units.  Rename type_comp_units to all_type_units.
8625         All uses updated.
8626         (add_signatured_type_cu_to_table): Renamed from
8627         add_signatured_type_cu_to_list.  All callers updated.
8628
8629         * gdbtypes.h (struct cplus_struct_type): Delete member
8630         nfn_fields_total.  All uses removed.
8631
8632 2012-01-06  Doug Evans  <dje@google.com>
8633
8634         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8635         to top of file.
8636         (dwarf2_find_comp_unit): Delete.
8637         (process_psymtab_comp_unit): Make result "void".
8638         Delete args buffer, info_ptr, buffer_size, and replace with
8639         "section".  All callers updated.
8640         (dwarf2_build_psymtabs_hard): Simplify.
8641
8642 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
8643             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8644
8645         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8646         before `struct gdb_exception'.
8647         * breakpoint.c (update_global_location_list_nothrow)
8648         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8649         * cp-abi.c (value_rtti_type): Likewise.
8650         * cp-support.c (cp_validate_operator): Likewise.
8651         * infrun.c (insert_exception_resume_breakpoint)
8652         (check_exception_resume, keep_going): Likewise.
8653         * mi-interp.c (mi_breakpoint_created)
8654         (mi_breakpoint_modified): Likewise.
8655         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8656         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8657         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8658
8659 2012-01-05  Doug Evans  <dje@google.com>
8660
8661         * dwarf2read.c (statement_prologue): Delete, unused.
8662
8663         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8664         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8665
8666         * dwarf2read.c (comp_unit_header): Delete, unused.
8667
8668 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
8669
8670         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8671         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8672
8673 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
8674
8675         * infrun.c (normal_stop): Don't skip calling the normal_stop
8676         observers if the thread was doing a multi-step, but stopped for
8677         some reason other than stepping.
8678
8679 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
8680
8681         * cli/cli-decode.h: Add comments.
8682         (CMD_LIST_AMBIGUOUS): Moved to command.h
8683         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8684         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8685         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8686         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8687         (add_com, add_com_alias, add_info, add_info_alias)
8688         (complete_on_cmdlist, complete_on_enum, help_list): Remove
8689         declarations.
8690         * command.h: Add and adjust comments.
8691         (CMD_LIST_AMBIGUOUS): Moved here.
8692         (help_cmd, help_cmd_list): Delete declarations.
8693
8694 2012-01-04  Doug Evans  <dje@google.com>
8695
8696         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8697         All callers updated.
8698         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8699         Replace all arguments with "per_cu".  All callers updated.
8700
8701         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8702
8703         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8704         New arg "per_cu".  All callers updated.
8705
8706         Delete #if 0'd out code.
8707         * language.c (binop_result_type): Delete.
8708         (simple_type, ordered_type, same_type, integral_type): Delete.
8709         (numeric_type, character_type, string_type, boolean_type): Delete.
8710         (float_type, structured_type): Delete.
8711         * language.h: Update.
8712
8713 2012-01-04  Tom Tromey  <tromey@redhat.com>
8714
8715         * python/py-value.c (valpy_binop): Initialize 'res_val'.
8716
8717 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8718
8719         * corefile.c (close_exec_file): Delete.
8720         (reopen_exec_file): Remove commented out code that seems related
8721         to close_exec_file, which is being deleted here.
8722         * inferior.h (close_exec_file): Delete.
8723         * fork-child.c (fork_inferior): Remove call to fork_inferior.
8724
8725 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8726
8727         * ada-lang.c: #include "cli/cli-utils.h".
8728         (get_selections): Use skip_spaces.
8729         (ada_get_next_arg): Use skip_spaces and skip_to_space.
8730         (catch_ada_exception_command_split): Use skip_spaces.
8731         (ada_decode_assert_location): Likewise.
8732
8733 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8734
8735         * linespec.c (decode_line_internal): Check for C++ or Java
8736         compound constructs only if the current language is C, C++
8737         or Java.
8738
8739 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8740
8741         Revert:
8742         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8743                     Joel Brobecker  <brobecker@adacore.com>
8744         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8745         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8746         3 times.
8747         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8748         fall through into AT_ENTRY_POINT.
8749         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
8750         DUMMY_ADDR with it.
8751         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8752         PPC_INSN_SIZE skip to 3 times.
8753
8754 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8755
8756         * linespec.c (add_minsym): Preserve function descriptors.
8757
8758 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
8759
8760         * breakpoint.c (all_locations_are_pending): Consider locations
8761         in program spaces executing during startup pending as well.
8762
8763 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8764
8765         Copyright year update in most files of the GDB Project.
8766
8767 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8768
8769         * copyright.sh: Delete.
8770         * copyright.py: Rewrite.
8771
8772 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8773
8774         * gnulib/extra/update-copyright: New file, imported from gnulib.
8775
8776 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
8777
8778         * README (Copyright and License Notices): New section.
8779
8780 2012-01-03  Tom Tromey  <tromey@redhat.com>
8781
8782         PR python/12533:
8783         * python/py-value.c (valpy_dereference, valpy_get_address
8784         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8785         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8786         (valpy_absolute, valpy_richcompare): Free intermediate values.
8787
8788 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
8789
8790         * ada-lang.c: Reformat the copyright notice.
8791
8792 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8793
8794         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8795         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8796         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8797         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8798         Revert this part of:
8799         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8800         Build gdb directly from *.o files not using libgdb.a.
8801         * Makefile.in (COMMON_OBS): Remove solib-target.o.
8802
8803 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
8804
8805         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8806         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8807         Reformat the copyright header.
8808
8809 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8810
8811         Revert this part of:
8812         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8813         Remove the gdbtui binary.
8814         * gdb.c (main): Remove args.interpreter_p initialization.
8815         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8816         * main.h (struct captured_main_args): Remove interpreter_p.
8817
8818 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
8819
8820         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8821
8822 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
8823
8824         * top.c (print_gdb_version): Update copyright year.
8825
8826 2012-01-02  Yao Qi  <yao@codesourcery.com>
8827
8828         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8829
8830 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8831             Joel Brobecker  <brobecker@adacore.com>
8832
8833         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8834         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8835         3 times.
8836         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8837         fall through into AT_ENTRY_POINT.
8838         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
8839         DUMMY_ADDR with it.
8840         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8841         PPC_INSN_SIZE skip to 3 times.
8842
8843 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8844
8845         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8846         the return value.
8847         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8848
8849 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8850
8851         Build gdb directly from *.o files not using libgdb.a.
8852         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8853         (COMMON_OBS): Remove solib-target.o.
8854         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8855         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8856         (LIBGDB_OBS, libgdb.a): Move it above.
8857         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8858         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8859         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8860         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8861         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8862         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8863         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8864         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8865         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8866         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8867         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8868         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8869         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8870         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8871         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8872         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8873         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8874         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8875         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8876         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8877         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8878         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8879         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8880         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8881         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8882         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8883         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8884
8885 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8886
8887         Remove the gdbtui binary.
8888         * .gitignore (/gdbtui): Remove.
8889         * Makefile.in (TUI): Remove.
8890         (SUBDIR_TUI_OBS): Remove tui-main.o.
8891         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8892         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8893         (tui-main.o): Remove.
8894         (all_object_files): Remove tui-main.o.
8895         * NEWS: New note for the gdbtui removal.
8896         * configure: Rebuilt.
8897         * configure.ac: No longer add all-tui, clean-tui, install-tui and
8898         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8899         CONFIG_UNINSTALL respectively.
8900         * gdb.c (main): Remove args.interpreter_p initialization.
8901         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8902         * main.h (struct captured_main_args): Remove interpreter_p.
8903         * tui/tui-main.c: Remove.
8904
8905 2012-01-01  Doug Evans  <dje@google.com>
8906
8907         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8908         (dwarf2_physname, read_import_statement): Ditto.
8909         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8910         (process_structure_scope read_subroutine_type): Ditto.
8911         (read_typedef, load_partial_dies, read_partial_die): Ditto.
8912         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8913         (dwarf2_fetch_die_location_block): Ditto.
8914         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8915
8916         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8917         All callers updated.
8918         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8919         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8920         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8921
8922         * dwarf2read.c (load_cu): Move assert to more useful location.
8923
8924         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8925         All callers updated.
8926
8927         * dwarf2read.c (dwarf2_per_objfile): Add comment.
8928         (dwarf2_elf_names): Minor reformat.
8929         (dwarf2_per_cu_data): Tweak comment.
8930         (dwarf2_read_section): Fix comment.
8931         (create_all_comp_units): Fix comment.
8932         (load_full_comp_unit): Fix comment.
8933         (process_full_comp_unit): Fix comment.
8934         (read_signatured_type): Fix comment.
8935
8936 For older changes see ChangeLog-2011.
8937 \f
8938 Local Variables:
8939 mode: change-log
8940 left-margin: 8
8941 fill-column: 74
8942 version-control: never
8943 coding: utf-8
8944 End: