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