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