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