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