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