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