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