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