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