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