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