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