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