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