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