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