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