2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
[external/binutils.git] / gdb / ChangeLog
1 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2
3         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4
5 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6
7         * probe.c (parse_probes): Move conditional to check for
8         debuginfo files from here...
9         * stap-probe.c (stap_get_probes): ... to here.
10
11 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
12             H.J. Lu  <hongjiu.lu@intel.com>
13
14         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
15         `movl %esp, %ebp' for the X32 ABI.
16
17 2012-05-07  Tom Tromey  <tromey@redhat.com>
18
19         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
20         get_DW_TAG_name.
21         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
22         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
23         (dwarf_stack_op_name): Remove.
24         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
25         (decode_locdesc): Use get_DW_OP_name.
26         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
27         (dwarf2_compile_expr_to_ax): Likewise.
28         (disassemble_dwarf_expression): Likewise.
29         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
30
31 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
32
33         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
34         (sh_linux_sigtramp_cache): New function.
35         (sh_linux_sigreturn_init): New function.
36         (sh_linux_rt_sigreturn_init): New function.
37         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
38         patterns.
39         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
40         syscall codes.
41         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
42         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
43         (sh_linux_init_abi): Add init calls to register new tramp_frame
44         definitions under 32-bit SH, update comments.
45
46 2012-05-07  Pedro Alves  <palves@redhat.com>
47
48         PR gdb/10952
49
50         * amd64-linux-tdep.c: Include glibc-tdep.h.
51         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
52         gdbarch_skip_solib_resolver callback.
53
54 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
55
56         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
57         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
58         (show_auto_load_safe_path): Check any-directory by comparison with "/".
59         (add_auto_load_safe_path): Change the error message.
60         (_initialize_auto_load): Change the "safe-path" help text.
61         * configure: Regenerate
62         * configure.ac (--without-auto-load-safe-path): Set
63         WITH_AUTO_LOAD_SAFE_PATH to /.
64
65 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
66
67         * stap-probe.h: Do not include unecessary `probe.h'.
68
69 2012-05-05  Alan Modra  <amodra@gmail.com>
70
71         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
72         bfd_und_section_ptr.
73         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
74         and bfd_com_section_ptr.
75
76 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
77
78         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
79
80 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
81
82         * windows-nat.h (segment_register_p_ftype): New typedef.
83         (windows_set_segment_register_p): Add declaration.
84         * windows-nat.c (segment_register_p): New static global.
85         (windows_set_segment_register_p): New function.
86         (do_windows_fetch_inferior_registers): Add special handling
87         for segment registers.
88         * amd64-windows-nat.c: #include "amd64-tdep.h".
89         (amd64_windows_segment_register_p): New function.
90         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
91         * i386-windows-nat.c: #include "i386-tdep.h".
92         (i386_windows_segment_register_p): New function.
93         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
94
95 2012-05-04  Tristan Gingold  <gingold@adacore.com>
96
97         * printcmd.c (set_command): Emit a warning if the expression is not
98         an assignment.
99
100 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
101
102         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
103         Make static.
104
105 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
106
107         * stap-probe.c (stap_is_operator): Change declaration.
108         (stap_get_opcode): Change return value.
109         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
110         `stap_parse_argument_1'.
111
112 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
113
114         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
115         debug log.
116
117 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
118
119         Add two new methods global_block and static_block to gdb.Symtab
120         objects.
121         * NEWS (Python scripting): Add entry about the new methods.
122         * python/py-symtab.c (stpy_global_block): New function which
123         implements the gdb.Symtab.global_block() method.
124         (stpy_static_block): New function which implements the
125         gdb.Symtab.static_block() method.
126         (symtab_object_methods): Add entries for the two new methods.
127
128 2012-05-03  Doug Evans  <dje@google.com>
129
130         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
131         files.
132
133 2012-05-03  Yao Qi  <yao@codesourcery.com>
134
135         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
136         space.
137         (i386_process_record): Ditto.
138
139 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
140
141         * infcall.c (unwind_on_signal_p): Make static.
142
143 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
144
145         * sol-thread.c (solaris_pid_to_str): Make static.
146         (_initialize_sol_thread): Add prototype.
147
148 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
149
150         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
151
152 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
153
154         * MAINTAINERS: Remove myself.
155
156 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
157
158         Fix --without-auto-load-safe-path for MS-Windows host platform.
159         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
160
161 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
162
163         * gdb_curses.h: Undefine KEY_EVENT before including curses
164         headers.  Move "#undef MOUSE_MOVED" before any curses header
165         inclusion.
166
167 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
168
169         * features/i386/i386-mmx-linux.c: Regenerate.
170         * features/rs6000/powerpc-32.c: Likewise.
171         * features/rs6000/powerpc-32l.c: Likewise.
172         * features/rs6000/powerpc-403.c: Likewise.
173         * features/rs6000/powerpc-403gc.c: Likewise.
174         * features/rs6000/powerpc-405.c: Likewise.
175         * features/rs6000/powerpc-505.c: Likewise.
176         * features/rs6000/powerpc-601.c: Likewise.
177         * features/rs6000/powerpc-602.c: Likewise.
178         * features/rs6000/powerpc-603.c: Likewise.
179         * features/rs6000/powerpc-604.c: Likewise.
180         * features/rs6000/powerpc-64.c: Likewise.
181         * features/rs6000/powerpc-64l.c: Likewise.
182         * features/rs6000/powerpc-750.c: Likewise.
183         * features/rs6000/powerpc-860.c: Likewise.
184         * features/rs6000/powerpc-e500.c: Likewise.
185         * features/rs6000/powerpc-e500l.c: Likewise.
186         * features/rs6000/powerpc-isa205-32l.c: Likewise.
187         * features/rs6000/powerpc-isa205-64l.c: Likewise.
188         * features/rs6000/rs6000.c: Likewise.
189
190 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
191
192         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
193         variable.
194         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
195         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
196         (stap_parse_argument) <e>: Likewise.
197         (handle_stap_probe) <byte_order>: Likewise.
198
199 2012-04-30  Doug Evans  <dje@google.com>
200
201         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
202         init_and_read_dies_worker.  All callers updated.
203         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
204         replaced with init_cutu_and_read_dies.
205         (load_partial_comp_unit): Pass 1 for use_existing_cu.
206         (find_partial_die): Remove FIXME.  Don't free current CU.
207
208 2012-04-30  Sterling Augustine  <saugustine@google.com>
209
210         * contrib: New directory.
211         * contrib/test_pubnames_and_indexes.py: New file.
212
213 2012-04-30  Doug Evans  <dje@google.com>
214
215         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
216         All callers updated.
217         (init_cu_die_reader): Verify the section is non-empty.
218         (dwarf_decode_line_header): Don't dereference section->asection
219         until we know the section is present.
220
221 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
222
223         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
224         probes.
225
226 2012-04-29  Yao Qi  <yao@codesourcery.com>
227
228         * gdb-code-style.el: New hook gdb-markup-hook
229         and gdb-comment-hook.
230
231 2012-04-28  Doug Evans  <dje@google.com>
232
233         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
234         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
235         objfile->obfd.
236         * symfile.h (dwarf2_debug_sections): New member addr.
237         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
238         (ctx_no_get_addr_index): New function.
239         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
240         (ctx_no_get_addr_index): Declare.
241         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
242         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
243         (dwarf_expr_ctx_funcs): Update.
244         (needs_get_addr_index): New function.
245         (needs_frame_ctx_funcs): Update.
246         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
247         * dwarf2read.c: #include "gdbcore.h".
248         (dwarf2_per_objfile): New members addr, dwo_files.
249         (dwarf2_elf_names): Add entry for addr.
250         (struct dwo_section_names): New type.
251         (dwo_section_names): New static global.
252         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
253         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
254         old debug_types_section member updated to use this.
255         Rename member debug_types_section to info_or_types_section,
256         all uses updated.
257         (signatured_type): Rename member type_offset to type_offset_in_tu,
258         all uses updated.  New member type_offset_in_section.
259         (struct dwo_sections): New type.
260         (struct dwo_unit): New type.
261         (struct dwo_file): New type.
262         (die_reader_specs): New member dwo_file.
263         (dwarf2_locate_sections): Watch for .debug_addr.
264         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
265         (dwarf2_read_section): Get bfd of section from bfd's asection,
266         instead of objfile.
267         (create_cus_from_index): Initialize the_cu->info_or_types_section.
268         (create_signatured_type_table_from_index): Initialize
269         sig_type->info_or_types_section.
270         (dw2_get_file_names): Statement lists for type units with DWO files
271         live in the DWO file.
272         (create_debug_types_hash_table): New function.
273         (create_all_type_units): Rewrite.
274         (init_cu_die_reader): New arg dwo_file, all callers updated.
275         (init_and_read_dies_worker): Get section from
276         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
277         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
278         continue reading the CU/TU from there.
279         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
280         updated.  Get section from this_cu->info_or_types_section.
281         (create_all_comp_units): Initialize this_cu->info_or_types_section.
282         (skip_one_die): New cases DW_FORM_GNU_addr_index,
283         DW_FORM_GNU_str_index.
284         (hash_dwo_file, eq_dwo_file): New functions.
285         (allocate_dwo_file_hash_table): New function.
286         (hash_dwo_unit, eq_dwo_unit): New functions.
287         (allocate_dwo_unit_table): New function.
288         (dwarf2_locate_dwo_sections): New function.
289         (struct create_dwo_info_table_data): New type.
290         (create_debug_info_hash_table_reader): New function.
291         (create_debug_info_hash_table): New function.
292         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
293         (lookup_dwo_file): New function.
294         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
295         (free_dwo_file, free_dwo_file_cleanup): New functions.
296         (free_dwo_file_from_slot, free_dwo_files): New functions.
297         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
298         (dwarf2_record_block_ranges): Ditto.
299         (read_partial_die): Ditto.
300         (process_enumeration_scope): Update to use type_offset_in_section.
301         (read_full_die_1): New function.
302         (read_full_die): Rewrite.
303         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
304         DW_FORM_GNU_str_index.
305         (read_addr_index_1, read_addr_index): New functions.
306         (read_addr_index_from_leb128): New function.
307         (struct dwarf2_read_addr_index_data): New type.
308         (dwarf2_read_addr_index_reader): New function.
309         (dwarf2_read_addr_index): New function.
310         (read_str_index): New function.
311         (leb128_size): New function.
312         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
313         If processing a type unit from a DWO file, get the line section
314         from the DWO file.
315         (var_decode_location): Watch for DW_OP_GNU_addr_index.
316         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
317         DW_FORM_GNU_str_index.
318         (lookup_die_type): Check whether section offset of type's die is
319         known before looking it up.  Remove assert.  Condition can
320         legimately happen for inter-cu type references.
321         (dwarf_attr_name): Handle Fission attributes.
322         (dwarf_form_name): Handle Fission forms.
323         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
324         DW_FORM_GNU_str_index.
325         (follow_die_sig): Update to use type_offset_in_section.
326         (decode_locdesc): New case DW_OP_GNU_addr_index.
327         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
328         DW_FORM_GNU_str_index.
329         (cu_debug_loc_section): New function.
330         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
331         (dwarf2_per_objfile_free): Unmap .debug_addr section.
332         Free DWO files if present.
333         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
334
335         Refactor DIE reading.
336         * dwarf2read.c (dwarf2_per_objfile): Replace members
337         debug_info_type_hash and debug_types_type_hash with die_type_hash.
338         (die_reader_specs): New member "die_section".  Temporarily make
339         member "buffer" non-const, pending constifying all info_ptr uses.
340         (die_reader_func_ftype): New typedef.
341         (dw2_get_file_names_reader): New function.
342         (dw2_get_file_names): Rewrite.
343         (read_and_check_type_unit_head): Rename arg type_offset to
344         type_offset_in_tu.
345         (create_all_type_units): Improve debugging message.
346         Improve dummy type unit check.
347         (init_cu_die_reader): New arg "section".  All callers updated.
348         (init_and_read_dies_worker): New function.
349         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
350         (init_cutu_and_read_dies_no_follow): New function.
351         (init_cutu_and_read_dies_simple): New function.
352         (process_psymtab_comp_unit_reader): New function.
353         (process_psymtab_comp_unit): Delete args section,
354         is_debug_types_section.  Rewrite.  All callers updated.
355         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
356         All callers updated.  Rewrite.
357         (load_partial_comp_unit_reader): New function.
358         (load_partial_comp_unit): Rewrite.
359         (skip_children): New arg reader.  Delete args buffer, cu.
360         All callers updated.
361         (skip_one_die): New arg reader.  Delete args buffer, cu.
362         All callers updated.
363         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
364         All callers updated.
365         (load_full_comp_unit_reader): New function.
366         (load_full_comp_unit): Rewrite.
367         (read_comp_unit): Delete.
368         (read_die_and_children_1): Delete, contents moved ...
369         (read_die_and_children): ... here.
370         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
371         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
372         All callers updated.
373         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
374         All callers updated.
375         (find_partial_die): Rewrite load_all_dies support.
376         (read_attribute_value): New arg reader.  Delete args abfd, cu.
377         All callers updated.
378         (read_attribute): New arg reader.  Delete args abfd, cu.
379         All callers updated.
380         (load_full_type_unit): Add assert.
381         (read_signatured_type_reader): New function.
382         (read_signatured_type): Rewrite.
383         (free_stack_comp_unit): Remove call to age_cached_comp_units.
384         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
385         All callers updated.  Set per_cu->cu = NULL after freeing it.
386         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
387         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
388         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
389         (set_die_type): Update.
390         (get_die_type_at_offset): Update.
391         (read_file_scope): Call prepare_one_comp_unit.
392         (read_type_unit_scope): Ditto.
393         (prepare_one_comp_unit): Set producer if present.
394
395 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
396
397         * probe.c (compile_rx_or_error): Silence ARI warning about missing
398          gettext function on `error'.
399
400 2012-04-27  Doug Evans  <dje@google.com>
401
402         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
403         is empty.
404
405 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
406             Tom Tromey  <tromey@redhat.com>
407
408         * breakpoint.c (struct breakpoint_objfile_data)
409         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
410         <exception_probes>: New fields.
411         (free_breakpoint_probes): New function.
412         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
413         `_Unwind_DebugHook'.
414         (create_exception_master_breakpoint): Likewise.
415         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
416         * infrun.c: Including necessary header files for handling SystemTap
417         probes.
418         (handle_inferior_event): Handling longjmp breakpoint and exceptions
419         via SystemTap probes.
420         (check_exception_resume): Remove `func' argument.  Handle exception
421         unwinding breakpoint set via a SystemTap probe.
422         (insert_exception_resume_from_probe): New function.
423
424 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
425             Tom Tromey  <tromey@redhat.com>
426             Jan Kratochvil  <jan.kratochvil@redhat.com>
427
428         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
429         (COMMON_OBS): Likewise.
430         (HFILES_NO_SRCDIR): Add `probe'.
431         * NEWS: Mention support for static and SystemTap probes.
432         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
433         SystemTap probes' arguments parser.
434         * arm-linux-tdep.c: Including headers needed to perform the parsing
435         of SystemTap probes' arguments.
436         (arm_stap_is_single_operand): New function.
437         (arm_stap_parse_special_token): Likewise.
438         (arm_linux_init_abi): Initializing proper fields used by SystemTap
439         probes' arguments parser.
440         * ax-gdb.c (require_rvalue): Removing static declaration.
441         (gen_expr): Likewise.
442         * ax-gdb.h (gen_expr): Declaring function.
443         (require_rvalue): Likewise.
444         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
445         (bkpt_probe_breakpoint_ops): New variable.
446         (momentary_breakpoint_from_master): Set the `probe' value.
447         (add_location_to_breakpoint): Likewise.
448         (break_command_1): Using proper breakpoint_ops according to the
449         argument passed by the user in the command line.
450         (bkpt_probe_insert_location): New function.
451         (bkpt_probe_remove_location): Likewise.
452         (bkpt_probe_create_sals_from_address): Likewise.
453         (bkpt_probe_decode_linespec): Likewise.
454         (tracepoint_probe_create_sals_from_address): Likewise.
455         (tracepoint_probe_decode_linespec): Likewise.
456         (tracepoint_probe_breakpoint_ops): New variable.
457         (trace_command): Using proper breakpoint_ops according to the
458         argument passed by the user in the command line.
459         (initialize_breakpoint_ops): Initializing breakpoint_ops for
460         static probes on breakpoints and tracepoints.
461         * breakpoint.h (struct bp_location) <probe>: New field.
462         * cli-utils.c (skip_spaces_const): New function.
463         (extract_arg): Likewise.
464         * cli-utils.h (skip_spaces_const): Likewise.
465         (extract_arg): Likewise.
466         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
467         * configure.ac: Append `stap-probe.o' to be generated when ELF
468         support is present.
469         * configure: Regenerate.
470         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
471         * elfread.c: Include `probe.h' and `arch-utils.h'.
472         (probe_key): New variable.
473         (elf_get_probes): New function.
474         (elf_get_probe_argument_count): Likewise.
475         (elf_evaluate_probe_argument): Likewise.
476         (elf_compile_to_ax): Likewise.
477         (elf_symfile_relocate_probe): Likewise.
478         (stap_probe_key_free): Likewise.
479         (elf_probe_fns): New variable.
480         (elf_sym_fns): Add `sym_probe_fns' value.
481         (elf_sym_fns_lazy_psyms): Likewise.
482         (elf_sym_fns_gdb_index): Likewise.
483         (_initialize_elfread): Initialize objfile cache for static
484         probes.
485         * gdb_vecs.h (struct probe): New forward declaration.
486         (probe_p): New VEC declaration.
487         * gdbarch.c: Regenerate.
488         * gdbarch.h: Regenerate.
489         * gdbarch.sh (stap_integer_prefix): New variable.
490         (stap_integer_suffix): Likewise.
491         (stap_register_prefix): Likewise.
492         (stap_register_suffix): Likewise.
493         (stap_register_indirection_prefix): Likewise.
494         (stap_register_indirection_suffix): Likewise.
495         (stap_gdb_register_prefix): Likewise.
496         (stap_gdb_register_suffix): Likewise.
497         (stap_is_single_operand): New function.
498         (stap_parse_special_token): Likewise.
499         (struct stap_parse_info): Forward declaration.
500         * i386-tdep.c: Including headers needed to perform the parsing
501         of SystemTap probes' arguments.
502         (i386_stap_is_single_operand): New function.
503         (i386_stap_parse_special_token): Likewise.
504         (i386_elf_init_abi): Initializing proper fields used by SystemTap
505         probes' arguments parser.
506         * i386-tdep.h (i386_stap_is_single_operand): New function.
507         (i386_stap_parse_special_token): Likewise.
508         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
509         * mipsread.c (ecoff_sym_fns): Likewise.
510         * objfiles.c (objfile_relocate1): Support relocation for static
511         probes.
512         * parse.c (prefixify_expression): Remove static declaration.
513         (initialize_expout): Likewise.
514         (reallocate_expout): Likewise.
515         * parser-defs.h (initialize_expout): Declare function.
516         (reallocate_expout): Likewise.
517         (prefixify_expression): Likewise.
518         * ppc-linux-tdep.c: Including headers needed to perform the parsing
519         of SystemTap probes' arguments.
520         (ppc_stap_is_single_operand): New function.
521         (ppc_stap_parse_special_token): Likewise.
522         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
523         probes' arguments parser.
524         * probe.c: New file, for generic statically defined probe support.
525         * probe.h: Likewise.
526         * s390-tdep.c: Including headers needed to perform the parsing of
527         SystemTap probes' arguments.
528         (s390_stap_is_single_operand): New function.
529         (s390_gdbarch_init): Initializing proper fields used by SystemTap
530         probes' arguments parser.
531         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
532         * stap-probe.c: New file, for SystemTap probe support.
533         * stap-probe.h: Likewise.
534         * symfile.h: Include `gdb_vecs.h'.
535         (struct sym_probe_fns): New struct.
536         (struct sym_fns) <sym_probe_fns>: New field.
537         * symtab.c (init_sal): Initialize `probe' field.
538         * symtab.h (struct probe): Forward declaration.
539         (struct symtab_and_line) <probe>: New field.
540         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
541         locations.
542         (stop_tracing): Likewise.
543         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
544
545 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
546             Tom Tromey  <tromey@redhat.com>
547
548         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
549         and to compile agent expressions.
550         * infrun.c (siginfo_make_value): New argument `ignore'.
551         (siginfo_funcs): New struct.
552         (_initialize_infrun): New argument when calling
553         `create_internalvar_type_lazy'.
554         * thread.c (thread_id_make_value): New argument `ignore'.
555         (thread_funcs): New struct.
556         (_initialize_thread): New argument when calling
557         `create_internalvar_type_lazy'.
558         * tracepoint.c (sdata_make_value): New argument `ignore'.
559         (sdata_funcs): New struct.
560         (_initialize_tracepoint): New argument when calling
561         `create_internalvar_type_lazy'.
562         * value.c (make_value): New struct.
563         (create_internalvar_type_lazy): New argument `data'.
564         (compile_internalvar_to_ax): New function.
565         (value_of_internalvar): Properly handling `make_value' case.
566         (clear_internalvar): Likewise.
567         (show_convenience): Adding `TRY_CATCH' block.
568         * value.h (internalvar_make_value): Delete, replace by...
569         (struct internalvar_funcs): ... this.
570         (create_internalvar_type_lazy) <fun>: Delete argument.
571         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
572         (compile_internalvar_to_ax): New function.
573         * windows-tdep.c (tlb_make_value): New argument `ignore'.
574         (tlb_funcs): New struct.
575         (_initialize_windows_tdep): New argument when calling
576         `create_internalvar_type_lazy'.
577
578 2012-04-27  Mark Wielaard  <mjw@redhat.com>
579
580         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
581         see whether it is an address or a constant offset from DW_AT_low_pc.
582         (dwarf2_record_block_ranges): Likewise.
583         (read_partial_die): Likewise.
584
585 2012-04-26  Mark Wielaard  <mjw@redhat.com>
586
587         * MAINTAINERS (Write After Approval): Add myself to the list.
588
589 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
590
591         * proc-utils.h (proc_prettyprint_signalset): New prototype.
592         (proc_prettyprint_signal): Likewise.
593         (proc_prettyprint_faultset): Likewise.
594         (proc_prettyprint_fault): Likewise.
595         (proc_prettyprint_actionset): Likewise.
596         (proc_prettyprint_flags): Move to new proc-flags.c section.
597         (proc_prettyfprint_flags): New prototype.
598         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
599         (proc_syscall, proc_cursig): Likewise.
600         (proc_set_kill_on_last_close): Likewise.
601         (proc_unset_kill_on_last_close): Likewise.
602         (proc_set_watchpoint): Make static.
603         (proc_delete_dead_threads): Likewise.
604         (procfs_set_watchpoint): Likewise.
605         (_initialize_procfs): Add prototype.
606         * proc-events.c: Include proc-utils.h.
607         (init_syscall_table): Make static.
608         * proc-api.c (_initialize_proc_api): Add prototype.
609         * proc-flags.c: Include proc-utils.h.
610
611 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
612
613         * configure.ac: Add AC_ARG_PROGRAM.
614         * configure: Regenerate.
615
616 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
617
618         Fix DW_AT_lower_bound defaults for DWARF-4+.
619         * dwarf2read.c (read_subrange_type): Remove initialization of low and
620         high.  New variable low_default_is_valid.  Implement DWARF-4+
621         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
622         no default by the DWARF standard.
623
624 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
625             Maciej W. Rozycki  <macro@codesourcery.com>
626
627         * infrun.c (handle_inferior_event): Move the check for return
628         trampolines ahead of the check for function trampolines.
629         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
630         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
631         (mips_str_mips16_ret_stub): Likewise.
632         (mips_str_call_fp_stub): Likewise.
633         (mips_str_call_stub): Likewise.
634         (mips_str_fn_stub): Likewise.
635         (mips_str_pic): Likewise.
636         (mips_in_frame_stub): New function.
637         (mips_unwind_pc): Return the return address rather than the PC
638         if the PC of an intermediate frame is inside a call thunk.
639         (mips_is_stub_suffix): New function.
640         (mips_is_stub_mode): Likewise.
641         (mips_get_mips16_fn_stub_pc): Likewise.
642         (mips_skip_mips16_trampoline_code): Update to handle all the
643         currently generated stub types.  Don't recurse into __fn_stub
644         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
645         Use cooked register accesses.
646         (mips_in_return_stub): Reintroduce function.
647         (mips_skip_trampoline_code): Traverse trampolines recursively.
648         (mips_gdbarch_init): Handle MIPS16 return trampolines.
649
650 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
651
652         GDB 7.4.1 released.
653
654 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
655
656         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
657         * features/arm-with-m-vfp-d16.xml: New file. Describes
658         Cortex-M with VFPv4-sp-d16 FPU register layout.
659         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
660         * features/arm-with-m-vfp-d16.c: New. Generated from above.
661         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
662         (arm-register_g_packet_guesses): Add vfp-d16 guess.
663         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
664
665 2012-04-25  Doug Evans  <dje@google.com>
666
667         * cli/cli-decode.c (print_doc_line): Use stream instead of
668         current_uiout.
669
670 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
671
672         * features/arm-with-iwmmxt.c: Regenerate.
673         * features/arm-with-m-fpa-layout.c: Likewise.
674         * features/arm-with-m.c: Likewise.
675         * features/arm-with-neon.c: Likewise.
676         * features/arm-with-vfpv2.c: Likewise.
677         * features/arm-with-vfpv3.c: Likewise.
678         * features/mips-dsp-linux.c: Likewise.
679         * features/mips-linux.c: Likewise.
680         * features/mips64-dsp-linux.c: Likewise.
681         * features/mips64-linux.c: Likewise.
682         * features/s390-linux32.c: Likewise.
683         * features/s390-linux32v1.c: Likewise.
684         * features/s390-linux32v2.c: Likewise.
685         * features/s390-linux64.c: Likewise.
686         * features/s390-linux64v1.c: Likewise.
687         * features/s390-linux64v2.c: Likewise.
688         * features/s390x-linux64.c: Likewise.
689         * features/s390x-linux64v1.c: Likewise.
690         * features/s390x-linux64v2.c: Likewise.
691         * features/tic6x-c62x-linux.c: Likewise.
692         * features/tic6x-c62x.c: Likewise.
693         * features/tic6x-c64x-linux.c: Likewise.
694         * features/tic6x-c64x.c: Likewise.
695         * features/tic6x-c64xp-linux.c: Likewise.
696         * features/tic6x-c64xp.c: Likewise.
697         * target-descriptions.c: Only generate `field_type' and `type'
698         variables when needed.
699
700 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
701
702         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
703
704 2012-04-25  Doug Evans  <dje@google.com>
705
706         Initial pass at Go language support.
707         * NEWS: Mention Go.
708         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
709         go-valprint.c.
710         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
711         (YYFILES): Add go-exp.c.
712         (YYOBJ): Add go-exp.o.
713         (local-maintainer-clean): Delete go-exp.c.
714         * defs.h (enum language): Add language_go.
715         * dwarf2read.c: #include "go-lang.h".
716         (fixup_go_packaging): New function.
717         (process_full_comp_unit): Call it when processing Go CUs.
718         (dwarf2_physname): Add Go support.
719         (read_file_scope): Handle missing language spec for GNU Go.
720         (set_cu_language): Handle DW_LANG_Go.
721         * go-exp.y: New file.
722         * go-lang.h: New file.
723         * go-lang.c: New file.
724         * go-typeprint.c: New file.
725         * go-valprint.c: New file.
726         * symtab.c: #include "go-lang.h".
727         (symbol_set_language): Handle language_go.
728         (symbol_find_demangled_name, symbol_set_names): Ditto.
729         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
730
731 2012-04-24  Jim Meyering  <meyering@redhat.com>
732
733         avoid a few strncpy-induced buffer overruns
734         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
735         fname and psargs before trying to concatenate.
736         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
737         "name" before applying strchr.
738
739 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
740
741         * CONTRIBUTE: Use unified diff instead of context diff when
742         generating patches.
743
744 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
745
746         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
747         code.  Handle JR.HB correctly.
748
749 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
750
751         * mips-tdep.c
752         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
753         with the other MIPS16 helpers.
754
755 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
756
757         * observer.sh: Conditionally declare `args', thus cleaning up
758         unused instances of this variable.
759
760 2012-04-24  Yao Qi  <yao@codesourcery.com>
761
762         Revert this patch to allow breakpoint always-inserted
763         in record target.
764         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
765         * breakpoint.c: Include record.h.
766         (breakpoints_always_inserted_mode): Return false when the record
767         target is in use.
768
769         * breakpoint.c (iterate_over_bp_locations): New.
770         * breakpoint.h: Declare.
771         New typedef walk_bp_location_callback.
772         * record.c (record_open): Call record_init_record_breakpoints.
773         (record_sync_record_breakpoints): New.
774         (record_init_record_breakpoints): New.
775         * NEWS: Mention supporting breakpoint always-inserted mode in
776         record target.
777
778 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
779
780         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
781         any thread.
782
783 2012-04-24  Yao Qi  <yao@codesourcery.com>
784
785         * breakpoint.c (ep_is_catchpoint): Renamed to ...
786         (is_catchpoint): ... it.
787         (print_one_breakpoint_location): Caller update.
788         * breakpoint.h: Update declaration.
789
790 2012-04-23  David S. Miller  <davem@davemloft.net>
791
792         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
793
794 2012-04-23  Tom Tromey  <tromey@redhat.com>
795
796         * buildsym.c (add_free_pendings): Remove.
797         * buildsym.h (add_free_pendings): Remove.
798
799 2012-04-23  Doug Evans  <dje@google.com>
800
801         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
802         attr.u.unsnd instead of attr.u.addr.
803         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
804         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
805         DW_FORM_ref_udata.
806         (dump_die_shallow): Update cases DW_FORM_ref_addr,
807         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
808         DW_FORM_ref_udata.
809         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
810
811 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
812
813         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
814         (mips_o32_return_value): Likewise.
815         (mips_o64_return_value): Likewise.
816
817 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
818
819         * ada-lang.c (ada_evaluate_subexp): Add cases for
820         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
821         their treatment in eval.c.
822
823 2012-04-21  David S. Miller  <davem@davemloft.net>
824
825         * sparc-tdep.c (X_DISP10): Define.
826         (sparc_analyze_control_transfer): Handle compare-and-branch.
827
828 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
829
830         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
831         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
832
833 2012-04-20  Nigel Stephens  <nigel@mips.com>
834             Maciej W. Rozycki  <macro@codesourcery.com>
835
836         * mips-tdep.c (mips_float_register_p): New function.
837         (mips_convert_register_float_case_p): Use mips_float_register_p.
838         (mips_register_type): Likewise.
839         (mips_print_register): Likewise.
840         (print_gp_register_row): Likewise.
841         (mips_print_registers_info): Likewise.
842
843 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
844
845         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
846         of mips16 symbols.
847
848 2012-04-20  Andrew Pinski  <apinski@cavium.com>
849
850         * MAINTAINERS (Write After Approval): Add myself to the list.
851
852 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
853
854         * MAINTAINERS: Update my e-mail address.
855
856 2012-04-20  Pedro Alves  <palves@redhat.com>
857
858         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
859         $srcdir.
860         * configure: Regenerate.
861
862 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
863
864         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
865         declaration.
866         * gdb_vecs.h: Declare `const_char_ptr' VEC.
867
868 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
869
870         Fix compilation compatibility with python-2.4
871         * python/py-type.c (convert_field): Cast ADDRSTRING for
872         PyObject_SetAttrString as non-const.  New comment.
873
874 2012-04-19  Tom Tromey  <tromey@redhat.com>
875
876         * top.c (quit_target): Use all_cleanups.
877         * main.c (captured_command_loop): Use all_cleanups.
878         * exceptions.c (throw_exception): Use all_cleanups.
879
880 2012-04-19  Pedro Alves  <palves@redhat.com>
881
882         * Makefile.in (GNULIB_BUILDDIR): New.
883         (LIBGNU, INCGNU, GNULIB_H): Adjust.
884         (SUBDIRS): Add $(GNULIB_BUILDDIR).
885         (CLEANDIRS). Remove gnulib/import.
886         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
887         (all-lib): Ditto.
888         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
889         (gnulib/import/Makefile): Replace gnulib/import with
890         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
891         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
892         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
893         acx_configure_dir.m4.
894         * acinclude.m4: Include acx_configure_dir.m4.
895         * acx_configure_dir.m4: New file.
896         * aclocal.m4: Regenerate.
897         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
898         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
899         (GNULIB): New variable.
900         (GNULIB_STDINT_H): Adjust.
901         (AC_OUTPUT): Don't output gnulib/Makefile.
902         * gdb/defs.h: Include build-gnulib/config.h.
903         * aclocal.m4: Regenerate.
904         * config.in: Regenerate.
905         * configure: Regenerate.
906
907         * gnulib/Makefile.in: New file.
908         * gnulib/configure.ac: New file.
909         * gnulib/aclocal.m4: New file.
910         * gnulib/config.in: New file.
911         * gnulib/configure: New file.
912         * gnulib/: Re-run gnulib-tool to adjust.
913
914 2012-04-19  Doug Evans  <dje@google.com>
915
916         * cleanups.h (struct cleanup): Move to cleanups.c.
917         (make_cleanup_dtor_ftype): New typedef.
918         (make_cleanup_dtor): Use it.
919         (ALL_CLEANUPS): Replace with ...
920         (all_cleanups): ... this.  Declare.  All uses updated.
921         * cleanups.c: #include "gdb_assert.h".
922         (sentinel_cleanup): New static global.
923         (SENTINEL_CLEANUP): Define.
924         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
925         (make_my_cleanup2): Assert result is non-NULL.
926         (all_cleanups): New function.
927         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
928         of NULL.
929
930 2012-04-19  Pedro Alves  <palves@redhat.com>
931
932         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
933         Adjust paths to gnulib imported files.
934
935 2012-04-19  Pedro Alves  <palves@redhat.com>
936
937         * gnulib/: Move whole directory ...
938         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
939         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
940         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
941         (aclocal_m4_deps): Adjust.
942         * aclocal.m4: Regenerate.
943         * configure: Regenerate.
944         * configure.ac: Adjust AC_OUTPUT output.
945
946 2012-04-19  Yao Qi  <yao@codesourcery.com>
947
948         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
949         (vec.o): New rule.
950         * vec.c: Move it ...
951         * common/vec.c: ... here.
952         * vec.h: Move it ...
953         * common/vec.h: ... here.
954
955 2012-04-19  Yao Qi  <yao@codesourcery.com>
956
957         * gdb-code-style.el: New.
958
959 2012-04-18  Pedro Alves  <palves@redhat.com>
960
961         Update gnulib from latest git.
962         (639ea5ae15e39fe48d43e04864b2997301e4b969)
963
964         * gnulib/Makefile.am: Update.
965         * gnulib/dummy.c: Update.
966         * gnulib/extra/arg-nonnull.h: Update.
967         * gnulib/extra/c++defs.h: Update.
968         * gnulib/extra/update-copyright: Update.
969         * gnulib/extra/warn-on-use.h: Update.
970         * gnulib/inttypes.in.h: Update.
971         * gnulib/m4/00gnulib.m4: Update.
972         * gnulib/m4/extensions.m4: Update.
973         * gnulib/m4/gnulib-cache.m4: Update.
974         * gnulib/m4/gnulib-common.m4: Update.
975         * gnulib/m4/gnulib-comp.m4: Update.
976         * gnulib/m4/gnulib-tool.m4: Update.
977         * gnulib/m4/include_next.m4: Update.
978         * gnulib/m4/inttypes-pri.m4: Update.
979         * gnulib/m4/inttypes.m4: Update.
980         * gnulib/m4/longlong.m4: Update.
981         * gnulib/m4/memchr.m4: Update.
982         * gnulib/m4/memmem.m4: Update.
983         * gnulib/m4/mmap-anon.m4: Update.
984         * gnulib/m4/multiarch.m4: Update.
985         * gnulib/m4/onceonly.m4: Update.
986         * gnulib/m4/stddef_h.m4: Update.
987         * gnulib/m4/stdint.m4: Update.
988         * gnulib/m4/string_h.m4: Update.
989         * gnulib/m4/warn-on-use.m4: Update.
990         * gnulib/m4/wchar_h.m4: Update.
991         * gnulib/m4/wchar_t.m4: Update.
992         * gnulib/m4/wint_t.m4: Update.
993         * gnulib/memchr.c: Update.
994         * gnulib/memmem.c: Update.
995         * gnulib/stddef.in.h: Update.
996         * gnulib/stdint.in.h: Update.
997         * gnulib/str-two-way.h: Update.
998         * gnulib/string.in.h: Update.
999         * gnulib/wchar.in.h: Update.
1000
1001         * gnulib/extra/arg-nonnull.h: Delete.
1002         * gnulib/extra/c++defs.h: Delete.
1003         * gnulib/extra/warn-on-use.h: Delete.
1004         * gnulib/m4/wchar_h.m4: Delete.
1005         * gnulib/m4/wint_t.m4: Delete.
1006         * gnulib/wchar.in.h: Delete.
1007
1008         * gnulib/extra/snippets/arg-nonnull.h: New.
1009         * gnulib/extra/snippets/c++defs.h: New.
1010         * gnulib/extra/snippets/warn-on-use.h: New.
1011
1012         * aclocal.m4: Regenerate.
1013         * config.in: Regenerate.
1014         * configure: Regenerate.
1015         * gnulib/Makefile.in: Regenerate.
1016
1017 2012-04-18  Pedro Alves  <palves@redhat.com>
1018
1019         Reimport the update-copyright module from gnulib
1020         (250b80067c1e1d8faa0c42fb572f721975b929c5).
1021
1022         * configure: Regenerate.
1023         * gnulib/Makefile.am: Update.
1024         * gnulib/Makefile.in: Regenerate.
1025         * gnulib/extra/update-copyright: Update.
1026         * gnulib/m4/gnulib-cache.m4: Update.
1027         * gnulib/m4/gnulib-comp.m4: Update.
1028
1029 2012-04-18  Tristan Gingold  <gingold@adacore.com>
1030
1031         * configure.ac (aix): Put -lpthread into libs.
1032         * configure: Regenerate.
1033
1034 2012-04-18  Tom Tromey  <tromey@redhat.com>
1035
1036         * linespec.c (convert_linespec_to_sals): Don't use
1037         SYMBOL_OBJ_SECTION.
1038         (compare_msymbols): Arguments are minsym_and_objfile, not
1039         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
1040
1041 2012-04-18  Pedro Alves  <palves@redhat.com>
1042
1043         Revert gnulib/ part of:
1044         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
1045         Copyright year update in most files (performed by copyright.sh).
1046
1047 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1048
1049         Fix 64-bit constants on 32-bit hosts.
1050         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1051         from unsigned long to ULONGEST.
1052         (read_signed_leb128): Change declaration return type from long to
1053         LONGEST.
1054         (dwarf2_const_value_attr): Change declaration parameter value from long
1055         to LONGEST.
1056         (dwarf2_compute_name): Change variable value from long to LONGEST.
1057         (read_unsigned_leb128): Change return type, variable result and some
1058         casts from unsigned long to ULONGEST.
1059         (read_signed_leb128): Change return type, variable result and some
1060         casts from long to LONGEST.
1061         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1062         value from long to LONGEST.
1063         (dwarf2_const_value): Change variable value from long to LONGEST.
1064         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1065         plongest and hex_string.
1066         * symtab.h (struct general_symbol_info): Change ivalue from long to
1067         LONGEST, remove the comment.
1068         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1069         Change SYMBOL_VALUE format strings to use plongest and hex_string.
1070
1071 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1072
1073         PR symtab/7259:
1074         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1075         * ada-lang.c (ada_discrete_type_high_bound)
1076         (ada_discrete_type_low_bound): Fix function comment.  Use
1077         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1078         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1079         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1080         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1081         Use TYPE_FIELD_ENUMVAL.
1082         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1083         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1084         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1085         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
1086         TYPE_CODE_ENUM.
1087         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1088         * dwarf2read.c (process_enumeration_scope): Likewise.
1089         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1090         field.bitpos.
1091         (class StructMainTypePrettyPrinter): Support also
1092         FIELD_LOC_KIND_ENUMVAL.
1093         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1094         TYPE_CODE_ENUM.
1095         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1096         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1097         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1098         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
1099         field enumval.
1100         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1101         accommodate enumval.
1102         (struct call_site): Adjust loc_kind to accommodate enumval.
1103         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1104         (TYPE_FIELD_ENUMVAL): New macros.
1105         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1106         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1107         TYPE_CODE_ENUM.
1108         * p-typeprint.c (pascal_type_print_base): Likewise.
1109         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1110         enumval.
1111         * python/lib/gdb/types.py (make_enum_dict): Likewise.
1112         * python/py-type.c (convert_field): New variable addrstring.  Use
1113         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1114         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1115         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1116         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1117         TYPE_CODE_ENUM.
1118         * valprint.c (generic_val_print): Likewise.
1119
1120 2012-04-17  Doug Evans  <dje@google.com>
1121
1122         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1123
1124         * dwarf2read.c: Whitespace fixes.
1125         (lookup_signatured_type): Tweak comment.
1126         (get_die_type_at_offset): Fix comment.
1127
1128 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
1129
1130         * xcoffread.c (xcoff_secnum_to_sections): New function.
1131         (secnum_to_section, secnum_to_bfd_section): Reimplement
1132         using xcoff_secnum_to_sections.  Rename "secnum" parameter
1133         into "n_scnum".
1134         (RECORD_MINIMAL_SYMBOL): Delete.
1135         (record_minimal_symbol): New function.
1136         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1137         by call to record_minimal_symbol and set misc_func_recorded
1138         to 1.  Set last_csect_sec to the XCOFF section index instead
1139         of GDB's section_offset index.  Update calls to
1140         prim_record_minimal_symbol_and_info to pass the BFD section
1141         as well.
1142
1143 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
1144
1145         * xcoffread.c (read_xcoff_symtab): Delete variables
1146         last_csect_val and last_csect_sec and associated code.
1147
1148 2012-04-17  Doug Evans  <dje@google.com>
1149
1150         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1151         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1152         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1153         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1154
1155         * cleanups.h: New file.
1156         * cleanups.c: New file.
1157         * Makefile.in (SFILES): Add cleanups.c.
1158         (HFILES_NO_SRCDIR): Add cleanups.h.
1159         (COMMON_OBS): Add cleanups.o.
1160         * defs.h (struct cleanup): Moved to cleanups.h.
1161         (do_cleanups,do_final_cleanups): Ditto.
1162         (discard_cleanups,discard_final_cleanups): Ditto
1163         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1164         (save_cleanups,save_final_cleanups): Ditto.
1165         (restore_cleanups,restore_final_cleanups): Ditto.
1166         (null_cleanup): Ditto.
1167         (make_my_cleanup,make_my_cleanup2): Ditto.
1168         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1169         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1170         (do_cleanups,do_final_cleanups): Ditto.
1171         (discard_cleanups,discard_final_cleanups): Ditto
1172         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1173         (save_cleanups,save_final_cleanups): Ditto.
1174         (restore_cleanups,restore_final_cleanups): Ditto.
1175         (null_cleanup): Ditto.
1176         (make_my_cleanup,make_my_cleanup2): Ditto.
1177         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1178
1179         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1180         make_my_cleanup.
1181         (make_cleanup_dyn_string_delete): Ditto.
1182         (make_cleanup_ui_file_delete): Ditto.
1183         (make_cleanup_ui_out_redirect_pop): Ditto.
1184         (make_cleanup_free_section_addr_info): Ditto.
1185         (make_cleanup_restore_integer): Ditto.
1186         (make_cleanup_unpush_target): Ditto.
1187         (make_cleanup_value_free_to_mark): Ditto.
1188         (make_cleanup_value_free): Ditto.
1189         (make_cleanup_free_so): Ditto.
1190
1191 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1192
1193         New option "set debug auto-load".
1194         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1195         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1196         (auto_load_safe_path_vec_update)
1197         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1198         if DEBUG_AUTO_LOAD.
1199         (file_is_auto_load_safe): New parameters debug_fmt and ....
1200         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1201         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1202         caller by explanatory string.
1203         (_initialize_auto_load): Register "set debug auto-load".
1204         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1205         and ....
1206         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1207         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1208         by explanatory string.
1209         * main.c (captured_main): Likewise.
1210         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1211         (source_section_scripts): Likewise.
1212
1213 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1214
1215         New option "set auto-load safe-path".
1216         * NEWS: New commands "set auto-load safe-path"
1217         and "show auto-load safe-path".
1218         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1219         (auto_load_safe_path, auto_load_safe_path_vec)
1220         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1221         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1222         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1223         (source_gdb_script_for_objfile): New variable is_safe.  Call
1224         file_is_auto_load_safe.  Return if it is not.
1225         (struct loaded_script): New field loaded.
1226         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
1227         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
1228         output "Missing" to "No".
1229         (_initialize_auto_load): New variable cmd.  Initialize
1230         auto_load_safe_path.  Register "set auto-load safe-path",
1231         "show auto-load safe-path" and "add-auto-load-safe-path".
1232         * auto-load.h (maybe_add_script): Add parameter loaded.
1233         (file_is_auto_load_safe): New declaration.
1234         * config.in: Regenerate.
1235         * configure: Regenerate.
1236         * configure.ac: New parameters --with-auto-load-safe-path
1237         and --without-auto-load-safe-path.
1238         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1239         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1240         * main.c (captured_main): Check file_is_auto_load_safe for
1241         LOCAL_GDBINIT.
1242         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1243         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
1244         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
1245         not.
1246
1247 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1248
1249         auto-load: Implementation.
1250         * NEWS: New descriptions for "info auto-load",
1251         "info auto-load gdb-scripts", "info auto-load python-scripts",
1252         "info auto-load local-gdbinit" and "info auto-load libthread-db".
1253         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1254         and "show auto-load-scripts".  New description for "set auto-load",
1255         "show auto-load", "set auto-load gdb-scripts",
1256         "show auto-load gdb-scripts", "set auto-load python-scripts",
1257         "show auto-load python-scripts", "set auto-load local-gdbinit",
1258         "show auto-load local-gdbinit", "set auto-load libthread-db" and
1259         "show auto-load libthread-db".
1260         * auto-load.c: Remove include python/python-internal.h.  Add includes
1261         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1262         cli/cli-setshow.h.
1263         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1264         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1265         (gdbpy_global_auto_load): Rename to ...
1266         (global_auto_load): ... here.
1267         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1268         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1269         (script_language_gdb, source_gdb_script_for_objfile): New.
1270         (struct loaded_script): New field language.
1271         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1272         LANGUAGE.
1273         (maybe_add_script): Add parameter language.  Drop redundant
1274         entry.full_path initialization.  Initialize entry.language and
1275         (*slot)->language.
1276         (auto_load_objfile_script): Change parameter suffix to language.
1277         Remove the call of maybe_add_script.
1278         Call language->source_script_for_objfile.
1279         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1280         New.
1281         (collect_matching_scripts): Adjust it for
1282         struct collect_matching_scripts_data.
1283         (auto_load_info_scripts_pattern_nl): New variable.
1284         (info_auto_load_scripts): Rename to ...
1285         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
1286         for struct collect_matching_scripts_data.
1287         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1288         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1289         (auto_load_show_cmdlist_get, info_auto_load_cmd)
1290         (auto_load_info_cmdlist_get): New.
1291         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1292         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
1293         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1294         "info auto-load local-gdbinit".
1295         * auto-load.h (struct script_language): New.
1296         (gdbpy_global_auto_load): Rename to ...
1297         (global_auto_load): ... here.
1298         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1299         (auto_load_local_gdbinit_loaded): New declarations.
1300         (maybe_add_script): New parameter language.
1301         (auto_load_objfile_script): Change parameter suffix to language.
1302         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1303         (auto_load_info_scripts, auto_load_set_cmdlist_get)
1304         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1305         declarations.
1306         * linux-thread-db.c: Include auto-load.h and ctype.h.
1307         (auto_load_thread_db, show_auto_load_thread_db): New.
1308         (struct thread_db_info): New field filename.
1309         (delete_thread_db_info): Call xfree for FILENAME.
1310         (try_thread_db_load): Initialize FILENAME.
1311         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1312         if !AUTO_LOAD_THREAD_DB.
1313         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1314         (_initialize_thread_db): Install auto_load_thread_db
1315         as "set auto-load libthread-db" and install info_auto_load_libthread_db
1316         as "info auto-load libthread-db".
1317         * main.c (captured_main): Rename gdbpy_global_auto_load to
1318         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1319         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1320         (print_gdb_help): Extend the help for 'local init file'.
1321         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1322         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1323         (auto_load_scripts): Rename to ...
1324         (auto_load_python_scripts): ... here, update the comment.
1325         (gdbpy_load_auto_script_for_objfile): New declaration.
1326         (show_auto_load_python_scripts, script_language_python)
1327         (gdbpy_load_auto_script_for_objfile): New.
1328         (source_section_scripts): Refactor the code.
1329         (load_auto_scripts_for_objfile): Rename to ...
1330         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1331         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1332         (info_auto_load_python_scripts): New.
1333         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1334         Rename "set auto-load-scripts" to "set auto-load python-scripts".
1335         Register "set auto-load-scripts" as its deprecated alias.  Register
1336         "info auto-load python-scripts".  Register "info auto-load-scripts" as
1337         its deprecated alias.
1338         (load_auto_scripts_for_objfile): Rename to ...
1339         (gdbpy_load_auto_scripts_for_objfile): ... here.
1340         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1341         (gdbpy_load_auto_scripts_for_objfile): ... here.
1342
1343 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1344
1345         auto-load: Move files.
1346         * Makefile.in (SFILES): Add auto-load.c.
1347         (HFILES_NO_SRCDIR): Add auto-load.h.
1348         (COMMON_OBS): Add auto-load.o.
1349         (distclean): Change .gdbinit for gdb-gdb.gdb.
1350         * auto-load.c: New file, with parts from python/py-auto-load.c.
1351         * auto-load.h: New file, with parts from python/python.h.
1352         * configure: Regenerate.
1353         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1354         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1355         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1356         * main.c: Include auto-load.h.
1357         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1358         command.h, observer.h and progspace.h to auto-load.c.  Add include
1359         auto-load.h.
1360         (gdbpy_global_auto_load, struct auto_load_pspace_info)
1361         (struct loaded_script, auto_load_pspace_data)
1362         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1363         (hash_loaded_script_entry, eq_loaded_script_entry)
1364         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1365         (maybe_add_script): Move to auto-load.c.
1366         (source_section_scripts): Change maybe_add_script parameters passing,
1367         use script_not_found_warning_print.
1368         (clear_section_scripts, auto_load_objfile_script)
1369         (auto_load_new_objfile, loaded_script_ptr)
1370         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1371         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1372         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1373         auto_load_new_objfile and info_auto_load_scripts initizations to
1374         auto-load.c.
1375         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1376
1377 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1378
1379         Code cleanup.
1380         * charset.c (find_charset_names): Remove variables ix and elt.
1381         Use free_char_ptr_vec.
1382         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1383         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
1384         debugdir_end.  New variable debugdir_len.
1385         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1386         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1387         declarations.
1388         * progspace.c (clear_program_space_solib_cache): Remove variables ix
1389         and elt.  Use free_char_ptr_vec.
1390         * source.c (add_path): Remove variables argv, arg and argv_index.
1391         New variables dir_vec, back_to, ix and name.
1392         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
1393         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
1394         no longer expecting DIRNAME_SEPARATOR.
1395         (openp): Remove variable p, p1 and len.  New variables dir_vec,
1396         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
1397         no longer expecting DIRNAME_SEPARATOR.
1398         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1399         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
1400         debugdir_end.
1401         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1402         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1403         (dirnames_to_char_ptr_vec): New functions.
1404
1405 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1406
1407         Code cleanup.
1408         * source.c (add_path): Remove always true conditional 'p == 0' and
1409         unindent its code block.
1410
1411 2012-04-17  Pedro Alves  <palves@redhat.com>
1412
1413         * gdbtypes.h (FIELD_BITPOS): Rename to ...
1414         (FIELD_BITPOS_LVAL): ... this.
1415         (FIELD_BITPOS): New.
1416         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1417         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1418         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1419         SET_FIELD_BITPOS.
1420         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1421         SET_FIELD_BITPOS.
1422         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1423         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1424         * target-descriptions.c (tdesc_gdb_type): Adjust to use
1425         SET_FIELD_BITPOS.
1426
1427 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1428
1429         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1430         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1431         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1432         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1433         * jv-lang.c (java_link_class_type): Likewise, once.
1434         * stabsread.c (read_enum_type): Likewise.
1435
1436 2012-04-16  Yao Qi  <yao@codesourcery.com>
1437
1438         * common/agent.c (agent_run_command): Add one more parameter `len'.
1439         Update callers.
1440         * common/agent.h: Update declaration.
1441         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1442         Update.
1443         (linux_child_static_tracepoint_markers_by_strid): Ditto.
1444
1445 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
1446
1447         PR mi/13393
1448         * value.c (value_actual_type): New function.
1449         * value.h (value_actual_type): New declaration.
1450         * varobj.c (update_type_if_necessary): New function.
1451         (varobj_create): Call value_actual_type instead of
1452         value_type.
1453         (install_dynamic_child): distinct changed and type changed MI variable
1454         objects.
1455         (update_dynamic_varobj_children): Updated for install_dynamic_child
1456         change.  All callers updated.
1457         (varobj_update): Support for MI variable object type change if
1458         the value changed and RTTI is used to determine the type.
1459         (create_child_with_value): Call value_actual_type instead of
1460         value_type.
1461         (adjust_value_for_child_access): Extended with a new parameter which
1462         specify whether the given value should be casted to enclosing type.
1463         All callers updated.
1464
1465 2012-04-14  Yao Qi  <yao@codesourcery.com>
1466
1467         Import gnulib module inttypes from git
1468         (250b80067c1e1d8faa0c42fb572f721975b929c5)
1469         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
1470         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1471         gnulib/m4/inttypes-pri.m4
1472         * aclocal.m4, config.in, configure: Regenerated.
1473         * gnulib/Makefile.am: Update.
1474         * gnulib/Makefile.in: Update.
1475         * gnulib/m4/gnulib-cache.m4: Update.
1476         * gnulib/m4/gnulib-comp.m4: Update.
1477         * gnulib/inttypes.in.h: New.
1478         * gnulib/m4/inttypes-pri.m4: New.
1479         * gnulib/m4/inttypes.m4: New.
1480
1481 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
1482
1483         * infrun.c (resume): Update PC address to the real PC after
1484         preparing to do displaced stepping.
1485
1486 2012-04-12  Doug Evans  <dje@google.com>
1487
1488         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1489         All callers updated.
1490
1491 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
1492
1493         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1494
1495 2012-04-12  Doug Evans  <dje@google.com>
1496
1497         * dwarf2read.c (create_all_type_units): Renamed from
1498         create_debug_types_hash_table.  All callers updated.
1499
1500         * dwarf2read.c (create_signatured_type_table_from_index): Rename
1501         local type_sig to sig_type, type_offset to type_offset_in_tu.
1502         (hash_signatured_type): Renamed from hash_type_signature,
1503         all callers updated.
1504         (eq_signatured_type): Renamed from eq_type_signature,
1505         all callers updated.
1506         (create_debug_types_hash_table): Rename local type_sig to sig_type.
1507         (process_enumeration_scope): Ditto.
1508         (lookup_signatured_type_at_offset): Ditto.
1509         (load_full_type_unit, read_signatured_type): Ditto.
1510
1511 2012-04-12  Yao Qi  <yao@codesourcery.com>
1512
1513         * remote.c (async_remote_interrupt): Correct function name in
1514         debug message.
1515         (async_remote_interrupt_twice): Ditto.
1516
1517 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
1518
1519         * source.c (find_and_open_source): Consistently pass resulting
1520         full path through xfullpath.
1521
1522 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1523
1524         Provide more specific displaced-stepping memory error message.
1525         * infrun.c (displaced_step_prepare): New variable status.  Call
1526         target_read_memory instead of read_memory, provide more specific
1527         error message.
1528
1529 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1530
1531         PR gdb/13901
1532         * darwin-nat.c (darwin_execvp): Revert previous patch.
1533
1534 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1535
1536         PR gdb/13901
1537         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1538         in case of change.
1539
1540 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1541
1542         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1543         warning.
1544
1545 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
1546
1547         New command 'explore' which helps explore values and types in
1548         scope.
1549         * NEWS: Add an entry about the new 'explore' command.
1550         * data-directory/Makefile.in: Add gdb/command/explore.py
1551         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
1552         command using the GDB Python API.
1553
1554 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
1555
1556         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1557         extension in jump target calculation.
1558
1559 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
1560
1561         * mips-tdep.c (mips32_next_pc): Handle JALX.
1562
1563 2012-04-10  Yao Qi  <yao@codesourcery.com>
1564
1565         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1566
1567 2012-04-10  Yao Qi  <yao@codesourcery.com>
1568
1569         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1570         and gnulib/m4/gnulib-tool.m4.
1571
1572 2012-04-10  Doug Evans  <dje@google.com>
1573
1574         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1575         (load_partial_dies): Clarify comment.
1576         (find_partial_die): Support rereading type units.
1577         Clarify CU handling, if we know offset is in CU, don't search for the
1578         containing CU.  Add comment regarding memory waste.
1579
1580 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1581
1582         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1583         i386/x32-avx and i386/x32-avx-linux.
1584         (i386/x32-expedite): New.
1585         (i386/x32-linux-expedite): Likewise.
1586         (i386/x32-avx-expedite): Likewise.
1587         (i386/x32-avx-linux-expedite): Likewise.
1588         ($(outdir)/i386/x32.dat): Likewise.
1589         ($(outdir)/i386/x32-linux.dat): Likewise.
1590         ($(outdir)/i386/x32-avx.dat): Likewise.
1591         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1592
1593         * features/i386/x32-avx-linux.xml: New file.
1594         * features/i386/x32-avx.xml: Likewise.
1595         * features/i386/x32-core.xml: Likewise.
1596         * features/i386/x32-linux.xml: Likewise.
1597         * features/i386/x32.xml: Likewise.
1598
1599         * features/i386/x32-avx-linux.c: New.  Generated.
1600         * features/i386/x32-avx.c: Likewise.
1601         * features/i386/x32-linux.c: Likewise.
1602         * features/i386/x32.c: Likewise.
1603         * regformats/i386/x32-avx-linux.dat: Likewise.
1604         * regformats/i386/x32-avx.dat: Likewise.
1605         * regformats/i386/x32-linux.dat: Likewise.
1606         * regformats/i386/x32.dat: Likewise.
1607
1608 2012-04-10  Tristan Gingold  <gingold@adacore.com>
1609
1610         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1611         code to kill the inferior.
1612
1613 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
1614
1615         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1616         defines.
1617         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1618         defines.
1619         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
1620         (yyvsp): New defines.
1621         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1622         defines.
1623         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1624         defines.
1625         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1626         defines.
1627         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1628         defines.
1629         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1630         defines.
1631
1632 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
1633
1634         * sparc64-tdep.c (sparc64_store_arguments)
1635         (sparc64_store_arguments): Fix coding style.
1636
1637 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
1638
1639         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1640         complex floats, adjust some related comments and tighten a related
1641         assertion.
1642         (sparc64_extract_return_value): Handle complex floats.
1643
1644 2012-04-07  Doug Evans  <dje@google.com>
1645
1646         * dwarf2read.c (load_partial_dies): Change condition to assert.
1647
1648 2012-04-06  Doug Evans  <dje@google.com>
1649
1650         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1651         "mov %rsp,%rbp".
1652
1653 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
1654
1655         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1656         fencepost error.
1657         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1658         (v850_gdbarch_init): Set `num_regs' as appropriate for the
1659         architecture.
1660
1661 2012-04-05  Keith Seitz  <keiths@redhat.com>
1662
1663         * linespec.c (decode_compound): Remove.
1664         (enum offset_relative_sign): New enum.
1665         (struct line_offset): New struct.
1666         (struct linespec): New struct.
1667         (struct linespec_state): Move file_symtabs,
1668         user_filename, and user_function into struct linespec.
1669         Make result an anonymous struct holding vectors of
1670         symbolp and minsym_and_objfile_d.
1671         Add language member.
1672         (enum ls_token_type): New enum.
1673         (linespec_keywords): New array.
1674         (struct ls_token): New struct.
1675         (struct ls_parser): New struct.
1676         (linespec_lexer_lex_number): New function.
1677         (linespec_lexer_lex_keyword): New function.
1678         (is_ada_operator): New function.
1679         (skip_quote_char): New function.
1680         (copy_token_string): New function.
1681         (is_closing_quote_enclosed): New function.
1682         (find_parameter_list_end): New function.
1683         (linespec_lexer_lex_string): New function.
1684         (linespec_lexer_lex_one): New function.
1685         (linespec_lexer_consume_token): New function.
1686         (linespec_lexer_peek_token): New function.
1687         (cplusplus_error): Remove unused function.
1688         (find_methods): Update comment.
1689         (find_toplevel_char): Return const.
1690         (is_objc_method_format): Remove unused function.
1691         (find_toplevel_string): New function.
1692         (is_linespec_boundary): Remove.
1693         (symbol_not_found_error): New function.
1694         (find_method_overload_end): Remove function.
1695         (unexpected_linespec_error): New function.
1696         (keep_name_info): Remove.
1697         (linespec_parse_line_offset): New function.
1698         (linespec_parse_basic): New function.
1699         (canonicalize_linespec): New function.
1700         (decode_line_internal): Remove.
1701         (create_sals_line_offset): New function adapted from
1702         decode_all_digits.
1703         (convert_linespec_to_sals): New function.
1704         (parse_linespec): New function.
1705         (linespec_parser_new): New function.
1706         (linespec_state_destructor): Change parameter type to
1707         struct linespec_state *.
1708         Add language parameter.
1709         Remove freeing of moved members.
1710         (linespec_parser_delete): New function.
1711         (decode_line_full): Use parse_linespec and linespec_parser_new.
1712         (decode_line_1): Likewise.
1713         (decode_indirect): Rename to ...
1714         (linespec_expression_to_pc): ... this and rewrite
1715         to simply find CORE_ADDR, storing this result for later
1716         conversion to SALs.
1717         (locate_first_half): Remove.
1718         (deocde_objc): Add parameter LS.
1719         Initialize new struct collect_info members.
1720         Handle minimal symbols, too.
1721         (decode_compound): Delete.
1722         (lookup_prefix_sym): Rewrite.
1723         (compare_msymbols): New function.
1724         (find_method): Rewrite.
1725         Do not call cplusplus_error.
1726         (symtabs_from_filename): Rewrite.
1727         (collect_function_symbols): Delete.
1728         (find_function_symbols): Rewrite without ARGPTR-style
1729         processing.
1730         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1731         (decode_dollar): Adapted and renamed to ...
1732         (linespec_parse_variable): ... this.
1733         (find_linespec_symbols): New function.
1734         (decode_label): Adapted and renamed to ...
1735         (find_label_symbols): ... this.
1736         (decode_digits_list_mode): Add and use LS argument.
1737         (decode_digits_ordinary): Likewise.
1738         (collect_symbols): Do not collect SALs, just symbols and msymbols.
1739         If in list mode, allow any symbol class.  Otherwise, only
1740         permit LOC_BLOCK symbols.
1741         (minsym_found): Update comments.
1742         (search_minsyms_for_name): Do not convert the matching symbol
1743         into a SAL.  Simply push the symbol and objfile into the
1744         result vector.
1745         (decode_variable): Delete. Contents adapted into
1746         find_linespec_symbols.
1747
1748         * cp-support.c (SKIP_SPACE): Remove.
1749         (operator_tokens): Remove unused global.
1750         (cp_validate_operator): Remove.
1751         * cp-support.h (cp_validate_operator): Remove declaration.
1752
1753 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1754
1755         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1756         for TYPE_VPTR_FIELDNO.
1757         * valprint.c (valprint_check_validity): Make it global, move the
1758         function comment ...
1759         * value.h (valprint_check_validity): ... to this new declaration.
1760
1761 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1762
1763         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1764         the STATE32 api for i386 state.
1765         (i386_darwin_store_inferior_registers): Likewise.
1766
1767 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1768
1769         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1770         SS offset.
1771         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1772         format_string.
1773
1774 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1775
1776         PR gdb/13901
1777         * darwin-nat.c (darwin_execvp): Set binary preference.
1778
1779 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1780
1781         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1782
1783 2012-03-30  Tom Tromey  <tromey@redhat.com>
1784
1785         * python/python.c (gdbpy_decode_line): Move cleanup creation out
1786         of TRY_CATCH.  Fix error handling.
1787         * python/py-value.c (convert_value_from_python): Move 'old'
1788         declaration to innermost scope.
1789
1790 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1791             Andrey Smirnov  <andrew.smirnov@gmail.com>
1792
1793         -Wshadow warning fix.
1794         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1795         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1796         Adjust code accordingly.
1797
1798 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1799
1800         * ada-lang.c (symbol_completion_add): Rename parameter
1801         "encoded" into "encoded_p".  Ajust code and documentation
1802         accordingly.
1803
1804 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1805             Andrey Smirnov  <andrew.smirnov@gmail.com>
1806
1807         -Wshadow warning fix.
1808         * ada-lang.c (symbol_completion_add): Rename parameter
1809         "wild_match" into wild_match_p.  Update code and documentation
1810         accordingly.
1811
1812 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1813
1814         * ada-lang.c (symbol_completion_match): Rename parameter
1815         "encoded" into "encoded_p".  Ajust code and documentation
1816         accordingly.
1817
1818 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1819             Andrey Smirnov  <andrew.smirnov@gmail.com>
1820
1821         -Wshadow warning fix.
1822         * ada-lang.c (symbol_completion_match): Rename parameter
1823         "wild_match" into "wild_match_p".  Adjust code and function
1824         documentation accordingly.
1825
1826 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1827             Andrey Smirnov  <andrew.smirnov@gmail.com>
1828
1829         -Wshadow warning fix.
1830         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1831         "symbol_info" into "info".  Adjust code accordingly.
1832         (ada_lookup_symbol): Likewise.
1833
1834 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1835
1836         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1837         of this function's documentation.
1838
1839 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1840             Andrey Smirnov  <andrew.smirnov@gmail.com>
1841
1842         -Wshadow warning fix.
1843         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1844         variable into "wild_match_p".  Adjust code accordingly.
1845
1846 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1847             Andrey Smirnov  <andrew.smirnov@gmail.com>
1848
1849         -Wshadow warning fix.
1850         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1851         parameter into "wild_match_p".  Adjust code accordingly.
1852         Document this parameter in the function description.
1853
1854 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1855             Andrey Smirnov  <andrew.smirnov@gmail.com>
1856
1857         -Wshadow warning fix.
1858         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1859         "wild_match" parameter to "wild_match_p" (-Wshadow).
1860
1861 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1862
1863         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1864         in function documentation.
1865
1866 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1867             Andrey Smirnov  <andrew.smirnov@gmail.com>
1868
1869         -Wshadow warning fix.
1870         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1871         variable into wild_match_p.  Adjust code accordingly.
1872
1873 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1874             Andrey Smirnov  <andrew.smirnov@gmail.com>
1875
1876         * ada-valprint.c (ada_val_print_1): Move the code handling
1877         TYPE_CODE_ENUM inside its own lexical block.  Declare
1878         variables len and val there, instead of in the function's
1879         top level block.  Avoid declaring deref_val again in a way
1880         that shadows another variable of the same name declared
1881         in one of the up-level blocks.  Just re-use the up-level
1882         variable instead.
1883
1884 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1885
1886         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1887         Replace block_found argument by symbol_info.  Adjust
1888         implementation accordingly.  Add function documentation.
1889         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1890         Fix documentation.
1891         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1892         * ada-exp.y (write_object_renaming): Adjust to new
1893         ada_lookup_encoded_symbol API.
1894
1895 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
1896
1897         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
1898         documentation.
1899
1900 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
1901
1902         * v850-tdep.c: Add the enum values for mpu and fpu registers.
1903         (v850_register_name): Add the mpu and fpu register names.
1904         (v850e_register_name): Add the mpu and fpu register names.
1905         (v850e2_register_name): New function.
1906         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
1907         bfd_mach_v850e2v3.
1908
1909 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
1910
1911         * NEWS: Add entry for Ada varobj support.
1912
1913 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
1914
1915         * varobj.c (default_value_is_changeable_p): New function,
1916         extracted from varobj_value_is_changeable_p.  Add declaration.
1917         (ada_value_is_changeable_p): New function, extracted from
1918         varobj_value_is_changeable_p.  Add declaration.
1919         (struct language_specific): New field "value_is_changeable_p".
1920         (languages): Add entries for new field.
1921         (varobj_create): Set language before calling install_new_value.
1922         (varobj_value_is_changeable_p): Reimplement to call the varobj's
1923         "value_is_changeable_p" language callback.
1924
1925 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
1926
1927         * ada-varobj.h, ada-varobj.c: New files.
1928         * Makefile.in (SFILES): Add ada-varobj.c.
1929         (HFILES_NO_SRCDIR): Add ada-varobj.h.
1930         (COMMON_OBS): Add ada-varobj.o.
1931
1932 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
1933
1934         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
1935         (struct language_specific): New field "value_has_mutated".
1936         (languages): Set field "value_has_mutated" in each entry of array.
1937         (varobj_value_has_mutated): New function.
1938         (varobj_udpdate): Add handling of type mutation.
1939         (value_of_root): Add handling of type mutation.
1940         (ada_value_has_mutated): New function.
1941
1942 2012-03-28  Pedro Alves  <palves@redhat.com>
1943
1944         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1945         Always supply $fr0 as 0.0 and $fr1 as 1.0.
1946
1947 2012-03-28  Tom Tromey  <tromey@redhat.com>
1948
1949         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1950         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
1951         before returning.
1952
1953 2012-03-28  Tom Tromey  <tromey@redhat.com>
1954
1955         * .dir-locals.el: New file.
1956
1957 2012-03-28  Pedro Alves  <palves@redhat.com>
1958
1959         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1960
1961 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
1962
1963         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1964         handling for r0.
1965
1966 2012-03-27  Pedro Alves  <palves@redhat.com>
1967
1968         Eliminate struct ui_stream.
1969
1970         * ui-out.h (struct ui_stream): Delete.
1971         (ui_out_field_stream): Adjust prototype.
1972         (ui_out_stream_new, ui_out_stream_delete)
1973         (make_cleanup_ui_out_stream_delete): Delete declarations.
1974         * ui-out.c (ui_out_field_stream): Change prototype to take a
1975         ui_file instead of a ui_stream.  Adjust.
1976         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1977         (make_cleanup_ui_out_stream_delete): Delete.
1978         * breakpoint.c (print_breakpoint_location)
1979         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1980         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1981         * disasm.c (dump_insns): Ditto.
1982         (do_mixed_source_and_assembly, do_assembly_only): Adjust
1983         prototype.
1984         (gdb_disassembly): Use ui_file/mem_fileopen instead of
1985         ui_stream/ui_out_stream_new.
1986         * infcmd.c (print_return_value): Ditto.
1987         * osdata.c (info_osdata_command): Don't allocate a local
1988         ui_stream.
1989         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1990         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1991         * tracepoint.c (print_one_static_tracepoint_marker): Don't
1992         allocate a local ui_stream.
1993         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1994         instead of ui_stream/ui_out_stream_new.
1995         (list_args_or_locals): Don't allocate a local ui_stream.
1996         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1997         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1998         ui_stream/ui_out_stream_new.
1999         * cli/cli-setshow.c (do_setshow_command): Ditto.
2000
2001 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
2002
2003         * arm-linux-tdep.c (arm_linux_init_abi): Call
2004         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
2005         * arm-tdep.c (arm_process_record): New function.
2006         (deallocate_reg_mem): New function.
2007         (decode_insn): New function.
2008         (thumb_record_branch): New function.
2009         (thumb_record_ldm_stm_swi(): New function.
2010         (thumb_record_misc): New function.
2011         (thumb_record_ld_st_stack): New function.
2012         (thumb_record_ld_st_imm_offset): New function.
2013         (thumb_record_ld_st_reg_offset(): New function.
2014         (thumb_record_add_sub_cmp_mov): New function.
2015         (thumb_record_shift_add_sub): New function.
2016         (arm_record_coproc_data_proc): New function.
2017         (arm_record_coproc): New function.
2018         (arm_record_b_bl): New function.
2019         (arm_record_ld_st_multiple): New function.
2020         (arm_record_ld_st_reg_offset): New function.
2021         (arm_record_ld_st_imm_offset): New function.
2022         (arm_record_data_proc_imm): New function.
2023         (arm_record_data_proc_misc_ld_str): New function.
2024         (arm_record_extension_space): New function.
2025         (arm_record_strx): New function.
2026         (sbo_sbz): New function.
2027         (struct insn_decode_record): New structure for arm insn record.
2028         (REG_ALLOC): New macro for reg allocations.
2029         (MEM_ALLOC): New macro for memory allocations.
2030         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
2031
2032 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
2033
2034         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2035         (store_register): Likewise.
2036
2037 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
2038
2039         * MAINTAINERS (Write After Approval): Add myself to the list.
2040
2041 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2042
2043         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2044         Describe also the option "auto".
2045
2046 2012-03-22  Richard Henderson  <rth@redhat.com>
2047
2048         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2049         * sparc-nat.c (sparc_xfer_wcookie): Make static.
2050
2051 2012-03-22  Richard Henderson  <rth@redhat.com>
2052
2053         * jit.c (jit_read_code_entry): Compute alignment and offset of
2054         int64_t member before computing entry_size.
2055
2056 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
2057
2058         Python scripting: Add new method Value.referenced_value to
2059         gdb.Value which can dereference pointer as well as reference
2060         values.
2061         * NEWS: Add entry under 'Python scripting' about the new method
2062         Value.referenced_value on gdb.Value objects.
2063         * python/py-value.c (valpy_referenced_value): New function
2064         defining a new method on gdb.Value objects which can dereference
2065         pointer and reference values.
2066
2067 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
2068
2069         * MAINTAINERS (Write After Approval): Add myself to the list.
2070
2071 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
2072
2073         * symtab.c (skip_prologue_sal): Change test to check for "main()"
2074         in addition to "main".
2075
2076 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
2077
2078         * expression.h (op_name): Add declaration.
2079         * expprint.c (op_name): Remove declaration.  Make non-static.
2080         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2081
2082 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2083
2084         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2085         of struct siginfo.
2086         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2087         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2088         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2089         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2090         (linux_nat_get_siginfo): Likewise.
2091         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2092         (linux_nat_get_siginfo): Likewise.
2093         * linux-tdep.c (linux_get_siginfo_type): Likewise.
2094         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2095         * procfs.c (gdb_siginfo_t): Likewise.
2096
2097 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
2098
2099         * .gitignore: Ignore more files.
2100
2101 2012-03-20  Pedro Alves  <palves@redhat.com>
2102
2103         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2104         returns.
2105
2106 2012-03-20  Yao Qi  <yao@codesourcery.com>
2107
2108         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2109         comment.
2110
2111 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2112
2113         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2114         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2115         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2116         sect_offset.
2117         * dwarf2expr.h (cu_offset, sect_offset): New types.
2118         (struct dwarf_expr_context_funcs) <dwarf_call>
2119         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2120         sect_offset.
2121         (struct dwarf_expr_context) <len>: Improve the comment.
2122         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2123         cu_offset and sect_offset.
2124         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2125         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2126         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2127         * dwarf2loc.h: Include dwarf2expr.h.
2128         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2129         and sect_offset.
2130         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2131         Improve the comment.
2132         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2133         (struct signatured_type, struct line_header, struct partial_die_info)
2134         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2135         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2136         (get_die_type_at_offset, create_cus_from_index)
2137         (create_signatured_type_table_from_index, dw2_get_file_names)
2138         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2139         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2140         (create_debug_types_hash_table, process_psymtab_comp_unit)
2141         (load_partial_comp_unit, create_all_comp_units)
2142         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2143         (load_full_comp_unit, dwarf2_physname, read_import_statement)
2144         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2145         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2146         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2147         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2148         (find_partial_die, read_attribute_value, lookup_die_type)
2149         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2150         (is_ref_attr): New function comment.
2151         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2152         Use cu_offset and sect_offset.
2153         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2154         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2155         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2156         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2157         (offset_and_type_hash, offset_and_type_eq, set_die_type)
2158         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2159         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2160         sect_offset.
2161
2162 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2163
2164         Code cleanup.
2165         * python/py-auto-load.c (source_section_scripts): New variable back_to.
2166         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2167         with xfree.
2168         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2169
2170 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2171
2172         * NEWS: Describe new options --init-command=FILE, -ix and
2173         --init-eval-command=COMMAND, -iex.
2174         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2175         CMDARG_INIT_COMMAND.
2176         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
2177         "init-command", "init-eval-command", "ix" and "iex" to the variable
2178         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
2179         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2180         (print_gdb_help): Describe --init-command=FILE, -ix and
2181         --init-eval-command=COMMAND, -iex.
2182
2183 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2184
2185         Code cleanup.
2186         * main.c (struct cmdarg): Move it here from main.  Add more comments.
2187         (cmdarg_s, VEC (cmdarg_s)): New.
2188         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
2189         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
2190         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
2191         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
2192         of CMDARG.
2193
2194 2012-03-19  Tom Tromey  <tromey@redhat.com>
2195
2196         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2197
2198 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2199
2200         PR symtab/13777
2201         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2202         GCC >=4.5.
2203
2204 2012-03-16  Chris January  <chris.january@allinea.com>
2205
2206         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2207         of clear.
2208
2209 2012-03-16  Chris January  <chris.january@allinea.com>
2210
2211         * source.c (add_path): Use memmove instead of strcpy because the
2212         strings overlap.
2213
2214 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
2215
2216         * value.h (set_value_parent): Add declaration.
2217         * value.c (set_value_parent): New function.
2218         (value_address): If VALUE->PARENT is not NULL, then use it as
2219         the base address instead of VALUE->LOCATION.address.
2220         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2221         the same as OBJ's address.  Adjust V's offset accordingly.
2222         Set V's parent.
2223
2224 2012-03-16  Gary Benson  <gbenson@redhat.com>
2225
2226         PR breakpoints/10738
2227         * dwarf2read.c (use_deprecated_index_sections): New global.
2228         (struct partial_die_info): New member may_be_inlined.
2229         (read_partial_die): Set may_be_inlined where appropriate.
2230         (add_partial_subprogram): Add partial symbols for partial
2231         DIEs that may be inlined.
2232         (new_symbol_full): Add inlined subroutines to the current
2233         scope.
2234         (write_psymtabs_to_index): Bump version number.
2235         (dwarf2_read_index): Read only version 6 indices unless
2236         use_deprecated_index_sections is set.
2237         * linespec.c (symbol_and_data_callback): New structure.
2238         (iterate_inline_only): New function.
2239         (iterate_over_all_matching_symtabs): New argument
2240         "include_inline".  If nonzero, also call the callback for
2241         symbols representing inlined subroutines.
2242         (lookup_prefix_sym): Pass extra argument to the above.
2243         (find_function_symbols): Likewise.
2244         (add_matching_symbols_to_info): Likewise.
2245         * NEWS: Mention that GDB can now set breakpoints on inlined
2246         functions.
2247
2248 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2249
2250         * p-typeprint.c (pascal_type_print_method_args):
2251         Fix display of parameter of methods.
2252
2253 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2254
2255         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2256         Add missing prototype.
2257
2258 2012-03-16  Yao Qi  <yao@codesourcery.com>
2259             Jan Kratochvil  <jan.kratochvil@redhat.com>
2260
2261         Fix false compilation warning.
2262         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2263
2264 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
2265             Pedro Alves  <pedro@codesourcery.com>
2266
2267         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2268         (arm_register_g_packet_guesses): New function.
2269         (arm_gdbarch_init): Don't force a target description with
2270         registers when the executable is detected as M-profile.  Instead
2271         set gdbarch->tdep->is_m.  Register `g' packet guesses.
2272         (_initialize_arm_tdep): Initialize the new target description.
2273         * features/arm-with-m-fpa-layout.xml: New description.
2274         * features/arm-with-m-fpa-layout.c: New, generated.
2275
2276 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
2277
2278         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2279         Update function description.
2280         (insert_bp_location): Do not wipe bl->target_info out.
2281         * mem-break.c: #include "gdb_string.h".
2282         (default_memory_insert_breakpoint): Do not call target_read_memory
2283         with a pointer to the breakpoint's shadow_contents buffer.  Use
2284         a local buffer instead.
2285         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2286
2287 2012-03-15  Tom Tromey  <tromey@redhat.com>
2288
2289         * NEWS: Mention "info vtbl", not "info vtable".
2290         * cp-support.c (info_vtbl_command): Fix comment.
2291         (_initialize_cp_support): Fix text.
2292
2293 2012-03-15  Tom Tromey  <tromey@redhat.com>
2294
2295         * cp-valprint.c (cp_print_value_fields): Use
2296         print_function_pointer_address for vtable slot.
2297
2298 2012-03-15  Tom Tromey  <tromey@redhat.com>
2299
2300         * gnu-v3-abi.c (struct value_and_voffset): New.
2301         (hash_value_and_voffset, eq_value_and_voffset)
2302         (compare_value_and_voffset, compute_vtable_size)
2303         (print_one_vtable, gnuv3_print_vtable): New functions.
2304         (init_gnuv3_ops): Initialize 'print_vtable' field.
2305         * cp-support.c (info_vtbl_command): New function.
2306         (_initialize_cp_support): Add "info vtbl".
2307         * cp-abi.h (cplus_print_vtable): Declare.
2308         (struct cp_abi_ops) <print_vtable>: New field.
2309         * cp-abi.c (cplus_print_vtable): New function.
2310         * NEWS: Update.
2311
2312 2012-03-15  Tom Tromey  <tromey@redhat.com>
2313
2314         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2315         iterate_over_symbols.
2316
2317 2012-03-14  Doug Evans  <dje@google.com>
2318
2319         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2320         DW_OP_GNU_parameter_ref.
2321
2322 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2323
2324         Fix double prompt of 'interpreter-exec mi'.
2325         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2326         (mi_interpreter_resume): use it.
2327         (mi_execute_command_input_handler): New function.
2328         * mi/mi-main.c (mi_execute_command): Move prompt printing to
2329         mi_execute_command_input_handler.
2330
2331 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
2332
2333         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2334         prototype.
2335         (darwin_debug_port_info): Make static.
2336         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2337         * machoread.c (_initialize_machoread): Add prototype.
2338         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2339         (i386_darwin_set_control, i386_darwin_get_control)
2340         i386_darwin_dr_set_addr, i386_darwin_get_addr)
2341         i386_darwin_get_status, i386_darwin_get_control):
2342         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2343
2344 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2345
2346         * ax-gdb.c (gen_usual_unary): Remove special handling of
2347         enum and bool types.
2348
2349 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2350
2351         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2352
2353 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2354
2355         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2356
2357 2012-03-13  Chris January  <chris.january@allinea.com>
2358
2359         * aix-thread.c (fill_sprs): Store the floating point registers
2360         at the correct offsets into vals.
2361
2362 2012-03-13  Doug Evans  <dje@google.com>
2363
2364         * NEWS: Mention symbol-reloading has been deleted.
2365         * symfile.c (symbol_reloading): Delete.
2366         (show_symbol_reloading): Delete.
2367         (_initialize_symfile): Delete set/show symbol-reloading.
2368
2369         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2370         read_in_chain until we have successfully read it in.
2371         (load_full_comp_unit): Ditto.
2372         (read_signatured_type): Add comment.
2373
2374 2012-03-13  Chris January  <chris.january@allinea.com>
2375
2376         * stabsread.c (fix_common_block): Change type of valu argument
2377         to CORE_ADDR.
2378
2379 2012-03-13  Chris January  <chris.january@allinea.com>
2380
2381         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2382         instruction.
2383
2384 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2385
2386         * common/linux-procfs.c (linux_proc_get_int): New, from
2387         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2388         field.
2389         (linux_proc_get_tgid): Only call linux_proc_get_int.
2390         (linux_proc_get_tracerpid): New.
2391         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2392         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2393         linux_proc_pid_has_state.
2394         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2395         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2396         (linux_ptrace_attach_warnings): New.
2397         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2398         New declaration.
2399         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2400         (linux_nat_attach): New variables ex, buffer, message and message_s.
2401         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2402
2403 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2404
2405         * Makefile.in (linux-ptrace.o): New.
2406         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2407         from linux-nat.c.
2408         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2409         * common/linux-ptrace.c: New file.
2410         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2411         * config/arm/linux.mh: Likewise.
2412         * config/i386/linux.mh: Likewise.
2413         * config/i386/linux64.mh: Likewise.
2414         * config/ia64/linux.mh: Likewise.
2415         * config/m32r/linux.mh: Likewise.
2416         * config/m68k/linux.mh: Likewise.
2417         * config/mips/linux.mh: Likewise.
2418         * config/pa/linux.mh: Likewise.
2419         * config/powerpc/linux.mh: Likewise.
2420         * config/powerpc/ppc64-linux.mh: Likewise.
2421         * config/powerpc/spu-linux.mh: Likewise.
2422         * config/s390/s390.mh: Likewise.
2423         * config/sparc/linux.mh: Likewise.
2424         * config/sparc/linux64.mh: Likewise.
2425         * config/xtensa/linux.mh: Likewise.
2426         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2427         common/linux-procfs.c.
2428         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2429
2430 2012-03-13  Hui Zhu  <teawater@gmail.com>
2431             Pedro Alves  <palves@redhat.com>
2432
2433         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
2434         CREATE_BREAKPOINT_FLAGS_INSERTED.
2435         (create_breakpoint_sal, create_breakpoints_sal)
2436         (base_breakpoint_create_breakpoints_sal)
2437         (tracepoint_create_breakpoints_sal)
2438         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
2439         down.
2440         (break_command_1, handle_gnu_v3_exceptions, trace_command)
2441         (ftrace_command, strace_command): Adjust.
2442         (create_tracepoint_from_upload): Pass
2443         CREATE_BREAKPOINT_FLAGS_INSERTED.
2444         * breakpoint.h (enum breakpoint_create_flags): New.
2445         (create_breakpoint): New flags parameter.
2446         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2447         * python/py-breakpoint.c (bppy_init): Adjust.
2448         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2449         * spu-tdep.c (spu_catch_start): Adjust.
2450
2451 2012-03-13  Pedro Alves  <palves@redhat.com>
2452             Hui Zhu  <teawater@gmail.com>
2453             Yao Qi  <yao@codesourcery.com>
2454
2455         * remote.c (struct remote_state): New field `starting_up'.
2456         (remote_start_remote): Set and clear it.
2457         (remote_can_download_tracepoint): If starting up, return false.
2458
2459 2012-03-13  Yao Qi  <yao@codesourcery.com>
2460
2461         * inferior.h (struct inferior): Remove fields any_syscall_count,
2462         syscalls_counts and total_syscalls_count.  Move them to new
2463         struct catch_syscall_inferior_data in breakpoint.c.
2464         * breakpoint.c: Call DEF_VEC_I(int).
2465         (struct catch_syscall_inferior_data): New.
2466         (get_catch_syscall_inferior_data): New.
2467         (catch_syscall_inferior_data_cleanup): New.
2468         (insert_catch_syscall): Update to access data in
2469         struct catch_syscall_inferior_data.
2470         (insert_catch_syscall): Likewise.
2471         (remove_catch_syscall): Likewise.
2472         (remove_catch_syscall): Likewise.
2473         (is_syscall_catchpoint_enabled): Likewise.
2474         (add_catch_command): Likewise.
2475         (_initialize_breakpoint): Register cleanup.
2476         * breakpoint.h: Removed DEF_VEC_I(int).
2477         * dwarf2loc.c: Call DEF_VEC_I(int).
2478         * mi/mi-main.c: Likewise.
2479
2480 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
2481
2482         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2483
2484 2012-03-12  Chris January  <chris.january@allinea.com>
2485
2486         * aix-thread.c (_initialize_aix_thread): Add prototype.
2487         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2488         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2489
2490 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
2491
2492         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2493         include of "amd64-nat.h".
2494
2495 2012-03-12  Tom Tromey  <tromey@redhat.com>
2496
2497         * buildsym.c (record_pending_block): Now static.
2498         * buildsym.h: (record_pending_block): Remove.
2499
2500 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
2501
2502         * amd64bsd-nat.c: Include amd64bsd-nat.h.
2503
2504 2012-03-09  Tom Tromey  <tromey@redhat.com>
2505
2506         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2507         producer_is_gxx_lt_4_6>: New fields.
2508         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2509
2510 2012-03-09  Tom Tromey  <tromey@redhat.com>
2511
2512         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2513
2514 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2515
2516         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2517         prototype.
2518
2519 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2520
2521         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2522
2523 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2524
2525         Fix -Wmissing-prototypes build.
2526         * arm-linux-nat.c (get_thread_id): Make it static.
2527         * xtensa-linux-nat.c (get_thread_id): Likewise.
2528
2529 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2530
2531         * server.c (process_point_options): If a conditional expression
2532         is found, only print a message if remote_debug is nonzero.
2533
2534 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
2535
2536         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2537         of internal error for unknown/unsupported types.
2538
2539 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2540
2541         Fix CU relative vs. absolute DIE offsets.
2542         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2543         offset to offset_in_cu.
2544         * dwarf2read.c (process_enumeration_scope): Add CU offset to
2545         TYPE_OFFSET.
2546         (dwarf2_fetch_die_location_block): Rename parameter offset to
2547         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
2548
2549 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2550
2551         * libunwind-frame.c: Rename to ...
2552         * ia64-libunwind-tdep.c: ... here.
2553         * libunwind-frame.h: Rename to ...
2554         * ia64-libunwind-tdep.h: ... here.
2555         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2556         ia64-libunwind-tdep.h.
2557         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2558         * README (--with-libunwind): Rename to ...
2559         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2560         * config.in: Regenerate.
2561         * configure: Regenerate.
2562         * configure.ac: New option --with-libunwind-ia64, make the
2563         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
2564         Remove AC_DEFINE for HAVE_LIBUNWIND.
2565         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2566         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2567         Rename libunwind-frame in the general comment.
2568         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2569         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2570         Move forward declarations inside #ifndef.  Rename libunwind-frame in
2571         the general comment.
2572         * ia64-tdep.c: Rename libunwind-frame.h #include to
2573         ia64-libunwind-tdep.h.
2574         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2575         (ia64_libunwind_descr): Rename libunwind-frame to
2576         ia64-libunwind-tdep in these function comments.
2577         * ia64-tdep.h: Rename libunwind-frame.h #include to
2578         ia64-libunwind-tdep.h.
2579         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2580         ia64-libunwind-tdep in that data comment.
2581
2582 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2583
2584         * libunwind-frame.h (struct frame_unwind): New declaration.
2585
2586 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2587
2588         * breakpoint.c (_initialize_breakpoint): Fix error in help of
2589         "set breakpoint condition-evaluation" command.
2590
2591 2012-03-08  Tristan Gingold  <gingold@adacore.com>
2592
2593         * sparc-stub.c: Move to stubs/
2594         * sh-stub.c: Likewise.
2595         * m68k-stub.c: Likewise.
2596         * m32r-stub.c: Likewise.
2597         * i386-stub.c: Likewise.
2598
2599 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
2600
2601         * m68klinux-tdep.c (m68k_linux_init_abi): Register
2602         linux_get_siginfo_type.
2603
2604         * m68klinux-nat.c: Include "gdb_proc_service.h".
2605         (PTRACE_GET_THREAD_AREA): Define.
2606         (ps_get_thread_area): New function.
2607
2608 2012-03-08  Yao Qi  <yao@codesourcery.com>
2609
2610         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2611         `xsnprintf'.
2612         (remote_query_attached): Likewise.
2613         (remote_static_tracepoint_marker_at): Likewise.
2614         (remote_set_permissions): Likewise.
2615         (remote_detach_1, extended_remote_attach_1): Likewise.
2616         (send_g_packet, remote_vkill): Likewise.
2617         (extended_remote_disable_randomization): Likewise.
2618         (remote_add_target_side_condition): Likewise.
2619         (remote_insert_breakpoint): Likewise.
2620         (remote_remove_breakpoint): Likewise.
2621         (remote_insert_watchpoint): Likewise.
2622         (remote_remove_watchpoint): Likewise.
2623         (remote_insert_hw_breakpoint): Likewise.
2624         (remote_insert_hw_breakpoint): Likewise.
2625         (remote_remove_hw_breakpoint): Likewise.
2626         (remote_download_command_source): Likewise.
2627         (remote_download_tracepoint): Likewise.
2628         (remote_download_trace_state_variable): Likewise.
2629         (remote_disable_tracepoint): Likewise.
2630         (remote_trace_set_readonly_regions): Likewise.
2631         (remote_get_tracepoint_status): Likewise.
2632         (remote_trace_find): Likewise.
2633         (remote_get_trace_state_variable_value): Likewise.
2634         (remote_set_disconnected_tracing): Likewise.
2635         (remote_set_circular_trace_buffer): Likewise.
2636         (remote_get_min_fast_tracepoint_insn_len): Likewise.
2637         (remote_use_agent): Likewise.
2638         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2639         Update callers.
2640
2641 2012-03-07  Pedro Alves  <palves@redhat.com>
2642
2643         * NEWS: Mention QProgramSignals.
2644         * inferior.h (update_signals_program_target): Declare.
2645         * infrun.c: (update_signals_program_target): New.
2646         (handle_command): Update the target of the new program signals
2647         array changes.
2648         * remote.c (PACKET_QProgramSignals): New enum.
2649         (last_program_signals_packet): New global.
2650         (remote_program_signals): New.
2651         (remote_start_remote): Update the target with the program signals
2652         list.
2653         (remote_protocol_features): Add entry for QPassSignals.
2654         (remote_open_1): Free anc clear last_program_signals_packet.
2655         (init_remote_ops): Install remote_program_signals.
2656         * target.c (update_current_target): Adjust.
2657         (target_program_signals): New.
2658         * target.h (struct target_ops) <to_program_signals>: New field.
2659         (target_program_signals): Declare.
2660
2661 2012-03-07  Pedro Alves  <palves@redhat.com>
2662
2663         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2664         extensions.
2665
2666 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
2667
2668         * m68klinux-nat.c (getregs_supplies): Make static.
2669         (getfpregs_supplies): Likewise.
2670         (have_ptrace_getregs): Likewise.
2671
2672 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
2673
2674         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2675         in call to get_die_type_at_offset.
2676
2677 2012-03-06  Stan Shebs  <stan@codesourcery.com>
2678
2679         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2680         * mi/mi-cmd-disas.c: Ditto.
2681         * mi/mi-cmd-env.c: Ditto.
2682         * mi/mi-cmd-file.c: Ditto.
2683         * mi/mi-cmd-stack.c: Ditto.
2684         * mi/mi-cmd-target.c: Ditto.
2685         * mi/mi-cmd-var.c: Ditto.
2686         * mi/mi-cmds.c: Ditto.
2687         * mi/mi-cmds.h: Ditto.
2688         * mi/mi-console.c: Ditto.
2689         * mi/mi-getopt.c: Ditto.
2690         * mi/mi-getopt.h: Ditto.
2691         * mi/mi-interp.c: Ditto.
2692         * mi/mi-main.c: Ditto.
2693         * mi/mi-out.c: Ditto.
2694         * mi/mi-parse.c: Ditto.
2695         * mi/mi-parse.h: Ditto.
2696         * mi/mi-symbol-cmds.c: Ditto.
2697
2698         * mi/mi-getopt.h: Move mi_opt struct up.
2699         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2700         return.
2701         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2702
2703 2012-03-06  Tom Tromey  <tromey@redhat.com>
2704
2705         * proc-service.c (ps_pglobal_lookup): Set the current program
2706         space.
2707
2708 2012-03-06  Pedro Alves  <palves@redhat.com>
2709
2710         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2711
2712 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
2713
2714         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2715
2716 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2717
2718         Code cleanup.
2719         * common/linux-osdata.c (linux_common_core_of_thread): New function
2720         comment.
2721         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2722         call by linux_common_core_of_thread.
2723         (linux_nat_core_of_thread_1): Remove.
2724         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2725         * linux-thread-db.c: Include linux-osdata.h.
2726         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2727         linux_common_core_of_thread.
2728
2729 2012-03-05  Tom Tromey  <tromey@redhat.com>
2730
2731         * value.c (value_primitive_field): Don't fetch contents for
2732         non-virtual bases.
2733
2734 2012-03-05  Tom Tromey  <tromey@redhat.com>
2735
2736         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2737
2738 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2739
2740         * s390-nat.c: Include "gregset.h".
2741
2742 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2743
2744         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2745         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2746         (libunwind_load): New variable so_error, use it for dlerror.  Try to
2747         load also LIBUNWIND_SO_7.
2748
2749 2012-03-05  Pedro Alves  <palves@redhat.com>
2750
2751         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2752         is not NULL, and remove resulting dead code.
2753
2754 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
2755
2756         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2757         prologue to sh_analyze_prologue.
2758         (sh_analyze_prologue): Make better use of such an upper limit, and
2759         generally be more cautious about accessing memory.
2760
2761 2012-03-05  Tom Tromey  <tromey@redhat.com>
2762
2763         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2764         _initialize_ia64_hpux_tdep.
2765
2766 2012-03-05  Pedro Alves  <palves@redhat.com>
2767
2768         PR gdb/13766
2769
2770         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2771         the register state is clear, supply explicit zero, instead of
2772         marking the register unavailable.
2773
2774 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2775
2776         * NEWS: Mention OpenVMS ia64 new target.
2777
2778 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2779
2780         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2781         (ia64_unw_accessors, ia64_unw_rse_accessors)
2782         (ia64_libunwind_descr): Declare.
2783         * ia64-vms-tdep.c: New file.
2784         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2785         (ia64_libunwind_descr): Make them public.
2786         * configure.tgt: Add ia64-*-*vms*.
2787         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2788         (ALLDEPFILES): Add ia64-vms-tdep.c
2789
2790 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2791
2792         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2793         * remote.c (PACKET_qXfer_uib): New enum value.
2794         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2795         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2796         (_initialize_remote): Call add_packet_config_cmd for
2797         xfer:uib packet.
2798
2799 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2800
2801         * osabi.c (gdb_osabi_names): Add OpenVMS.
2802         (generic_elf_osabi_sniffer): Likewise.
2803         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2804
2805 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2806
2807         Removed unused code.
2808         * libunwind-frame.c (libunwind_frame_unwind)
2809         (libunwind_frame_base_address): Remove.
2810         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2811
2812 2012-03-04  Yao Qi  <yao@codesourcery.com>
2813
2814         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2815         remove trailing new line.
2816         (agent_run_command, agent_run_command): Add _ markup.
2817         (agent_capability_check): Likewise.
2818
2819 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2820
2821         * breakpoint.c (set_condition_evaluation_mode): Set
2822         CONDITION_EVALUATION_MODE unconditionally.
2823
2824 2012-03-03  Yao Qi  <yao@codesourcery.com>
2825
2826         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2827         * common/agent.h: Update declaration.
2828         * inf-child.c (inf_child_use_agent): New.
2829         (inf_child_can_use_agent): New.
2830         (inf_child_target): Initialize fields `to_use_agent'
2831         and `to_can_use_agent'.
2832         * agent.c (agent_new_objfile): New.
2833         (_initialize_agent): Add agent_new_objfile to new_objfile
2834         observer.
2835
2836         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2837         New.
2838         (linux_target_install_ops): Initialize field
2839         `to_static_tracepoint_markers_by_strid'.
2840         * remote.c (free_current_marker): Move it to ...
2841         * tracepoint.c (free_current_marker): ... here.  New.
2842         (cleanup_target_stop): New.
2843         * tracepoint.h: Declare free_current_marker.
2844         * NEWS: Add one entry about `info static-tracepoint-marker'.
2845
2846 2012-03-03  Yao Qi  <yao@codesourcery.com>
2847
2848         * common/agent.c (agent_loaded_p): New.
2849         (agent_look_up_symbols): New global.
2850         * common/agent.h: Declare agent_loaded_p.
2851
2852 2012-03-03  Yao Qi  <yao@codesourcery.com>
2853
2854         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2855         (agent_capability_check, agent_capability_invalidate): New.
2856         (symbol_list): New array element.
2857         * common/agent.h (enum agent_capa): New.
2858         * target.c (target_pre_inferior): Call agent_capability_invalidate.
2859
2860 2012-03-03  Yao Qi  <yao@codesourcery.com>
2861
2862         * target.h (struct target_ops) <to_use_agent>: New field.
2863         (struct target_ops) <to_can_use_agent>: New field.
2864         (target_use_agent, target_can_use_agent): New macro.
2865         * target.c (update_current_target): Update.
2866         * remote.c: New enum `PACKET_QAgent'.
2867         (remote_protocol_features): Add a new element.
2868         (remote_use_agent, remote_can_use_agent): New.
2869         (init_remote_ops): Initialize field `can_use_agent' with
2870         remote_can_use_agent.  Intiailize field `use_agent' with
2871         remote_use_agent.
2872         * common/agent.c (use_agent): New global.
2873         * common/agent.h: Declare it.
2874         * tracepoint.c (info_static_tracepoint_markers_command): Add
2875         comment.
2876         * Makefile.in (SFILES): Add common/agent.c and agent.c.
2877         (COMMON_OBS): Add common/agent.o and agent.o
2878         (common-agent.o): New rule.
2879         * agent.c: New.
2880
2881 2012-03-03  Yao Qi  <yao@codesourcery.com>
2882
2883         * common/agent.c: New.
2884         * common/agent.h: New.
2885         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2886         AC_CHECK_HEADERS.
2887         * configure, configh.in: Regenerated.
2888
2889 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
2890
2891         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2892         unless it exists for this architecture.
2893
2894 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
2895
2896         * language.h (struct language_defn): New "method" la_read_var_value.
2897         * findvar.c: #include "language.h".
2898         (default_read_var_value): Renames read_var_value.  Rewrite
2899         function description.
2900         (read_var_value): New function.
2901         * value.h (default_read_var_value): Add prototype.
2902         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2903         New functions.
2904         (ada_language_defn): Add entry for la_read_var_value.
2905         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2906         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2907         language_defn structures to add entry for new la_read_var_value
2908         field.
2909
2910 2012-03-02  Tom Tromey  <tromey@redhat.com>
2911             Pedro Alves  <palves@redhat.com>
2912
2913         PR breakpoints/13776:
2914         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2915         breakpoints.
2916         (delete_longjmp_breakpoint_at_next_stop): New.
2917         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2918         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2919         before deleting the inferior.  Add comments.
2920         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2921         breakpoints immediately, but only on next stop.  Move that code
2922         next to where we mark other breakpoints for deletion.
2923
2924 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
2925
2926         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2927         marker.
2928         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2929         violation.
2930
2931 2012-03-02  Pedro Alves  <palves@redhat.com>
2932
2933         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2934
2935 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
2936
2937         Fix -Wmissing-prototypes build.
2938         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2939         * remote-sim.c (gdbsim_has_all_memory): Likewise.
2940         (gdbsim_has_memory): Likewise.
2941
2942 2012-03-02  Yao Qi  <yao@codesourcery.com>
2943
2944         Fix -Wmissing-prototypes build.
2945         * charset.c (phony_iconv_open): Make static.
2946         (phony_iconv_close, phony_iconv): Likewise.
2947         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2948         * i386-windows-nat.c (_initialize_i386_windows_nat): New
2949         prototype.
2950         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2951         * ser-mingw.c (create_select_thread): Make static.
2952         * windows-termcap.c (tgetent): New prototype.
2953         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2954
2955 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
2956
2957         Fix -Wmissing-prototypes build.
2958         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2959         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2960         (_initialize_loadable): New prototypes.
2961
2962 2012-03-02  Doug Evans  <dje@google.com>
2963
2964         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2965         abbrev table, read_comp_unit will do it.
2966
2967 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2968
2969         Fix -Wmissing-prototypes build.
2970         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2971         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2972         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2973         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2974         (_initialize_arm_symbian_tdep): New prototype.
2975         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2976         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2977         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2978         static.
2979         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2980         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2981         prototype.
2982         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2983         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2984         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2985         static.
2986         * moxie-tdep.c (moxie_process_record): Likewise.
2987         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2988         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2989         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2990         (_initialize_rl78_tdep): New prototype.
2991         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2992         (_initialize_rx_tdep): New prototype.
2993         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2994         (_initialize_darwin_solib): New prototype.
2995         * solib-spu.c: Include solib-spu.h.
2996         (_initialize_spu_solib): New prototype.
2997         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2998         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2999         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3000         (tic6x_software_single_step): Make it static.
3001         (_initialize_tic6x_tdep): New prototype.
3002
3003 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3004
3005         Fix -Wmissing-prototypes build.
3006         * cris-tdep.c (cris_can_use_hardware_watchpoint)
3007         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3008
3009 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3010
3011         Fix -Wmissing-prototypes build.
3012         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3013         (frv_have_stopped_data_address): Remove.
3014
3015 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3016
3017         Fix -Wmissing-prototypes build.
3018         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3019         * sh-tdep.c: Include sh64-tdep.h.
3020         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3021         * sh64-tdep.c: Include sh64-tdep.h.
3022         * sh64-tdep.h: New file.
3023
3024 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
3025
3026         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3027
3028 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
3029
3030         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3031         sp_regnum once the gdbarch_init_osabi hook has been called.
3032
3033 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
3034
3035         * mips-tdep.c (mips32_bc1_pc): New function.
3036         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3037         BPOSGE32 and BPOSGE64 instructions.
3038         (deal_with_atomic_sequence): Likewise.
3039         (mips32_instruction_has_delay_slot): Likewise.
3040
3041 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
3042             Chris Dearman  <chris@mips.com>
3043             Maciej W. Rozycki  <macro@codesourcery.com>
3044             Joseph Myers  <joseph@codesourcery.com>
3045
3046         * features/mips-dsp.xml: New file.
3047         * features/mips64-dsp.xml: New file.
3048         * features/mips-dsp-linux.xml: New file.
3049         * features/mips64-dsp-linux.xml: New file.
3050         * features/Makefile (WHICH): Add mips-dsp-linux and
3051         mips64-dsp-linux.
3052         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3053         * features/mips-dsp-linux.c: New file.
3054         * features/mips64-dsp-linux.c: New file.
3055         * regformats/mips-dsp-linux.dat: New file.
3056         * regformats/mips64-dsp-linux.dat: New file.
3057         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3058         registers.
3059         (mips64_linux_register_addr): Likewise.
3060         (mips64_linux_regsets_fetch_registers): Likewise.
3061         (mips64_linux_regsets_store_registers): Likewise.
3062         (mips64_linux_fetch_registers): Update call to
3063         mips64_linux_regsets_fetch_registers.
3064         (mips64_linux_store_registers): Update call to
3065         mips64_linux_regsets_store_registers.
3066         (mips_linux_read_description): Probe for DSP registers.
3067         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3068         and initialize_tdesc_mips64_dsp_linux.
3069         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3070         Remove padding of no longer used embedded register slots.
3071         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3072         (MIPS_RESTART_REGNUM): Redefine enum value.
3073         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3074         strings.
3075         (mips_tx39_reg_names): Likewise.
3076         (mips_linux_reg_names): New array of register names for Linux
3077         targets.
3078         (mips_register_name): Check for a null pointer in
3079         mips_processor_reg_names and return an empty string.
3080         (mips_register_type): Exclude embedded registers for the IRIX
3081         and Linux ABIs.
3082         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
3083         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
3084         DSP registers.
3085         (mips_stab_reg_to_regnum): Handle DSP accumulators.
3086         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3087         (mips_gdbarch_init): Likewise.  Initialize internal register
3088         indices for the Linux ABI.  Use dynamic numbers to refer to
3089         registers, as applicable, while parsing the target description.
3090         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3091
3092 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3093
3094         * frame.h (read_frame_register_unsigned): Fix typo in function
3095         description.
3096
3097 2012-03-01  Pedro Alves  <palves@redhat.com>
3098
3099         * jit-reader.in [!__cplusplus]
3100         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3101
3102 2012-03-01  Pedro Alves  <palves@redhat.com>
3103
3104         * configure.ac (build_warnings): Add -Wmissing-prototypes.
3105         * configure: Regenerate.
3106
3107 2012-03-01  Pedro Alves  <palves@redhat.com>
3108
3109         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3110         * breakpoint.c (create_exception_master_breakpoint, trace_command)
3111         (ftrace_command, strace_command): Make static.
3112         * d-lang.c (_initialize_d_language): Declare.
3113         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3114         * dwarf2loc.c (_initialize_dwarf2loc):
3115         * dwarf2read.c (process_psymtab_comp_unit): Make static.
3116         * exec.c (exec_get_section_table): Make static.
3117         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3118         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3119         * inferior.c (remove_inferior_command, add_inferior_command)
3120         (clone_inferior_command): Make static.
3121         * linux-nat.c (linux_nat_thread_address_space)
3122         (linux_nat_core_of_thread): Make static.
3123         * linux-tdep.c (_initialize_linux_tdep): Declare.
3124         * objc-lang.c (_initialize_objc_lang): Declare.
3125         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3126         Make static.
3127         (_initialize_opencl_language): Declare.
3128         * record.c (_initialize_record): Declare.
3129         * remote.c (demand_private_info, remote_get_tib_address)
3130         (remote_supports_cond_tracepoints)
3131         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3132         Make static.
3133         * skip.c (_initialize_step_skip): Declare.
3134         * symtab.c (skip_prologue_using_lineinfo): Make static.
3135         * tracepoint.c (delete_trace_state_variable)
3136         (trace_variable_command, delete_trace_variable_command)
3137         (get_uploaded_tsv, find_matching_tracepoint_location)
3138         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3139         Make static.
3140         * value.c (pack_unsigned_long): Make static.
3141         * varobj.c (varobj_ensure_python_env): Make static.
3142         * windows-tdep.c (_initialize_windows_tdep): Declare.
3143         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3144
3145 2012-03-01  Pedro Alves  <palves@redhat.com>
3146
3147         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
3148         gdbarch parameter.
3149         (linux_init_abi): Install it as has_shared_address_space gdbarch
3150         callback.
3151
3152 2012-03-01  Pedro Alves  <palves@redhat.com>
3153
3154         * observer.c (observer_test_first_notification_function)
3155         (observer_test_second_notification_function)
3156         (observer_test_third_notification_function): Add declarations.
3157
3158 2012-03-01  Pedro Alves  <palves@redhat.com>
3159
3160         * common/signals.c (default_target_signal_to_host)
3161         (default_target_signal_from_host): Move ...
3162         * arch-utils.c: ... here.
3163         * arch-utils.h (default_target_signal_to_host)
3164         (default_target_signal_from_host): Declare.
3165
3166         * common/signals.c (target_signal_from_command): Move ...
3167         * infrun.c: ... here.
3168         * inferior.h (target_signal_from_command): Declare.
3169         * target.h (target_signal_from_command)
3170         (default_target_signal_from_host, default_target_signal_to_host):
3171         Delete declarations.
3172
3173         * common/signals.c (_initialize_signals): Delete.
3174
3175 2012-03-01  Pedro Alves  <palves@redhat.com>
3176
3177         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3178         both __cplusplus and !__cplusplus.
3179
3180 2012-03-01  Pedro Alves  <palves@redhat.com>
3181
3182         * psymtab.c (find_and_open_source): Delete declaration.
3183         * source.c (find_and_open_source): Move comment ...
3184         * source.h (find_and_open_source): ... to this new declaration.
3185
3186 2012-03-01  Pedro Alves  <palves@redhat.com>
3187
3188         * inline-frame.c: Include inline-frame.h.
3189
3190 2012-03-01  Pedro Alves  <palves@redhat.com>
3191
3192         * tui/tui-data.c (set_gen_win_origin): Delete.
3193         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3194         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3195
3196 2012-03-01  Pedro Alves  <palves@redhat.com>
3197
3198         * remote.c (encode_actions): Delete declaration.
3199         * tracepoint.c (encode_actions): Make extern.
3200         * tracepoint.h (encode_actions): Declare.
3201
3202 2012-03-01  Pedro Alves  <palves@redhat.com>
3203
3204         * python/py-breakpoint.c: Include python.h.
3205         * python/py-continueevent.c (create_continue_event_object): Make
3206         static.
3207         * python/py-lazy-string.c (stpy_get_type): Make static.
3208         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3209         Make static.
3210         * python/py-utils.c (unicode_to_target_python_string): Make
3211         static.
3212         * python/py-value.c: Include python.h.
3213
3214 2012-03-01  Pedro Alves  <palves@redhat.com>
3215
3216         * inferior.c (delete_threads_of_inferior): Delete.
3217
3218 2012-03-01  Pedro Alves  <palves@redhat.com>
3219
3220         Import fallback definitions from glibc.
3221
3222         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3223         ps_prochandle): Forward declare.
3224         (ps_err_e): Use glibc's comments.
3225         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3226         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3227         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3228         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3229         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3230         (struct ps_prochandle): Adjust comment.
3231
3232 2012-03-01  Pedro Alves  <palves@redhat.com>
3233
3234         * ada-lang.c (ada_modulus_from_name): Delete.
3235         * ada-lex.l (lexer_init): Make static.
3236
3237 2012-03-01  Pedro Alves  <palves@redhat.com>
3238
3239         PR gdb/13767
3240
3241         * frame.c (read_frame_register_unsigned): New.
3242         * frame.h (read_frame_register_unsigned): Declare.
3243         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3244         Handle it.
3245         (print_i387_control_word): New parameter `control_p'.  Handle it.
3246         (i387_print_float_info): Handle unavailable float registers.
3247
3248 2012-03-01  Keith Seitz  <keiths@redhat.com>
3249
3250         * linespec.c (decode_line_2): Sort the list of methods
3251         alphabetically before presenting the user with a selection
3252         menu.
3253
3254 2012-03-01  Doug Evans  <dje@google.com>
3255
3256         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3257         has_namespace_info.
3258         (dwarf2_read_abbrevs): Remove corresponding initialization.
3259
3260 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
3261
3262         * NEWS: Mention new python command class gdb.COMMAND_USER.
3263         * cli/cli-cmds.c (show_user): Print error when used on a python
3264         command.
3265         (init_cli_cmds): Update documentation strings for "show user" and
3266         "set/show max-user-call-depth" to clarify that it does not apply to
3267         python commands.
3268         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3269         error check.
3270         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3271         gdb python api.
3272         * top.c (execute_command): Only execute a user-defined command as a
3273         legacy macro if c->user_commands is set.
3274
3275 2012-03-01  Tom Tromey  <tromey@redhat.com>
3276
3277         * valprint.h (struct generic_val_print_decorations): New.
3278         (generic_val_print): Declare.
3279         * valprint.c (generic_val_print): New function.
3280         * p-valprint.c (p_decorations): New global.
3281         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3282         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3283         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3284         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3285         * m2-valprint.c (m2_decorations): New global.
3286         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3287         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3288         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3289         TYPE_CODE_ERROR>: Call generic_val_print.
3290         * f-valprint.c (f_decorations): New global.
3291         (f_val_print): Use print_function_pointer_address.
3292         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3293         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3294         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3295         generic_val_print.
3296         * c-valprint.c (c_decorations): New global.
3297         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3298         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3299         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3300         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3301         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3302         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3303         case.
3304
3305 2012-03-01  Tom Tromey  <tromey@redhat.com>
3306
3307         * valprint.c (val_print): Update.
3308         * p-valprint (pascal_val_print): Return void.
3309         * p-lang.h (pascal_val_print): Return void.
3310         * m2-valprint.c (m2_val_print): Return void.
3311         * m2-lang.h (m2_val_print): Return void.
3312         * language.h (struct language_defn) <la_val_print>: Return void.
3313         * language.c (unk_lang_val_print): Return void.
3314         * jv-valprint.c (java_val_print): Return void.
3315         * jv-lang.h (java_val_print): Return void.
3316         * f-valprint.c (f_val_print): Return void.
3317         * f-lang.h (f_val_print): Return void.
3318         * d-valprint.c (d_val_print): Return void.
3319         (dynamic_array_type): Update.
3320         * d-lang.h (d_val_print): Return void.
3321         * c-valprint.c (c_val_print): Return void.
3322         * c-lang.h (c_val_print): Return void.
3323         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3324         void.
3325         * ada-lang.h (ada_val_print): Return void.
3326
3327 2012-03-01  Tom Tromey  <tromey@redhat.com>
3328
3329         * value.h (val_print): Return void.
3330         * valprint.c (val_print): Return void.
3331
3332 2012-03-01  Tom Tromey  <tromey@redhat.com>
3333
3334         * value.h (common_val_print): Return void.
3335         * valprint.c (common_val_print): Return void.
3336
3337 2012-03-01  Tom Tromey  <tromey@redhat.com>
3338
3339         * value.h (value_print): Return void.
3340         * valprint.c (value_print): Return void.
3341         * p-valprint.c (pascal_value_print): Return void.
3342         * p-lang.h (pascal_value_print): Return void.
3343         * language.h (struct language_defn) <la_value_print>: Return
3344         void.
3345         * language.c (unk_lang_value_print): Return void.
3346         * jv-valprint.c (java_value_print): Return void.
3347         * jv-lang.h (java_value_print): Return void.
3348         * f-valprint.c (c_value_print): Don't declare.
3349         Include c-lang.h.
3350         * c-valprint.c (c_value_print): Return void.
3351         * c-lang.h (c_value_print): Return void.
3352         * ada-valprint.c (ada_value_print): Return void.
3353         * ada-lang.h (ada_value_print): Return void.
3354
3355 2012-03-01  Tom Tromey  <tromey@redhat.com>
3356
3357         * value.c (value_primitive_field): Handle virtual base classes.
3358
3359 2012-03-01  Tom Tromey  <tromey@redhat.com>
3360
3361         * gdbtypes.h (struct vbase): Remove.
3362
3363 2012-03-01  Tom Tromey  <tromey@redhat.com>
3364
3365         * c-valprint.c (print_function_pointer_address): Move...
3366         * valprint.c: ... here.  Make non-static.
3367         * m2-valprint.c (print_function_pointer_address): Remove.
3368         * valprint.h (print_function_pointer_address): Declare.
3369
3370 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3371
3372         * NEWS: Document the fact that one can provide a condition when
3373         creating an Ada exception catchpoint.
3374
3375 2012-03-01  Tom Tromey  <tromey@redhat.com>
3376
3377         * valprint.c (val_print_type_code_flags): Fix placement of
3378         trailing brace.
3379
3380 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3381
3382         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3383         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3384         environment variable before calling update-copyright.
3385
3386 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3387
3388         * gnulib/extra/update-copyright: Update to the latest from
3389         gnulib's git repository.
3390         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3391         variable to 2 instead of 1.
3392
3393 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3394
3395         * varobj.c (c_value_of_variable): Remove dead code.
3396
3397 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3398
3399         * ada-lex.p (processId): Do not modify already encoded IDs.
3400         Update function documentation.
3401
3402 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3403
3404         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3405         "name" with "struct symbol *name_sym".
3406         * ada-exp.y (write_var_or_type): Update call to
3407         ada_find_renaming_symbol.
3408         "name" with "struct symbol *name_sym". Adjust Implementation
3409         accordingly.  Adjust the function documentation.
3410
3411 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3412
3413         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3414         * ada-lang.c (ada_find_any_type): Add advance declaration.
3415         Make static.  Replace ada_find_any_symbol by
3416         ada_find_any_type_symbol.
3417         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3418         Improve function description.  Make static.
3419         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3420         Replace ada_find_any_symbol by ada_find_any_type_symbol.
3421
3422 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3423
3424         * ada-lang.c (struct tag_args): Delete.
3425         (ada_get_tsd_type): Function body moved up in source file.
3426         (ada_tag_name_1, ada_tag_name_2): Delete.
3427         (ada_get_tsd_from_tag): New function.
3428         (ada_tag_name_from_tsd): New function.
3429         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3430         to determine the tag name.
3431
3432 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3433
3434         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3435         declaration.
3436         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3437         function.
3438
3439 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3440
3441         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3442
3443 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3444
3445         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3446         full searches.
3447
3448 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3449
3450         * ada-lang.c (constrained_packed_array_type): If there is a
3451         parallel XA type, use it to determine the array index type.
3452
3453 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3454
3455         * ada-valprint.c (ada_val_print_1): If our value is a reference
3456         to an array descriptor, dereference it before converting it
3457         to a simple array.
3458
3459 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3460
3461         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3462         creating fixed value.
3463         (ada_value_ind, ada_coerce_ref, assign_component)
3464         (ada_evaluate_subexp): Remove call to unwrap_value before
3465         call to ada_to_fixed_value.
3466
3467 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3468
3469         * ada-lang.c (to_fixed_array_type): Set result's type name.
3470
3471 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3472
3473         * ada-lang.c (catch_ada_exception_command_split): Add new
3474         argument cond_string.  Add support for condition at end of
3475         "catch exception" commands.
3476         (ada_decode_exception_location): Add new argument cond_string.
3477         Update call to catch_ada_exception_command_split.
3478         (create_ada_exception_catchpoint): Add new argument cond_string.
3479         Set the breakpoint condition if needed.
3480         (catch_ada_exception_command): Update call to
3481         ada_decode_exception_location.
3482         (ada_decode_assert_location): Add function documentation.
3483         Add support for condition at end of "catch assert" command.
3484         (catch_assert_command): Update calls to ada_decode_assert_location
3485         and create_ada_exception_catchpoint.
3486
3487 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3488
3489         Fix disp-step-syscall.exp: fork: single step over fork.
3490         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3491         (i386_linux_get_syscall_number_from_regcache): ... here, new function
3492         comment, change parameters gdbarch and ptid to regcache.  Remove
3493         parameter regcache, initialize gdbarch from regcache here.
3494         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3495         New functions.
3496         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3497         instead.
3498         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3499         'syscall'.  Make the 'int' check more strict.
3500
3501 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3502
3503         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3504         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3505         (i386_linux_intx80_sysenter_syscall_record): ... here.
3506         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3507         Use the renamed function name.
3508
3509 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3510
3511         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3512         * breakpoint.c (until_break_command): Likewise.
3513         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3514         * infcall.c (call_function_by_hand): Likewise.
3515         * infcmd.c (finish_forward): Likewise.
3516         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3517
3518 2012-02-28  Tristan Gingold  <gingold@adacore.com>
3519
3520         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3521         avoid variable assignments inside condition.
3522
3523 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3524
3525         Fix static analysis issue found by cppcheck.
3526         * microblaze-tdep.c (microblaze_extract_return_value): Fix
3527         uninitialized BUF for size 2.
3528
3529 2012-02-27  Chris Dearman  <chris@mips.com>
3530             Nathan Froyd  <froydnj@codesourcery.com>
3531             Maciej W. Rozycki  <macro@codesourcery.com>
3532
3533         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3534         (mips16_instruction_has_delay_slot): Likewise.
3535         (mips_segment_boundary): Likewise.
3536         (mips_adjust_breakpoint_address): Likewise.
3537         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3538
3539 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
3540             Maciej W. Rozycki  <macro@codesourcery.com>
3541
3542         * infrun.c (handle_inferior_event): Don't proceed through
3543         shared library trampolines if stepping at the machine
3544         instruction level.
3545
3546 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
3547
3548         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3549         too.
3550
3551 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
3552
3553         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3554         (sh_stub_unwind_sniffer): New functions.
3555         (sh_stub_unwind): New variable.
3556         (sh_gdbarch_init): Wire everything.
3557
3558 2012-02-27  Pedro Alves  <palves@redhat.com>
3559
3560         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3561         (linux_nat_post_attach_wait): Adjust to use
3562         linux_proc_pid_is_stopped.
3563         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3564         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3565         based on pid_is_stopped from both linux-nat.c and
3566         gdbserver/linux-low.c, and renamed.
3567
3568 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
3569
3570         * remote.c (remote_watchpoint_addr_within_range): New function.
3571         (init_remote_ops): Use it.
3572
3573 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
3574
3575         * target.h (target_watchpoint_addr_within_range): Document macro.
3576
3577 2012-02-24  Pedro Alves  <palves@redhat.com>
3578
3579         * stack.c (set_last_displayed_sal): Issue internal_error instead
3580         of warning, and issue it after clearing the last displayed sal.
3581
3582 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3583             Pedro Alves  <palves@redhat.com>
3584
3585         * breakpoint.c (until_break_command): Install breakpoints after
3586         all frame manipulations.
3587
3588 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3589
3590         * remote.c (remote_supports_cond_breakpoints): New forward
3591         declaration.
3592         (remote_add_target_side_condition): New function.
3593         (remote_insert_breakpoint): Add target-side breakpoint
3594         conditional if supported.
3595         (remote_insert_hw_breakpoint): Likewise.
3596         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3597         hook.
3598
3599         * target.c (update_current_target): Inherit
3600         to_supports_evaluation_of_breakpoint_conditions.
3601         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3602
3603         * target.h (struct target_ops)
3604         <to_supports_evaluation_of_breakpoint_conditions>: New field.
3605         (target_supports_evaluation_of_breakpoint_conditions): New #define.
3606
3607         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3608         (condition_evaluation_both, condition_evaluation_auto,
3609         condition_evaluation_host, condition_evaluation_target,
3610         condition_evaluation_enums, condition_evaluation_mode_1,
3611         condition_evaluation_mode): New static globals.
3612         (translate_condition_evaluation_mode): New function.
3613         (breakpoint_condition_evaluation_mode): New function.
3614         (gdb_evaluates_breakpoint_condition_p): New function.
3615         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3616         (mark_breakpoint_modified): New function.
3617         (mark_breakpoint_location_modified): New function.
3618         (set_condition_evaluation_mode): New function.
3619         (show_condition_evaluation_mode): New function.
3620         (bp_location_compare_addrs): New function.
3621         (get_first_location_gte_addr): New helper function.
3622         (set_breakpoint_condition): Free condition bytecode if locations
3623         has become unconditional.  Call mark_breakpoint_modified (...).
3624         (condition_command): Call update_global_location_list (1) for
3625         breakpoints.
3626         (breakpoint_xfer_memory): Use is_breakpoint (...).
3627         (is_breakpoint): New function.
3628         (parse_cond_to_aexpr): New function.
3629         (build_target_condition_list): New function.
3630         (insert_bp_location): Handle target-side conditional
3631         breakpoints and call build_target_condition_list (...).
3632         (update_inserted_breakpoint_locations): New function.
3633         (insert_breakpoint_locations): Handle target-side conditional
3634         breakpoints.
3635         (bpstat_check_breakpoint_conditions): Add comment.
3636         (bp_condition_evaluator): New function.
3637         (bp_location_condition_evaluator): New function.
3638         (print_breakpoint_location): Print information on where the condition
3639         will be evaluated.
3640         (print_one_breakpoint_location): Likewise.
3641         (init_bp_location): Call mark_breakpoint_location_modified (...) for
3642         breakpoint location.
3643         (force_breakpoint_reinsertion): New functions.
3644         (update_global_location_list): Handle target-side breakpoint
3645         conditions.
3646         Reinsert locations that are already inserted if conditions have
3647         changed.
3648         (bp_location_dtor): Free agent expression bytecode.
3649         (disable_breakpoint): Call mark_breakpoint_modified (...).
3650         Call update_global_location_list (...) with parameter 1 for breakpoints.
3651         (disable_command): Call mark_breakpoint_location_modified (...).
3652         Call update_global_location_list (...) with parameter 1 for breakpoints.
3653         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3654         (enable_command): mark_breakpoint_location_modified (...).
3655         (_initialize_breakpoint): Update documentation and add
3656         condition-evaluation breakpoint subcommand.
3657
3658         * breakpoint.h: Include ax.h.
3659         (condition_list): New data structure.
3660         (condition_status): New enum.
3661         (bp_target_info) <cond_list>: New field.
3662         (bp_location) <condition_changed, cond_bytecode>: New fields.
3663         (is_breakpoint): New prototype.
3664
3665 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3666
3667         * remote.c (remote_state) <cond_breakpoints>: New field.
3668         (PACKET_ConditionalBreakpoints): New enum.
3669         (remote_cond_breakpoint_feature): New function.
3670         (remote_protocol_features): Add new ConditionalBreakpoints entry.
3671         (remote_supports_cond_breakpoints): New function.
3672         (_initialize_remote): Add new packet configuration for
3673         target-side conditional breakpoints.
3674
3675 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3676
3677         * NEWS: Mention target-side conditional breakpoint support,
3678         new condition-evaluation breakpoint subcommand and remote
3679         packet extensions.
3680
3681 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3682
3683         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3684         number.
3685
3686 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
3687
3688         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3689         (after_prologue): Remove.
3690
3691 2012-02-23  Tom Tromey  <tromey@redhat.com>
3692
3693         * jv-valprint.c (java_val_print): Remove dead code.
3694
3695 2012-02-23  Tristan Gingold  <gingold@adacore.com>
3696
3697         * ada-tasks.c (struct ada_tasks_inferior_data): Add
3698         known_tasks_element and known_tasks_length fields.
3699         (read_known_tasks_array): Change argument type.  Use pointer type
3700         and number of elements from DATA.  Adjust.
3701         (read_known_tasks_list): Likewise.
3702         (get_known_tasks_addr): Remove.
3703         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3704         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
3705         type and array length.  Merge former get_known_tasks_addr code.
3706
3707 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3708
3709         PR backtrace/13716
3710         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3711         it after set_momentary_breakpoint.
3712
3713 2012-02-22  Sterling Augustine  <saugustine@google.com>
3714
3715         PR 13689:
3716         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3717
3718 2012-02-22  Gary Benson  <gbenson@redhat.com>
3719
3720         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3721         (find_slot_in_mapped_hash): Likewise.
3722
3723 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3724
3725         PR build/13638
3726         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3727         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3728         * configure: Regenerate.
3729
3730 2012-02-21  Tristan Gingold  <gingold@adacore.com>
3731             Pedro Alves  <palves@redhat.com>
3732
3733         * ia64-tdep.c: Do not include libunwind-ia64.h.
3734         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3735         Include libunwind-ia64.h instead of libunwind.h.
3736         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3737         for libunwind.h existence.
3738         * configure, config.in: Regenerate.
3739
3740 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
3741
3742         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3743         instead of value_rtti_target_type.
3744         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3745         instead of value_rtti_target_type.
3746         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3747         value_rtti_target_type.
3748         * valops.c (value_ind): Extract function readjust_indirect_value_type.
3749         (value_rtti_target_type): Rename to ...
3750         (value_rtti_indirect_type): ... here and make it indirect.  Update
3751         function comment.
3752         * value.c (readjust_indirect_value_type): New function.
3753         (coerce_ref): Support for enclosing type setting for references
3754         with readjust_indirect_value_type.
3755         * value.h (readjust_value_type): New declaration.
3756         (value_rtti_target_type): Rename to ...
3757         (value_rtti_indirect_type): ... here.
3758
3759 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
3760
3761         * MAINTAINERS (Write After Approval): Add myself to the list.
3762
3763 2012-02-20  Doug Evans  <dje@google.com>
3764
3765         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3766         Rename objfile_p_char parameter to objfilep.
3767         (build_objfile_section_table): Result is now void.  All callers
3768         updated.
3769         * objfiles.h (struct objfile): Tweak comments, whitespace.
3770         (build_objfile_section_table): Update.
3771
3772         * elfread.c (elf_symfile_segments): Fix warning text.
3773
3774 2012-02-20  Tom Tromey  <tromey@redhat.com>
3775
3776         PR gdb/13498:
3777         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3778         particular set of file names once.
3779         (dw2_map_symbol_filenames): Likewise.
3780
3781 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3782
3783         Code cleanup.
3784         * main.c (write_files): Remove the declaration.
3785         (external_editor_command): Move the declaration ...
3786         [GDBTK] (external_editor_command): ... here.  Fix the comment.
3787
3788 2012-02-20  Tom Tromey  <tromey@redhat.com>
3789
3790         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3791         extraneous block.
3792
3793 2012-02-20  Tristan Gingold  <gingold@adacore.com>
3794
3795         * darwin-nat.h (enum darwin_msg_state): Add comments.
3796
3797 2012-02-20  Tristan Gingold  <gingold@adacore.com>
3798
3799         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3800         value.
3801
3802 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
3803
3804         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3805         between function description and implementation.
3806
3807 2012-02-17  Tom Tromey  <tromey@redhat.com>
3808
3809         PR python/12070:
3810         * python/py-event.c (event_object_getset): New global.
3811         (event_object_type): Reference it.
3812         * python/py-type.c (field_object_getset): New global.
3813         (field_object_type): Reference it.
3814         * python/python-internal.h (gdb_py_generic_dict): Declare.
3815         * python/py-utils.c (gdb_py_generic_dict): New function.
3816
3817 2012-02-17  Tristan Gingold  <gingold@adacore.com>
3818
3819         * solib-darwin.c (darwin_current_sos): Check magic and filetype
3820
3821 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
3822
3823         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3824         TYPE_CALLING_CONVENTION annotation.
3825
3826 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
3827
3828         * MAINTAINERS: Add rx to target ISA section.
3829         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3830         (ALLDEPFILES): Add rx-tdep.c.
3831
3832 2012-02-16  Tom Tromey  <tromey@redhat.com>
3833
3834         * symfile.c (symbol_file_add_main_1): Use inferior's
3835         symfile_flags.
3836         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3837         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3838         inferior.
3839         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3840         inferior.
3841         (follow_exec): Use inferior's symfile_flags.
3842         * inferior.h (struct inferior) <symfile_flags>: New field.
3843
3844 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
3845
3846         PR gdb/9734:
3847         * remote-sim.c (gdbsim_create_inferior): Call error() when
3848         sim_create_inferior() fails.
3849
3850 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
3851
3852         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3853
3854 2012-02-16  Tom Tromey  <tromey@redhat.com>
3855
3856         PR c++/13653:
3857         * thread.c (struct current_thread_cleanup) <was_removable>: New
3858         field.
3859         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3860         (make_cleanup_restore_current_thread): Initialize new field.
3861
3862 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
3863
3864         * MAINTAINERS: Add rl78 to target ISA section.
3865         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3866         (ALLDEPFILES): Add rl78-tdep.c.
3867         * NEWS: Mention rl78 as a new target.
3868
3869 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
3870
3871         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3872         data.
3873         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3874
3875 2012-02-15  Tom Tromey  <tromey@redhat.com>
3876
3877         PR gdb/12659:
3878         * infcmd.c (registers_info): Print just the current register's
3879         name.
3880
3881 2012-02-15  Tom Tromey  <tromey@redhat.com>
3882
3883         * python/py-symbol.c (sympy_value): Use _().
3884
3885 2012-02-15  Pedro Alves  <palves@redhat.com>
3886
3887         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3888         output to be like native targets'.
3889         (remote_pid_to_str): Special case the null ptid.
3890
3891 2012-02-14  Stan Shebs  <stan@codesourcery.com>
3892
3893         * NEWS: Mention enable count command.
3894         * breakpoint.h (struct breakpoint): New field enable_count.
3895         * breakpoint.c (enable_breakpoint_disp): Add count argument.
3896         (enable_breakpoint): Add arg to call.
3897         (struct disp_data): New struct.
3898         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3899         (do_map_enable_once_breakpoint): Create a struct and pass it.
3900         (do_map_enable_delete_breakpoint): Ditto.
3901         (do_map_enable_count_breakpoint): New function.
3902         (enable_count_command): New function.
3903         (bpstat_stop_status): Decrement enable_count.
3904         (print_one_breakpoint_location): Report enable count.
3905         (_initialize_breakpoint): Add enable count command.
3906
3907 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
3908
3909         * rl78-tdep.c (reggroups.h): Include.
3910         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3911         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3912         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3913         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3914         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3915         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3916         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3917         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3918         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3919         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3920         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3921         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3922         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3923         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3924         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3925         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3926         beginning of register list.
3927         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3928         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3929         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3930         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3931         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3932         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3933         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3934         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3935         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3936         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3937         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3938         the pseudo registers.  Rearrange other pseudo registers too so
3939         that the bank registers appear at the end.
3940         (rl78_register_type): Account for the fact that the byte sized
3941         bank registers are now pseudo-registers.
3942         (rl78_register_name): Rearrange the register name array.  Make
3943         initial set of raw banked registers inaccessible.
3944         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3945         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3946         case for copying bytes back and forth between raw and pseudo
3947         versions of the banked registers.  Update other cases to reflect
3948         the changed names.
3949         (rl78_return_value): Update to account for changed names of
3950         raw registers.
3951         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3952         rl78_register_sim_regno().
3953
3954 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
3955
3956         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3957         the name parameter being passed to find_pc_partial_function().
3958
3959 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3960
3961         * MAINTAINERS: Step down from being ia64 target maintainer.
3962
3963 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3964
3965         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3966         compilation warning.
3967
3968 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3969
3970         Fix crash on loaded shlibs without loaded exec_bfd.
3971         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3972         (set_section_command): Replace exec_bfd by p->bfd.
3973
3974 2012-02-10  Tom Tromey  <tromey@redhat.com>
3975
3976         * linespec.c (decode_line_internal): Skip symtabs_from_filename
3977         when we have a C++ qualified name.
3978
3979 2012-02-10  Pedro Alves  <palves@redhat.com>
3980
3981         * inferior.c (inferior_pid_to_str): New.
3982         (print_inferior, inferior_command): Use it.
3983
3984 2012-02-10  Pedro Alves  <palves@redhat.com>
3985
3986         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3987         the test CFLAGS.
3988         * configure: Regenerate.
3989
3990 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3991
3992         * linespec.c (decode_line_internal): Fix comment correctness.
3993
3994 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
3995
3996         PR gdb/12953
3997         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3998         * amd64bsd-nat.c: Add support for debug registers (adapted from
3999         i386bsd-nat.c).
4000         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4001         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4002         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4003         (amd64bsd_dr_get_control): New functions.
4004         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4005         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4006         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4007         watchpoints initialization.
4008         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4009
4010 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4011
4012         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4013         flds_bnds.fields.
4014         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4015
4016 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4017
4018         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
4019
4020 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
4021
4022         * language.h (symbol_name_cmp_ftype): Renames
4023         symbol_name_match_p_ftype.
4024         (struct language_defn)[la_get_symbol_name_cmp]: Renames
4025         la_get_symbol_name_match_p.
4026         * ada-lang.c (ada_get_symbol_name_cmp): Renames
4027         ada_get_symbol_name_match_p.  Update comment.
4028         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4029         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4030         Renames symbol_name_match_p.  Update field type.
4031         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4032         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4033         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4034         "la_get_symbol_name_cmp" in comments.
4035         * language.c: Likewise.
4036
4037 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4038
4039         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4040         %eflags offset.
4041         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4042         (amd64_sol2_gregset32_reg_offs): Likewise.
4043
4044 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
4045
4046         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4047         of the returned BFD is allocated by GDB.
4048
4049 2012-02-07  Tom Tromey  <tromey@redhat.com>
4050
4051         PR python/12027:
4052         * python/python-internal.h (frame_object_type): Declare.
4053         * python/py-symbol.c (sympy_needs_frame): New function.
4054         (sympy_value): New function.
4055         (symbol_object_getset): Add "needs_frame".
4056         (symbol_object_methods): Add "value".
4057         * python/py-frame.c (frame_object_type): No longer static.
4058
4059 2012-02-07  Tom Tromey  <tromey@redhat.com>
4060
4061         PR python/13599:
4062         * python/py-symbol.c (sympy_line): New function.
4063         (symbol_object_getset): Add "line".
4064
4065 2012-02-07  Tom Tromey  <tromey@redhat.com>
4066
4067         * charset.c (find_charset_names): Check 'in' against NULL.
4068
4069 2012-02-06  Doug Evans  <dje@google.com>
4070
4071         * gdbtypes.h (struct main_type): Change type of name,tag_name,
4072         and fields.name members from char * to const char *.  All uses updated.
4073         (struct cplus_struct_type): Change type of fn_fieldlists.name member
4074         from char * to const char *.  All uses updated.
4075         (type_name_no_tag): Update.
4076         (lookup_unsigned_typename, lookup_signed_typename): Update.
4077         * gdbtypes.c (type_name_no_tag): Change result type
4078         from char * to const char *.  All callers updated.
4079         (lookup_unsigned_typename, lookup_signed_typename): Change type of
4080         name parameter from char * to const char *.
4081         * symtab.h (struct cplus_specific): Change type of demangled_name
4082         member from char * to const char *.  All uses updated.
4083         (struct general_symbol_info): Change type of name and
4084         mangled_lang.demangled_name members from char * to const char *.
4085         All uses updated.
4086         (symbol_get_demangled_name, symbol_natural_name): Update.
4087         (symbol_demangled_name, symbol_search_name): Update.
4088         * symtab.c (symbol_get_demangled_name): Change result type
4089         from char * to const char *.  All callers updated.
4090         (symbol_natural_name, symbol_demangled_name): Ditto.
4091         (symbol_search_name): Ditto.
4092         (completion_list_add_name): Change type of symname,sym_text,
4093         text,word parameters from char * to const char *.
4094         (completion_list_objc_symbol): Change type of sym_text,
4095         text,word parameters from char * to const char *.
4096         * ada-lang.c (find_struct_field): Change type of name parameter
4097         from char * to const char *.
4098         (encoded_ordered_before): Similarly for N0,N1 parameters.
4099         (old_renaming_is_invisible): Similarly for function_name parameter.
4100         (ada_type_name): Change result type from char * to const char *.
4101         All callers updated.
4102         * ada-lang.h (ada_type_name): Update.
4103         * buildsym.c (hashname): Change type of name parameter
4104         from char * to const char *.
4105         * buildsym.h (hashname): Update.
4106         * dbxread.c (end_psymtab): Change type of include_list parameter
4107         from char ** to const char **.
4108         * dwarf2read.c (determine_prefix): Change result type
4109         from char * to const char *.  All callers updated.
4110         * f-lang.c (find_common_for_function): Change type of name, funcname
4111         parameters from char * to const char *.
4112         * f-lang.c (find_common_for_function): Update.
4113         * f-valprint.c (list_all_visible_commons): Change type of funcname
4114         parameters from char * to const char *.
4115         * gdbarch.sh (static_transform_name): Change type of name parameter
4116         and result from char * to const char *.
4117         * gdbarch.c: Regenerate.
4118         * gdbarch.h: Regenerate.
4119         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4120         of name parameter from char * to const char *.
4121         * jv-lang.c (java_primitive_type_from_name): Ditto.
4122         (java_demangled_signature_length): Similarly for signature parameter.
4123         (java_demangled_signature_copy): Ditto.
4124         (java_demangle_type_signature): Ditto.
4125         * jv-lang.h (java_primitive_type_from_name): Update.
4126         (java_demangle_type_signature): Update.
4127         * objc-lang.c (specialcmp): Change type of a,b parameters
4128         from char * to const char *.
4129         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4130         from char * to const char *.  All callers updated.
4131         * p-lang.h (is_pascal_string_type): Update.
4132         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4133         of name parameter from char * to const char *.
4134         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4135         * utils.c (fprintf_symbol_filtered): Ditto.
4136         * defs.h (fprintf_symbol_filtered): Update.
4137         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4138         * stabsread.h (end_psymtab): Update.
4139         * stack.c (find_frame_funname): Change type of funname parameter
4140         from char ** to const char **.
4141         * stack.h (find_frame_funname): Update.
4142         * typeprint.c (type_print): Change type of varstring parameter
4143         from char * to const char *.
4144         * value.h (type_print): Update.
4145         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4146         from char * to const char *.  All callers updated.
4147         (xcoff_end_psymtab): Change type of include_list parameter
4148         from char ** to const char **.  All callers updated.
4149         (swap_sym): Similarly for name parameter.  All callers updated.
4150         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4151         Use xstrdup.
4152         (process_coff_symbol): Use xstrdup.
4153         * stabsread.c (stabs_method_name_from_physname): Renamed from
4154         update_method_name_from_physname.  Change result type from void
4155         to char *.  All callers updated.
4156         (read_member_functions): In has_destructor case, store name in objfile
4157         obstack instead of malloc space.  In !has_stub case, fix mem leak.
4158
4159 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
4160
4161         * configure: Rebuild.
4162         * configure.ac: Put -L../bfd and -L../libiberty at the front of
4163         LDFLAGS.
4164
4165 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
4166
4167         * configure.tgt (rl78-*-elf): New target.
4168         * rl78-tdep.c: New file.
4169
4170 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4171
4172         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4173         and continue the loop.  Add QUIT statement.
4174
4175 2012-02-03  Tom Tromey  <tromey@redhat.com>
4176
4177         PR gdb/13596:
4178         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4179         bfd_lookup_symbol_from_symtab.
4180         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4181         gdb_bfd_lookup_symbol_from_symtab.
4182
4183 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
4184
4185         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4186         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4187         symbol.  Add assertion that sym2 is never NULL.
4188
4189 2012-02-02  Doug Evans  <dje@google.com>
4190
4191         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4192         "name" parameter to const char ** from char **.  All callers updated.
4193         (find_pc_partial_function): Ditto.
4194         (cache_pc_function_name): Change type to const char * from char *.
4195         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4196         (find_pc_partial_function): Update.
4197         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4198         type of "name" parameter to const char * from char *.
4199         All uses updated.
4200         * arch-utils.c (generic_in_solib_return_trampoline): Change
4201         type of "name" parameter to const char * from char *.
4202         * arch-utils.h (generic_in_solib_return_trampoline): Update.
4203         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4204         type of "name" parameter to const char * from char *.
4205         * gdbarch.sh (in_solib_return_trampoline): Ditto.
4206         * gdbarch.c: Regenerate.
4207         * gdbarch.h: Regenerate.
4208         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4209         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4210         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4211         type of "name" parameter to const char * from char *.
4212         * skip.c (skip_function_pc): Ditto.
4213         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4214         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4215         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4216         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4217         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4218         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4219         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4220         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4221         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4222
4223 2012-02-02  Pedro Alves  <palves@redhat.com>
4224
4225         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4226         the current inferior has no execution.  Make sure the current
4227         remote process matches gdb's current inferior.
4228
4229 2012-02-02  Tom Tromey  <tromey@redhat.com>
4230
4231         PR gdb/13405:
4232         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4233         read-only memory.
4234
4235 2012-02-02  Tom Tromey  <tromey@redhat.com>
4236
4237         PR gdb/9307:
4238         * symtab.c (lookup_language_this): Set block_found.
4239
4240 2012-02-01  Tom Tromey  <tromey@redhat.com>
4241
4242         PR gdb/13431:
4243         * jit.c (struct jit_inferior_data): Rewrite.
4244         (struct jit_objfile_data): New.
4245         (get_jit_objfile_data): New function.
4246         (add_objfile_entry): Update.
4247         (jit_read_descriptor): Return int.  Replace descriptor_addr
4248         argument with inf_data.  Update.  Don't call error.
4249         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
4250         descriptor here.
4251         (jit_inferior_init): Don't look up descriptor.  Don't call error.
4252         (jit_reset_inferior_data_and_breakpoints)
4253         (jit_inferior_created_observer): Remove.
4254         (jit_inferior_exit_hook): Update.
4255         (jit_executable_changed_observer): Remove.
4256         (jit_event_handler): Update.
4257         (free_objfile_data): Reset inferior data if needed.
4258         (_initialize_jit): Update.
4259
4260 2012-02-01  Tom Tromey  <tromey@redhat.com>
4261
4262         * jit.c (bfd_open_from_target_memory): Move higher in file.
4263
4264 2012-02-01  Tristan Gingold  <gingold@adacore.com>
4265
4266         * libunwind-frame.c (libunwind_load): Display message if dlopen
4267         failed.
4268
4269 2012-02-01  Gary Benson  <gbenson@redhat.com>
4270
4271         * symtab.h (symbol_found_callback_ftype): New typedef.
4272         (iterate_over_symbols): Use the above.
4273         * symtab.c (iterate_over_symbols): Likewise.
4274         * language.h (language_defn->la_iterate_over_symbols): Likewise.
4275         * ada-lang.c (ada_iterate_over_symbols): Likewise.
4276         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4277         (iterate_name_matcher): Document return values.
4278         (collect_one_symbol): Likewise.
4279         (collect_function_symbols): Likewise.
4280         (collect_symbols): Likewise.
4281
4282 2012-02-01  Tom Tromey  <tromey@redhat.com>
4283
4284         * ada-lang.c (resolve_subexp): Update.
4285         (ada_lookup_symbol_list): Add 'full_search' argument.
4286         (ada_iterate_over_symbols): Pass 0 as full_search argument to
4287         ada_lookup_symbol_list.
4288         (ada_lookup_encoded_symbol): Update.
4289         (get_var_value): Update.
4290         * ada-exp.y (block_lookup): Update.
4291         (write_var_or_type): Update.
4292         (write_name_assoc): Update.
4293         * ada-lang.h (ada_lookup_symbol_list): Update.
4294
4295 2012-01-31  Tom Tromey  <tromey@redhat.com>
4296
4297         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4298         comment.
4299
4300 2012-01-31  Doug Evans  <dje@google.com>
4301
4302         * symtab.h: Remove outdated comment.
4303         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
4304
4305 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
4306
4307         Fix build error in Darwin port.
4308         * i386-darwin-nat.c: Include i386-nat.h.
4309
4310 2012-01-30  Tom Tromey  <tromey@redhat.com>
4311
4312         PR breakpoints/13568:
4313         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4314         argument.  Check for recursive includes.
4315         (dwarf_decode_macros): Create an include hash.
4316
4317 2012-01-30  Michael Eager  <eager@eagercon.com>
4318
4319         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4320         * ppc-linux-tdep.c: Include glibc-tdep.h.
4321         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
4322         (powerpc_linux_in_plt_stub): New function.
4323         (powerpc_linux_in_dynsym_resolve_code): New function.
4324         (ppc_skip_trampoline_code): New function.
4325         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4326         Use glibc_skip_solib_resolver.
4327
4328 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4329
4330         Code cleanup: Make 1440 bytes of data segment read-only.
4331         * arch-utils.c (endian_enum): Make it const char *const [].
4332         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4333         Likewise.
4334         * breakpoint.c (always_inserted_enums): Likewise.
4335         * cli/cli-cmds.c (script_ext_enums): Likewise.
4336         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4337         enumlist parameter const char *const *.
4338         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4339         const char *const *.
4340         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4341         parameter const char *const *.
4342         * cris-tdep.c (cris_modes): Make it const char *const [].
4343         * filesystem.c (target_file_system_kinds): Likewise.
4344         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4345         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4346         (can_use_displaced_stepping_enum, scheduler_enums)
4347         (exec_direction_names): Likewise.
4348         * language.c (_initialize_language): Make the type_or_range_names and
4349         case_sensitive_names variables const char *const [].
4350         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4351         * python/python.c (python_excp_enums): Likewise.
4352         * remote.c (interrupt_sequence_modes): Likewise.
4353         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4354         * serial.c (logbase_enums): Likewise.
4355         * sh-tdep.c (sh_cc_enum): Likewise.
4356         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4357         Likewise.
4358         * symtab.c (multiple_symbols_modes): Likewise.
4359         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4360         Likewise.
4361         * utils.c (internal_problem_modes): Likewise.
4362
4363 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4364
4365         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4366         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4367         result.
4368
4369 2012-01-27  Doug Evans  <dje@google.com>
4370
4371         * configure.ac (with_python): Fix absolute path handling for win32.
4372         * configure: Regenerate.
4373
4374 2012-01-26  Doug Evans  <dje@google.com>
4375
4376         * symtab.c: Whitespace cleanup, no code changes.
4377
4378         * symtab.c (lookup_symbol_in_language): Improve comment.
4379         (lookup_symbol_aux): Fix comment.
4380
4381         * psymtab.c (add_psymbol_to_list): Result is now "void".
4382         * psympriv.h (add_psymbol_to_list): Update.
4383
4384         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4385
4386 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4387
4388         Do not open script filenames twice.
4389         * cli/cli-cmds.c (source_script_from_stream): Pass to
4390         source_python_script also STREAM.
4391         * python/py-auto-load.c (source_section_scripts): Pass to
4392         source_python_script_for_objfile also STREAM.
4393         (auto_load_objfile_script): Pass to source_python_script_for_objfile
4394         also INPUT.
4395         * python/python-internal.h (source_python_script_for_objfile): New
4396         parameter file, rename parameter file to filename.
4397         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4398         instead if !_WIN32.  Update the function comment.
4399         (source_python_script, source_python_script_for_objfile)
4400         (source_python_script): New parameter file, rename parameter file to
4401         filename.  Pass FILENAME to python_run_simple_file.
4402         * python/python.h (source_python_script): New parameter file, rename
4403         parameter file to filename.
4404
4405 2012-01-26  Pedro Alves  <palves@redhat.com>
4406
4407         * corelow.c (core_has_fake_pid): Delete.
4408         (core_close): Delete references to `core_has_fake_pid'.
4409         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4410         (core_open): Delete references to `core_has_fake_pid'.
4411         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4412         the removed global.
4413
4414 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
4415
4416         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4417         Remove language parameter from name_matcher.  Adjust the comment.
4418         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4419         Remove language parameter.
4420         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4421         * linespec.c (iterate_name_matcher): Likewise.
4422         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4423         name_matcher.  Adjust call accordingly.
4424         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4425         (maintenance_check_symtabs): Adjust type of parameter "fun".
4426         * psymtab.h (maintenance_check_symtabs): Likewise.
4427
4428 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
4429
4430         * language.h (symbol_name_match_p_ftype): New typedef.
4431         (struct language_defn): Replace field la_symbol_name_compare
4432         by la_get_symbol_name_match_p.
4433         * ada-lang.c (ada_get_symbol_name_match_p): New function.
4434         (ada_language_defn): Use it.
4435         * linespec.c (struct symbol_matcher_data): New type.
4436         (iterate_name_matcher): Rewrite.
4437         (iterate_over_all_matching_symtabs): Pass a pointer to
4438         a symbol_matcher_data struct to expand_symtabs_matching
4439         instead of just the lookup name.
4440         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4441         opencl-lang.c, p-lang.c, language.c: Delete field
4442         la_symbol_name_compare, and replace by NULL for new field
4443         la_get_symbol_name_match_p.
4444         * symfile.h (struct quick_symbol_functions): Update comment.
4445
4446 2012-01-25  Tom Tromey  <tromey@redhat.com>
4447
4448         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4449         dereferencing.
4450
4451 2012-01-24  Tom Tromey  <tromey@redhat.com>
4452
4453         PR symtab/12406:
4454         * solib.c (update_solib_list): Update the program space's
4455         added_solibs and deleted_solibs fields.
4456         * progspace.h (struct program_space) <added_solibs,
4457         deleted_solibs>: New fields.
4458         (clear_program_space_solib_cache): Declare.
4459         * progspace.c (release_program_space): Call
4460         clear_program_space_solib_cache.
4461         (clear_program_space_solib_cache): New function.
4462         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4463         bpstat_stop_status.  Use handle_solib_event.
4464         * breakpoint.c: Include gdb_regex.h.
4465         (print_solib_event): New function.
4466         (bpstat_print): Use print_solib_event.
4467         (bpstat_stop_status): Add special case for bp_shlib_event.
4468         (handle_solib_event): New function.
4469         (bpstat_what): Use handle_solib_event.
4470         (struct solib_catchpoint): New.
4471         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4472         (breakpoint_hit_catch_solib, check_status_catch_solib)
4473         (print_it_catch_solib, print_one_catch_solib)
4474         (print_mention_catch_solib, print_recreate_catch_solib): New
4475         functions.
4476         (catch_solib_breakpoint_ops): New global.
4477         (catch_load_or_unload, catch_load_command_1)
4478         (catch_unload_command_1): New functions.
4479         (internal_bkpt_check_status): Add special case for
4480         bp_shlib_event.
4481         (internal_bkpt_print_it): Use print_solib_event.
4482         (initialize_breakpoint_ops): Initialize
4483         catch_solib_breakpoint_ops.
4484         (_initialize_breakpoint): Register "catch load" and "catch
4485         unload".
4486         * breakpoint.h (handle_solib_event): Declare.
4487         * NEWS: Add entry for "catch load" and "catch unload".
4488
4489 2012-01-24  Tom Tromey  <tromey@redhat.com>
4490
4491         * ada-lang.c: Include gdb_vecs.h.
4492         * charset.c: Include gdb_vecs.h.
4493         * tracepoint.h: Include gdb_vecs.h.
4494         * gdb_vecs.h: New file.
4495
4496 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
4497
4498         * breakpoint.c (breakpoint_hit_catch_fork)
4499         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4500         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4501         * infrun.c (inferior_has_forked, inferior_has_vforked)
4502         (inferior_has_execd, inferior_has_called_syscall): Delete.
4503         (handle_syscall_event): Get syscall_number from the execution
4504         control state's wait status.
4505         (wait_for_inferior): Don't clear syscall_number.
4506
4507 2012-01-24  Pedro Alves  <palves@redhat.com>
4508
4509         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4510         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4511         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4512         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4513         `ws' parameter.
4514         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
4515         false for events other than TARGET_SIGNAL_TRAP.
4516         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4517         Add `ws' parameter.
4518         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
4519         events other than TARGET_SIGNAL_TRAP.
4520         (tracepoint_breakpoint_hit): Add `ws' parameter.
4521         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4522         parameter.
4523         (bpstat_stop_status): Same.
4524         (pc_at_non_inline_function): Same.
4525         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4526         to pass the current event's waitstatus to bpstat_stop_status
4527         and pc_at_non_inline_function.
4528
4529 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4530
4531         Code cleanup.
4532         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4533         Update the function comment for it.
4534         (source_script_with_search): Call make_cleanup_fclose for STREAM.
4535         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4536         for STREAM.
4537
4538 2012-01-24  Pedro Alves  <palves@redhat.com>
4539
4540         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4541         outside `bs->stop' block.
4542         (bpstat_what): Rework bp_shlib_event handling.
4543         (internal_bkpt_check_status): If the breakpoint is a
4544         bp_shlib_event, then set bs->stop and bs->print if
4545         stop_on_solib_events is set.
4546
4547 2012-01-24  Gary Benson  <gbenson@redhat.com>
4548
4549         Delete #if 0'd out code.
4550         * stack.c (print_frame_label_vars): Remove.
4551         (catch_info): Likewise.
4552         (_initialize_stack): Remove "info catch" command.
4553         * NEWS: Mention the above.
4554
4555 2012-01-24  Pedro Alves  <palves@redhat.com>
4556
4557         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
4558         it.
4559         (remote_notice_new_inferior): If the remote end doesn't support
4560         the multiprocess extensions, then the PID is fake.
4561         (add_current_inferior_and_thread): New.
4562         (remote_start_remote): Use it.
4563         (extended_remote_attach_1): Adjust.
4564         (extended_remote_create_inferior_1): Use
4565         add_current_inferior_and_thread.
4566
4567 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4568
4569         Fix watchpoints to be specific for each inferior.
4570         * breakpoint.c (watchpoint_in_thread_scope): Verify also
4571         current_program_space.
4572         * i386-nat.c (i386_inferior_data_cleanup): New.
4573         (i386_inferior_data_get): Replace variable inf_data_local by an
4574         inferior_data call.
4575         (i386_use_watchpoints): Initialize i386_inferior_data.
4576         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4577         specific iterate_over_lwps.
4578
4579 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4580
4581         Fix watchpoints across inferior fork.
4582         * amd64-linux-nat.c (update_debug_registers_callback): Update the
4583         comment for linux_nat_iterate_watchpoint_lwps.
4584         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4585         linux_nat_iterate_watchpoint_lwps.
4586         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4587         * i386-linux-nat.c (update_debug_registers_callback): Update the
4588         comment for linux_nat_iterate_watchpoint_lwps.
4589         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4590         linux_nat_iterate_watchpoint_lwps.
4591         (i386_linux_prepare_to_resume): New comment on Linux kernel.
4592         * i386-nat.c: Include inferior.h.
4593         (dr_mirror): Remove.
4594         (i386_inferior_data, struct i386_inferior_data)
4595         (i386_inferior_data_get): New.
4596         (i386_debug_reg_state): Use i386_inferior_data_get.
4597         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4598         (i386_insert_watchpoint, i386_remove_watchpoint)
4599         (i386_stopped_data_address, i386_insert_hw_breakpoint)
4600         (i386_remove_hw_breakpoint): New variable state, use
4601         i386_debug_reg_state instead of DR_MIRROR.
4602         * linux-nat.c (delete_lwp): New declaration.
4603         (num_lwps): Move here from downwards.
4604         (delete_lwp_cleanup): New.
4605         (linux_child_follow_fork): Create new child_lp, call
4606         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4607         PTRACE_DETACH.
4608         (num_lwps): Move upwards.
4609         (linux_nat_iterate_watchpoint_lwps): New.
4610         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4611         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4612
4613 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
4614
4615         GDB 7.4 released.
4616
4617 2012-01-23  Pedro Alves  <palves@redhat.com>
4618
4619         * top.c (caution): Rename to ...
4620         (confirm): ... this.
4621         (show_caution): Rename to ...
4622         (show_confirm): ... this.
4623         (quit_cover): Adjust.
4624         (init_main): Adjust.
4625         * top.h (caution): Rename to ...
4626         (confirm): ... this.
4627         * utils.c (internal_vproblem, defaulted_query): Adjust.
4628
4629 2012-01-23  Pedro Alves  <palves@redhat.com>
4630
4631         * top.c (caution): Update comment.
4632         (execute_command): Don't consider the current value of `caution'.
4633
4634 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4635
4636         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4637
4638 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
4639
4640         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4641         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4642         * target.c (target_fileio_pwrite): Remove buffer address from
4643         debug output.
4644         (target_fileio_pread): Likewise.
4645
4646 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4647
4648         * NEWS: Document remote "info proc" and "generate-core-file".
4649
4650 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4651
4652         * gdbarch.sh (find_memory_regions): New callback.
4653         * gdbarch.c, gdbarch.h: Regenerate.
4654
4655         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4656         callback before falling back to target method.
4657
4658         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4659         (linux_target_install_ops): No longer install it.
4660
4661         * linux-tdep.c (linux_find_memory_regions): New function.
4662         (linux_init_abi): Install it.
4663
4664 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4665
4666         * gdbarch.sh (make_corefile_notes): New architecture callback.
4667         * gdbarch.c: Regenerate.
4668         * gdbarch.h: Likewise.
4669
4670         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4671         before target_make_corefile_notes.  If NULL is returned, the
4672         target does not support core file generation.
4673
4674         * linux-nat.c: Include "linux-tdep.h".
4675         (find_signalled_thread, find_stop_signal): Remove.
4676         (linux_nat_do_thread_registers): Likewise.
4677         (struct linux_nat_corefile_thread_data): Likewise.
4678         (linux_nat_corefile_thread_callback): Likewise.
4679         (iterate_over_spus): Likewise.
4680         (struct linux_spu_corefile_data): Likewise.
4681         (linux_spu_corefile_callback): Likewise.
4682         (linux_spu_make_corefile_notes): Likewise.
4683         (linux_nat_collect_thread_registers): New function.
4684         (linux_nat_make_corefile_notes): Replace contents by call to
4685         linux_make_corefile_notes passing linux_nat_collect_thread_registers
4686         as native-only callback.
4687
4688         * linux-tdep.h: Include "bfd.h".
4689         (struct regcache): Add forward declaration.
4690         (linux_collect_thread_registers_ftype): New typedef.
4691         (linux_make_corefile_notes): Add prototype.
4692         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4693         "regset.h", and "elf-bfd.h".
4694         (find_signalled_thread, find_stop_signal): New functions.
4695         (linux_spu_make_corefile_notes): Likewise.
4696         (linux_collect_thread_registers): Likewise.
4697         (struct linux_corefile_thread_data): New data structure.
4698         (linux_corefile_thread_callback): New funcion.
4699         (linux_make_corefile_notes): Likewise.
4700         (linux_make_corefile_notes_1): Likewise.
4701         (linux_init_abi): Install it.
4702
4703 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4704
4705         * gdbarch.sh (info_proc): New callback.
4706         * gdbarch.c, gdbarch.h: Regenerate.
4707
4708         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4709         before falling back to the target info_proc callback.
4710
4711         * linux-nat.c: Do not include "cli/cli-utils.h".
4712         (linux_nat_info_proc): Remove.
4713         (linux_target_install_ops): No longer install it.
4714
4715         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4716         (read_mapping): New function.
4717         (linux_info_proc): Likewise.
4718         (linux_init_abi): Install it.
4719
4720 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4721
4722         * defs.h (enum info_proc_what): Moved here from linux-nat.c
4723         * infcmd.c: (info_proc_cmd_1): New function.
4724         (info_proc_cmd): New function, moved here from equivalent routine
4725         orignally in linux-nat.c.
4726         (info_proc_cmd_mappings): Likewise.
4727         (info_proc_cmd_stat): Likewise.
4728         (info_proc_cmd_status): Likewise.
4729         (info_proc_cmd_cwd): Likewise.
4730         (info_proc_cmd_cmdline): Likewise.
4731         (info_proc_cmd_exe): Likewise.
4732         (info_proc_cmd_all): Likewise.
4733         (_initialize_infcmd): Install "info proc" command and subcommands.
4734
4735         * target.h (struct target_ops): Add to_info_proc.
4736         (target_info_proc): Add prototype.
4737         * target.c (target_info_proc): New function.
4738
4739         * procfs.c (procfs_info_proc): Add prototype.
4740         (info_proc_cmd): Rename into ...
4741         (procfs_info_proc): ... this.  Update argument types as appropriate
4742         for a to_info_proc implementation.  Handle "what" argument.
4743         (procfs_target): Install procfs_info_proc.
4744         (_initialize_procfs): No longer install "info proc" command.
4745
4746         * linux-nat.c: (enum info_proc_what): Remove.
4747         (linux_nat_info_proc_cmd_1): Rename into ...
4748         (linux_nat_info_proc): ... this.  Update argument types as appropriate
4749         for a to_info_proc implementation.
4750         (linux_nat_info_proc_cmd): Remove.
4751         (linux_nat_info_proc_cmd_mappings): Likewise.
4752         (linux_nat_info_proc_cmd_stat): Likewise.
4753         (linux_nat_info_proc_cmd_status): Likewise.
4754         (linux_nat_info_proc_cmd_cwd): Likewise.
4755         (linux_nat_info_proc_cmd_cmdline): Likewise.
4756         (linux_nat_info_proc_cmd_exe): Likewise.
4757         (linux_nat_info_proc_cmd_all): Likewise.
4758         (linux_target_install_ops): Install linux_nat_info_proc.
4759         (_initialize_linux_nat): No longer install "info proc" command
4760         and subcommands.
4761
4762 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4763
4764         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4765         * config.in, configure: Regenerate.
4766
4767         * target.h (struct target_ops): Add to_fileio_readlink.
4768         (target_fileio_readlink): Add prototype.
4769         * target.c (target_fileio_readlink): New function.
4770
4771         * inf-child.c: Conditionally include <sys/param.h>.
4772         (inf_child_fileio_readlink): New function.
4773         (inf_child_target): Install it.
4774
4775         * remote.c (PACKET_vFile_readlink): New enum value.
4776         (remote_hostio_readlink): New function.
4777         (init_remote_ops): Install it.
4778         (_initialize_remote): Handle vFile:readlink packet type.
4779
4780 2012-01-20  Pedro Alves  <palves@redhat.com>
4781             Ulrich Weigand  <ulrich.weigand@linaro.org>
4782
4783         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4784         * config.in, configure: Regenerate.
4785
4786         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4787         to_fileio_pread, to_fileio_close, to_fileio_unlink.
4788         (target_fileio_open): Add prototype.
4789         (target_fileio_pwrite): Likewise.
4790         (target_fileio_pread): Likewise.
4791         (target_fileio_close): Likewise.
4792         (target_fileio_unlink): Likewise.
4793         (target_fileio_read_alloc): Likewise.
4794         (target_fileio_read_stralloc): Likewise.
4795
4796         * target.c: Include "gdb/fileio.h".
4797         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4798         (default_fileio_target): New function.
4799         (target_fileio_open): Likewise.
4800         (target_fileio_pwrite): Likewise.
4801         (target_fileio_pread): Likewise.
4802         (target_fileio_close): Likewise.
4803         (target_fileio_unlink): Likewise.
4804         (target_fileio_close_cleanup): Likewise.
4805         (target_fileio_read_alloc_1): Likewise.
4806         (target_fileio_read_alloc): Likewise.
4807         (target_fileio_read_stralloc): Likewise.
4808
4809         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4810         <fcntl.h>, and <unistd.h>.
4811         (inf_child_fileio_open_flags_to_host): New function.
4812         (inf_child_errno_to_fileio_error): Likewise.
4813         (inf_child_fileio_open): Likewise.
4814         (inf_child_fileio_pwrite): Likewise.
4815         (inf_child_fileio_pread): Likewise.
4816         (inf_child_fileio_close): Likewise.
4817         (inf_child_fileio_unlink): Likewise.
4818         (inf_child_target): Install to_fileio routines.
4819
4820         * remote.c (init_remote_ops): Install to_fileio routines.
4821
4822 2012-01-20  Pedro Alves  <palves@redhat.com>
4823             Ulrich Weigand  <ulrich.weigand@linaro.org>
4824
4825         * remote.c (remote_multi_process_p): Only check for multi-process
4826         protocol feature, do not check for extended protocol.
4827         (remote_supports_multi_process): Check for extended protocol here.
4828         (set_general_process): Likewise.
4829         (extended_remote_kill): Likewise.
4830         (remote_pid_to_str): Likewise.
4831         (remote_query_supported): Always query multiprocess mode.
4832
4833 2012-01-20  Pedro Alves  <palves@redhat.com>
4834             Ulrich Weigand  <ulrich.weigand@linaro.org>
4835
4836         * inferior.h (struct inferior): Add fake_pid_p.
4837         * inferior.c (exit_inferior_1): Clear fake_pid_p.
4838         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4839         magic_null_ptid since the remote side doesn't provide a real PID.
4840
4841 2012-01-19  Tom Tromey  <tromey@redhat.com>
4842
4843         * NEWS: Combine the two Python sections.
4844
4845 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4846
4847         * target.h (target_close): Update comment on the target's unpush state.
4848
4849 2012-01-19  Pedro Alves  <palves@redhat.com>
4850
4851         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4852         linux_nat_async directly instead of going through the target
4853         vector.
4854         * target.c (unpush_target): Close target after unpushing it, not
4855         before.
4856
4857 2012-01-19  Gary Benson  <gbenson@redhat.com>
4858
4859         * mdebugread.c (sort_blocks): Replace integer constants with ones
4860         derived from FIRST_LOCAL_BLOCK.
4861
4862 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4863             Jan Kratochvil  <jan.kratochvil@redhat.com>
4864
4865         PR gdb/9538
4866         * symfile.c (find_separate_debug_file): New function.
4867         (terminate_after_last_dir_separator): Likewise.
4868         (find_separate_debug_file_by_debuglink): Also try realpath.
4869         * configure.ac (AC_CHECK_FUNCS): Add lstat.
4870         * configure: Regenerate.
4871         * config.in: Regenerate.
4872
4873 2012-01-18  Doug Evans  <dje@google.com>
4874
4875         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4876         (main.o): Remove rule.
4877         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4878         (--with-sysroot): Rewrite.
4879         * configure: Regenerate.
4880         * config.in: Regenerate.
4881
4882 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4883
4884         * parse.c (initialize_expout): New function.
4885         (reallocate_expout): Likewise.
4886         (parse_exp_in_context): Use `initialize_expout' and
4887         `reallocate_expout' when appropriate.
4888
4889 2012-01-18  Pedro Alves  <palves@redhat.com>
4890
4891         * record.c (struct record_breakpoint, record_breakpoint_p)
4892         (record_breakpoints): New.
4893         (record_insert_breakpoint, record_remove_breakpoint): Manage
4894         record breakpoints list.  Only remove breakpoints from the
4895         inferior if they had been inserted there in the first place.
4896
4897 2012-01-17  Doug Evans  <dje@google.com>
4898
4899         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4900         if we know we don't have a file name to look for.
4901
4902 2012-01-17  Pedro Alves  <palves@redhat.com>
4903
4904         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4905         the frame's stop reason is UNWIND_UNAVAILABLE.
4906
4907 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4908
4909         Fix compilation error.
4910         * m2-exp.y (yyerror): Use ANSI C prototype.
4911
4912 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4913
4914         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4915         (growbuf_by_size): Likewise.
4916         (yyerror): Likewise.
4917         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4918         (modblock): Remove variable (was #if 0'ed).
4919         (parse_number): Convert prototype from K&R to ANSI C.
4920         (yyerror): Likewise.
4921         * objc-exp.y (parse_number): Likewise.
4922         (yyerror): Likewise.
4923         (yylex): Remove #if 0'ed code.
4924         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4925         (yyerror): Likewise.
4926
4927 2012-01-16  Tom Tromey  <tromey@redhat.com>
4928
4929         * NEWS: Add item.
4930         * symtab.h (compare_filenames_for_search): Declare.
4931         * symtab.c (compare_filenames_for_search): New function.
4932         (iterate_over_some_symtabs): Use it.
4933         * symfile.h (struct quick_symbol_functions)
4934         <map_symtabs_matching_filename>: Change spec.
4935         * psymtab.c (partial_map_symtabs_matching_filename): Use
4936         compare_filenames_for_search.  Update for new spec.
4937         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4938         compare_filenames_for_search.  Update for new spec.
4939         * breakpoint.c (clear_command): Use compare_filenames_for_search.
4940
4941 2012-01-16  Tom Tromey  <tromey@redhat.com>
4942
4943         PR python/13281:
4944         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4945         (struct main_type) <flag_flag_enum>: New field.
4946         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4947         * NEWS: Add entries.
4948         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4949         enums.
4950         * python/lib/gdb/printing.py (_EnumInstance): New class.
4951         (FlagEnumerationPrinter): Likewise.
4952
4953 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4954
4955         * breakpoint.c (create_sals_from_address_default): New function.
4956         (create_breakpoints_sal_default): Likewise.
4957         (decode_linespec_default): Likewise.
4958         (is_marker_spec): Removed.
4959         (strace_marker_p): New function.
4960         (init_breakpoint_sal): Using `strace_marker_p' instead of
4961         `is_marker_spec'.
4962         (create_breakpoint): Call method `create_sals_from_address' from
4963         breakpoint_ops, replacing code that created SALs conditionally
4964         on the type of the breakpoint.  Call method `create_breakpoints_sal',
4965         replacing code that created breakpoints conditionally on the type
4966         wanted.
4967         (base_breakpoint_create_sals_from_address): New function.
4968         (base_breakpoint_create_breakpoints_sal): Likewise.
4969         (base_breakpoint_decode_linespec): Likewise.
4970         (base_breakpoint_ops): Add methods
4971         `base_breakpoint_create_sals_from_address',
4972         `base_breakpoint_create_breakpoints_sal' and
4973         `base_breakpoint_decode_linespec'.
4974         (bkpt_create_sals_from_address): New function.
4975         (bkpt_create_breakpoints_sal): Likewise.
4976         (bkpt_decode_linespec): Likewise.
4977         (tracepoint_create_sals_from_address): Likewise.
4978         (tracepoint_create_breakpoints_sal): Likewise.
4979         (tracepoint_decode_linespec): Likewise.
4980         (strace_marker_create_sals_from_address): Likewise.
4981         (strace_marker_create_breakpoints_sal): Likewise.
4982         (strace_marker_decode_linespec): Likewise.
4983         (strace_marker_breakpoint_ops): New variable.
4984         (addr_string_to_sals): Remove `marker_spec'.  Call method
4985         `decode_linespec' from breakpoint_ops, replacing code that decoded
4986         an address string into a SAL.  Use `strace_marker_p' instead of
4987         `marker_spec'.
4988         (strace_command): Decide whether we are dealing with a static
4989         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
4990         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4991         * breakpoint.h (linespec_result, linespec_sals): New forward
4992         declarations.
4993         (breakpoint_ops) <create_sals_from_address>,
4994         <create_breakpoints_sal>, <decode_linespec>: New methods.
4995
4996 2012-01-14  Doug Evans  <dje@google.com>
4997
4998         * NEWS: Update text for "maint set python print-stack".
4999         It is deprecated in gdb 7.4 and deleted in 7.5.
5000
5001 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
5002
5003         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5004         including curses.h.
5005
5006 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5007
5008         * configure: Regenerate.
5009         * config.in: Regenerate.
5010
5011 2012-01-12  Keith Seitz  <keiths@redhat.com>
5012
5013         PR mi/10586
5014         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5015         (ANONYMOUS_UNION_NAME): Define.
5016         (is_path_expr_parent): New function.
5017         (get_path_expr_parent): New function.
5018         (is_anonymous_child): New function.
5019         (create_child_with_value): If the child is anonymous and without
5020         a name, assign an object name to it.
5021         (c_describe_child): Use get_path_expr_parent to determine
5022         the parent expression.
5023         If there field represents an anonymous struct or union and
5024         has no name, set an appropriate display name and expression.
5025         (cplus_describe_child): Likewise.
5026
5027 2012-01-12  Pedro Alves  <palves@redhat.com>
5028
5029         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5030         available when %ebp is found to be zero (outermost).
5031
5032 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
5033
5034         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5035         an internal gdb_static_assert.
5036         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5037
5038 2012-01-11  Tom Tromey  <tromey@redhat.com>
5039
5040         PR gdb/9598:
5041         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5042         catch" and "catch throw".
5043
5044 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
5045
5046         * blockframe.c (block_innermost_frame): Start search from selected
5047         frame, if present, or otherwise the current frame.
5048
5049         * c-exp.y (variable): Update innermost_block for
5050         'block COLONCOLON NAME' clause.
5051         * m2-exp.y (variable): Ditto.
5052         * objc-exp.y (variable): Ditto.
5053
5054 2012-01-10  Tom Tromey  <tromey@redhat.com>
5055
5056         PR python/13199:
5057         * python/python.c (finish_python_initialization): Set sys.argv.
5058
5059 2012-01-10  Doug Evans  <dje@google.com>
5060
5061         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
5062         "want_line_info".  All callers updated.
5063         (dwarf_decode_lines_1): New function.
5064         (handle_DW_AT_stmt_list): Add function comment.
5065         New arg "want_line_info".  All callers updated.
5066         (read_file_scope,read_type_unit_scope): Move comment from
5067         handle_DW_AT_stmt_list to here.
5068
5069 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5070
5071         Fix regression after libiberty/ update for GCC PR 6057 and others.
5072         * c-exp.y (operator) <OPERATOR DELETE>
5073         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5074         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5075         (make_builtin_type, make_name): New variable i, add gdb_assert.
5076         (operator) <OPERATOR NEW>: Update ARGS to 3.
5077         (operator) <OPERATOR DELETE>: Add trailing space.
5078         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5079         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5080         * cp-support.c (cp_canonicalize_string): Check NULL from
5081         cp_comp_to_string, call warning and return.
5082
5083 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5084
5085         Fix duplicate .o files after omitting libbfd.a.
5086         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5087         (SFILES): Add corelow.c.
5088         (COMMON_OBS): Add corelow.o.
5089         (ALLDEPFILES): Remove corelow.c.
5090         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5091         * config/alpha/alpha-osf3.mh: Likewise.
5092         * config/alpha/fbsd.mh: Likewise.
5093         * config/arm/nbsdaout.mh: Likewise.
5094         * config/arm/nbsdelf.mh: Likewise.
5095         * config/i386/i386gnu.mh: Likewise.
5096         * config/ia64/hpux.mh: Likewise.
5097         * config/ia64/linux.mh: Likewise.
5098         * config/m32r/linux.mh: Likewise.
5099         * config/m68k/linux.mh: Likewise.
5100         * config/mips/irix5.mh: Likewise.
5101         * config/mips/irix6.mh: Likewise.
5102         * config/pa/hpux.mh: Likewise.
5103         * config/pa/linux.mh: Likewise.
5104         * config/powerpc/aix.mh: Likewise.
5105         * config/sparc/linux.mh: Likewise.
5106         * config/sparc/linux64.mh: Likewise.
5107         * config/sparc/sol2.mh: Likewise.
5108         * config/vax/vax.mh: Likewise.
5109         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5110         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5111         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5112         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5113         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5114         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5115         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5116         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5117         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5118         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5119         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5120         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5121         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5122         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5123         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5124         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5125         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5126         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5127         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5128         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5129         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5130         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5131         corelow.o from gdb_target_obs.
5132         * corefile.c (core_target): Update the comment on NULL value.
5133         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5134         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5135         MATCHES.  Drop YUMMY set on NULL.
5136         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
5137         reclaim CORE_DATA if it is already NULL.
5138
5139 2012-01-09  Doug Evans  <dje@google.com>
5140
5141         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5142         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5143
5144 2012-01-09  Keith Seitz  <keiths@redhat.com>
5145
5146         * breakpoint.c (wrapper.h): Don't include.
5147
5148 2012-01-09  Keith Seitz  <keiths@redhat.com>
5149
5150         * Makefile.in (SFILES): Remove wrapper.c.
5151         (HFILES_NO_SRCDIR): Remove wrapper.h.
5152         (COMMON_OBS): Remove wrapper.o.
5153         * cli/cli-interp.c: Don't inlude wrapper.h.
5154         * corelow.c: Likewise.
5155         (core_open): Replace gdb_target_find_new_threads with
5156         TRY_CATCH around target_find_new_threads.
5157         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5158         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5159         * varobj.c (varobj_create): Likewise for parse_exp_1 and
5160         evaluate_expression.
5161         (varobj_set_value): Likewise for evaluate_expression and
5162         value_assign.
5163         (install_new_variable): Likewise for value_fetch_lazy.
5164         (adjust_value_for_child_access): Likewise for value_ind.
5165         (c_describe_child): Likewise for value_subscript and
5166         value_ind.
5167         (c_value_of_root): Likewise for evaluate_expression.
5168         * wrapper.c: Remove.
5169         * wrapper.h: Remove.
5170
5171 2012-01-09  Doug Evans  <dje@google.com>
5172
5173         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5174         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
5175         "abfd" args with "section".  All callers updated.
5176         Error checking code moved ...
5177         (error_check_comp_unit_head): ... here.  New function.
5178         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5179         Delete arg "abfd".  New arg "type_offset".  All callers updated.
5180         (create_debug_types_hash_table): Simplify by using
5181         read_and_check_type_unit_head.
5182
5183         * parser-defs.h (namecopy): Delete.
5184         * parse.c (namecopy, namecopy_size): Move into copy_name.
5185
5186 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5187
5188         Partially fix duplicate .o files after omitting libbfd.a.
5189         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5190         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5191         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5192         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5193         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5194         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5195         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5196
5197 2012-01-09  Pedro Alves  <palves@redhat.com>
5198
5199         * MAINTAINERS: Update my email address.
5200
5201 2012-01-08  Doug Evans  <dje@google.com>
5202
5203         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5204         n_type_units.  Rename type_comp_units to all_type_units.
5205         All uses updated.
5206         (add_signatured_type_cu_to_table): Renamed from
5207         add_signatured_type_cu_to_list.  All callers updated.
5208
5209         * gdbtypes.h (struct cplus_struct_type): Delete member
5210         nfn_fields_total.  All uses removed.
5211
5212 2012-01-06  Doug Evans  <dje@google.com>
5213
5214         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5215         to top of file.
5216         (dwarf2_find_comp_unit): Delete.
5217         (process_psymtab_comp_unit): Make result "void".
5218         Delete args buffer, info_ptr, buffer_size, and replace with
5219         "section".  All callers updated.
5220         (dwarf2_build_psymtabs_hard): Simplify.
5221
5222 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5223             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5224
5225         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5226         before `struct gdb_exception'.
5227         * breakpoint.c (update_global_location_list_nothrow)
5228         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5229         * cp-abi.c (value_rtti_type): Likewise.
5230         * cp-support.c (cp_validate_operator): Likewise.
5231         * infrun.c (insert_exception_resume_breakpoint)
5232         (check_exception_resume, keep_going): Likewise.
5233         * mi-interp.c (mi_breakpoint_created)
5234         (mi_breakpoint_modified): Likewise.
5235         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5236         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5237         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5238
5239 2012-01-05  Doug Evans  <dje@google.com>
5240
5241         * dwarf2read.c (statement_prologue): Delete, unused.
5242
5243         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5244         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5245
5246         * dwarf2read.c (comp_unit_header): Delete, unused.
5247
5248 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
5249
5250         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5251         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5252
5253 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
5254
5255         * infrun.c (normal_stop): Don't skip calling the normal_stop
5256         observers if the thread was doing a multi-step, but stopped for
5257         some reason other than stepping.
5258
5259 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
5260
5261         * cli/cli-decode.h: Add comments.
5262         (CMD_LIST_AMBIGUOUS): Moved to command.h
5263         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5264         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5265         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5266         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5267         (add_com, add_com_alias, add_info, add_info_alias)
5268         (complete_on_cmdlist, complete_on_enum, help_list): Remove
5269         declarations.
5270         * command.h: Add and adjust comments.
5271         (CMD_LIST_AMBIGUOUS): Moved here.
5272         (help_cmd, help_cmd_list): Delete declarations.
5273
5274 2012-01-04  Doug Evans  <dje@google.com>
5275
5276         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5277         All callers updated.
5278         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5279         Replace all arguments with "per_cu".  All callers updated.
5280
5281         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5282
5283         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5284         New arg "per_cu".  All callers updated.
5285
5286         Delete #if 0'd out code.
5287         * language.c (binop_result_type): Delete.
5288         (simple_type, ordered_type, same_type, integral_type): Delete.
5289         (numeric_type, character_type, string_type, boolean_type): Delete.
5290         (float_type, structured_type): Delete.
5291         * language.h: Update.
5292
5293 2012-01-04  Tom Tromey  <tromey@redhat.com>
5294
5295         * python/py-value.c (valpy_binop): Initialize 'res_val'.
5296
5297 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5298
5299         * corefile.c (close_exec_file): Delete.
5300         (reopen_exec_file): Remove commented out code that seems related
5301         to close_exec_file, which is being deleted here.
5302         * inferior.h (close_exec_file): Delete.
5303         * fork-child.c (fork_inferior): Remove call to fork_inferior.
5304
5305 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5306
5307         * ada-lang.c: #include "cli/cli-utils.h".
5308         (get_selections): Use skip_spaces.
5309         (ada_get_next_arg): Use skip_spaces and skip_to_space.
5310         (catch_ada_exception_command_split): Use skip_spaces.
5311         (ada_decode_assert_location): Likewise.
5312
5313 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5314
5315         * linespec.c (decode_line_internal): Check for C++ or Java
5316         compound constructs only if the current language is C, C++
5317         or Java.
5318
5319 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5320
5321         Revert:
5322         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5323                     Joel Brobecker  <brobecker@adacore.com>
5324         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5325         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5326         3 times.
5327         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5328         fall through into AT_ENTRY_POINT.
5329         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
5330         DUMMY_ADDR with it.
5331         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5332         PPC_INSN_SIZE skip to 3 times.
5333
5334 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5335
5336         * linespec.c (add_minsym): Preserve function descriptors.
5337
5338 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5339
5340         * breakpoint.c (all_locations_are_pending): Consider locations
5341         in program spaces executing during startup pending as well.
5342
5343 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5344
5345         Copyright year update in most files of the GDB Project.
5346
5347 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5348
5349         * copyright.sh: Delete.
5350         * copyright.py: Rewrite.
5351
5352 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5353
5354         * gnulib/extra/update-copyright: New file, imported from gnulib.
5355
5356 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5357
5358         * README (Copyright and License Notices): New section.
5359
5360 2012-01-03  Tom Tromey  <tromey@redhat.com>
5361
5362         PR python/12533:
5363         * python/py-value.c (valpy_dereference, valpy_get_address
5364         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5365         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5366         (valpy_absolute, valpy_richcompare): Free intermediate values.
5367
5368 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
5369
5370         * ada-lang.c: Reformat the copyright notice.
5371
5372 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5373
5374         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5375         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5376         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5377         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5378         Revert this part of:
5379         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5380         Build gdb directly from *.o files not using libgdb.a.
5381         * Makefile.in (COMMON_OBS): Remove solib-target.o.
5382
5383 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5384
5385         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5386         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5387         Reformat the copyright header.
5388
5389 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5390
5391         Revert this part of:
5392         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5393         Remove the gdbtui binary.
5394         * gdb.c (main): Remove args.interpreter_p initialization.
5395         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5396         * main.h (struct captured_main_args): Remove interpreter_p.
5397
5398 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5399
5400         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5401
5402 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5403
5404         * top.c (print_gdb_version): Update copyright year.
5405
5406 2012-01-02  Yao Qi  <yao@codesourcery.com>
5407
5408         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5409
5410 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5411             Joel Brobecker  <brobecker@adacore.com>
5412
5413         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5414         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5415         3 times.
5416         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5417         fall through into AT_ENTRY_POINT.
5418         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
5419         DUMMY_ADDR with it.
5420         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5421         PPC_INSN_SIZE skip to 3 times.
5422
5423 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5424
5425         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5426         the return value.
5427         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5428
5429 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5430
5431         Build gdb directly from *.o files not using libgdb.a.
5432         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5433         (COMMON_OBS): Remove solib-target.o.
5434         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5435         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5436         (LIBGDB_OBS, libgdb.a): Move it above.
5437         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5438         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5439         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5440         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5441         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5442         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5443         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5444         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5445         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5446         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5447         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5448         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5449         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5450         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5451         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5452         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5453         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5454         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5455         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5456         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5457         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5458         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5459         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5460         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5461         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5462         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5463         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5464
5465 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5466
5467         Remove the gdbtui binary.
5468         * .gitignore (/gdbtui): Remove.
5469         * Makefile.in (TUI): Remove.
5470         (SUBDIR_TUI_OBS): Remove tui-main.o.
5471         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5472         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5473         (tui-main.o): Remove.
5474         (all_object_files): Remove tui-main.o.
5475         * NEWS: New note for the gdbtui removal.
5476         * configure: Rebuilt.
5477         * configure.ac: No longer add all-tui, clean-tui, install-tui and
5478         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5479         CONFIG_UNINSTALL respectively.
5480         * gdb.c (main): Remove args.interpreter_p initialization.
5481         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5482         * main.h (struct captured_main_args): Remove interpreter_p.
5483         * tui/tui-main.c: Remove.
5484
5485 2012-01-01  Doug Evans  <dje@google.com>
5486
5487         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5488         (dwarf2_physname, read_import_statement): Ditto.
5489         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5490         (process_structure_scope read_subroutine_type): Ditto.
5491         (read_typedef, load_partial_dies, read_partial_die): Ditto.
5492         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5493         (dwarf2_fetch_die_location_block): Ditto.
5494         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5495
5496         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5497         All callers updated.
5498         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5499         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5500         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5501
5502         * dwarf2read.c (load_cu): Move assert to more useful location.
5503
5504         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5505         All callers updated.
5506
5507         * dwarf2read.c (dwarf2_per_objfile): Add comment.
5508         (dwarf2_elf_names): Minor reformat.
5509         (dwarf2_per_cu_data): Tweak comment.
5510         (dwarf2_read_section): Fix comment.
5511         (create_all_comp_units): Fix comment.
5512         (load_full_comp_unit): Fix comment.
5513         (process_full_comp_unit): Fix comment.
5514         (read_signatured_type): Fix comment.
5515
5516 For older changes see ChangeLog-2011.
5517 \f
5518 Local Variables:
5519 mode: change-log
5520 left-margin: 8
5521 fill-column: 74
5522 version-control: never
5523 coding: utf-8
5524 End: