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