Rename gdb/ChangeLog to gdb/ChangeLog-2021
[binutils-gdb.git] / gdb / ChangeLog-2012
blob7b75b3bcc3193e18ec6be88251ef8d68924e2526
1 2012-12-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3         * symtab.c (find_line_symtab): Call symtab_to_fullname instead of
4         accessing FULLNAME directly.
6 2012-12-25  Sergio Durigan Junior  <sergiodj@redhat.com>
8         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
10 2012-12-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
12         * ada-lang.c (is_known_support_routine): New variable fullname.  Use
13         access call to verify the symtab_to_fullname result.
14         * breakpoint.c (print_breakpoint_location, update_static_tracepoint):
15         Remove NULL check of symtab_to_fullname result.
16         * cli/cli-cmds.c (edit_command): Likewise.
17         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
18         (mi_cmd_file_list_exec_source_files): Likewise.
19         * python/py-symtab.c (stpy_fullname): Likewise.
20         * source.c (symtab_to_fullname): Update function comment.  Rename
21         variable r to fd, move it to inner block.  Always provide non-NULL
22         result.
23         (print_source_lines_base): Remove NULL check of symtab_to_fullname
24         result.
25         * stack.c (print_frame): Likewise.
26         * symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info):
27         Likewise.
28         * tracepoint.c (print_one_static_tracepoint_marker): Likewise.
30 2012-12-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
32         Code cleanup.
33         * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for
34         NULL.
35         * linespec.c (add_sal_to_sals): Likewise.
36         * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL.
37         * stack.c (print_frame): Do not check symtab->FILENAME for NULL.
38         * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL.
39         * symtab.h (struct symtab): Add comment it is never NULL for filename.
40         * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME
41         for NULL.
42         * tui/tui-source.c (tui_set_source_content): Likewise.
44 2012-12-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
46         * breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
47         * infrun.c (handle_inferior_event): Rename the called function to
48         function_name_is_marked_for_skip, pass it TMP_SAL.
49         * skip.c (struct skiplist_entry): Update function_name comment.  Remove
50         fields pc, gdbarch and pending.
51         (skip_function_pc): Rename this forward declaration to ...
52         (skip_function): ... here.
53         (skip_file_command): Remove variable pending and its use, remove
54         initialization of E fields pending and gdbarch.  Do not use SYMTAB
55         filename, use the specified one.
56         (skip_function_command): Remove variable func_pc, do not set it.
57         Update the caller of skip_function.  Replace decode_line_1 call by
58         a lookup_symbol call.  Remove variables orig_arg, decode_exception and
59         sals.  Update the caller of skip_function.
60         (skip_info): Remove variable address_width and its use.  Do not print
61         address (PC).  Renumber column 5 to 4.
62         (skip_function_pc): Rename to ...
63         (skip_function): ... here and remove its parameters pc, arch and
64         pending.  Update the function comment and no longer use those
65         parameters.
66         (function_pc_is_marked_for_skip): Rename to ...
67         (function_name_is_marked_for_skip): ... here, update function comment
68         just to a skip.h reference, replace pc parameter by function_name and
69         function_sal.  No longer use E field pending and pc.  Remove variables
70         searched_for_sal, sal and filename.  Call compare_filenames_for_search
71         instead of just strcmp.
72         (skip_re_set): Remove the function.
73         * skip.h (struct symtab_and_line): New declaration.
74         (function_pc_is_marked_for_skip): Rename to ...
75         (function_name_is_marked_for_skip): ... here, replace pc parameter by
76         function_name and function_sal, update the function comment.
78 2012-12-18  Pierre Muller  <muller@sourceware.org>
80         * ui-file.h (tee_file_new): Add extern modifier in header declaration.
82 2012-12-20  Tom Tromey  <tromey@redhat.com>
84         * serial.c (deprecated_serial_fd): Remove.
85         * serial.h (deprecated_serial_fd): Remove.
87 2012-12-20  Yao Qi  <yao@codesourcery.com>
89         * maint.c (_initialize_maint_cmds): Move code ...
90         * symmisc.c (_initialize_symmisc): ... to here.
91         (maintenance_print_msymbols): Make it static.
92         (maintenance_print_objfiles): Likewise.
93         (maintenance_print_symbols): Likewise.
94         (maintenance_info_symtabs): Likewise.
95         * symtab.h (maintenance_print_msymbols): Remove declaration.
96         (maintenance_print_objfiles, maintenance_print_symbols): Likewise.
97         (maintenance_info_symtabs): Likewise.
99 2012-12-20  Yao Qi  <yao@codesourcery.com>
101         * maint.c (_initialize_maint_cmds): Move code to ...
102         * psymtab.c (_initialize_psymtab): ... here.  New.
103         Include "gdbcmd.h".
104         (maintenance_print_psymbols): Make it static.
105         (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
106         * symtab.h (maintenance_print_psymbols): Remove declaration.
107         (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
109 2012-12-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
111         * MAINTAINERS: Add myself to write-after-approval maintainers.
113 2012-12-19  Andreas Tobler  <andreast@neon.andreas.nets>
115         * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
116         branch_bp to keep gcc happy.
118 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
120         * gdbarch.sh (copyright): Update copyright years.
121         * gdbarch.h, gdbarch.c: Regenerate.
122         * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
123         (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
125 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
127         * acinclude.m4: Update contact info in copyright notice.
129 2012-12-19  Yao Qi  <yao@codesourcery.com>
131         * maint.c (maintenance_print_statistics): Make it static.
132         * symtab.h (maintenance_print_statistics): Remove declaration.
134 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
136         * NEWS: Add entry announcing ppc-lynx178 support.
138 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
140         Revert the following change (compatibility issues with libiconv):
141         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
142         * gnulib/import/errno.in.h: Import.
143         * gnulib/import/m4/errno_h.m4: Import.
144         * gnulib/aclocal.m4: Regenerate.
145         * gnulib/configure: Regenerate.
146         * gnulib/import/Makefile.am: Update.
147         * gnulib/import/Makefile.in: Update.
148         * gnulib/import/m4/gnulib-cache.m4: Update.
149         * gnulib/import/m4/gnulib-comp.m4: Update.
151 2012-12-18  Tom Tromey  <tromey@redhat.com>
153         * defs.h (directory_command): Don't declare.
154         * source.c (directory_command): Now static.
156 2012-12-18  Tom Tromey  <tromey@redhat.com>
158         * infcmd.c (all_registers_info, nexti_command, stepi_command)
159         (continue_command, interrupt_target_command): Now static.
160         (registers_info): Remove declaration.
161         * inferior.h (all_registers_info, nexti_command, stepi_command)
162         (continue_command, interrupt_target_command): Don't declare.
164 2012-12-18  Tom Tromey  <tromey@redhat.com>
166         * cli/cli-cmds.c (apropos_command): Now static.
168 2012-12-18  Tom Tromey  <tromey@redhat.com>
170         * breakpoint.c (dprintf_command): Now static.
172 2012-12-18  Tom Tromey  <tromey@redhat.com>
174         * Makefile.in (init.c): Declare initialize_all_files;
175         don't include call-cmds.h.
176         * call-cmds.h: Remove.
177         * symtab.c: Don't include call-cmds.h.
178         * top.c: Don't include call-cmds.h.  Declare
179         initialize_all_files.
181 2012-12-18  Tom Tromey  <tromey@redhat.com>
183         * symfile.c (list_overlays_command, map_overlay_command)
184         (unmap_overlay_command): Now static.
186 2012-12-18  Tom Tromey  <tromey@redhat.com>
188         * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
189         "define", "while", and "if" commands.
190         * cli/cli-script.c (while_command, if_command, define_command)
191         (document_command): Now static.
192         (_initialize_cli_script): New function.
193         * cli/cli-script.h (while_command, if_command, define_command)
194         (document_command): Don't declare.
196 2012-12-18  Tom Tromey  <tromey@redhat.com>
198         * cli/cli-cmds.c (_initialize_cli_cmds): New function.
199         (init_cli_cmds): Move most code into new function.
201 2012-12-18  Tom Tromey  <tromey@redhat.com>
203         * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
204         * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
205         declare.
207 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
209         * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
210         * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
211         * xcoffread.c (xcoff_get_core_n_import_files): New function.
212         (xcoff_get_n_import_files): New function.
213         * xcoffread.h (xcoffread.h): Add declaration.
214         * rs6000-aix-tdep.c: #include "xcoffread.h".
215         (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
216         XCOFF executables that do not depend on any shared library.
217         * rs6000-lynx178-tdep.c: New file.
218         * configure.tgt: Add powerpc-*-lynx*178 handling.
219         * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
220         (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
222 2012-12-18  Hui Zhu  <hui_zhu@mentor.com>
224         * ui-file.c (ui_file): Add to_fseek.
225         (ui_file_new): Call set_ui_file_fseek.
226         (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
227          stdio_file_fseek): New functions.
228         (stdio_file_new): Call set_ui_file_fseek.
229         * ui-file.h (ui_file_fseek_ftype): New typedef.
230         (set_ui_file_fseek, ui_file_fseek): New externs.
232 2012-12-18  Hui Zhu  <hui_zhu@mentor.com>
234         * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
235         (set_ui_file_isatty): Change isatty to isatty_ptr.
236         (set_ui_file_rewind): Change rewind to rewind_ptr.
237         (set_ui_file_put): Change put to put_ptr.
238         (set_ui_file_write): Change write to write_ptr.
239         (set_ui_file_write_async_safe): Change write_async_safe to
240         write_async_safe_ptr.
241         (set_ui_file_read): Change read to read_ptr.
242         (set_ui_file_fputs): Change fputs to fputs_ptr.
243         (set_ui_file_data): Change delete to delete_ptr.
245 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
247         * solib-darwin.c (darwin_current_sos): Fix indentation.
248         (darwin_read_exec_load_addr): New function.
249         (darwin_solib_create_inferior_hook): Rebase executable.
250         * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
251         * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
253 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
255         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
256         * gnulib/import/errno.in.h: Import.
257         * gnulib/import/m4/errno_h.m4: Import.
258         * gnulib/aclocal.m4: Regenerate.
259         * gnulib/configure: Regenerate.
260         * gnulib/import/Makefile.am: Update.
261         * gnulib/import/Makefile.in: Update.
262         * gnulib/import/m4/gnulib-cache.m4: Update.
263         * gnulib/import/m4/gnulib-comp.m4: Update.
265 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
267         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
268         8d5bd1402003bd0153984b138735adf537d960b0.
269         * gnulib/aclocal.m4, configure, config.in: Regenerate.
270         * gnulib/import/m4/extern-inline.m4: Import.
271         * gnulib/import/wctype-h.c: Import.
272         * gnulib/import/Makefile.am: Update.
273         * gnulib/import/Makefile.in: Update.
274         * gnulib/import/alloca.in.h: Update.
275         * gnulib/import/extra/snippet/warn-on-use.h: Update.
276         * gnulib/import/localcharset.c: Update.
277         * gnulib/import/m4/fcntl-o.m4: Update.
278         * gnulib/import/m4/gnulib-cache.m4: Update.
279         * gnulib/import/m4/gnulib-comp.m4: Update.
280         * gnulib/import/m4/wctype_h.m4: Update.
281         * gnulib/import/stdbool.in.h: Update.
282         * gnulib/import/verify.h: Update.
283         * gnulib/import/wctype.in.h: Update.
285 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
287         * gnulib/update-gnulib.sh: Add call to autoheader.
289 2012-12-17  Tom Tromey  <tromey@redhat.com>
291         * top.c (xgdb_verbose): Remove.
293 2012-12-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
295         Code cleanup.
296         * skip.c (skip_function_command, skip_file_command, skip_info): Remove
297         unused forward declarations.
298         (skip_file_command): Make variables symtab and filename targets const.
299         Use proper 0 vs. NULL constant everywhere.
300         (skip_function_command): Use proper 0 vs. NULL constant everywhere.
301         Include empty line after declarations.  Use GNU spacing in a comment.
302         Do not use strlen for end of string check.
303         (skip_info): Use proper 0 vs. NULL constant everywhere.  Add column 5
304         comments.
305         (skip_enable_command, skip_disable_command, skip_delete_command)
306         (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
307         (function_pc_is_marked_for_skip): Make variable filename target const.
308         Use proper 0 vs. NULL constant everywhere.  Fix GNU non-compliant
309         comment formatting.
310         (skip_re_set): Add empty line after function comment.  Use proper 0 vs.
311         NULL constant everywhere.  Include empty line after declarations.  Make
312         variable symtab target const.  Do not use strlen for end of string
313         check.
315 2012-12-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
317         Code cleanup.
318         * breakpoint.c (clear_command): Remove variable sal_name_len and its
319         initialization, remove it from the compare_filenames_for_search call.
320         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
321         name_len and its initialization, remove it from the
322         compare_filenames_for_search calls.
323         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
324         * symtab.c (compare_filenames_for_search): Remove the search_len
325         parameter, update the function comment, new variable search_len
326         initialized from SEARCH_NAME.
327         (iterate_over_some_symtabs): Remove variable name_len and its
328         initialization, remove it from the compare_filenames_for_search calls.
329         * symtab.h (compare_filenames_for_search): Remove the search_len
330         parameter.
332 2012-12-16  Joel Brobecker  <brobecker@adacore.com>
334         * Makefile.in (SFILES): Move ravenscar-thread.c from here...
335         (ALLDEPFILES): ... to there.
337 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
339         * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
341 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
343         * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
344         * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
345         (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
346         (ALLDEPFILES): Add ppc-ravenscar-thread.c.
347         * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
348         to gdb_target_obs for every target that uses rs6000-tdep.o.
349         * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
350         (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
351         or register_ppc_ravenscar_ops.
353 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
355         * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
356         RAVENSCAR_SPARC_THREAD_H.
357         * sparc-ravenscar-thread.c: Rename all global entities
358         whose name is uses "ravenscar_sparc" as the prefix to use
359         "sparc_ravenscar" instead.
361 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
363         * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
364         * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
365         Adjust sparc-ravenscar-thread.h #include.
366         * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
367         accordingly.
368         * Makefile.in: Replace ravenscar-sparc-thread with
369         sparc-ravenscar-thread throughout.
370         * configure.tgt: Likewise.
372 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
374         * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
375         declaration.
376         (ravenscar_ops): New gdbarch variable.
377         * gdbarch.h, gdbarch.c: Regenerate.
378         * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
379         * ravenscar-thread.c (current_arch_ops): Delete.
380         (ravenscar_fetch_registers): Get the ravenscar_arch_ops
381         from the gdbarch.
382         (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
383         (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
384         (ravenscar_register_arch_ops): Delete.
385         * ravenscar-sparc-thread.h: New file.
386         * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
387         (ravenscar_sparc_ops): Define value statically.
388         (_initialize_ravenscar_sparc): Delete.
389         (register_sparc_ravenscar_ops): New function.
390         * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
391         (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
392         * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
393         ravenscar-sparc-thread.o.
394         (SFILES): Add ravenscar-thread.c.
395         (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
396         (ALLDEPFILES): ravenscar-sparc-thread.c.
397         * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
398         to gdb_target_obs
399         for all the targets that use sparc-tdep.o.
401 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
403         * ravenscar-thread.c (ravenscar_is_open): Delete.
404         (ravenscar_initialize): Move most of the code from here...
405         (ravenscar_inferior_created): ... to there.  Invert logic.
406         (ravenscar_close): Delete.
407         (init_ravenscar_thread_ops): Remove setting of
408         ravenscar_ops.to_close.
410 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
412         * objfiles.c (init_entry_point_info): Move function from here...
413         * symfile.c (init_entry_point_info): ... to there.  Make static.
414         * objfiles.h (objfiles.h): Delete declaration.
416 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
418         * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
419         Remove call to init_entry_point_info.  Add OBJFILE's
420         section_offsets and num_sections initialization.  Add note
421         about entry info in the function documentation.
422         (syms_from_objfile): New function.
423         * coffread.c (coff_symfile_init): Remove call to
424         init_entry_point_info.
425         * machoread.c (macho_symfile_init): Likewise.
426         * xcoffread.c(xcoff_symfile_init): Likewise.
428 2012-12-15  Yao Qi  <yao@codesourcery.com>
430         * remote-notif.c (_initialize_notif): Add new commands
431         'set debug notification' and 'show debug notification'.
432         * NEWS: Mention these new commands.
434 2012-12-15  Yao Qi  <yao@codesourcery.com>
436         * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
437         (SFILES): Add "remote-notif.c".
438         (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
439         * remote-notif.c: New.  Factored out from remote.c.
440         * remote-notif.h: New.
441         * remote.c: Include "remote-notif.h".
442         (stop_reply_xmalloc, do_stop_reply_xfree):
443         (remote_parse_stop_reply, remote_get_pending_stop_replies):
444         (remote_async_get_pending_events_handler): Remove declarations.
445         (remote_parse_stop_reply): Declare.
446         (pending_stop_reply): Remove.
447         (remote_async_get_pending_events_token): Move to
448         remote-notif.c.
449         (remote_close): Replace 'delete_async_event_handler' with
450         remote_notif_unregister_async_event_handler.
451         Don't call discard_pending_stop_replies.
452         (remote_start_remote): Replace code with remote_notif_parse
453         and remote_notif_get_pending_replies.
454         (remote_open_1): Replace 'create_async_event_handler' with
455         remote_notif_register_async_event_handler.
456         (extended_remote_attach_1): Call remote_notif_parse and
457         notif_stop_reply_push.
458         (struct stop_reply) <next>: Remove.
459         <base>: New field.
460         Callers update.
461         (stop_reply_queue): Change its type.
462         (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
463         (remote_notif_remove_all): New.
464         (discard_pending_stop_replies): Update.
465         (remote_notif_stop_ack, stop_reply_dtr): New.
466         (remote_notif_stop_alloc_event): New.
467         (notif_client_stop): New variable.
468         (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
469         (queued_stop_reply, peek_stop_reply): Adjust.
470         (remote_get_pending_stop_replies): Rename to
471         remote_notif_get_pending_events.
472         (handle_notification): Move to remote-notif.c.
473         (remote_async_get_pending_events_handler): Likewise.
474         (remote_wait_as): Adjust to call remote_notif_parse.
475         Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
476         Return minus_one_ptid early if gets a notification.
477         (remote_wait): Call QUEUE_is_empty (notif_reply_p).
478         (_initialize_remote): Call QUEUE_alloc.  Update caller.
479         (remote_resume): Call 'remote_notif_process' in all-stop mode.
480         * remote.h: Include "remote-notif.h".
481         (remote_notif_get_pending_replies): Declare.
483 2012-12-15  Yao Qi  <yao@codesourcery.com>
485         * remote.c (discard_pending_stop_replies): Update declaration.
486         (remote_detach_1, extended_remote_mourn_1): Likewise.
487         (discard_pending_stop_replies): Change parameter from PID to
488         INF.
489         (remote_close): Update caller.
490         (_initialize_remote): Attach discard_pending_stop_replies to
491         inferior_exit observer.
493 2012-12-15  Yao Qi  <yao@codesourcery.com>
495         * remote.c (getpkt_or_notif_sane): Add one more argument in
496         its declaration.
497         (getpkt_or_notif_sane_1): Add one more argument.
498         (getpkt_sane): Update caller.
499         (getpkt_or_notif_sane): Likewise.  Update call
500         togetpkt_or_notif_sane_1.
501         (remote_wait_ns): Update caller.
503 2012-12-15  Yao Qi  <yao@codesourcery.com>
504             Doug Evans  <dje@google.com>
506         * common/queue.h: New.
508 2012-12-15  Yao Qi  <yao@codesourcery.com>
510         * breakpoint.c (print_one_breakpoint_location): Display the
511         state of 'installed' of each non-pending location of a tracepoint
512         in both CLI and MI.
513         (download_tracepoint_locations): Notify 'breakpoint-modified'
514         observer if any tracepoint location is downloaded.
515         * tracepoint.c (start_tracing): Likewise.
516         (merge_uploaded_tracepoints): Record all modified
517         tracepoints and notify 'breakpoint-modified' observer for them.
519         * NEWS: Mention the change for CLI and MI.
521 2012-12-15  Yao Qi  <yao@codesourcery.com>
523         * breakpoint.c (download_tracepoint_locations): Iterate over
524         ALL_TRACEPOINTS first and then iterate over locations of
525         each tracepoint.
527 2012-12-14  Pierre Muller  <muller@sourceware.org>
528             Pedro Alves  <palves@redhat.com>
530         * solib-target.c (solib_target_current_sos): Remove 'const'
531         qualifier from type of library_document local variable to be
532         able to free it and avoid a memory leak.
533         Use cleanup chain to avoid leak even if exceptino is generated.
535 2012-12-14  Tom Tromey  <tromey@redhat.com>
537         PR c++/8888:
538         * symtab.c (lookup_symbol_aux): If constructor is found, consider
539         returning the type instead.
540         * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
541         found.
543 2012-12-14  Tom Tromey  <tromey@redhat.com>
545         Partial fix for PR c++/14160:
546         * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
547         * dwarf2read.c (dwarf2_is_constructor): New function.
548         (dwarf2_add_member_fn): Use it.
549         * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
550         TYPE_FN_FIELD_CONSTRUCTOR.
551         * jv-typeprint.c (java_type_print_base): Use
552         TYPE_FN_FIELD_CONSTRUCTOR.
553         * gdbtypes.h (struct fn_field) <is_constructor>: New field.
554         <dummy>: Shrink.
555         (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
557 2012-12-14  Tom Tromey  <tromey@redhat.com>
559         * c-exp.y (block, variable, name_not_typename, lex_one_token,
560         classify_name): Update.
561         * c-valprint.c (c_val_print): Update.
562         * f-exp.y (yylex): Update.
563         * go-exp.y (package_name_p, classify_packaged_name)
564         (classify_name): Update.
565         * jv-exp.y (push_variable): Update.
566         * m2-exp.y (variable): Update.
567         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
568         * p-exp.y (block, variable, yylex): Update.
569         * p-valprint.c (pascal_val_print): Update.
570         * parse.c (write_dollar_variable): Update.
571         * printcmd.c (address_info): Update.
572         * python/py-symbol.c (gdbpy_lookup_symbol): Update.
573         * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
574         (lookup_symbol): Change type of 'is_a_field_of_this'.
575         (check_field): Add 'is_a_field_of_this' argument.
576         * symtab.h (struct field_of_this_result): New.
577         (lookup_symbol, lookup_symbol_in_language): Update.
579 2012-12-14  Tom Tromey  <tromey@redhat.com>
581         * symtab.c (check_field): Now static.  Move from...
582         * valops.c (check_field): ... here.  Remove.
583         * value.h (check_field): Don't declare.
585 2012-12-14  Tom Tromey  <tromey@redhat.com>
587         * NEWS: Mention "info proc" and core files.
588         * corelow.c (core_info_proc): New function.
589         (init_core_ops): Set to_info_proc.
590         * gdbarch.c, gdbarch.h: Rebuild.
591         * gdbarch.sh (core_info_proc): New method.
592         * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
593         * linux-tdep.c (linux_core_info_proc_mappings)
594         (linux_core_info_proc): New functions.
595         (linux_find_memory_region_ftype): New typedef.
596         (linux_find_memory_regions_full): New function, from
597         linux_find_memory_regions.
598         (struct linux_find_memory_regions_data): New.
599         (linux_find_memory_regions_thunk): New function.
600         (linux_find_memory_regions): Rewrite.
601         (struct linux_make_mappings_data): New.
602         (linux_make_mappings_callback)
603         (linux_make_mappings_corefile_notes): New functions.
604         (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
605         (linux_init_abi): Call set_gdbarch_core_info_proc.
606         * target.c (target_info_proc): Return 'int'.
607         * target.h (target_info_proc): Update.
609 2012-12-14  Pierre Muller  <muller@sourceware.org>
611         * windows-nat.c (windows_xfer_shared_libraries): Avoid
612         memory leak when OFFSET >= LEN_AVAIL.
614 2012-12-13  Tom Tromey  <tromey@redhat.com>
616         * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
618 2012-12-13  Tom Tromey  <tromey@redhat.com>
620         * acinclude.m4 (CY_AC_C_WORKS): Remove.
622 2012-12-13  Pierre Muller  <muller@sourceware.org>
624         * coff-pe-read.c (pe_text_section_offset): Increase size of sname
625         local variable and zero terminate it to avoid possible problems
626         in strcmp.
628 2012-12-13  Pedro Alves  <palves@redhat.com>
630         * coff-pe-read.c: Include coff/internal.h.
631         (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
632         Null terminate buffer explicitly instead of memset the whole
633         buffer.
635 2012-12-13  Pierre Muller  <muller@sourceware.org>
637         * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
638         (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
639         for already defined macros.
641 2012-12-13  Pierre Muller  <muller@sourceware.org>
643         * coff-pe-read.h (pe_text_section_offset): Declare new function.
644         * coff-pe-read.c (debug_coff_pe_read): New static variable.
645         (struct read_pe_section_data): Add section_name field.
646         (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
647         (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
648         (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
649         (get_pe_section_index): New function.
650         (struct pe_sections_info): New type.
651         (get_section_vmas): Use new struct pe_sections_info.
652         (add_pe_exported_sym): Handle unnamed exported function.
653         (add_pe_forwarded_sym): New function.
654         (read_pe_truncate_name): Truncate at last dot.
655         (pe_as16): New function.
656         (read_pe_exported_syms): Use ordinal of function to
657         retrieve correct RVA address of function and handle
658         forwarded symbol.
659         (pe_text_section_offset): New function.
660         (show_debug_coff_pe_read): New function.
661         (_initialize_coff_pe_read): New function adding
662         'set/show debug coff_pe_read' commands.
664         * windows-tdep.c (windows_xfer_shared_library): Use
665         pe_text_section_offset function instead of possibly wrong
666         0x1000 constant for .text sextion offset.
668 2012-12-13  Pedro Alves  <palves@redhat.com>
670         * gdbarch.sh (do_read): Set IFS to blank.
672 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
674         * NEWS: Mention the -catch-load/-catch-unload MI commands.
676 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
678         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
679         (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
680         * breakpoint.c (add_solib_catchpoint): New function that
681         can be used by both CLI and MI, factored out from
682         catch_load_or_unload.
683         (catch_load_or_unload): Strip it down and make it use the
684         new add_solib_catchpoint.
685         * breakpoint.h (add_solib_catchpoint): Declare it.
686         * mi/mi-cmd-break.h: New file.
687         * mi/mi-cmd-break.c: Include mi-cmd-break.h.
688         (setup_breakpoint_reporting): New function used for both
689         catchpoints and breakpoints.
690         (mi_cmd_break_insert): Use setup_breakpoint_reporting.
691         * mi/mi-cmd-catch.c: New file.
692         * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
693         and -catch-unload.
694         * mi/mi-cmds.h: Declare the handlers for -catch-load and
695         -catch-unload.
697 2012-11-28  Tom Tromey  <tromey@redhat.com>
699         * dbxread.c (read_dbx_symtab): Update.
700         (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
701         (read_ofile_symtab): Add 'objfile' argument.
702         * dwarf2read.c (process_psymtab_comp_unit_reader)
703         (build_type_psymtabs_reader): Update.
704         (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
705         * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
706         argument.
707         (parse_procedure, parse_partial_symbols): Update.
708         (psymtab_to_symtab_1): Add 'objfile' argument.
709         * psympriv.h (struct partial_symtab) <objfile>: Remove.
710         <read_symtab>: Add 'objfile' argument.
711         (sort_pst_symbols, discard_psymtab): Update.
712         * psymtab.c (partial_map_expand_apply): Update.
713         (find_pc_sect_psymtab_closer): Add 'objfile' argument.
714         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
715         (find_pc_sect_psymbol): Add 'objfile' argument.
716         (lookup_symbol_aux_psymtabs): Update.
717         (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
718         Add 'objfile' argument.
719         (find_last_source_symtab_from_partial, dump_psymtab)
720         (dump_psymtabs_for_objfile, read_symtabs_for_function)
721         (expand_partial_symbol_tables, read_psymtabs_with_filename)
722         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
723         (expand_symtabs_matching_via_partial): Update.
724         (sort_pst_symbols): Add 'objfile' argument.
725         (allocate_psymtab): Update.
726         (discard_psymtab): Add 'objfile' argument.
727         (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
728         * stabsread.h (end_psymtab): Update.
729         * xcoffread.c (this_symtab_objfile): New global.
730         (process_linenos, enter_line_range, xcoff_next_symbol_text):
731         Update.
732         (read_xcoff_symtab): Add 'objfile' argument.
733         (read_symbol, read_symbol_lineno): Update.
734         (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
735         (xcoff_end_psymtab): Add 'objfile' argument.
736         (scan_xcoff_symtab): Update.
738 2012-12-12  Paul Koning  <paul_koning@dell.com>
740         Add support for Python 3.
741         * NEWS: Mention Python 3 support.
742         * varobj.c (value_get_print_value): Use
743         python_string_to_target_string.
744         * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
745         of type objects.
746         * python/py-breakpoint.c: Ditto.
747         * python/py-cmd.c:  Ditto.
748         * python/py-event.c: Ditto.
749         * python/py-event.h: Ditto.
750         * python/py-evtregistry.c: Ditto.
751         * python/py-finishbreakpoint.c: Ditto.
752         * python/py-frame.c: Ditto.
753         * python/py-function.c: Ditto.
754         * python/py-infthread.c: Ditto.
755         * python/py-lazy-string.c: Ditto.
756         * python/py-progspace.c: Ditto.
757         * /python/py-symbol.c: Ditto.
758         * python/py-evts.c:  (gdbpy_initialize_py_events): Add module
759         initialization for Python 3.
760         * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
761         of type objects.
762         (infpy_read_memory): Return memoryview object if Python 3.
763         (infpy_write_memory): Use "s*" operand parsing code for Python 3.
764         (infpy_search_memory): Ditto.
765         (get_buffer): New function for Python 3.
766         * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
767         of type objects.
768         (objfpy_dealloc): Use Py_TYPE to call tp_free.
769         * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
770         of type objects.
771         (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
772         (set_attr): Ditto.
773         * python/py-prettyprint.c (print_string_repr): use PyBytes methods
774         instead of PyString methods if Python 3.
775         (print_children): Skip push_dummy_python_frame call if Python 3.
776         * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
777         of type objects.
778         (salpy_dealloc): Use Py_TYPE to call tp_free.
779         * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
780         of type objects.
781         (field_dealloc): Use Py_TYPE to call tp_free.
782         (typy_dealloc): Ditto.
783         (type_object_as_number): Adjust struct initializations for
784         differences in layout for Python 2 vs. Python 3.
785         * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
786         string case for Python 3.
787         (unicode_to_encoded_python_string): Shorten code (no functional
788         change).
789         (python_string_to_target_python_string): Comment that in Python 3
790         returned value is a Python "bytes" type.
791         (gdbpy_is_string): Omit non-Unicode string check in Python 3.
792         (gdb_py_object_from_longest): Omit non-long integer case in Python
793         3.
794         (gdb_py_object_from_ulongest): Ditto.
795         * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
796         of type objects.
797         (valpy_dealloc): Use Py_TYPE to call tp_free.
798         (valpy_int): Omit function if Python 3.
799         (convert_value_from_python): Use "%S" format (Python object as a
800         string) if Python 3.
801         (value_object_as_number): Adjust struct initializations for
802         differences in layout for Python 2 vs. Python 3.
803         * python/python-config.py: Adjust syntax for Python 3
804         compatibility.
805         Include "sys.abiflags" string as part of python library name, if
806         that attribute exists (Python 3).
807         * python/python-internal.h (IS_PY3): Define if Python 3.
808         (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
809         placeholder value if Python 3.
810         (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
811         PyString_Decode, PyString_FromFormat, PyString_Check): Define as
812         analogous Python 3 API function if Python 3.
813         (PyVarObject_HEAD_INIT): Define if not already defined.
814         (Py_TYPE): Ditto.
815         * python/python.c (eval_python_command): Omit Py_FlushLine call if
816         Python 3.
817         Check return values of all Python API calls for error.
818         Supply dummy "python" and "python-interactive" commands if Python
819         initialization failed.
820         (_initialize_python): Convert argc to wchar_t** if Python 3.
821         Add module initialization for Python 3.
822         (finish_python_initialization): Pass wchar_t * argument to
823         PySys_SetPath if Python 3.
824         * python/lib/gdb/__init__.py: Define "reload" if Python 3.
825         (_GdbFile): New class for common output file behavior.
826         (GdbOutFile): Subclass from _GdbFile.
827         (GdbOutputErrorFile): Ditto.
828         (auto_load_packages): Adjust syntax for Python 3 compatibility.
829         * python/lib/gdb/printing.py: Define basestr and int if Python 3.
830         * python/lib/gdb/prompt.py: Use sorted() function rather than
831         sort() method.
832         * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
833         Adjust syntax for Python 3 compatibility.
834         * python/lib/gdb/command/pretty_printers.py: Use sorted() function
835         rather than sort() method.
836         Adjust syntax for Python 3 compatibility.
837         * python/lib/gdb/command/type_printers.py: Ditto.
839 2012-12-12  Tom Tromey  <tromey@redhat.com>
841         * coffread.c (coff_objfile_data_key): New global.
842         (coff_symfile_init): Use set_objfile_data.
843         (coff_symfile_read): Use objfile_data.
844         (coff_symfile_finish): Don't free deprecated_sym_private.
845         (coff_free_info): New function.
846         (_initialize_coffread): Initialize coff_objfile_data_key.
847         * mdebugread.c (pending_list): Update comment.
848         * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
849         * symfile.c (reread_symbols): Don't mention
850         deprecated_sym_private.
851         * xcoffread.c (xcoff_objfile_data_key): New global.
852         (XCOFF_DATA): New macro.
853         (process_linenos, enter_line_range, xcoff_next_symbol_text)
854         (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
855         XCOFF_DATA.
856         (xcoff_new_init) Use set_objfile_data.
857         (xcoff_symfile_finish): Don't free deprecated_sym_private.
858         (init_stringtab, swap_sym, scan_xcoff_symtab)
859         (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
860         (xcoff_free_info): New function.
861         (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
863 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
865         * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
867 2012-12-12  Tom Tromey  <tromey@redhat.com>
869         * coffread.c (coff_symfile_init): Use set_objfile_data.
870         (coff_symfile_read): Use DBX_SYMFILE_INFO.
871         * dbxread.c (dbx_objfile_data_key): New global.
872         (dbx_symfile_init): Use set_objfile_data.
873         (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
874         (dbx_free_symfile_info): New function.
875         (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
876         DBX_SYMFILE_INFO.
877         (stabsect_build_psymtabs): Use set_objfile_data.
878         (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
879         * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
880         set_objfile_data.
881         (free_elfinfo): Use DBX_SYMFILE_INFO.
882         (elf_symfile_finish): Don't free deprecated_sym_stab_info.
883         (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
884         * gdb-stabs.h (dbx_objfile_data_key): Declare.
885         (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
886         * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
887         * somread.c (som_symfile_finish): Don't free
888         deprecated_sym_stab_info.
890 2012-12-12  Joel Brobecker  <brobecker@adacore.com>
892         * gdbarch.sh (software_single_step): Remove trailing space in
893         comment (gdbarch.h is already correct).
895 2012-12-11  Tom Tromey  <tromey@redhat.com>
897         * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
899 2012-12-11  Tom Tromey  <tromey@redhat.com>
901         * dsrec.c (report_transfer_performance): Don't declare.
902         (load_srec): Use gettimeofday, print_transfer_performance.
903         * symfile.c (report_transfer_performance): Remove.
905 2012-12-11  Pedro Alves  <pedro@codesourcery.com>
906             Pedro Alves  <palves@redhat.com>
908         * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
909         NT_PSTATUS note.
910         * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
911         differently from LWP IDs.
913 2012-12-11  Pedro Alves  <palves@redhat.com>
915         * configure.ac (detect type of /proc): Remove Unixware handling.
916         * configure: Regenerate.
917         * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
918         (ioctl_table) [PCRESET]: Remove entry.
919         * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
920         (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
921         (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
922         * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
923         * procfs.c: Remove all UNIXWARE guarded code, and all traces of
924         Unixware in comments throughout.
925         * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
926         and remove mention of Unixware.
928 2012-12-10  Doug Evans  <dje@google.com>
930         * dwarf2read.c (dwarf2_cu): Enhance comment.
931         (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
932         the DWO file.
933         (dwarf2_record_block_ranges): Ditto.
935         * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
937         * symtab.c (find_pc_sect_symtab): Add comment.
939 2012-12-10  Tom Tromey  <tromey@redhat.com>
941         * defs.h: Don't check for definition of LONGEST.
942         (min, max): Remove duplicates.
944 2012-12-10  Tom Tromey  <tromey@redhat.com>
946         * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
947         (dwarf2_fetch_die_loc_cu_off): Rename from
948         dwarf2_fetch_die_location_block.  Rewrite to use
949         dwarf2_fetch_die_loc_sect_off.
950         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
951         (dwarf2_fetch_die_loc_cu_off): Rename.
952         * dwarf2loc.c (indirect_pieced_value): Use
953         dwarf2_fetch_die_loc_sect_off.
954         * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
955         comment.
956         (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
957         * dwarf2expr.c (add_piece): Update.
958         (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
960 2012-12-10  Tom Tromey  <tromey@redhat.com>
962         * buildsym.c (struct pending_block): Move from buildsym.h.
963         (pending_blocks): Likewise; now static.
964         (pending_block_obstack): New global.
965         (free_pending_blocks): Free blocks.
966         (record_pending_block): Use pending_block_obstack.
967         * buildsym.h (struct pending_block): Move definition to
968         buildsym.c.
969         (pending_blocks): Don't declare.
971 2012-12-10  Pedro Alves  <palves@redhat.com>
973         * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
974         dead SCO code, and adjust function description comment.
976 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
978         * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
979         * defs.h (LONGEST, ULONGEST): Remove conditionalization for
980         CC_HAS_LONG_LONG.
981         * dwarf2-frame.c (DW64_CIE_ID): Likewise.
982         * dwarf2read.c (extract_cu_value): Remove the function.
983         (create_cus_from_index_list): Make the return type void, inline the
984         extract_cu_value caller, include new gdb_static_assert.
985         (create_cus_from_index): Make the return type void, update the function
986         comment, update the create_cus_from_index_list caller.
987         (create_signatured_type_table_from_index): Make the return type void,
988         inline the extract_cu_value caller, include new gdb_static_assert.
989         (dwarf2_read_index): Update the create_cus_from_index and
990         create_signatured_type_table_from_index caller.
991         * printcmd.c (ui_printf): Remove conditionalizations for
992         CC_HAS_LONG_LONG.
993         * config.in: Regenerate.
994         * configure: Regenerate.
996 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
998         * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
999         Update the comment for checked_producer.
1000         (check_producer): New forward declaration.
1001         (producer_is_gcc_lt_4_3): New function.
1002         (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
1003         (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
1005 2012-12-07  Tom Tromey  <tromey@redhat.com>
1007         * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
1008         argument, assertion.
1009         * c-exp.y (typebase): Add completion productions.
1010         * completer.c (expression_completer): Handle tag completion.
1011         * expression.h (parse_expression_for_completion): Add argument.
1012         * f-lang.c (f_make_symbol_completion_list): Add 'code'
1013         argument.
1014         * language.h (struct language_defn)
1015         <la_make_symbol_completion_list>: Add 'code' argument.
1016         * parse.c (expout_tag_completion_type, expout_completion_name):
1017         New globals.
1018         (mark_struct_expression): Add assertion.
1019         (mark_completion_tag): New function.
1020         (parse_exp_in_context): Initialize new globals.
1021         (parse_expression_for_completion): Add 'code' argument.  Handle
1022         tag completion.
1023         * parser-defs.h (mark_completion_tag): Declare.
1024         * symtab.c (default_make_symbol_completion_list_break_on): Add
1025         'code' argument.  Update.
1026         (default_make_symbol_completion_list): Add 'code' argument.
1027         (make_symbol_completion_list): Update.
1028         (make_symbol_completion_type): New function.
1029         * symtab.h (default_make_symbol_completion_list_break_on)
1030         (default_make_symbol_completion_list): Update.
1031         (make_symbol_completion_type): Declare.
1033 2012-12-07  Tom Tromey  <tromey@redhat.com>
1035         * expression.h (parse_expression_for_completion): Rename
1036         from parse_field_expression.
1037         (parse_completion): Rename from in_parse_field.
1038         * c-exp.y (lex_one_token): Update.
1039         * completer.c (expression_completer): Update.
1040         * go-exp.y (lex_one_token): Update.
1041         * p-exp.y (yylex): Update.
1042         * parse.c (parse_completion): Rename from in_parse_field.
1043         (parse_exp_in_context): Update.
1044         (parse_expression_for_completion): Rename from
1045         parse_field_expression.  Update.
1047 2012-12-07  Tom Tromey  <tromey@redhat.com>
1049         * typeprint.c (_initialize_typeprint): Set completer
1050         for "whatis" and "ptype".
1052 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
1054         * copyright.py (NOT_FSF_LIST): Remove duplicate entry
1055         "sim/common/cgen-fpu.h".  Remove invalid entries
1056         "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
1057         which actually have an FSF copyright header.
1059 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
1061         * osf-share/AT386/cma_thread_io.h: Delete.
1062         * osf-share/HP800/cma_thread_io.h: Delete.
1063         * osf-share/README: Delete.
1064         * osf-share/RIOS/cma_thread_io.h: Delete.
1065         * osf-share/cma_attr.h: Delete.
1066         * osf-share/cma_deb_core.h: Delete.
1067         * osf-share/cma_debug_client.h: Delete.
1068         * osf-share/cma_errors.h: Delete.
1069         * osf-share/cma_handle.h: Delete.
1070         * osf-share/cma_init.h: Delete.
1071         * osf-share/cma_list.h: Delete.
1072         * osf-share/cma_mutex.h: Delete.
1073         * osf-share/cma_sched.h: Delete.
1074         * osf-share/cma_semaphore_defs.h: Delete.
1075         * osf-share/cma_sequence.h: Delete.
1076         * osf-share/cma_stack.h: Delete.
1077         * osf-share/cma_stack_int.h: Delete.
1078         * osf-share/cma_tcb_defs.h: Delete.
1079         * osf-share/cma_util.h: Delete.
1080         * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
1081         in osf-share.
1082         * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
1083         * contrib/ari/gdb_find.sh: Remove handling of osf-share.
1084         * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
1086 2012-12-06  Pedro Alves  <palves@redhat.com>
1087             Tom Tromey  <tromey@redhat.com>
1089         * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
1091 2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>
1093         PR mi/14741:
1094         * mi/mi-cmd-var.c (varobj_update_one): Take value of
1095         attribute "dynamic" and "displayhint" from printed child,
1096         not the root variable.
1098 2012-12-06  Joel Brobecker  <brobecker@adacore.com>
1100         * aix-thread.c (getthrds): Fix type of 4th parameter.
1101         (get_signaled_thread): Change type of variable ktid to tid_t.
1103 2012-12-06  Hui Zhu  <hui_zhu@mentor.com>
1105         * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
1106         value of get_frame_block.
1108 2012-12-05  Pierre Muller  <muller@sourceware.org>
1110         Avoid memory leaks on struct cmd_list_element.doc field.
1111         * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
1112         if flags contains DOC_ALLOCATED.
1113         (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
1114         flags.
1115         (delete_cmd): Handle DOC_ALLOCATED flag.
1116         * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
1117         in flags filed of struct cmd_list_element.
1118         (struct cmd_list_element): Document new flag item.
1120 2012-12-04  Doug Evans  <dje@google.com>
1122         * symmisc.c: Whitespace fixes.
1124 2012-12-04  Karthik Bhat  <kv.bhat@samsung.com>
1126         * i386-tdep.c (i386_skip_prologue): Using symbol table
1127         to find the end of prologue for clang compiled binaries.
1128         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1129         to find the end of prologue for clang compiled binaries.
1131 2012-12-03  Doug Evans  <dje@google.com>
1133         * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1134         (dw2_find_symbol_file): Delete unused local file_data.
1136 2012-12-03  Tom Tromey  <tromey@redhat.com>
1138         * ada-exp.y (write_object_renaming, write_var_or_type)
1139         (write_ambiguous_var, write_var_from_sym): Make blocks const.
1140         * ada-lang.c (replace_operator_with_call)
1141         (find_old_style_renaming_symbol): Make blocks const.
1142         * ada-lang.h (ada_find_renaming_symbol): Update.
1143         (struct ada_symbol_info) <block>: Now const.
1144         * breakpoint.c (watch_command_1): Update.
1145         * breakpoint.h (struct watchpoint) <exp_valid_block,
1146         cond_exp_valid_block>: Now const.
1147         * c-exp.y (classify_inner_name, classify_name): Make block
1148         argument const.
1149         * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1150         const.
1151         * expression.h (innermost_block, parse_exp_1): Update.
1152         (union exp_element) <block>: Now const.
1153         * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1154         (lookup_struct): Make block argument const.
1155         * gdbtypes.h (lookup_template_type): Update.
1156         * go-exp.y (classify_name, classify_packaged_name)
1157         (package_name_p): Make block argument const.
1158         * objc-lang.c (lookup_struct_typedef): Make block argument const.
1159         * objc-lang.h (lookup_struct_typedef): Update.
1160         * parse.c (parse_exp_in_context, parse_exp_1)
1161         (write_exp_elt_block): Make block arguments const.
1162         (expression_context_block, innermost_block): Now const.
1163         * parser-defs.h (write_exp_elt_block): Update.
1164         (expression_context_block, innermost_block, block_found): Now
1165         const.
1166         * printcmd.c (struct display) <block>: Now const.
1167         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1168         * valops.c (address_of_variable): Make block argument const.
1169         * value.h (value_of_variable): Update.
1170         * varobj.c (struct varobj_root) <valid_block>: Now const.
1172 2012-11-30  Yao Qi  <yao@codesourcery.com>
1174         * breakpoint.c (print_one_breakpoint_location): Indent code.
1176 2012-11-30  Yao Qi  <yao@codesourcery.com>
1178         * breakpoint.c (print_one_breakpoint_location): Combine two
1179         blocks handling 'hit count' together.
1181 2012-11-30  Yao Qi  <yao@codesourcery.com>
1183         * infrun.c (error_is_running, ensure_not_running): Move them
1184         to ...
1185         * infcmd.c (error_is_running, ensure_not_running): ... here.
1186         Make them 'static'.
1187         * inferior.h: Remove declarations of error_is_running and
1188         ensure_not_running.
1190 2012-11-30  Yao Qi  <yao@codesourcery.com>
1192         * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1193         check REGNUM >= 0.
1195 2012-11-30  Yao Qi  <yao@codesourcery.com>
1197         * infrun.c: Make the declaration of 'init_infwait_state'
1198         static.
1199         (init_infwait_state): Make it 'static'.
1201 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1203         * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1204         return value to void to avoid compiler warning.
1206 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1208         * opencl-lang.c (opencl_print_type): New function.
1209         (opencl_language_arch_info): Install it.
1211 2012-11-29  Tom Tromey  <tromey@redhat.com>
1213         * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1214         xvasprintf.
1215         * common/common-utils.c (xasprintf, xvasprintf): Remove.
1216         * common/common-utils.h (xasprintf, xvasprintf): Remove.
1218 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1220         * ada-lang.c (ada_is_interface_tag): New function.
1221         (ada_is_ignored_field): Add interface tags to the list
1222         of ignored fields.
1224 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1226         * ada-lang.h (ada_tag_value_at_base_address): New function
1227         declaration.
1228         * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1229         New functions.
1230         (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1231         relocate the class-wide value if need be.
1232         (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1233         Let ada_tag_value_at_base_address relocate the class-wide access/ref
1234         before dereferencing it.
1235         * ada-valprint.c (ada_val_print_1): Relocate to base address
1236         before displaying the content of an interface-wide ref.
1238 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1240         * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1242 2012-11-29  Joel Brobecker  <brobecker@adacore.com>
1244         GDB 7.5.1 released.
1246 2012-11-29  Yao Qi  <yao@codesourcery.com>
1247             Tom Tromey  <tromey@redhat.com>
1249         * eval.c (evaluate_subexp_standard): Get the correct pointer
1250         type for TYPE_CODE_MEMBERPTR.
1252 2012-11-28  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1254         * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1255         since now it is being done by binutils' powerpc_init_dialect().
1257 2012-11-28  Tom Tromey  <tromey@redhat.com>
1259         PR gdb/14290:
1260         * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1261         (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1262         Use it.
1263         * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1264         * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1265         (gdb_bfd_openr_next_archived_file): Use it.
1267 2012-11-28  Markus Metzger  <markus.t.metzger@intel.com>
1269         * configure.ac: Check for linux/perf_event.h.
1270         * config.in: Regenerated.
1271         * configure: Regenerated.
1273 2012-11-28  Yao Qi  <yao@codesourcery.com>
1275         * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1276         abbreviate 'delete tracepoints' to 'delete tr'.
1277         * corefile.c (_initialize_core): Call add_alias_cmd to
1278         abbreviate 'set gnutarget' to 'set g'.
1279         * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1280         'show convenience' to 'show conv'.
1282 2012-11-27  Joel Brobecker  <brobecker@adacore.com>
1284         * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1285         call to sparc_supply_fpregset.
1286         (fill_fpregset): Fix first parameter in call to
1287         sparc_collect_fpregset.
1289 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
1290             Kazu Hirata  <kazu@codesourcery.com>
1291             Yao Qi  <yao@codesourcery.com>
1293         * objfiles.c (init_entry_point_info): Call
1294         gdbarch_convert_from_func_ptr_addr and
1295         gdbarch_addr_bits_remove here ...
1296         (entry_point_address_query): ... instead of here.
1297         * solib-svr4.c (exec_entry_point): Call
1298         gdbarch_addr_bits_remove.
1299         * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1300         the entry address.
1302 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
1303             Yao Qi  <yao@codesourcery.com>
1305         * eval.c (evaluate_subexp_standard): Add handling of
1306         TYPE_CODE_MEMBERPTR when calling functions.  Correct the
1307         result of ptype for calling a TYPE_CODE_METHODPTR.
1309 2012-11-27  Yao Qi  <yao@codesourcery.com>
1311         * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1312         warning.
1313         Add i18n markup.
1315 2012-11-26  Alexander Larsson  <alexl@redhat.com>
1316             Jan Kratochvil  <jan.kratochvil@redhat.com>
1317             Tom Tromey  <tromey@redhat.com>
1319         * NEWS: Mention mini debuginfo feature.
1320         * minidebug.c: New file.
1321         * configure.ac: Check for lzma.
1322         * configure, config.in: Rebuild.
1323         * Makefile.in (LIBLZMA): New variable.
1324         (CLIBS): Include LIBLZMA.
1325         (SFILES): Mention minidebug.c.
1326         (COMMON_OBS): Mention minidebug.o.
1327         * symfile.c (read_symbols): New function.
1328         (syms_from_objfile, reread_symbols): Call it.
1329         * symfile.h (find_separate_debug_file_in_section): Declare.
1331 2012-11-26  Keith Seitz  <keiths@redhat.com>
1333         * exec.c (exec_file_attach): Move cleanup after verifying that
1334         memory has in fact been allocated.
1336 2012-11-26  Tom Tromey  <tromey@redhat.com>
1338         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1339         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1340         SYMBOL_SYMTAB.
1341         * skip.c (skip_info): Use SYMBOL_SYMTAB.
1343 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
1344             Pedro Alves  <palves@redhat.com>
1346         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1347         size parameter passed to readlink by one byte.
1348         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1349         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1350         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1351         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1352         size by one byte.
1354 2012-11-26  Yao Qi  <yao@codesourcery.com>
1356         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1357         extraneous parentheses.
1359 2012-11-26  Yao Qi  <yao@codesourcery.com>
1361         * remote.c (remote_start_remote): Typo fix.
1363 2012-11-23  David S. Miller  <davem@davemloft.net>
1365         * sparc-tdep.h (struct sparc_fpregset): New data structure.
1366         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1367         sparc32_sol2_fpregset): Declare new globals.
1368         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1369         'fpregset' argument.
1370         * sparc64-tdep.h (sparc64_supply_fpregset,
1371         sparc64_collect_fpregset): Likewise.
1372         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1373         globals.
1374         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1375         (sparc_fpregset): Declare new global.
1376         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1377         'fpregset' argument.
1378         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1379         into handler.
1380         (fill_fpregset): Likewise.
1381         (_initialize_sparc_linux_nat): Set sparc_fpregset to
1382         sparc32_bsd_fpregset.
1383         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1384         sparc32_bsd_fpregset down into handler.
1385         (sparc32_linux_collect_core_fpregset): Likewise.
1386         * sparc-nat.c (sparc_fpregset): Define.
1387         (sparc_supply_fpregset): Add 'fpregset' argument.
1388         (sparc_collect_fpregset): Likewise.
1389         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1390         into fpregset handler.
1391         (sparc_store_inferior_registers): Likewise.
1392         (_initialize_sparc_nat): Set sparc_fpregset to
1393         sparc32_sunos4_fpregset if NULL.
1394         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1395         down into handler.
1396         (fill_fpregset): Likewise.
1397         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1398         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1399         use it to compute offsets.
1400         (sparc32_collect_fpregset): Likewise.
1401         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1402         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1403         down into handler.
1404         (fill_fpregset): Likewise.
1405         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1406         Likewise.
1407         (sparc64_linux_collect_core_fpregset): Likewise.
1408         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1409         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1410         use it to compute offsets.
1411         (sparc64_collect_fpregset): Likewise.
1412         (sparc64_bsd_fpregset): Define.
1413         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1414         sparc64_bsd_fpregset down into handler.
1415         (sparc64fbsd_collect_fpregset): Likewise.
1416         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1417         and pass sparc{32,64}_bsd_fpregset down into handler.
1418         (sparc64nbsd_collect_fpregset): Likewise.
1419         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1420         sparc64_bsd_fpregset down into handler.
1421         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1422         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1423         to sparc32_bsd_fpregset.
1424         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1425         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1426         (sparc32nbsd_supply_fpregset): Likewise.
1428 2012-11-21  Tom Tromey  <tromey@redhat.com>
1430         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1431         field.
1432         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1433         Remove.
1434         * c-typeprint.c (c_type_print_base): Update.
1436 2012-11-21  Yao Qi  <yao@codesourcery.com>
1438         PR tdep/7438
1439         * gdbarch.sh (smash_text_address): Remove.
1440         * gdbarch.c, gdbarch.h: Regenerate.
1441         * arm-tdep.c (arm_smash_text_address): Remove.
1442         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1443         * hppa-tdep.c (hppa_smash_text_address): Remove.
1444         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1445         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1446         Caller update.
1447         * coffread.c (coff_symtab_read): Caller update.
1448         * dbxread.c (process_one_symbol): Likewise.
1449         * elfread.c (record_minimal_symbol): Likewise.
1450         * somread.c (som_symtab_read): Likewise.
1452 2012-11-20  Pierre Muller  <muller@sourceware.org>
1454         ARI fixes: sprintf rule.
1455         Replace sprintf function calls for char arrays by
1456         calls to xsnprintf calls.
1457         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1458         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1459         (arm_neon_quad_read, arm_pseudo_read): Ditto.
1460         (arm_neon_quad_write, arm_pseudo_write): Ditto.
1461         * breakpoint.c (condition_completer): Ditto.
1462         (create_tracepoint_from_upload): Ditto.
1463         * dwarf2read.c (file_full_name): Ditto.
1464         * gcore.c (gcore_command): Ditto.
1465         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1466         * go32-nat.c (go32_sysinfo): Ditto.
1467         * interps.c (interp_set): Ditto.
1468         * m32c-tdep.c (make_types): Ditto.
1469         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1470         * remote-m32r-sdi.c (m32r_open): Ditto.
1471         * sol-thread.c (td_err_string): Ditto.
1472         (td_state_string, solaris_pid_to_str): Ditto.
1473         * symtab.c (gdb_mangle_name): Ditto.
1474         * cli/cli-script.c (execute_control_command): Ditto.
1475         (define_command, document_command): Ditto.
1476         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1477         * tui/tui-stack.c (tui_make_status_line): Ditto.
1478         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1480 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
1482         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1483         it when looking at ptr->func.
1484         * command.h (complete_on_cmdlist): Add a fourth arg.
1485         * completer.c (complete_line_internal): Add local ignore_help_classes,
1486         and set it to 1 when reason is not handle_help.  Pass this down to
1487         lookup_cmd_1 and complete_on_cmdlist.
1489 2012-11-20  Tom Tromey  <tromey@redhat.com>
1491         * completer.c (count_struct_fields): Remove.
1492         (expression_completer): Don't call count_struct_fields.
1494 2012-11-20  Pedro Alves  <palves@redhat.com>
1496         * annotate.c (breakpoints_changed): Rename to ...
1497         (annotate_breakpoints_changed): ... this.
1498         (annotate_stopped, breakpoint_changed): Adjust caller.
1499         * annotate.h (breakpoints_changed): Rename to ...
1500         (annotate_breakpoints_changed): ... this.
1501         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1502         (do_map_commands_command, init_raw_breakpoint, clear_command)
1503         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1505 2012-11-20  David S. Miller  <davem@davemloft.net>
1507         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1508         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1509         sysconf.
1510         (get_cores_used_by_process): Update comment.
1512 2012-11-20  Yao Qi  <yao@codesourcery.com>
1514         * objfiles.c (init_entry_point_info): Remove trailing spaces.
1516 2012-11-20  Yao Qi  <yao@codesourcery.com>
1518         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1519         to deprecated_context_hook.
1521 2012-11-19  Yao Qi  <yao@codesourcery.com>
1523         * infrun.c (infwait_state): Add static.
1525 2012-11-16  Keith Seitz  <keiths@redhat.com>
1527         PR c++/13615
1528         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1529         parameter and pass it to lookup_symbol_file.
1530         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1531         to search base classes.
1532         (cp_lookup_symbol_namespace): Likewise.
1533         (lookup_namespace_scope): Likewise.
1534         (lookup_symbol_file): Add SEARCH parameter.
1535         If SEARCH is non-zero and no symbol is found, lookup the class
1536         and call cp_lookup_nested_symbol.
1537         (find_symbol_in_baseclass): New function.
1538         (cp_lookup_nested_symbol): Do not let
1539         cp_lookup_symbol_in_namespace search through base classes.
1540         Do that later when there is no global symbol match.
1542 2012-11-16  Doug Evans  <dje@google.com>
1544         * main.c (gdb_datadir_provided): New static global.
1545         (get_init_files): If --data-directory is provided,
1546         and SYSTEM_GDBINIT lives in data-directory, look for it there.
1547         * NEWS: Mention it.
1549 2012-11-15  Pierre Muller  <muller@sourceware.org>
1551         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1552         * gdb_stat.h: Delete. Moved to common directory.
1553         * common/gdb_stat.h: New file.
1554         * gdb_wait.h: Delete. Moved to common directory.
1555         * common/gdb_wait.h: New file.
1556         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1557         location.
1558         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1559         location.
1560         (stat.h rule): Adapt to new gdb_stat.h location.
1561         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1562         <sys/stat.h> header.
1563         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1564         <sys/wait.h> header.
1566 2012-11-15  Pierre Muller  <muller@sourceware.org>
1568         * configure.ac (AC_HEADER_STAT): Remove.
1569         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1570         and corresponding code.
1571         * configure: Regenerate.
1572         * config.in: Regenerate.
1574 2012-11-15  Pierre Muller  <muller@sourceware.org>
1576         ARI xasprintf rule fixes.
1577         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1578         instead of xasprintf.
1579         (open_and_init_dwp_file): Ditto.
1581 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
1583         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1584         target types.
1586 2012-11-14  Tom Tromey  <tromey@redhat.com>
1588         * configure, config.in: Rebuild.
1589         * configure.ac: Don't check for ctype.h, time.h.
1590         * expprint.c: Don't use HAVE_CTYPE_H.
1592 2012-11-13  Tom Tromey  <tromey@redhat.com>
1594         * gdbarch.h, gdbarch.c: Rebuild.
1595         * gdbarch.sh (set_target_gdbarch): Rename from
1596         deprecated_target_gdbarch_select_hack.
1597         * arch-utils.c (gdbarch_update_p): Update.
1598         (set_gdbarch_from_file): Update.
1600 2012-11-14  Pierre Muller  <muller@sourceware.org>
1602         * MAINTAINERS (Responsible Maintainers/misc): Add myself
1603         as responsible of contrib/ari directory.
1605 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
1606             Yao Qi  <yao@codesourcery.com>
1608         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1609         bit of EXC_RETURN.
1610         (arm_m_exception_cache, arm_m_exception_this_id)
1611         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1612         (arm_m_exception_unwind): New.
1613         (arm_gdbarch_init): Register arm_m_exception_unwind.
1615 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
1617         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1618         parameter COUNT, for pattern filling of memory regions.
1619         * NEWS: Mention it.
1621 2012-11-13 Markus Metzger  <markus.t.metzger@intel.com>
1623         * disasm.h (DISASSEMBLY_FILENAME): New macro.
1624         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1625         to print_source_lines ().
1626         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1627         flag.
1628         * source.c (print_source_lines_base): Prefix source line with
1629         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1631 2012-11-13 Markus Metzger  <markus.t.metzger@intel.com>
1633         * symtab.h (print_source_lines_flags): New enum.
1634         * source.c (print_source_lines_base): Change noerror to flags.
1635         (print_source_lines): Change noerror to flags.
1637 2012-11-13  Pierre Muller  <muller@sourceware.org>
1639         ARI fixes: Avoid sprintf function use rule.
1640         * charset.c (convert_between_encodings): Use xsnprintf.
1641         * cli-out.c (cli_field_int): Likewise.
1642         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1643         * expprint.c (op_name_standard): Likewise.
1644         * frv-tdep.c (set_variant_num_gprs): Likewise.
1645         (set_variant_num_fprs): Likewise.
1646         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1647         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1648         (nto_init_solib_absolute_prefix): Likewise.
1649         * source.c (init_source_path): Likewise.
1650         (print_source_lines_base): Likewise.
1651         * valprint.c (print_wchar): Likewise.
1652         * mi/mi-out.c (mi_field_int): Likewise.
1653         windows-nat.c (windows_pid_to_exec_file): Likewise.
1654         (windows_create_inferior): Likewise.
1655         (_initialize_check_for_gdb_ini): Likewise.
1657 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
1659         * frame.h (deprecated_frame_register_read): Renames
1660         frame_register_read.
1661         * frame.c (deprecated_frame_register_read): Renames
1662         frame_register_read.  Update all callers.
1663         * i386-tdep.c: Update all callers of frame_register_read.
1664         * infcmd.c: Likewise.
1665         * jit.c: Likewise.
1666         * mips-tdep.c: Likewise.
1667         * mt-tdep.c: Likewise.
1668         * sh64-tdep.c: Likewise.
1670 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
1672         * frame.h (frame_register_read): Remove FIXME comment.
1673         * frame.c (frame_register_read): Add suggestion explaining
1674         which function to use in place of this one.
1676 2012-11-12  Tom Tromey  <tromey@redhat.com>
1678         * python/python.c (start_type_printers): Initialize 'result_obj'.
1680 2012-11-12  Tom Tromey  <tromey@redhat.com>
1682         * NEWS: Update.
1683         * data-directory/Makefile.in (PYTHON_FILES): Add
1684         type_printers.py.
1685         * python/lib/gdb/command/type_printers.py: New file.
1686         * python/lib/gdb/command/types.py (TypePrinter): New class.
1687         (_get_some_type_recognizers, get_type_recognizers,
1688         apply_type_recognizers, register_type_printer): New
1689         functions.
1690         * python/py-objfile.c (objfile_object) <type_printers>: New
1691         field.
1692         (objfpy_dealloc): Decref new field.
1693         (objfpy_new): Set new field.
1694         (objfpy_get_type_printers, objfpy_set_type_printers): New
1695         functions.
1696         (objfile_to_objfile_object): Set new field.
1697         (objfile_getset): Add "type_printers".
1698         * python/py-progspace.c (pspace_object) <type_printers>: New
1699         field.
1700         (pspy_dealloc): Decref new field.
1701         (pspy_new): Set new field.
1702         (pspy_get_type_printers, pspy_set_type_printers): New functions.
1703         (pspace_to_pspace_object): Set new field.
1704         (pspace_getset): Add "type_printers".
1705         * python/python.c (start_type_printers, apply_type_printers,
1706         free_type_printers): New functions.
1707         (_initialize_python): Set gdb.type_printers.
1708         * python/python.h (start_type_printers, apply_type_printers,
1709         free_type_printers): Declare.
1710         * typeprint.c (type_print_raw_options, default_ptype_flags):
1711         Update for new fields.
1712         (do_free_global_table, create_global_typedef_table,
1713         find_global_typedef): New functions.
1714         (find_typedef_in_hash): Use find_global_typedef.
1715         (whatis_exp): Use create_global_typedef_table.  Change cleanup
1716         handling.
1717         * typeprint.h (struct type_print_options) <global_typedefs,
1718         global_printers>: New fields.
1720 2012-11-12  Tom Tromey  <tromey@redhat.com>
1722         * c-typeprint.c (find_typedef_for_canonicalize,
1723         print_name_maybe_canonical): New functions.
1724         (c_print_type): Look up type name.
1725         (cp_type_print_derivation_info): Add flags argument.  Use
1726         print_name_maybe_canonical.
1727         (cp_type_print_method_args): Add wrapping.
1728         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1729         (c_type_print_template_args): New function.
1730         (c_type_print_base): Change wrapping.  Use
1731         print_name_maybe_canonical.
1732         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1733         type name lookups.
1734         * gdbtypes.c (types_equal): No longer static.
1735         * gdbtypes.h (types_equal): Declare.
1736         * typeprint.c (type_print_raw_options, default_ptype_flags):
1737         Update.
1738         (struct typedef_hash_table): New.
1739         (hash_typedef_field, eq_typedef_field,
1740         recursively_update_typedef_hash, add_template_parameters,
1741         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1742         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1743         copy_typedef_hash, find_typedef_in_hash): New functions.
1744         * typeprint.h (struct type_print_options) <local_typedefs>:
1745         New field.
1746         (recursively_update_typedef_hash, add_template_parameters,
1747         create_typedef_hash, free_typedef_hash,
1748         make_cleanup_free_typedef_hash, copy_typedef_hash,
1749         find_typedef_in_hash): Declare.
1751 2012-11-12  Tom Tromey  <tromey@redhat.com>
1753         * cp-support.c (inspect_type,
1754         replace_typedefs_qualified_name, replace_typedefs): Add
1755         finder, data arguments.  Call as needed.
1756         (cp_canonicalize_string_full): New function.
1757         (cp_canonicalize_string_no_typedefs): Rewrite.
1758         * cp-support.h (canonicalization_ftype): New typedef.
1759         (cp_canonicalize_string_full): Declare.
1761 2012-11-12  Tom Tromey  <tromey@redhat.com>
1763         * NEWS: Update.
1764         * c-typeprint.c (c_type_print_base): Handle print_method and
1765         print_typedefs flags.
1766         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1767         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1768         options.
1769         * typeprint.c (type_print_raw_options, default_ptype_flags):
1770         Update for new field.s
1771         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
1772         (setprinttypelist, showprinttypelist, print_methods,
1773         print_typedefs): New globals.
1774         (set_print_type, show_print_type, set_print_type_methods,
1775         show_print_type_methods, set_print_type_typedefs,
1776         show_print_type_typedefs): New functions.
1777         (_initialize_typeprint): Update documentation.  Add "print
1778         type methods" and "print type typedefs" parameters.
1779         * typeprint.h (struct type_print_options) <print_methods,
1780         print_typedefs>: New fields.
1782 2012-11-12  Tom Tromey  <tromey@redhat.com>
1784         * c-typeprint.c (cp_type_print_method_args): Add flags
1785         argument.  Call c_print_type, not type_print.
1786         (c_type_print_base): Call c_print_type, not type_print.
1787         Update.
1789 2012-11-12  Tom Tromey  <tromey@redhat.com>
1791         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1792         to type-printing functions.
1793         * ada-lang.h (ada_print_type): Add argument.
1794         * ada-typeprint.c (print_array_type, print_variant_clauses,
1795         print_variant_part, print_selected_record_field_types,
1796         print_record_field_types, print_unchecked_union_type,
1797         print_func_type, ada_print_type): Add flags argument.
1798         (ada_print_typedef): Update.
1799         * c-exp.y (OPERATOR conversion_type_id): Update.
1800         * c-lang.h (c_print_type, c_type_print_base): Update.
1801         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1802         c_type_print_modifier, c_type_print_args,
1803         c_type_print_varspec_suffix, c_type_print_base): Add flags
1804         argument.
1805         * cp-valprint.c (cp_print_class_member): Update.
1806         * dwarf2read.c (dwarf2_compute_name): Update.
1807         * f-lang.h (f_print_type): Add argument.
1808         * f-typeprint.c (f_print_type): Add flags argument.
1809         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1810         * go-lang.h (go_print_type): Add argument.
1811         * go-typeprint.c (go_print_type): Add flags argument.
1812         * jv-lang.h (java_print_type): Add argument.
1813         * jv-typeprint.c (java_type_print_base, java_print_type): Add
1814         flags argument.
1815         * language.c (unk_lang_print_type): Add flags argument.
1816         * language.h (struct language_defn) <la_print_type>: Add flags
1817         argument.
1818         (LA_PRINT_TYPE): Likewise.
1819         * m2-lang.h (m2_print_type): Add argument.
1820         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1821         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1822         m2_unbounded_array, m2_record_fields): Add flags argument.
1823         * p-lang.h (pascal_print_type, pascal_type_print_base,
1824         pascal_type_print_varspec_prefix): Add argument.
1825         * p-typeprint.c (pascal_print_type,
1826         pascal_type_print_varspec_prefix, pascal_print_func_args,
1827         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1828         flags argument.
1829         * symmisc.c (print_symbol): Update.
1830         * typeprint.c (type_print_raw_options, default_ptype_flags):
1831         New globals.
1832         (type_print): Update.
1833         * typeprint.h (struct type_print_options): New.
1834         (type_print_raw_options): Declare.
1835         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1837 2012-11-10  Keith Seitz  <keiths@redhat.com>
1839         * breakpoint.c (clear_command): Add cleanup for
1840         sals.sals if an argument is given.
1842         * linespec.c (parse_linespec): Do cleanups after
1843         parsing a convenience variable.
1845 2012-11-10  Keith Seitz  <keiths@redhat.com>
1847         PR gdb/14288
1848         * c-valprint.c (c_val_print): For character arrays
1849         with "print null" option on, print ellipses if
1850         the output is truncated and the next character is not \000.
1851         * valprint.c (MAX_WCHARS): Define.
1852         (WCHAR_BUFLEN): Likewise.
1853         (WCHAR_BUFLEN_MAX): Likewise.
1854         (struct converted_character): New structure.
1855         (count_next_character): New function.
1856         (print_converted_chars_to_obstack): New function.
1857         (generic_printstr): Rewrite using count_next_character
1858         and print_converted_chars_to_obstack.
1860 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1862         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1863         while executing the gdb command.
1864         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1865         are called from prompt_for_continue.
1866         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1868 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1870         PR tui/9584
1872         * tui/tui.c (tui_rl_command_key): Do not call execute_command
1873         but insert the command to execute in readline's buffer.
1875 2012-11-09  Tom Tromey  <tromey@redhat.com>
1877         * gdbarch.sh (target_gdbarch): Remove macro.
1878         (get_target_gdbarch): Rename to target_gdbarch.
1879         * gdbarch.c, gdbarch.h: Rebuild.
1880         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1881         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1882         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1883         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1884         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1885         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1886         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1887         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1888         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1889         procfs.c, progspace.c, ravenscar-thread.c, record.c,
1890         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1891         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1892         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1893         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1894         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1895         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1896         target-descriptions.c, target.c, target.h, tracepoint.c,
1897         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1898         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1899         python/py-inferior.c, python/python.c: Update.
1901 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
1903         * source.c (print_source_lines_base): Add fullname field giving
1904         full path to file in mi output.
1905         * NEWS: Mention the new fullname field.
1907 2012-11-09  Yao Qi  <yao@codesourcery.com>
1909         * NEWS: Mention the fix to the ambiguity of 'fo' command.
1911 2012-11-09  Pedro Alves  <palves@redhat.com>
1913         PR gdb/14306
1915         * infrun.c: Include target-descriptions.h.
1916         (follow_exec): Fetch new target description.
1918 2012-11-09  Yao Qi  <yao@codesourcery.com>
1920         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1921         0x8d (lea).
1923 2012-11-09  Yao Qi  <yao@codesourcery.com>
1925         * breakpoint.c: Declare set_tracepoint_count.
1926         (install_breakpoint): Call set_tracepoint_count if B is a
1927         tracepoint.
1928         (trace_command): Don't call set_tracepoint_count.  Re-indent.
1929         (strace_command, ftrace_command):
1930         (create_tracepoint_from_upload): Likewise.
1932 2012-11-09  Pedro Alves  <palves@redhat.com>
1934         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1935         (get_target_gdbarch) <gdbarch.h>: New function.
1936         (startup_gdbarch) <gdbarch.h>: Declare.
1937         <gdbarch.c> (target_gdbarch): Delete.
1938         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1939         current inferior's gdbarch.
1940         <gdbarch.c> (get_target_gdbarch): New function.
1941         * inferior.c: Include target-descriptions.h.
1942         (free_inferior): Free target description info.
1943         (add_inferior_with_spaces): Set the inferior's initial
1944         architecture.
1945         (clone_inferior_command): Copy the original inferior's target
1946         description if it was user specified.
1947         (initialize_inferiors): Add comment.
1948         * inferior.h (struct target_desc_info): Forward declare.
1949         (struct inferior) <gdbarch>: New field.
1950         * linux-nat.c: Include target-descriptions.h.
1951         (linux_child_follow_fork): Copy the parent's architecture and
1952         target description to the child.
1953         * target-descriptions.c: Include inferior.h.
1954         (struct target_desc_info): New structure, holding the equivalents
1955         of ...
1956         (target_desc_fetched, current_target_desc)
1957         (target_description_filename): ... these removed globals.
1958         (get_tdesc_info, target_desc_info_from_user_p)
1959         (copy_inferior_target_desc_info, target_desc_info_free): New.
1960         (target_desc_fetched, current_target_desc)
1961         (target_description_filename): Reimplemented as convenience
1962         macros.
1963         (tdesc_filename_cmd_string): New global.
1964         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1965         tdescs filename ..." commands to the per-inferior equivalent.
1966         (show_tdesc_filename_cmd): Get the value to show from the
1967         per-inferior description filename.
1968         (_initilize_target_descriptions): Change the "set/show tdesc
1969         filename" commands' variable.
1970         * target-descriptions.h (struct target_desc, struct target_desc_info)
1971         (struct inferior): Forward declare.
1972         (target_find_description, target_clear_description)
1973         (target_current_description): Adjust comments.
1974         (copy_inferior_target_desc_info, target_desc_info_free)
1975         (target_desc_info_from_user_p). Declare.
1977 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1979         * tui/tui-hooks.c (tui_about_to_proceed): New function.
1980         (tui_target_wait_hook): Remove.
1981         (tui_install_hooks): Install the about_to_proceed observer.
1982         (tui_remove_hooks): And remove it here.
1984 2012-11-08  Tom Tromey  <tromey@redhat.com>
1986         * linux-tdep.c (linux_make_siginfo_note): New function.
1987         (linux_make_corefile_notes): Use it.
1988         * corelow.c (get_core_siginfo): New function.
1989         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1991 2012-11-08  Tom Tromey  <tromey@redhat.com>
1993         PR gdb/14704:
1994         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1995         (zlib_decompress_section): Remove.
1996         (gdb_bfd_map_section): Only check for compressed section
1997         in mmap case.  Use bfd_get_full_section_contents.
1998         * osabi.c (check_note): Add 'sectsize' argument.  Read
1999         section data.
2000         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
2001         section data.  Update for check_note change.
2002         * xcoffread.c (xcoff_initial_scan): Use
2003         bfd_get_full_section_contents.
2004         * py-auto-load.c (auto_load_section_scripts): Use
2005         bfd_get_full_section_contents.
2006         * contrib/cc-with-tweaks.sh: Add -Z option.
2008 2012-11-08  Tom Tromey  <tromey@redhat.com>
2010         * python/py-bpevent.c: Include defs.h.
2011         * python/py-continueevent.c: Include defs.h.
2012         * python/py-event.c: Include defs.h.
2013         * python/py-event.h: Don't include defs.h.
2014         * python/py-events.h: Don't include defs.h.
2015         * python/py-evts.c: Include defs.h.
2016         * python/py-exitedevent.c: Include defs.h.
2017         * python/py-newobjfileevent.c: Include defs.h.
2018         * python/py-signalevent.c: Include defs.h.
2019         * python/py-stopevent.c: Include defs.h.
2020         * python/py-threadevent.c: Include defs.h.
2022 2012-11-08  Pierre Muller  <muller@sourceware.org>
2024         * update-web-ari.sh (print_heading): Add number of files
2025         checked.
2026         (nb_files): New variable counting the number of sources
2027         files found by gdb_find.sh script.
2028         (debug_awk): New variable to allow extra debug output.
2029         (indexes): Add more information if DEBUG_AWK is set.
2031 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2033         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
2034         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
2035         following the change in PLT call stubs on linker.
2037 2012-11-08  Pierre Muller  <muller@sourceware.org>
2039         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
2040         as default language.
2041         (AWK): Use = instead of == for sh test to avoid warning.
2042         (Linux rule): Correct [:digit] into [[:digit:]].
2043         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
2044         (vasprintf rule): Adapt to common subdirectory moves.
2045         (xasprintf rule): Idem.
2046         (xvasprintf rule): Idem.
2047         (var_boolean rule): Accept occurence in == or != test.
2049         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
2051 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
2053         * tui/tui-hooks.c (tui_inferior_exit): New function.
2054         (tui_detach_hook): Remove.
2055         (tui_install_hooks): Install the inferior exit observer.
2056         (tui_remove_hooks): Remove it.
2058 2012-11-08  Yao Qi  <yao@codesourcery.com>
2060         PR gdb/14777.
2061         * source.c (_initialize_source): Call add_com_alias to abbreviate
2062         'forward-search' as 'fo'.
2064 2012-11-07  Pedro Alves  <palves@redhat.com>
2066         * arm-tdep.c: Make defs.h be the first include.
2067         * coff-pe-read.c: Ditto.
2068         * gnu-nat.c: Ditto.
2069         * go32-nat.c: Ditto.
2070         * i386-nat.c: Ditto.
2071         * ppcnbsd-nat.c: Ditto.
2072         * ada-varobj.h: Don't include defs.h.
2073         * i386-darwin-tdep.h: Ditto.
2074         * i386-nat.h: Ditto.
2076 2012-11-07  Pedro Alves  <palves@redhat.com>
2078         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
2079         Committee.
2081 2012-11-07  Pierre Muller  <muller@sourceware.org>
2083         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
2084         File already uses "gdb_dirent.h" header.
2086 2012-11-07  Yao Qi  <yao@codesourcery.com>
2088         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
2089         tracepoint_count'.
2091 2012-11-06  Tom Tromey  <tromey@redhat.com>
2093         * target.h (inferior_has_forked, inferior_has_vforked)
2094         (inferior_has_execd, inferior_has_called_syscall): Remove
2095         declarations.
2097 2012-11-06  Pierre Muller  <muller@sourceware.org>
2099         * remote.c (remote_insert_hw_breakpoint): ARI fix,
2100         add missing internalization markup.
2102 2012-11-06  Pedro Alves  <palves@redhat.com>
2104         PR gdb/14810
2106         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
2108 2012-11-06  Pierre Muller  <muller@sourceware.org>
2110         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
2111         is not executable.
2113 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
2115         * gnulib/update-gnulib.sh: New script.
2117 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
2119         * MAINTAINERS: Update my email address.
2121 2012-11-05  Tom Tromey  <tromey@redhat.com>
2123         * frame.c (put_frame_register): Don't use temporary buffer.
2125 2012-11-05  Pedro Alves  <palves@redhat.com>
2127         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2128         child.  Clear 'pending_detach'.
2129         * infrun.c (handle_vfork_child_exec_or_exit): Clear
2130         'pending_detach' in the vfork parent.
2132 2012-11-05  Doug Evans  <dje@google.com>
2134         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
2135         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2136         * dwarf2read.c: #include "elf-bfd.h".
2137         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2138         (dwop_section_names): Renamed from dwo_section names.  All uses
2139         updated.  Add entries for .debug_cu_index, .debug_tu_index.
2140         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2141         All uses updated.
2142         (struct dwp_sections): New type.
2143         (struct virtual_dwo_sections): New type.
2144         (struct dwp_hash_table): New type.
2145         (struct dwp_file): New type.
2146         (init_cutu_and_read_dies): Ensure DWO info/types section has been
2147         read in.  Handle DWOs coming from DWP files.
2148         (lookup_dwo_file_slot): New function.
2149         (dwarf2_locate_dwo_sections): Move definition closer to use.
2150         (create_dwo_debug_info_hash_table_reader): Renamed from
2151         create_debug_info_hash_table_reader.  All callers updated.
2152         (create_dwo_debug_info_hash_table): Renamed from
2153         create_debug_info_hash_table.  All callers updated.
2154         (create_dwp_hash_table): New function.
2155         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2156         (lookup_dwo_in_dwp): New function.
2157         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
2158         is_dwp.  All callers updated.
2159         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
2160         (open_and_init_dwo_file): Renamed from init_dwo_file.
2161         All callers updated.
2162         (lookup_dwo_file): Delete.
2163         (dwarf2_locate_dwp_sections): New function.
2164         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2165         (allocate_dwp_loaded_cutus_table): New function.
2166         (open_and_init_dwp_file): New function.
2167         (lookup_dwo_cutu): New function.
2168         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2170 2012-11-03  Yao Qi  <yao@codesourcery.com>
2172         Fix PR gdb/14617.
2173         * breakpoint.c (trace_pass_set_count): Call
2174         observer_notify_breakpoint_modified instead of
2175         observer_notify_tracepoint_modified.
2176         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2178 2012-11-02  Tom Tromey  <tromey@redhat.com>
2180         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2181         argument to complete_on_enum.
2183 2012-11-02  Tom Tromey  <tromey@redhat.com>
2185         * configure: Rebuild.
2186         * configure.ac (build_warnings): Add -Wempty-body.
2187         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2188         * remote.c (handle_notification): Use braces for empty 'else' body.
2189         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2190         'else' body.
2191         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2192         'else' body.
2193         * solib-som.c (som_relocate_section_addresses): Use braces
2194         for empty 'else' body.
2195         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2196         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2198 2012-11-02  Pedro Alves  <palves@redhat.com>
2200         PR gdb/14766
2202         * infrun.c (handle_inferior_event)
2203         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2204         null_ptid before handling a vfork child exec or exit.  Switch to
2205         the event ptid afterwards.
2207 2012-11-02  Yao Qi  <yao@codesourcery.com>
2209         * std-operator.def: Remove OP_LABELED.
2210         * eval.c: Remove the declaration of 'get_label'.
2211         (get_label): Remove.
2212         (evaluate_struct_tuple): Remove code handling OP_LABELED.
2213         Update comment.
2214         Remove local variable 'variantno' and related code.
2215         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
2216         with 'fieldno'.
2217         * expprint.c (print_subexp_standard): Likewise.
2218         (dump_subexp_body_standard): Likewise.
2219         * parse.c (operator_length_standard): Likewise.
2221 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
2223         Incorporate ARI web page generator into GDB sources.
2224         * contrib/ari/create-web-ari-in-src.sh: New file.
2225         * contrib/ari/gdb_ari.sh: New file.
2226         * contrib/ari/gdb_find.sh: New file.
2227         * contrib/ari/update-web-ari.sh: New file.
2229 2012-10-31  Tom Tromey  <tromey@redhat.com>
2231         * gdbarch.c: Rebuild.
2232         * gdbarch.sh: Remove references to gdbarch_swap.
2233         * corelow.c (core_open): Remove obsolete comment.
2235 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
2237         PR cli/14772
2238         * c-typeprint.c (c_print_type): Don't print a space for vector
2239         types, this is handled within the suffix.
2240         (c_type_print_varspec_suffix): Add a space to vector suffix.
2242 2012-10-26  Pedro Alves  <palves@redhat.com>
2244         * amd64-tdep.c (amd64_relocate_instruction): Use
2245         store_unsigned_integer instead of memcpy.
2246         * i386-tdep.c (i386_relocate_instruction): Ditto.
2248 2012-10-26  Pedro Alves  <palves@redhat.com>
2250         * infrun.c (handle_inferior_event): Merge handling of
2251         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2252         switch case.
2254 2012-10-26  Pedro Alves  <palves@redhat.com>
2256         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2257         Remove comment.
2259 2012-10-26  Pedro Alves  <palves@redhat.com>
2261         * target.c (target_waitstatus_to_string): Handle
2262         TARGET_WAITKIND_VFORK_DONE.
2264 2012-10-26  Pedro Alves  <palves@redhat.com>
2266         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2267         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2269 2012-10-24  Tristan Gingold  <gingold@adacore.com>
2271         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2272         Add comments.
2274 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2276         * ravenscar-thread.c (ravenscar_wait): Only update the list
2277         of threads and inferior_ptid if the inferior is still alive.
2279 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2281         * ada-lang.c (is_known_support_routine): Use lbasename when
2282         matching the symtab's filename against
2283         known_runtime_file_name_patterns.
2285 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2287         * ada-lang.c (ada_same_array_size_p): New function.
2288         (ada_promote_array_of_integrals): New function.
2289         (coerce_for_assign): Add handling of arrays where the elements
2290         are integrals of a smaller size than the size of the target
2291         array element type.
2293 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2295         * doublest.c (convert_doublest_to_floatformat): Fix comparison
2296         against maximum exponent value.
2298 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2300         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2301         "unwind-seh.c".
2303 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2305         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2306         strip typedef layer when computing the fixed type's field type,
2307         only when computing its size.
2309 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
2311         PR gdb/12783
2312         * i386-tdep.c (i386_return_value): Handle complex double and long
2313         double.
2315 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2317         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2318         New local variable args_len.
2319         Quote the name of the executable when computing the command line.
2321 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
2323         PR gdb/12796
2324         PR gdb/12798
2325         PR gdb/12800
2326         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2327         AMD64_FTAG_REGNUM.
2328         * amd64-tdep.c (amd64_classify): Classify complex types.
2329         (amd64_return_value): Handle the COMPLEX_X87 class.
2331 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
2333         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2334         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2336 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
2338         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2339         function.
2340         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2341         to amd64_windows_auto_wide_charset.
2343 2012-10-23  Yao Qi  <yao@codesourcery.com>
2345         * event-top.c (mark_async_signal_handler_wrapper): Remove.
2346         * event-top.h: Remove its declaration.
2347         (async_request_quit): Call mark_async_signal_handler instead of
2348         mark_async_signal_handler_wrapper.
2349         (async_do_nothing, async_disconnect): Likewise.
2350         (async_stop_sig): Likewise.
2351         * remote.c (handle_remote_sigint): Likewise.
2352         (handle_remote_sigint_twice): Likewise.
2354 2012-10-23  Yao Qi  <yao@codesourcery.com>
2356         * event-top.c (sigint_token, sighup_token): Replace 'void *'
2357         with 'static struct async_signal_handler *'.
2358         (sighup_token, sigquit_token, sigstp_token): Likewise.
2360 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
2362         * gdbarch.sh (function_list): Use 'pstring' when printing
2363         a variable which could return NULL.
2364         * gdbarch.c: Regenerate.
2366 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
2367             Tom Tromey  <tromey@redhat.com>
2369         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2370         inneffective if condition by gdb assertion.  Add function
2371         description comment.
2373 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
2375         * parser-defs.h (struct exp_descriptor): Document constraint
2376         on return value for "op_name" callbacks.
2378 2012-10-18  Tom Tromey  <tromey@redhat.com>
2380         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2381         * symtab.c (iterate_over_some_symtabs): Constify.
2382         * source.h (symtab_to_fullname): Return 'const char *'.
2383         * source.c (symtab_to_fullname): Return 'const char *'.
2384         * python/py-symtab.c (stpy_fullname): Constify.
2385         * cli/cli-cmds.c (edit_command): Constify.
2386         * breakpoint.c (print_breakpoint_location)
2387         (update_static_tracepoint): Constify.
2389 2012-10-18  Tom Tromey  <tromey@redhat.com>
2391         * breakpoint.c (compare_breakpoints): Fix comparison.
2393 2012-10-18  Tom Tromey  <tromey@redhat.com>
2395         * valprint.c (generic_emit_char, generic_printstr): Pass size of
2396         gdb_wchar_t to convert_between_encodings.
2398 2012-10-17  Yao Qi  <yao@codesourcery.com>
2400         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2401         more parameter 'inferior'.
2402         * corefile.c (write_memory_with_notification): Caller update.
2404         * mi/mi-cmd-var.c: Include "mi-main.h".
2405         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2406         to 1 and restore it later.
2407         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2408         and "data-write-memory-bytes.
2409         * mi/mi-interp.c: Include objfiles.h.
2410         (mi_interpreter_init): Call observer_attach_memory_changed.
2411         (mi_memory_changed): New.
2412         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2413         New field.
2415         * NEWS: Mention new MI notification "memory-changed".
2417 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2419         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2421 2012-10-15  Doug Evans  <dje@google.com>
2423         New option -nh: inhibit loading of ~/.gdbinit.
2424         * NEWS: Mention -nh.
2425         * main.c (captured_main): Recognize and process -nh.
2426         (print_gdb_help): Mention -nh.
2427         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
2429 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2431         PR backtrace/14646
2432         PR gdb/14647
2433         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2434         pc_regnum_from_eax.
2435         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2436         nor pc_regnum_from_eax.
2437         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2438         nor pc_regnum_from_eax.
2440 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2442         Fix entry values resolving in inlined frames.
2443         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2444         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
2445         entries of FRAME.
2447 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
2449         * configure.ac: Build with -DMS_WIN64 if building with Python
2450         enabled using GCC on amd64-windows.
2451         * configure: Regenerate.
2453 2012-10-15  Tom Tromey  <tromey@redhat.com>
2455         PR python/14635:
2456         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2457         to Py_None.
2459 2012-10-15  Tom Tromey  <tromey@redhat.com>
2461         PR python/14634:
2462         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2464 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
2466         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2467         reset thread numbering back to 1.
2469 2012-10-11  Doug Evans  <dje@google.com>
2471         PR breakpoints/14643.
2472         * linespec.c (struct ls_parser): New member keyword_ok.
2473         (linespec_lexer_lex_string): Add comment.
2474         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2475         for one.
2476         (parse_linespec): Set keyword_ok.
2478 2012-10-10  Doug Evans  <dje@google.com>
2480         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2481         "0x" prefix on address in log message.
2483         * dwarf2read.c (read_1_byte): Add const to buf parameter.
2484         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2485         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2486         (lookup_dwo_file): Add const to dwo_name parameter.
2487         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2489 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2491         Fix crash during stepping on ppc32.
2492         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2493         SYM.
2495 2012-10-03  Doug Evans  <dje@google.com>
2497         PR symtab/14601
2498         * buildsym.c (buildsym_init): Reset using_directives to NULL.
2500 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
2502         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2503         output and use uint32_t not long to ensure 4 byte size.
2505 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
2507         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2508         unref'ed it.
2510 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
2512         * target.c (simple_search_memory): Include access length in
2513         warning message.
2515 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
2516             Edjunior Machado  <emachado@linux.vnet.ibm.com>
2518         PR gdb/13989
2519         * solib.c (solib_find): Prevent GDB from loading native libraries when
2520         debugging a cross-target corefile.
2522 2012-09-28  selven  <pcthegreat@gmail.com>
2524         Make definition match declaration.
2526         * regcache.c (regcache_register_status): Change return type to
2527         enum register_status.
2529 2012-09-28  Yao Qi  <yao@codesourcery.com>
2531         * mi/mi-main.c (mi_cmd_data_write_memory): Call
2532         write_memory_with_notification instead of write_memory.
2533         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2534         instead of target_write_memory.
2536 2012-09-28  Yao Qi  <yao@codesourcery.com>
2538         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2539         when the length of content is not an even number.
2541 2012-09-27  Tom Tromey  <tromey@redhat.com>
2543         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2544         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2546 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2548         * sol-thread.c (sol_thread_fetch_registers)
2549         (sol_thread_store_registers): Delete commented out code.
2551 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2553         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2554         Move these functions to sparc-sol-thread.c.
2555         * sparc-sol-thread.c: New file.
2556         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2557         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2558         configurations.
2559         * configure: Regenerate.
2561 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2563         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2564         Remove commented-out code.
2566 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2568         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2569         Enable this code for sparc hosts only.
2571 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2573         * procfs.h (procfs_find_LDT_entry): Add declaration.
2574         * sol-thread.c (ps_lgetLDT): Delete local declaration of
2575         function procfs_find_LDT_entry.
2577 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2579         * procfs.c (proc_get_LDT_entry): Make static.
2581 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2583         * procfs.c (proc_find_memory_regions): Fix declaration.
2585 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2587         * amd64-tdep.c (amd64_return_value): Revert previous change
2588         that used TYPE_LENGTH directly.
2589         * bfin-tdep.c (bfin_extract_return_value): Likewise.
2590         (bfin_store_return_value): Likewise.
2591         * cris-tdep.c (cris_store_return_value): Likewise.
2592         (cris_extract_return_value): Likewise.
2593         * h8300-tdep.c (h8300_extract_return_value): Likewise.
2594         * hppa-tdep.c (hppa64_return_value): Likewise.
2595         * lm32-tdep.c (lm32_store_return_value): Likewise.
2596         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2597         * spu-tdep.c (spu_value_from_register): Likewise.
2598         * vax-tdep.c (vax_return_value): Likewise.
2600 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2602         * gdbtypes.c (lookup_array_range_type): Expand parameters
2603         LOW_BOUND and HIGH_BOUND to LONGEST.
2604         (lookup_string_range_type): Likewise.
2605         * gdbtypes.h (lookup_array_range_type): Likewise.
2606         (lookup_string_range_type): Likewise.
2607         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2608         Expand HIGHBOUND to ssize_t.
2609         (value_string): Likewise.
2610         * value.h (value_cstring): Expand parameter LEN to ssize_t.
2611         (value_string): Likewise.
2613 2012-09-27  Yao Qi  <yao@codesourcery.com>
2615         PR breakpoints/13898
2616         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2617         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2618         per breakpoint type.
2620 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2622         * procfs.c: Add gdb_bfd header.
2623         * rs6000-nat.c: Likewise.
2624         * solib-pa64.c: Likewise.
2625         * spu-linux-nat.c: Likewise.
2626         * windows-nat.c: Likewise.
2628 2012-09-26  Tom Tromey  <tromey@redhat.com>
2630         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2632 2012-09-26  Tom Tromey  <tromey@redhat.com>
2634         * dwarf2read.c (mark_common_block_symbol_computed): New function.
2635         (read_common_block): Handle child DIEs with
2636         DW_AT_data_member_location.
2637         (new_symbol_full): Add special case for common blocks.
2639 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2640             Tom Tromey  <tromey@redhat.com>
2642         * dwarf2read.c (read_common_block): Rewrite.
2643         (new_symbol_full): Handle DW_TAG_common_block.
2644         * f-lang.c (head_common_list, find_common_for_function):
2645         Remove.
2646         * f-lang.h (struct common_entry, struct saved_f77_common,
2647         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2648         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2649         BLANK_COMMON_NAME_LOCAL): Remove.
2650         (struct common_block): New.
2651         * f-valprint.c (list_all_visible_commons): Remove.
2652         (info_common_command_for_block): New function.
2653         (info_common_command): Use it.
2654         * stack.c (iterate_over_block_locals): Special case for
2655         COMMON_BLOCK_DOMAIN.
2656         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2657         constant.
2658         (struct general_symbol_info) <value.common_block>: New field.
2659         (SYMBOL_VALUE_COMMON_BLOCK): New define.
2661 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2662             Tom Tromey  <tromey@redhat.com>
2664         * f-lang.c (allocate_saved_bf_node,
2665         allocate_saved_function_node, allocate_saved_f77_common_node,
2666         allocate_common_entry_node, tail_common_list, current_common,
2667         saved_bf_list, saved_bf_list_end, current_head_bf_list,
2668         tmp_bf_ptr, add_common_block, add_common_entry,
2669         find_first_common_named, patch_common_entries,
2670         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2671         global_remote_debug, get_bf_for_fcn, saved_function_list,
2672         saved_function_list_end, clear_function_list, struct saved_fcn,
2673         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2674         SAVED_BF, SAVED_BF_PTR): Remove.
2675         * f-lang.h (tail_common_list, current_common,
2676         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2677         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2678         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2679         real_main_c_value): Remove.
2680         * f-valprint.c (there_is_a_visible_common_named): Remove.
2682 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
2684         * breakpoint.c (update_global_location_list): Ignore previous
2685         duplicate status of a breakpoint when starting a new scan for
2686         duplicate breakpoints.
2688 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
2689         PR breakpoints/14419
2690         * arm-tdep.c (arm_skip_prologue): Extending producer check to
2691         support LLVM compiler.
2693 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2695         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2696         * bfin-tdep.c (bfin_extract_return_value): Likewise.
2697         (bfin_store_return_value): Likewise.
2698         * cris-tdep.c (cris_store_return_value): Likewise.
2699         (cris_extract_return_value): Likewise.
2700         * h8300-tdep.c (h8300_extract_return_value): Likewise.
2701         * hppa-tdep.c (hppa64_return_value): Likewise.
2702         * lm32-tdep.c (lm32_store_return_value): Likewise.
2703         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2704         * spu-tdep.c (spu_value_from_register): Likewise.
2705         * vax-tdep.c (vax_return_value): Likewise.
2707 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2709         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2710         parameter LEN to ssize_t.
2712 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2714         * ada-valprint.c (ada_val_print_1): Eliminate single-use
2715         variable LEN.
2716         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2717         directly.
2718         (alpha_store_return_value): Likewise.
2719         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2720         (amd64_push_arguments): Likewise.
2721         * ax-gdb.c (gen_trace_static_fields): Likewise.
2722         (gen_traced_pop): Likewise.
2723         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2724         * breakpoint.c (update_watchpoint): Likewise.
2725         * findcmd.c (parse_find_args): Use local variable for type
2726         instead of length.
2727         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2728         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2729         (h8300_store_return_value): Likewise.
2730         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2731         Use i386_darwin_arg_type_alignment directly.
2732         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2733         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2734         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2735         (m68hc11_extract_return_value): Likewise.
2736         * mep-tdep.c (mep_push_dummy_call): Likewise.
2737         * printcmd.c (float_type_from_length): Likewise.
2738         * s390-tdep.c (s390_value_from_register): Likewise.
2739         * stack.c (read_frame_arg): Likewise.
2740         * tracepoint.c (encode_actions_1): Likewise.
2741         * valops.c (value_fetch_lazy): Use local variable for type
2742         instead of length.  Use TYPE_LENGTH directly.
2743         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2745 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2747         * symtab.c (skip_prologue_sal): Fix typo in comment.
2749 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2751         * linespec.c (create_sals_line_offset): Fix typo in comment.
2753 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2755         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2756         use plongest to print the array size.
2758 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2760         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2761         * p-valprint.c (pascal_type_print_base): Likewise.
2763 2012-09-22  Yao Qi  <yao@codesourcery.com>
2765         * remote.c (remote_get_trace_status): Remove setting default
2766         values of fields of 'ts'.
2768 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2770         Fix internal error on canonicalization of clang types.
2771         * cp-name-parser.y (operator): New comment at make_operator call for
2772         new, delete, new[] and delete[].
2773         (exp): Use "sizeof ".  Add new comment at make_operator call.
2775 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2777         Fix disassemble without parameters in tailcall frame.
2778         * cli/cli-cmds.c (disassemble_current_function): Use
2779         get_frame_address_in_block.
2781 2012-09-21  Tom Tromey  <tromey@redhat.com>
2783         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2784         TYPE_CODE_UNION>: Unify, removing a goto.
2786 2012-09-21  Tom Tromey  <tromey@redhat.com>
2788         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2790 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
2792         * findvar.c (read_frame_register_value): Mark the result value as
2793         optimized out if any of the input registers have been optimized out.
2795 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
2797         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2799 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2801         * eval.c (evaluate_subexp_standard): Eliminate single-use
2802         variable LOWER.
2804 2012-09-21  Yao Qi  <yao@codesourcery.com>
2806         * mi/mi-interp.c: Declare mi_record_changed.
2807         (mi_interpreter_init): Call observer_attach_record_changed.
2808         (mi_record_changed): New.
2809         * record.c (record_open): Call observer_notify_record_changed.
2810         (cmd_record_stop): Call observer_notify_record_changed.
2811         * NEWS: Mention it.
2813 2012-09-20  Tom Tromey  <tromey@redhat.com>
2815         * NEWS: Update.
2816         * python/python.c (finalize_python): New function.
2817         (_initialize_python): Make a final cleanup.
2819 2012-09-19  Doug Evans  <dje@google.com>
2821         * buildsym.h (param_symbols): Delete, unused.
2822         (context_stack): Delete member "params", unused.
2823         * buildsym.c (push_context): Update.
2824         * dwarf2read.c (read_func_scope): Update.
2826 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
2828         * sh-tdep.c (sh_register_convert_to_virtual)
2829         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
2830         all callers.  Just do a memcpy if not the little-endian case.
2832         * h8300-tdep.c (h8300_gdbarch_init): Invoke
2833         set_gdbarch_double_format and set_gdbarch_long_double_format.
2834         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2835         set_gdbarch_double_format.
2836         * sh-tdep.c (sh_gdbarch_init): Likewise.
2838         * NEWS: Document the removal of SH's 'regs' command.
2839         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2840         command.
2842 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2844         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2845         `jump'.
2847 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
2849         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2850         language when iterating over symbols.
2852 2012-09-18  Yao Qi  <yao@codesourcery.com>
2854         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2855         (mi_interpreter_init): Call observer_attach_tsv_created and
2856         observer_attach_tsv_deleted.
2857         (mi_tsv_created, mi_tsv_deleted): New.
2858         * tracepoint.c (delete_trace_state_variable): Call
2859         observer_notify_tsv_deleted.
2860         (trace_variable_command): Call observer_notify_tsv_created.
2861         (delete_trace_variable_command): Call
2862         observer_notify_tsv_deleted.
2863         (create_tsv_from_upload): Call observer_notify_tsv_created.
2864         * NEWS: Mention it.
2866 2012-09-18  Yao Qi  <yao@codesourcery.com>
2868         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2869         if traceframe changed.
2870         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2871         "trace-find".
2872         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2873         (mi_interpreter_init): Hook mi_traceframe_changed to observer
2874         'traceframe_changed'.
2875         (mi_traceframe_changed): New.
2876         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2877         New field.
2878         * NEWS: Mention the new MI notification.
2880 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
2882         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2884 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2886         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2887         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
2888         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2889         Extend code also for PaX support.  Convert all gdb_assert to warning
2890         calls.
2892 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2894         Implement auto-load user conveniences suggested by Doug Evans.
2895         * auto-load.c: Include top.h.
2896         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
2897         (_initialize_auto_load): New variable scripts_directory_help.  Mention
2898         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2899         scripts-directory.  Document in online help one can use also files for
2900         set auto-load safe-path.
2901         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2902         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2904 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2906         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2907         of LEN.
2909 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2911         * m2-valprint.c (m2_print_array_contents): Eliminate variable
2912         ELTLEN and use TYPE_LENGTH directly.
2913         (m2_val_print): Likewise.
2914         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2915         variable LEN and use TYPE_LENGTH directly.
2916         (m68k_svr4_store_return_value): Likewise.
2917         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2918         ARGLEN and use TYPE_LENGTH directly.
2919         (mips_o64_push_dummy_call): Likewise.
2920         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2921         variable LENGTH and use TYPE_LENGTH directly.
2922         (s390_function_arg_float): Likewise.
2923         (s390_function_arg_integer): Likewise.
2924         (s390_push_dummy_call): Likewise.
2925         (s390_return_value_convention): Likewise.
2926         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2927         TYPE_LENGTH directly.
2929 2012-09-17  Yao Qi  <yao@codesourcery.com>
2931         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2932         Update comment to add_setshow_integer_cmd.
2933         * cli/cli-setshow.c (do_set_command): Handle case
2934         'var_zuinteger_unlimited'.
2935         (do_show_command): Likewise.
2936         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2937         for command 'remotetimeout'.
2938         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
2939         to var_integer.
2940         * source.c (_initialize_source): Call
2941         add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2943 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2945         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2946         variable LEN.
2948 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2950         PR 14119
2951         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2952         (frame_pop): Drop also TAILCALL_FRAME frames.
2953         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2955 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2956             Pedro Alves  <palves@redhat.com>
2958         PR 14548
2959         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2960         function start if we are already at function start.  Both for
2961         reverse-next and for reverse-step into function without line number
2962         info.
2964 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2966         Code cleanup - rename 'inline' depth to 'artificial' depth.
2967         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2968         frame_id_artificial_p, extend the comment.
2969         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2970         * frame.c (fprint_frame_id): Rename at a user, change debug output
2971         text to "artificial=".
2972         (skip_inlined_frames): Rename to ...
2973         (skip_artificial_frames): ... here.  Extend the comment.
2974         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2975         (frame_id_inlined_p): Rename to ...
2976         (frame_id_artificial_p): ... here.  Rename at a user.
2977         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2978         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2979         at a user.
2980         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2981         Extend the comment.
2982         (frame_id_inlined_p): Rename to ...
2983         (frame_id_artificial_p): ... here.
2984         * inline-frame.c (inline_frame_this_id): Rename at a user.
2986 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
2988         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2989         vector variables using vector_size syntax rather than array
2990         syntax.
2992 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2994         * valarith.c (value_concat): Replace unsafe ALLOCA with
2995         XMALLOC/XFREE.
2997 2012-09-14  Pedro Alves  <palves@redhat.com>
2999         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
3001 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
3003         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
3004         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
3005         data-directory as appropriate.
3007 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3009         * printcmd.c (ui_printf): Eliminate single-use variable
3010         PARAM_LEN.
3012 2012-09-14  Yao Qi  <yao@codesourcery.com>
3013             Pedro Alves  <palves@redhat.com>
3015         * valops.c (value_assign): Move observer_notify_target_changed
3016         below to replace reinit_frame_cache.
3018 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
3020         Refactor Python "gdb" module into a proper Python package, by
3021         introducing a new "_gdb" module for code implemented in C, and
3022         using reload/__import__ instead of exec.
3023         * python/lib/gdb/__init__.py: Import * from _gdb.
3024         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
3025         prompt_hook, sys.argv): Moved from finish_python_initialization.
3026         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
3027         (packages, auto_load_packages): New list and function replacing
3028         module_dict and auto-loading code, using __file__ instead of
3029         gdb.PYTHONDIR and reload/__import__ instead of exec.
3030         (GdbSetPythonDirectory): Replacing function of the same name
3031         from finish_python_initialization, using reload/__import__ instead
3032         of exec, as well as call auto_load_packages.
3033         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
3034         gdb_python_module and not gdb_module.
3035         * python/python-internal.h (gdb_python_module): Declare.
3036         * python/python.c (gdb_python_module): New global.
3037         (before_prompt_hook): Check gdb_python_module and not gdb_module.
3038         (_initialize_python): Rename gdb module to _gdb.
3039         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
3040         (finish_python_initialization): Move Python code to
3041         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
3042         __main__.
3044 2012-09-13  Pedro Alves  <palves@redhat.com>
3046         * Makefile.in (COMMON_OBS): Add registry.o.
3047         * registry.c: New file.
3048         * registry.h (struct registry_container): Declare.
3049         (registry_data_callback): New typedef.
3050         (struct registry_data, struct registry_data_registration, struct
3051         registry_data_registry): New type.
3052         (register_data_with_cleanup, registry_alloc_data)
3053         (registry_callback_adaptor, registry_clear_data)
3054         (registry_container_free_data, registry_set_data, registry_data):
3055         Declare.
3056         (DEFINE_REGISTRY): Refactor structures and functions as shims over
3057         the new common structures and functions.
3058         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
3059         callback typedefs.
3061 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
3063         * remote.c (remote_insert_hw_breakpoint): Throw exception if
3064         there is an error inserting hardware breakpoints and use the
3065         error message from the target.
3067         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
3068         Catch this exception and print the error message contained within.
3069         Do not print the default hardware error breakpoint message in this
3070         case.
3072 2012-09-12  Doug Evans  <dje@google.com>
3074         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
3075         cu == NULL.
3077 2012-09-11  Doug Evans  <dje@google.com>
3079         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
3080         .gdb_index symbol attributes if there are none.
3082 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
3084         * symtab.h (struct minimal_symbol) [has_size]: New field.
3085         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
3086         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
3087         * printcmd.c (build_address_symbolic): Only filter out zero-sized
3088         minimal symbols if the symbol's size is actually known.
3089         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
3090         of msymbol's size field.  Add comment.
3091         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
3092         SET_MSYMBOL_SIZE to set the minimal symbol size.
3094 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
3096         * minsyms.c (install_minimal_symbols): Use memset to fill entire
3097         minimal_symbol struct object, rather than setting some of its
3098         fields one by one.
3100 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
3102         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
3103         passed_a_ptr flag when displaying typedef types.
3105 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
3107         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
3108         the optimized_out flag is preserved.
3110 2012-09-10  Anthony Green  <green@moxielogic.com>
3112         * moxie-tdep.c (moxie_analyze_prologue): Update for function
3113         prologue changes in GCC.
3115 2012-09-10  Keith Seitz  <keiths@redhat.com>
3117         PR gdb/13483
3118         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
3119         (BOOL_CONVERSION_BADNESS): ... this.
3120         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
3121         (rank_one_type): Allow all boolean conversions
3122         permitted by the standard.
3124 2012-09-06  Tom Tromey  <tromey@redhat.com>
3126         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3127         Don't decref py_objfile.
3129 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
3131         Do not enable -lmcheck by default when Python is enabled with
3132         threading support.
3133         * configure.ac: (python_has_threads) New variable, by testing
3134         if WITH_THREAD is defined in Python.h.
3135         Move --enable-lmcheck after --with-python.
3136         Do not enable -lmcheck by default if python_has_threads=yes.
3137         Warn if --enable-lmcheck and python_has_threads=yes.
3138         * configure: Regenerate.
3140 2012-08-31  Yao Qi  <yao@codesourcery.com>
3142         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3143         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3144         Update some commands.
3145         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
3146         * mi/mi-main.c (mi_cmd_execute): Set
3147         '*parse->cmd->suppress_notification' to 1.
3149 2012-08-31  Yao Qi  <yao@codesourcery.com>
3151         * mi/mi-cmds.c (mi_cmds): Add 'static'.
3153 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
3155         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3157 2012-08-29  Doug Evans  <dje@google.com>
3159         * main.c (print_gdb_help): Remove reference to
3160         --use-deprecated-index-sections.
3162 2012-08-28  Yao Qi  <yao@codesourcery.com>
3164         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3165         (init_cmds): Call add_setshow_uinteger_cmd for command
3166         'max-user-call-depth'.
3167         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3168         declaration of 'max_user_call_depth'.
3169         * frame.c (backtrace_limit): Add 'unsigned'.
3170         (_initialize_frame): Call add_setshow_uinteger_cmd for command
3171         'limit'.
3172         * remote.c (remoteaddresssize): Add 'unsigned'.
3173         (remote_address_masked): Change local var 'address_size' to
3174         'unsigned'.
3175         (_initialize_remote): Call add_setshow_uinteger_cmd for
3176         'remoteaddresssize'.
3177         * top.c (history_size): Add 'unsigned'.
3178         (show_commands): Change local variables to 'unsigned'.
3179         (set_history_size_command): Don't check history_size is negative.
3180         Adjust the condition to call unstifle_history and set history_size
3181         to UNIT_MAX.
3183 2012-08-28  Pedro Alves  <palves@redhat.com>
3185         PR gdb/14428
3187         * infcmd.c (default_print_one_register_info): New, factored out
3188         from default_print_registers_info.
3189         (default_print_registers_info): Use it.  Mark value unavailable if
3190         necessary.
3191         (registers_info): Print user registers with
3192         default_print_one_register_info.
3194 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
3196         PR tui/14486
3197         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3198         is not NULL before referencing it.
3200 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3202         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3203         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
3204         original PC for it.
3206 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
3207             Jan Kratochvil  <jan.kratochvil@redhat.com>
3209         * auto-load.c (auto_load_objfile_script): Rename to ...
3210         (auto_load_objfile_script_1): ... here, change variable realname to
3211         parameter realname, document it, add return value, add variable retval.
3212         (auto_load_objfile_script): New function.
3214 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3216         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3217         followed by a whitespace.
3219 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3221         PR gdb/14494.
3222         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3223         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3224         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3225         here.
3227 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
3229         * memattr.c (create_mem_region): Fix memory region overlapping
3230         checking.
3232 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3234         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3235         with xmalloc/cleanup.
3236         * mt-tdep.c (mt_push_dummy_call): Likewise.
3237         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3238         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3240 2012-08-24  Yao Qi  <yao@codesourcery.com>
3242         * jv-exp.y (push_expression_name): Add "." at the end of error
3243         message.
3245 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
3247         Document how to return from "python-interactive" to GDB.
3248         * python/python.c (_initialize_python): Update documentation.
3250 2012-08-23  Pedro Alves  <palves@redhat.com>
3252         * infrun.c (_initialize_infrun) <handle command help text>:
3253         Mention that multiple signals are supported.
3255 2012-08-23  Pedro Alves  <palves@redhat.com>
3257         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3258         string.
3260 2012-08-23  Yao Qi  <yao@codesourcery.com>
3262         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3263         (tfind_1): Don't call registers_changed, set_traceframe_num,
3264         and clear_traceframe_info.
3265         Call set_current_traceframe.
3266         (set_current_traceframe): call set_traceframe_num.
3268 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
3270         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3271         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3273 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
3275         Enable readline in Python in a GDB-specific way and block the
3276         standard Python readline module to prevent conflicts with GDB.
3277         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3278         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3279         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3280         * python/py-gdb-readline.c: New file.
3281         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3282         prototype.
3283         * python/python.c (_initialize_python): Call
3284         gdbpy_initialize_gdb_readline.
3286 2012-08-22  Keith Seitz  <keiths@redhat.com>
3288         * defs.h: Include build-gnulib/config.h
3290 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
3292         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3293         and blx pc.
3295 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
3297         Add a new "python-interactive" command that starts a standard
3298         Python interactive prompt with "pi" as alias, and add "py" as
3299         an alias to "python".
3300         * NEWS: Mention the new commands.
3301         * python/python.c (eval_python_command): New function.
3302         (python_interactive_command): For "python-interactive" with
3303         arguments, call eval_python_command.  For "python-interactive"
3304         without arguments, call PyRun_InteractiveLoop.
3305         (_initialize_python): Add "python-interactive" command with
3306         "pi" as alias, and add "py" as an alias to "python".
3308 2012-08-22  Tom Tromey  <tromey@redhat.com>
3310         * defs.h (quit_flag): Don't declare.
3311         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3312         (QUIT): Use new functions.
3313         * event-top.c (command_handler): Use clear_quit_flag.
3314         (handle_sigint): Use set_quit_flag.
3315         (async_request_quit): Use check_quit_flag.  Don't check
3316         immediate_quit.
3317         * exceptions.c (throw_exception): Use clear_quit_flag.
3318         * main.c (captured_main): Use clear_quit_flag.
3319         * python/python.c (clear_quit_flag, set_quit_flag)
3320         (check_quit_flag): New functions.
3321         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3322         clear_quit_flag.
3323         * remote.c (remote_wait_as): Use check_quit_flag,
3324         clear_quit_flag.
3325         (remote_start_remote): Call QUIT.
3326         * symfile.c (load_progress): Use check_quit_flag.
3327         * top.c (command_loop): Use clear_quit_flag.
3328         (command_line_input): Call QUIT.
3329         * utils.c (quit_flag): Conditionally define.
3330         (clear_quit_flag, check_quit_flag, set_quit_flag): New
3331         functions.
3332         (prompt_for_continue): Call QUIT.  Use quit, not
3333         async_request_quit.
3334         * remote-mips.c (mips_expect_timeout): Call QUIT.
3335         * monitor.c (monitor_expect): Call QUIT.
3337 2012-08-22  Tom Tromey  <tromey@redhat.com>
3339         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3340         (async_init_signals): Update.
3341         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3342         (SIGWINCH_HANDLER_BODY): Remove.
3344 2012-08-22  Tom Tromey  <tromey@redhat.com>
3346         * jit.c (jit_object_close_impl): Don't malloc the objfile
3347         name.
3348         * objfiles.c (allocate_objfile): Don't malloc the objfile
3349         name.
3350         (free_objfile): Don't free the objfile name.
3351         * objfiles.h (struct objfile) <name>: Update comment.
3352         * symfile.c (reread_symbols): Fix reference counting.  Don't
3353         malloc objfile name.
3355 2012-08-22  Tom Tromey  <tromey@redhat.com>
3357         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3358         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3359         (symfile_bfd_open): Likewise.
3360         (generic_load): Likewise.
3361         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3362         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3363         gdb_bfd_open.
3364         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3365         Use gdb_bfd_open.
3366         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3367         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3368         (pmon_load_fast): Likewise.
3369         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3370         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3371         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3372         (macho_check_dsym): Likewise.
3373         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3374         (m32r_upload_command): Likewise.
3375         * gdb_bfd.h (gdb_bfd_cache): Declare.
3376         * gdb_bfd.c (struct gdb_bfd_data): New.
3377         (gdb_bfd_cache): New global.
3378         (struct gdb_bfd_cache_search): New.
3379         (hash_bfd): New function.
3380         (eq_bfd): Likewise.
3381         (gdb_bfd_open): Likewise.
3382         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3383         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
3384         gdb_bfd_data.
3385         * exec.c (exec_file_attach): Use gdb_bfd_open.
3386         * dsrec.c (load_srec): Use gdb_bfd_open.
3388 2012-08-22  Tom Tromey  <tromey@redhat.com>
3390         * dwarf2read.c (macro_start_file): Update.
3391         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3392         (free_objfile_per_bfd_storage): Destroy macro_cache.
3393         (allocate_objfile, free_objfile): Update.
3394         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3395         New field.
3396         (struct objfile) <macro_cache>: Remove.
3397         * symfile.c (reread_symbols): Update.
3398         * symmisc.c (print_symbol_bcache_statistics): Update.
3399         (print_objfile_statistics): Update.
3401 2012-08-22  Tom Tromey  <tromey@redhat.com>
3403         * elfread.c (elf_symtab_read): Update.
3404         * objfiles.c (objfiles_bfd_data): New global.
3405         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3406         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3407         (allocate_objfile, free_objfile): Update.
3408         (_initialize_objfiles): Initialize objfiles_bfd_data.
3409         * objfiles.h (struct objfile_per_bfd_storage): New.
3410         (struct objfile) <per_bfd>: New field.
3411         <filename_cache>: Remove.
3412         (set_objfile_per_bfd): Declare.
3413         * symfile.c (reread_symbols): Update.  Call
3414         set_objfile_per_bfd.
3415         (allocate_symtab): Update.
3416         * symmisc.c (print_symbol_bcache_statistics): Update.
3417         (print_objfile_statistics): Print the size of the BFD obstack.
3419 2012-08-22  Tom Tromey  <tromey@redhat.com>
3421         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
3422         * gdb_bfd.c: Use DEFINE_REGISTRY.
3423         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3424         (gdb_bfd_ref): Call bfd_alloc_data.
3425         (gdb_bfd_unref): Call bfd_free_data.
3427 2012-08-22  Tom Tromey  <tromey@redhat.com>
3429         * registry.h (struct registry_fields): New.
3430         (REGISTRY_FIELDS): Redefine.
3431         (REGISTRY_ACCESS_FIELD): New macro.
3432         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
3433         functions.
3435 2012-08-22  Tom Tromey  <tromey@redhat.com>
3437         * auto-load.c (_initialize_auto_load): Update.
3438         * solib-svr4.c (_initialize_svr4_solib): Update
3439         * solib-dsbt.c (_initialize_dsbt_solib): Update.
3440         * solib-darwin.c (_initialize_darwin_solib): Update.
3441         * registry.h: New file.
3442         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3443         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3444         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
3445         (register_program_space_data_with_cleanup)
3446         (register_program_space_data, program_space_alloc_data)
3447         (clear_program_space_data, set_program_space_data)
3448         (program_space_data): Don't declare.
3449         * progspace.c: Use DEFINE_REGISTRY.
3450         (struct program_space_data, struct
3451         program_space_data_registration, struct
3452         program_space_data_registry, program_space_data_registry)
3453         (register_program_space_data_with_cleanup)
3454         (register_program_space_data, program_space_alloc_data)
3455         (program_space_free_data, clear_program_space_data)
3456         (set_program_space_data, program_space_data): Remove.
3457         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
3458         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3459         (register_objfile_data_with_cleanup, register_objfile_data)
3460         (clear_objfile_data, set_objfile_data, objfile_data): Don't
3461         declare.
3462         * objfiles.c: Use DEFINE_REGISTRY.
3463         (struct objfile_data, struct objfile_data_registration, struct
3464         objfile_data_registry, objfile_data_registry)
3465         (register_objfile_data_with_cleanup, register_objfile_data)
3466         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3467         (set_objfile_data, objfile_data): Remove.
3468         (_initialize_objfiles): Update.
3469         * jit.c (_initialize_jit): Update.
3470         * inflow.c (_initialize_inflow): Update.
3471         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
3472         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3473         (register_inferior_data_with_cleanup, register_inferior_data)
3474         (clear_inferior_data, set_inferior_data, inferior_data): Don't
3475         declare.
3476         * inferior.c: Use DEFINE_REGISTRY.
3477         (struct inferior_data, struct inferior_data_registration, struct
3478         inferior_data_registry, inferior_data_registry)
3479         (register_inferior_data_with_cleanup, register_inferior_data)
3480         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
3481         (set_inferior_data, inferior_data): Remove.
3482         * auxv.c (_initialize_auxv): Update.
3483         * ada-lang.c (_initialize_ada_language): Update.
3484         * breakpoint.c (_initialize_breakpoint): Update.
3485         * i386-nat.c (i386_use_watchpoints): Update.
3487 2012-08-22  Tom Tromey  <tromey@redhat.com>
3489         * exec.c (exec_close, exec_file_attach): Update.
3490         (add_to_section_table): Initialize 'key' field.
3491         (add_target_sections, remove_target_sections): Add 'key' argument.
3492         * exec.h (add_target_sections, remove_target_sections): Add
3493         'key' argument.
3494         * solib.c (solib_map_sections, update_solib_list, clear_solib)
3495         (reload_shared_libraries_1): Update.
3496         * target.h (struct target_section) <key>: New field.
3498 2012-08-22  Tom Tromey  <tromey@redhat.com>
3500         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3502 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3504         * symfile.c (allocate_symtab): Use host_address_to_string
3505         function instead of cast of pointer to long which is not
3506         compatible with x86_64-w64-mingw32 build.
3508 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3510         * mips-tdep.c (is_octeon): New function.
3511         (is_octeon_bbit_op): New function.
3512         (mips32_next_pc): Handle Octeon's bbit instructions.
3513         (mips32_instruction_has_delay_slot): Likewise.
3515 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3517         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3518         before the function.
3520 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3522         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3524 2012-08-19  Keith Seitz  <keiths@redhat.com>
3526         PR c++/14365
3527         * c-typeprint.c (c_type_print_varspec_prefix): Pass
3528         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3530 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
3532         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3533         The typo broke "make TAGS".
3535 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
3537         GDB 7.5 released.
3539 2012-08-17  Keith Seitz  <keiths@redhat.com>
3541         PR c++/13356
3542         * gdbtypes.c (strict_type_checking): New variable.
3543         (show_strict_type_checking): New function.
3544         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3545         if strict type checking is disabled.
3546         (_initialize_gdbtypes): Add "check type" subcommand.
3547         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3549 2012-08-17  Keith Seitz  <keiths@redhat.com>
3551         * language.h (type_mode): Remove.
3552         (type_check): Remove.
3553         (struct language_defn): Remove la_type_check.
3554         (STRICT_TYPE): Remove unused macro.
3555         (type_error): Remove.
3556         * language.c (set_type_range_case): Renamed to ...
3557         (set_range_case): ... this.  Update all callers.
3558         Remove type_mode/type_check.
3559         (type_mode): Remove.
3560         (type_check): Remove.
3561         (show_type_command): Remove.
3562         (set_type_command): Remove.
3563         (language_info): Remove type checking output.
3564         (type_error): Remove unused function.
3565         (range_error): Update comment.
3566         (unknown_language_defn): Remove la_type_check.
3567         (auto_language_defn): Likewise.
3568         (local_language_defn): Likewise.
3569         (_initialize_language): Remove "check type" subcommand.
3570         * ada-lang.c (ada_language_defn): Remove la_type_check.
3571         * c-lang.c (c_language_defn): Likewise.
3572         (cplus_language_defn): Likewise.
3573         (asm_language_defn): Likewise.
3574         (minimal_language_defn): Likewise.
3575         * d-lang.c (d_language_defn): Likewise.
3576         * f-lang.c (f_language_defn): Likewise.
3577         * go-lang.c (go_language_defn): Likewise.
3578         * jv-lang.c (java_language_defn): Likewise.
3579         * m2-lang.c (m2_language_defn): Likewise.
3580         * objc-lang.c (objc_language_defn): Likewise.
3581         * opencl-lang.c (opencl_language_defn): Likewise.
3582         * p-lang.c (pascal_language_defn): Likewise.
3584 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
3586         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3588 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3590         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3591         New function.
3592         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3593         using the regache.  Use ia64_hpux_get_register_from_save_state_t
3594         to access the bsp and bspstore registers if not.
3596 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3598         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3599         * breakpoint.c (detach_breakpoints): Change pid parameter into
3600         a ptid.  Adjust code accordingly.
3601         * infrun.c (handle_inferior_event): Delete variable child_pid.
3602         Update call to detach_breakpoints to pass the child ptid for
3603         fork events.
3604         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3605         assert that inferior_ptid's lwp is zero.
3606         (linux_handle_extended_wait): Update call to detach_breakpoints.
3607         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3608         detach_breakpoints.
3610 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3612         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3613         parent, only call detach_breakpoints if tts.tts_event ==
3614         TTEVT_VFORK.
3616 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3618         * dwarf2-frame.c (dwarf2_frame_cache): Use
3619         get_frame_address_in_block instead of get_frame_pc as
3620         the bound for executing the frame's FDE.
3622 2012-08-16  Yao Qi  <yao@codesourcery.com>
3624         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3625         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3626         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3627         (c_type_print_varspec_suffix): Likewise.
3628         * eval.c (evaluate_subexp_standard): Likewise.
3629         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3630         (f_type_print_varspec_suffix): Likewise.
3631         * gdbtypes.c (is_scalar_type): Likewise.
3632         (recursive_dump_type): Likewise.
3633         * infcall.c (value_arg_coerce): Likewise.
3634         * m2-valprint.c (m2_val_print): Likewise.
3635         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3636         (pascal_type_print_varspec_suffix): Likewise.
3637         (pascal_type_print_base): Likewise.
3638         * p-valprint.c (pascal_val_print): Likewise.
3639         (pascal_val_print): Likewise.
3640         * valops.c (value_slice): Likewise.
3641         * valprint.c (scalar_type_p): Likewise.
3642         * valarith.c (value_bitstring_subscript): Remove.
3643         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3644         Remove comment on TYPE_CODE_BITSTRING.
3646         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3647         TYPE_CODE_BITSTRING.
3649         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3650         slot 0.
3652 2012-08-16  Yao Qi  <yao@codesourcery.com>
3654         * tracepoint.c (trace_find_none_command): Remove.
3655         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3657 2012-08-16  Yao Qi  <yao@codesourcery.com>
3659         * remote.c (handle_notification): Remove parameter 'length'.
3660         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3662 2012-08-15  Keith Seitz  <keiths@redhat.com>
3664         * gdbtypes.c (opaque_type_resolution): Make static.
3665         Add missing comment.
3666         (overload_debug): Add missing comment.
3667         (show_opaque_type_resolution): Likewise.
3668         (show_overload_debug): Likewise.
3669         (print_bit_vector): Remove unnecessary forward declaration.
3670         (print_arg_types): Likewise.
3671         (dump_fn_fieldlists): Likewise.
3672         (print_cplus_stuff): Likewise.
3674 2012-08-15  Tom Tromey  <tromey@redhat.com>
3676         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3677         (gdb_bfd_ref): Initialize new field.
3678         (gdb_bfd_unref): Unref the archive BFD.
3679         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3680         parent archive.
3682 2012-08-15  Tom Tromey  <tromey@redhat.com>
3684         PR python/14387:
3685         * python/py-bpevent.c (create_breakpoint_event_object): Update
3686         comment.
3687         * python/py-event.c (evpy_add_attribute): Update comment.
3688         * python/py-exitedevent.c (create_exited_event_object): Fix
3689         reference counting and error handling.
3690         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3691         Fix reference counting.
3692         * python/py-signalevent.c (create_signal_event_object): Fix
3693         reference counting and error handling.
3694         * python/py-stopevent.c (emit_stop_event): Fix reference
3695         counting.
3696         * python/py-threadevent.c (get_event_thread): Return a
3697         borrowed reference.
3698         * python/py-type.c (convert_field): Fix reference counting.
3700 2012-08-15  Tom Tromey  <tromey@redhat.com>
3702         * dwarf2read.c (dwarf_decode_macro_bytes)
3703         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3704         as hash key.
3706 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3708         * infcmd.c (_initialize_infcmd): Update help text for the signal,
3709         stepi, nexti, finish, next, step, jump, and continue commands.
3710         * infrun.c (_initialize_infrun): Update help text for the handle
3711         command.
3713 2012-08-14  Doug Evans  <dje@google.com>
3715         * gdbtypes.c (struct extra): Delete, unused.
3717         * gdbtypes.c: Whitespace cleanup.
3718         (address_space_name_to_int): Remove "extern" from definition.
3719         (_initialize_gdbtypes): Declare with initialize_file_ftype.
3721         * gdbtypes.c (make_pointer_type): Remove redundant setting of
3722         TYPE_POINTER_TYPE (type).
3724 2012-08-14  Gary Benson  <gbenson@redhat.com>
3726         * solib-svr4.c (svr4_free_library_list): Use free_so.
3728 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
3730         * .gitignore: Add go-exp.c.
3732 2012-08-13  Doug Evans  <dje@google.com>
3734         * value.c (show_convenience): Tweak comment.
3735         (_initialize_values): Mention convenience functions in the help text
3736         for "show convenience".
3738 2012-08-13  Yao Qi  <yao@codesourcery.com>
3740         * std-operator.def: Remove TERNOP_SLICE_COUNT.
3741         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3742         TERNOP_SLICE_COUNT.
3743         * eval.c (evaluate_subexp_standard): Likewise.
3744         * expprint.c (print_subexp_standard): Likewise.
3745         (dump_subexp_body_standard): Likewise.
3746         * parse.c (operator_length_standard): Likewise.
3748 2012-08-13  Yao Qi  <yao@codesourcery.com>
3750         * std-operator.def: Remove OP_BITSTRING.
3751         * breakpoint.c (watchpoint_exp_is_const): Update.
3752         * eval.c (evaluate_subexp_standard): Remove handling to
3753         OP_BITSTRING.
3754         * expprint.c (print_subexp_standard): Likewise.
3755         (dump_subexp_body_standard): Likewise.
3756         * parse.c (operator_length_standard): Likewise.
3757         * valops.c (value_bitstring): Remove.
3758         * value.h: Remove the declaration of 'value_bitstring'.
3760 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3762         * linespec.c (find_methods): Remove unused variables `i1' and
3763         `name_len'.
3764         (decode_line_full): Likewise for `arg_start'.
3766 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3768         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3769         (zlib_decompress_section): Likewise for `section_data'.
3770         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3772 2012-08-10  Doug Evans  <dje@google.com>
3774         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3775         * NEWS: Document them.
3776         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3777         function/strfns.py.
3778         * python/py-type.c (typy_array_1): New function.
3779         (typy_array): Call it.
3780         (typy_vector): New function.
3781         (type_object_methods): Add "vector".
3782         * python/lib/gdb/function/__init__.py: New file.
3783         * python/lib/gdb/function/strfns.py: New file.
3785 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3787         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3788         for TYPE_FIELD_BITPOS.
3789         (typy_get_sizeof): Likewise for TYPE_LENGTH.
3791 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
3793         PR cli/10436:
3794         * common/vec.h (VEC_merge): Define.
3795         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3796         (DEF_VEC_ALLOC_FUNC_P): Likewise.
3797         (DEF_VEC_ALLOC_FUNC_O): Likewise.
3798         * completer.c: Include gdb_signals.h.
3799         (signal_completer): Define.
3800         * completer.h (signal_completer): Add prototype.
3801         * infcmd.c (_initialize_infcmd): Assign the command
3802         completer for "signal" to handle_completer.
3803         * infrun.c: Include completer.h.
3804         (handle_completer): Define.
3805         (_initialize_infrun): Declare a new local variable c.  Store the
3806         result of add_com("handle") to it.  Assign the command
3807         completer for "handle" to handle_completer.
3809 2012-08-09  Yao Qi  <yao@codesourcery.com>
3811         * cli/cli-decode.c (set_cmd_prefix): New.
3812         (lookup_cmd_for_prefixlist): New.
3813         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3814         of each cmd_list_element in *prefixlist.
3815         (add_setshow_cmd_full): set_cmd_prefix.
3816         (add_alias_cmd): Likewise.
3817         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3818         Declare 'auto_boolean_enums'.
3819         * cli/cli-setshow.c: Include "observer.h".
3820         (notify_command_param_changed_p): New.
3821         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3822         Remove 'static'.
3823         (do_setshow_command): Split it to ...
3824         (do_set_command, do_show_command): ... them.  New.
3825         (do_set_command): Call observer_notify_command_param_changed if
3826         notify_command_param_changed_p returns true.
3827         (cmd_show_list): Caller update.
3828         * auto-load.c (set_auto_load_cmd): Likewise.
3829         * remote.c (show_remote_cmd): Likewise.
3830         * cli/cli-setshow.h: Update declarations.
3831         * top.c (execute_command): Call do_set_command and do_show_command.
3833         * NEWS: Mention new MI notification.
3834         * mi/mi-interp.c: Declare mi_command_param_changed.
3835         (mi_interpreter_init): Attach mi_command_param_changed to
3836         observer command_param_changed.
3837         (mi_command_param_changed): New.
3838         Remove mi_suppress_breakpoint_notifications.
3839         Define global variable mi_suppress_notification.
3840         (mi_breakpoint_created): Update.
3841         (mi_breakpoint_deleted): Likewise.
3842         (mi_breakpoint_modified): Likewise.
3843         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
3844         'gdb-set' and set mi_suppress_notification.
3845         * mi/mi-main.h: (mi_suppress_notification): New struct.
3847 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
3848             Jan Kratochvil  <jan.kratochvil@redhat.com>
3850         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3852 2012-08-09  Yao Qi  <yao@codesourcery.com>
3854         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3855         (skiplist): Move it to skip.c.
3856         (init_cmd_lists): Remove code setting enablebreaklist and
3857         skiplist to NULL.
3858         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3859         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3860         skiplist.
3861         * gdbcmd.h: Likewise.
3862         * skip.c (_initialize_step_skip): Move 'skiplist' from
3863         cli/cli-cmds.c.
3865 2012-08-09  Yao Qi  <yao@codesourcery.com>
3867         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3868         * gnu-nat.c, symfile.c: Likewise.
3870 2012-08-08  Aaron Gamble  <agamble@google.com>
3872         * utils.c (prompt_for_continue_wait_time): New static global.
3873         (make_command_stats_cleanup): Initialize it.
3874         (report_command_stats): Subtract time waiting for user.
3875         (prompt_for_continue): Track time waiting for user.
3876         (defaulted_query): Track time waiting for user.
3878 2012-08-08  Doug Evans  <dje@google.com>
3880         * eval.c (evaluate_subexp_standard): Fix thinko in handling
3881         UNOP_MEMVAL_TYPE.
3882         * expprint.c (print_subexp_standard, case OP_TYPE): New.
3883         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3884         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3885         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3886         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3887         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3888         elt.
3889         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3890         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3891         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3892         (dump_prefix_expression): Handle OP_TYPE.
3894 2012-08-08  Keith Seitz  <keiths@redhat.com>
3896         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3897         addr_start.
3899 2012-08-08  Doug Evans  <dje@google.com>
3901         * linux-thread-db.c: #include "gdb_vecs.h".
3902         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
3903         updated.
3904         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
3905         (thread_db_load_search): Use a vector to iterate over path elements.
3906         Handle text appearing after "$pdir".
3908         * gdb_string.h: Moved to ...
3909         * common/gdb_string.h: ... here.
3910         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3911         gdb_string.h and gdb_assert.h.
3913 2012-08-08  Yao Qi  <yao@codesourcery.com>
3915         * tic6x-tdep.c (tic6x_register_to_value): Remove.
3916         (tic6x_value_to_register): Likewise.
3917         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3918         and set_gdbarch_value_to_register.
3920 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3921             Jean-Marc Saffroy  <saffroy@gmail.com>
3923         PR 11804
3924         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
3925         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3926         * gcore.c (gcore_create_callback): New function comment.  Add modified
3927         parameter.  Only write modified regions.  Set SEC_READONLY exactly
3928         according to MODIFIED.
3929         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
3930         the passed modified value to FUNC.
3931         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3932         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3933         first.  New variables modified and has_anonymous.  Parse the lines of
3934         smaps file.  Add the passed MODIFIED value to FUNC.
3935         * procfs.c (find_memory_regions_callback): Add the passed modified
3936         value.
3938 2012-08-06  Tom Tromey  <tromey@redhat.com>
3940         * dwarf2-frame.c (clear_pointer_cleanup): New function.
3941         (dwarf2_frame_cache): Use it.
3942         * frame-unwind.h (frame_sniffer_ftype): Document prologue
3943         cache initialization constraint.
3945 2012-08-06  Tom Tromey  <tromey@redhat.com>
3947         PR python/14386:
3948         * varobj.c (update_dynamic_varobj_children): Don't call
3949         PyIter_Check.
3951 2012-08-06  Tom Tromey  <tromey@redhat.com>
3953         PR cli/14392:
3954         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3956 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
3958         * NEWS: New entry for 'cd' default parameters.
3959         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3961 2012-08-03  Tom Tromey  <tromey@redhat.com>
3963         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3964         return.
3966 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
3968         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3969         to attempting lseek/write.
3970         (inf_child_fileio_pread): Likewise for pread.
3972 2012-08-02  Yao Qi  <yao@codesourcery.com>
3974         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3975         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3976         add_setshow_zinteger_cmd.
3977         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3978         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3979         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3980         instead of add_setshow_zinteger_cmd.
3981         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3982         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3983         instead of add_setshow_zinteger_cmd.
3984         * frame.c (frame_debug): Add 'unsigned'.
3985         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3986         add_setshow_zinteger_cmd.
3987         * frame.h: Update the declaration of 'frame_debug'.
3988         * gdbtypes.c (overload_debug): Add 'unsigned'.
3989         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3990         add_setshow_zinteger_cmd.
3991         * inferior.h: Update declaration of 'debug_infrun'.
3992         * infrun.c (debug_infrun): Add 'unsigned'.
3993         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3994         add_setshow_zinteger_cmd.
3995         * jit.c (jit_debug): Add 'unsigned'.
3996         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3997         add_setshow_zinteger_cmd.
3998         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3999         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
4000         instead of add_setshow_zinteger_cmd.
4001         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
4002         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
4003         add_setshow_zinteger_cmd.
4004         * machoread.c (mach_o_debug_level): Add 'unsigned'.
4005         (_initialize_machoread): Call add_setshow_zuinteger_cmd
4006         instead of add_setshow_zinteger_cmd.
4007         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
4008         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
4009         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
4010         intead of add_setshow_zinteger_cmd.
4011         * mips-tdep.c (mips_debug): Add 'unsigned'.
4012         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
4013         instead of add_setshow_zinteger_cmd.
4014         * monitor.c (monitor_debug): Add 'unsigned'.
4015         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
4016         add_setshow_zinteger_cmd.
4017         * observer.c (observer_debug): Add 'unsigned'.
4018         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
4019         add_setshow_zinteger_cmd.
4020         * parse.c (expressiondebug): Add 'unsigned'.
4021         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
4022         add_setshow_zinteger_cmd.
4023         * record.c (record_debug): Add 'unsigned'.
4024         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
4025         add_setshow_zinteger_cmd.
4026         * record.h: Update the declaration of 'record_debug'.
4027         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
4028         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
4029         add_setshow_zinteger_cmd.
4030         * serial.c (global_serial_debug_p): Add 'unsigned'.
4031         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
4032         add_setshow_zinteger_cmd.
4033         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
4034         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
4035         add_setshow_zinteger_cmd.
4036         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
4037         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
4038         add_setshow_zinteger_cmd.
4039         * target.c (targetdebug): Add 'unsigned'.
4040         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
4041         add_setshow_zinteger_cmd.
4042         * valops.c (overload_debug): Add 'unsigned'.
4043         * varobj.c (varobjdebug): Add 'unsigned'.
4044         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
4045         add_setshow_zinteger_cmd.
4046         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
4047         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
4048         instead of add_setshow_zinteger_cmd.
4050         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
4051         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
4052         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
4053         instead of add_setshow_zinteger_cmd.
4054         * gdbarch.c, gdbarch.h: Re-generated.
4056 2012-08-02  Yao Qi  <yao@codesourcery.com>
4058         * nto-tdep.c: Don't include cli/cli-decode.h and
4059         cli/cli-cmds.h.
4060         (_initialize_nto_tdep): Remove.
4061         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
4062         Remove field.
4063         Remove macro nto_internal_debugging.
4065 2012-08-01  Richard Henderson  <rth@redhat.com>
4067         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
4068         (mep-*-*) [gdb_target_obs]: Likewise.
4070 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
4072         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4073         linux_get_siginfo_type.
4075 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
4077         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
4078         AT_ENTRY_POINT.
4079         (call_function_by_hand) <ON_STACK>: Call write_memory with
4080         gdbarch_breakpoint_from_pc, if possible.
4081         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
4082         here.
4084 2012-07-31  Yao Qi  <yao@codesourcery.com>
4086         * tracepoint.c: Add 'static' for some variables.
4088 2012-07-31  Yao Qi  <yao@codesourcery.com>
4090         * go32-nat.c: Declare _initialize_go32_nat.
4091         * ser-go32.c: Declare _initialize_ser_dos.
4092         * top.c (do_chdir_cleanup): Add 'static'.
4094 2012-07-30  Keith Seitz  <keiths@redhat.com>
4096         * linespec.c (linespec_lex_number): A number followed
4097         by quotes is a valid number, too.
4099 2012-07-30  Tom Tromey  <tromey@redhat.com>
4101         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
4103 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
4105         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
4106         attempt to 4-byte-align HW breakpoint addresses for Thumb.
4108 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
4110         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
4111         invalid or reevaluated to prevent prevent references to possibly
4112         delete'd type objects being left in the varobj.
4114 2012-07-27  Tom Tromey  <tromey@redhat.com>
4115             Jan Kratochvil  <jan.kratochvil@redhat.com>
4117         * copying.awk: Print buffer-read-only and vi ro markers.
4118         * copying.c: Rebuild.
4119         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
4120         * gdbarch.c, gdbarch.h: Rebuild.
4121         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
4122         buffer-read-only and vi ro markers.
4123         * features/arm-with-iwmmxt.c: Rebuild.
4124         * features/arm-with-m-fpa-layout.c: Rebuild.
4125         * features/arm-with-m-vfp-d16.c: Rebuild.
4126         * features/arm-with-m.c: Rebuild.
4127         * features/arm-with-neon.c: Rebuild.
4128         * features/arm-with-vfpv2.c: Rebuild.
4129         * features/arm-with-vfpv3.c: Rebuild.
4130         * features/i386/amd64-avx-linux.c: Rebuild.
4131         * features/i386/amd64-avx.c: Rebuild.
4132         * features/i386/amd64-linux.c: Rebuild.
4133         * features/i386/amd64.c: Rebuild.
4134         * features/i386/i386-avx-linux.c: Rebuild.
4135         * features/i386/i386-avx.c: Rebuild.
4136         * features/i386/i386-linux.c: Rebuild.
4137         * features/i386/i386-mmx-linux.c: Rebuild.
4138         * features/i386/i386-mmx.c: Rebuild.
4139         * features/i386/i386.c: Rebuild.
4140         * features/i386/x32-avx-linux.c: Rebuild.
4141         * features/i386/x32-avx.c: Rebuild.
4142         * features/i386/x32-linux.c: Rebuild.
4143         * features/i386/x32.c: Rebuild.
4144         * features/mips-dsp-linux.c: Rebuild.
4145         * features/mips-linux.c: Rebuild.
4146         * features/mips64-dsp-linux.c: Rebuild.
4147         * features/mips64-linux.c: Rebuild.
4148         * features/rs6000/powerpc-32.c: Rebuild.
4149         * features/rs6000/powerpc-32l.c: Rebuild.
4150         * features/rs6000/powerpc-403.c: Rebuild.
4151         * features/rs6000/powerpc-403gc.c: Rebuild.
4152         * features/rs6000/powerpc-405.c: Rebuild.
4153         * features/rs6000/powerpc-505.c: Rebuild.
4154         * features/rs6000/powerpc-601.c: Rebuild.
4155         * features/rs6000/powerpc-602.c: Rebuild.
4156         * features/rs6000/powerpc-603.c: Rebuild.
4157         * features/rs6000/powerpc-604.c: Rebuild.
4158         * features/rs6000/powerpc-64.c: Rebuild.
4159         * features/rs6000/powerpc-64l.c: Rebuild.
4160         * features/rs6000/powerpc-7400.c: Rebuild.
4161         * features/rs6000/powerpc-750.c: Rebuild.
4162         * features/rs6000/powerpc-860.c: Rebuild.
4163         * features/rs6000/powerpc-altivec32.c: Rebuild.
4164         * features/rs6000/powerpc-altivec32l.c: Rebuild.
4165         * features/rs6000/powerpc-altivec64.c: Rebuild.
4166         * features/rs6000/powerpc-altivec64l.c: Rebuild.
4167         * features/rs6000/powerpc-cell32l.c: Rebuild.
4168         * features/rs6000/powerpc-cell64l.c: Rebuild.
4169         * features/rs6000/powerpc-e500.c: Rebuild.
4170         * features/rs6000/powerpc-e500l.c: Rebuild.
4171         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4172         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4173         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4174         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4175         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4176         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4177         * features/rs6000/powerpc-vsx32.c: Rebuild.
4178         * features/rs6000/powerpc-vsx32l.c: Rebuild.
4179         * features/rs6000/powerpc-vsx64.c: Rebuild.
4180         * features/rs6000/powerpc-vsx64l.c: Rebuild.
4181         * features/rs6000/rs6000.c: Rebuild.
4182         * features/s390-linux32.c: Rebuild.
4183         * features/s390-linux32v1.c: Rebuild.
4184         * features/s390-linux32v2.c: Rebuild.
4185         * features/s390-linux64.c: Rebuild.
4186         * features/s390-linux64v1.c: Rebuild.
4187         * features/s390-linux64v2.c: Rebuild.
4188         * features/s390x-linux64.c: Rebuild.
4189         * features/s390x-linux64v1.c: Rebuild.
4190         * features/s390x-linux64v2.c: Rebuild.
4191         * features/tic6x-c62x-linux.c: Rebuild.
4192         * features/tic6x-c62x.c: Rebuild.
4193         * features/tic6x-c64x-linux.c: Rebuild.
4194         * features/tic6x-c64x.c: Rebuild.
4195         * features/tic6x-c64xp-linux.c: Rebuild.
4196         * features/tic6x-c64xp.c: Rebuild.
4198 2012-07-27  Tom Tromey  <tromey@redhat.com>
4200         * c-exp.y (classify_name): Avoid assignment in condition.
4202 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
4204         * amd64-windows-tdep.c: Include "frame.h".
4205         (amd64_windows_skip_trampoline_code): New function.
4206         (amd64_windows_init_abi): Add trampoline registration.
4208 2012-07-27  Yao Qi  <yao@codesourcery.com>
4210         * tracepoint.c (cur_traceframe_number): Remove.
4211         (set_tfile_traceframe): Remove.
4212         (tfile_trace_find, tfile_fetch_registers): Update callers.
4213         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4214         (tfile_open, tfile_trace_find): Likewise.
4216 2012-07-27  Yao Qi  <yao@codesourcery.com>
4218         * thread.c (switch_to_thread): Don't call registers_changed.
4220 2012-07-26  Tom Tromey  <tromey@redhat.com>
4222         * Makefile.in (SFILES): Remove objc-exp.y.
4223         (YYFILES): Remove objc-exp.c.
4224         (YYOBJ): Remove objc-exp.o.
4225         (local-maintainer-clean): Don't mention objc-exp.c.
4226         * c-exp.y: Include objc-lang.h.
4227         (%union) <class>: New field.
4228         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4229         (exp): Clone subscript production for OBJC_LBRAC.  Add various
4230         Objective C productions.
4231         (msglist, msgarglist, msgarg): New productions.
4232         (array_mod, func_mod, operator): Clone productions for
4233         OBJC_LBRAC.
4234         (parse_string_or_char): Handle '@' strings.
4235         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
4236         (classify_name): Check la_name_of_this.  Recognize ObjC class
4237         names.
4238         * objc-exp.y: Remove.
4239         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4240         * objc-lang.h (objc_parse, objc_error): Don't declare.
4242 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
4244         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4246 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4248         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4249         and decrement.
4251 2012-07-26  Tom Tromey  <tromey@redhat.com>
4253         * copying.c: Rebuild.
4254         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
4255         'no_class'.
4257 2012-07-26  Tom Tromey  <tromey@redhat.com>
4259         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4260         immediate_quit.
4261         (print_objfile_statistics): Likewise.
4262         (maintenance_print_symbols): Likewise.
4263         (maintenance_print_msymbols): Likewise.
4264         (maintenance_print_objfiles): Likewise.
4265         * psymtab.c (print_partial_symbols): Call QUIT.
4266         (maintenance_print_psymbols): Likewise.  Don't modify
4267         immediate_quit.
4268         * copying.c (show_copying_command): Don't modify immediate_quit.
4269         (show_warranty_command): Likewise.
4270         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4272 2012-07-26  Keith Seitz  <keiths@redhat.com>
4274         * linespec.c (linespec_lexer_lex_number): The input
4275         is also a valid number if the next character is a comma
4276         or colon.
4278 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
4280         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4281         configure options.
4283 2012-07-26  Tristan Gingold  <gingold@adacore.com>
4285         * machoread.c: Include gdb_bfd.h.
4287 2012-07-26  Tristan Gingold  <gingold@adacore.com>
4289         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4290         offset.
4292 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4294         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4295         SIZE to size_t.
4296         (dwarf2_evaluate_loc_desc): Likewise.
4297         (dwarf2_loc_desc_needs_frame): Likewise.
4298         (locexpr_describe_location_1): Likewise.
4299         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4300         size_t.
4301         (struct dwarf2_loclist_baton): Likewise.
4302         * dwarf2read.c (struct dwarf_block): Likewise.
4303         (dump_die_shallow): Use pulongest to print dwarf_block.size.
4304         (decode_locdesc): Expand SIZE and I to size_t.
4306 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4308         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4310 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
4312         * doublest.c (convert_doublest_to_floatformat): If the exponent
4313         is too small, treat the value as zero.  If the exponent is too
4314         large, treat the value as infinity.
4316 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
4318         * configure.ac: Add --enable-lmcheck configure option.
4319         * configure: Regenerate.
4321 2012-07-25  Tom Tromey  <tromey@redhat.com>
4323         * NEWS: Mention maint info bfds.
4324         * gdb_bfd.c (all_bfds): New global.
4325         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4326         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4327         New functions.
4329 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
4331         * configure.tgt: Add v850*-*-rtems*.
4333 2012-07-25  Tom Tromey  <tromey@redhat.com>
4335         * macrotab.c (macro_bcache_str): Remove cast.
4337 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
4339         * linespec.c (linespec_lexer_lex_number): Update comments,
4340         change the return and add check to make sure the input is
4341         the decimal numbers.
4342         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4343         false, call linespec_lexer_lex_string.
4345 2012-07-24  Tom Tromey  <tromey@redhat.com>
4347         * symfile.c (symbol_file_add): Don't open BFD twice.
4349 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
4351         * breakpoint.c (create_breakpoint): Store condition for pending
4352         breakpoints.
4354 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
4356         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4357         (m68k_return_value): Handle complex types like structures.
4358         (m68k_svr4_return_value): Likewise.
4360 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4362         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4363         parameters to bfd_get_section_name.
4365 2012-07-24  Yao Qi  <yao@codesourcery.com>
4367         * cli/cli-setshow.c: Handle case 'var_uinteger'
4368         and 'var_zuninteger' together.  Handle case 'var_integer' and
4369         'var_zinteger' together.
4371 2012-07-23  Keith Seitz  <keiths@redhat.com>
4373         * linespec.c (convert_linespec_to_sal): Don't add
4374         any symbols to the result vector if symbol_to_sal
4375         returns zero.
4377 2012-07-23  Keith Seitz  <keiths@redhat.com>
4379         * linespec.c (decode_objc): Record the function name
4380         in the linespec.
4382 2012-07-23  Tom Tromey  <tromey@redhat.com>
4384         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
4385         counting.
4386         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4387         (map_vmap): Acquire a reference to the BFD.
4389 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4391         * p-valprint.c (pascal_object_print_value): Replace potentially
4392         unsafe alloca with xmalloc/xfree.
4393         * valops.c (search_struct_method): Likewise.
4395 2012-07-23  Tom Tromey  <tromey@redhat.com>
4397         * solib-svr4.c (enable_break): Update.
4398         * bfd-target.h (target_bfd_reopen): Update documentation.
4400 2012-07-23  Tom Tromey  <tromey@redhat.com>
4402         * symfile.c (separate_debug_file_exists): Update.
4403         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4404         (reread_symbols): Update.
4405         * elfread.c (build_id_verify): Update.
4406         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4407         bfd_open_maybe_remote.
4409 2012-07-23  Tom Tromey  <tromey@redhat.com>
4411         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4413 2012-07-23  Tom Tromey  <tromey@redhat.com>
4415         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4416         and 'abfd'.
4417         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4418         and 'abfd'.
4419         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4420         * machoread.c (macho_add_oso_symfile): Make a cleanup for
4421         'abfd'.
4422         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4423         * objfiles.c (allocate_objfile): Acquire a new reference.
4424         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4425         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4426         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4427         a cleanup for 'nbfd'.
4428         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4429         for 'nbfd'.
4430         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4431         make a cleanup for 'abfd'.
4432         (symbol_file_add): Make a BFD cleanup.
4434 2012-07-23  Tom Tromey  <tromey@redhat.com>
4436         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4437         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4438         * corelow.c (core_open): Use gdb_bfd_fopen.
4439         * dsrec.c (load_srec): Use gdb_bfd_openr.
4440         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4441         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4442         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4443         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4444         (gdb_bfd_fdopenr): New functions.
4445         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4446         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4447         (gdb_bfd_fdopenr): Declare.
4448         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4449         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4450         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4451         gdb_bfd_openr_next_archived_file.
4452         (macho_check_dsym): Use gdb_bfd_openr.
4453         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4454         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4455         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4456         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4457         gdb_bfd_openr.
4458         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4459         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4460         gdb_bfd_openr_next_archived_file.
4461         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4462         Use gdb_bfd_openr.
4463         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4464         gdb_bfd_openr.
4465         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4466         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4467         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4468         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4469         (symfile_bfd_open): Use gdb_bfd_fopen.
4470         (generic_load): Use gdb_bfd_openr.
4471         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4473 2012-07-23  Tom Tromey  <tromey@redhat.com>
4475         * bfd-target.c (target_bfd_reopen): Update.
4476         * cli/cli-dump.c (bfd_openr_with_cleanup)
4477         (bfd_openw_with_cleanup): Update.
4478         * corelow.c (core_open): Update.
4479         * dsrec.c (load_srec): Update.
4480         * exec.c (exec_file_attach): Update.
4481         * gcore.c (create_gcore_bfd): Update.
4482         * gdb_bfd.c (gdb_bfd_ref): Return void.
4483         (gdb_bfd_open): Update.
4484         * gdb_bfd.h (gdb_bfd_ref): Return void.
4485         Update comments.
4486         * jit.c (jit_bfd_try_read_symtab): Update.
4487         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4488         * machoread.c (macho_symfile_read_all_oso): Update.
4489         (macho_check_dsym): Update.
4490         * procfs.c (insert_dbx_link_bpt_in_file): Update.
4491         * remote-m32r-sdi.c (m32r_load): Update.
4492         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4493         * rs6000-nat.c (add_vmap): Update.
4494         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4495         Update.
4496         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4497         * solib-spu.c (spu_bfd_open): Update.
4498         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4499         * spu-linux-nat.c (spu_bfd_open): Update.
4500         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4501         (generic_load): Update.
4502         * windows-nat.c (windows_make_so): Update.
4504 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4506         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4508 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
4510         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4511         SIGTRAMP_FRAME unwinding.
4513 2012-07-20  Doug Evans  <dje@google.com>
4515         * NEWS: Document new options "set/show use-deprecated-index-sections",
4516         and delete reference to --use-deprecated-index-sections.
4517         * symfile.h (use_deprecated_index_sections): Delete.
4518         * dwarf2read.c (use_deprecated_index_sections): Make static.
4519         (read_index_from_section): Update wording of how to load
4520         deprecated index sections.
4521         (_initialize_dwarf2_read): New options
4522         "set/show use-deprecated-index-sections".
4523         * main.c (captured_main): Delete --use-deprecated-index-sections.
4525 2012-07-20  Pedro Alves  <palves@redhat.com>
4527         PR threads/11692
4528         PR gdb/12203
4530         * infrun.c (handle_inferior_event) <new thread>: Don't special
4531         case minus_one_ptid.
4532         <TARGET_WAITKIND_SPURIOUS>: Ditto.
4533         * linux-thread-db.c (thread_get_info_callback): Don't return early
4534         if the thread is zombie.
4535         (thread_from_lwp): Change return type to void.  Rewrite stale
4536         comment.
4537         (attach_thread): Don't return early if the thread is zombie,
4538         instead set its "dying" flag.
4539         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4540         (find_new_threads_callback): Don't return early if the thread is
4541         zombie.
4543 2012-07-20  Pedro Alves  <palves@redhat.com>
4545         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4546         * target.c (target_wait): Likewise.
4547         (str_comma_list_concat_elem, do_option, target_options_to_string):
4548         New functions.
4549         * target.h (target_options_to_string): Declare.
4551 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
4552             Tom Tromey  <tromey@redhat.com>
4554         * dwarf2read.c (dwarf_decode_macros)
4555         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4556         DW_MACRO_GNU_transparent_include_alt>: New cases.
4557         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4558         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4560 2012-07-20  Tom Tromey  <tromey@redhat.com>
4562         * dwarf2read.c (try_open_dwo_file): Don't call
4563         gdb_bfd_stash_filename.
4565 2012-07-20  Pedro Alves  <palves@redhat.com>
4567         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4568         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4569         (i386_process_record): Tweak description comments.
4571 2012-07-20  Pedro Alves  <palves@redhat.com>
4573         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4574         (i386_process_record): Use record_read_memory.
4575         * record.c (record_read_memory): New function.
4576         (record_arch_list_add_mem, record_exec_insn): Use
4577         record_read_memory.
4578         * record.h (record_read_memory): Declare.
4580 2012-07-20  Yao Qi  <yao@codesourcery.com>
4582         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4583         NULL for xfree.
4585 2012-07-19  Pedro Alves  <palves@redhat.com>
4587         * record.c (record_resume): Ask the target beneath to report all
4588         signals.
4590 2012-07-19  Doug Evans  <dje@google.com>
4592         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4593         there's no section at address zero.
4594         (dwarf2_record_block_ranges): Ditto.
4596 2012-07-19  Yao Qi  <yao@codesourcery.com>
4598         * command.h, remote.c: Fix a typo in comment.
4600 2012-07-19  Tom Tromey  <tromey@redhat.com>
4602         PR exp/13206:
4603         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4604         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4605         OP_DECLTYPE>: New cases.
4606         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4607         (type_exp): Add new productions.
4608         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4609         and decltype.
4610         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4611         New case.
4612         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4613         OP_DECLTYPE>: New case.
4614         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4615         New case.
4616         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4617         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4619 2012-07-19  Tom Tromey  <tromey@redhat.com>
4621         * c-exp.y (enum token_flags): New.
4622         (struct token) <cxx_only>: Remove.
4623         <flags>: New field.
4624         (tokentab3, tokentab2, ident_tokens): Update.
4625         (lex_one_token): Update.  Handle FLAG_SHADOW.
4627 2012-07-19  Tom Tromey  <tromey@redhat.com>
4629         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4630         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4631         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4632         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
4633         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
4634         type_exp production where appropriate.
4635         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4636         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4637         <UNOP_MEMVAL_TYPE>: New case.
4638         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4639         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4640         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4641         <UNOP_MEMVAL_TYPE>: New case.
4642         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4643         UNOP_REINTERPRET_CAST>: Update.
4644         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4645         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4646         UNOP_REINTERPRET_CAST>: Update.
4647         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4648         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4649         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4650         constants.
4652 2012-07-19  Yao Qi  <yao@codesourcery.com>
4653             Jan Kratochvil <jan.kratochvil@redhat.com>
4655         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4656         and case 'var_optional_filename' together.
4657         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4658         instead of add_setshow_optional_filename_cmd for setshow command
4659         'args'.  Set completer for 'set args'.
4661 2012-07-18  Doug Evans  <dje@google.com>
4663         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4664         * common/gdb_vecs.c: New file, contents from utils.c.
4665         * common/host-defs.h: New file, contents from defs.h.
4666         * utils.h: New file, contents from defs.h.
4667         * defs.h: Move all declarations of objects defined in utils.c
4668         to utils.h (except QUIT() and related).
4669         #include "utils.h", "host-defs.h".
4670         * probe.h (probe_p): Move here from gdb_vecs.h.
4671         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4672         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4673         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4674         * Makefile.in (SFILES): Add common/gdb_vecs.c.
4675         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4676         (COMMON_OBS): Add gdb_vecs.o.
4677         (gdb_vecs.o): New rule.
4679 2012-07-18  Keith Seitz  <keiths@redhat.com>
4681         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4682         parameter.  If non-zero, use SYMNAME as the canonical name
4683         for the SaL.
4684         Update all callers.
4685         (convert_linespec_to_sals): Use add_sal_to_sals for
4686         expressions, too.
4687         (decode_line_full): No need to "fill in missing canonical names"
4688         anymore. Simply make cleanups for the allocated names.
4690 2012-07-18  Keith Seitz  <keiths@redhat.com>
4692         * linespec.c (struct linespec): Constify expression,
4693         source_filename, function_name, and label_name.
4694         (symbol_not_found_error): Make all parameters const.
4695         (linespec_parser_delete): No need to check for NULL
4696         when using xfree. Cast const char * to char * for xfree.
4698 2012-07-18  Keith Seitz  <keiths@redhat.com>
4700         * breakpoint.c (invalid_thread_id_error): New function.
4701         (find_condition_and_thread): Use invalid_thread_id_error.
4702         (watch_command_1): Likewise.
4704 2012-07-18  Tom Tromey  <tromey@redhat.com>
4706         * cc-with-index.sh, cc-with-dwz.sh: Remove.
4707         * contrib/cc-with-tweaks.sh: New file.
4709 2012-07-18  Tom Tromey  <tromey@redhat.com>
4711         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4712         (locate_dwz_sections): Recognize .gdb_index.
4713         (create_cus_from_index_list): New function.
4714         (create_cus_from_index): Use it.  Handle .dwz data.
4715         (read_index_from_section): New function, extracted from
4716         dwarf2_read_index.
4717         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
4718         if needed.
4720 2012-07-18  Tom Tromey  <tromey@redhat.com>
4722         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4723         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4724         <is_dwz>: New field.
4725         (struct dwz_file): New.
4726         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4727         (locate_dwz_sections, dwarf2_get_dwz_file)
4728         (get_abbrev_section_for_cu): New functions.
4729         (error_check_comp_unit_head, read_and_check_comp_unit_head)
4730         (read_and_check_type_unit_head): Add abbrev_section argument.
4731         (create_debug_types_hash_table): Update.
4732         (init_cutu_and_read_dies): Use proper abbrev section.
4733         (init_cutu_and_read_dies_no_follow): Likewise.
4734         (set_partial_user): Do nothing if PST==NULL.
4735         (read_comp_units_from_section): New function.
4736         (create_all_comp_units): Use it.
4737         (scan_partial_symbols, partial_die_parent_scope): Update.
4738         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4739         (process_imported_unit_die, read_partial_die): Handle .dwz files.
4740         (find_partial_die): Add offset_in_dwz argument.  Update.
4741         (guess_partial_die_structure_name, fixup_partial_die): Update.
4742         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4743         DW_FORM_GNU_strp_alt.
4744         (read_indirect_string_from_dwz): New function.
4745         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4746         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4747         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4748         (follow_die_offset): Add offset_in_dwz argument.
4749         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4750         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4751         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4752         Handle new macro forms.
4753         (dwarf_decode_macros): Update.
4754         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4755         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4756         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4757         (create_debug_types_hash_table): Use correct abbrev section.
4758         (get_debug_line_section): New function.
4759         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4760         (process_full_comp_unit): Pass 'required' argument to
4761         end_symtab_get_static_block.
4762         * buildsym.h (end_symtab_get_static_block): Update.
4763         * buildsym.c (end_symtab_get_static_block): Add 'required'
4764         argument.
4765         (end_symtab, end_expandable_symtab): Update.
4767 2012-07-18  Tom Tromey  <tromey@redhat.com>
4769         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4770         (pagesize): Remove.
4771         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4772         (zlib_decompress_section): Remove.
4773         (dwarf2_read_section): Use gdb_bfd_map_section.
4774         (munmap_section_buffer): Remove.
4775         (free_dwo_file, dwarf2_per_objfile_free): Don't use
4776         munmap_section_buffer.
4777         * gdb_bfd.c: Include zlib.h, sys/mman.h.
4778         (struct gdb_bfd_section_data): New.
4779         (free_one_bfd_section): New function.
4780         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4781         (get_section_descriptor, zlib_decompress_section)
4782         (gdb_bfd_map_section): New functions.
4783         * gdb_bfd.h (gdb_bfd_map_section): Declare.
4785 2012-07-18  Tom Tromey  <tromey@redhat.com>
4787         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4789 2012-07-18  Tom Tromey  <tromey@redhat.com>
4791         * gdb_bfd.c (struct gdb_bfd_data): New.
4792         (gdb_bfd_cache): New global.
4793         (struct gdb_bfd_cache_search): New.
4794         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4795         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4796         * gdb_bfd.h (gdb_bfd_open): Declare.
4798 2012-07-18  Tom Tromey  <tromey@redhat.com>
4800         * utils.c (make_cleanup_bfd_unref): Rename from
4801         make_cleanup_bfd_close.
4802         * defs.h (make_cleanup_bfd_unref): Rename from
4803         make_cleanup_bfd_close.
4804         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4805         (bfd_openw_with_cleanup): Update.
4806         * corelow.c (core_open): Update.
4807         * dsrec.c (load_srec): Update.
4808         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4809         * remote-m32r-sdi.c (m32r_load): Update.
4810         * remote-mips.c (mips_load_srec): Update.
4811         (pmon_load_fast): Update.
4812         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4813         Update.
4814         (darwin_bfd_open): Update.
4815         * solib.c (solib_bfd_fopen): Update.
4816         * symfile-mem.c (symbol_file_add_from_memory): Update.
4817         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4818         (symfile_bfd_open): Update.
4819         (generic_load): Update.
4821 2012-07-18  Tom Tromey  <tromey@redhat.com>
4823         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4824         (pmon_load_fast): Likewise.
4825         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4826         (m32r_upload_command): Likewise.
4827         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4828         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4829         Use make_cleanup_bfd_close.
4831 2012-07-18  Tom Tromey  <tromey@redhat.com>
4833         * symfile.c (symfile_bfd_open): Don't copy name.  Call
4834         gdb_bfd_stash_filename.
4835         (load_command): Open the new BFD before freeing the old.
4836         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4837         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4838         Call gdb_bfd_stash_filename.
4839         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4840         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
4841         gdb_bfd_stash_filename.
4842         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4843         Free found_pathname.
4844         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
4845         gdb_bfd_stash_filename.
4846         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4847         * machoread.c (macho_add_oso_symfile): Call
4848         gdb_bfd_stash_filename.
4849         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
4850         gdb_bfd_stash_filename.
4851         (macho_check_dsym): Don't copy filename.  Call
4852         gdb_bfd_stash_filename.
4853         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4854         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4855         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4856         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4857         * exec.c (exec_close): Don't free the BFD's filename.
4858         (exec_file_attach): Don't copy the filename.  Call
4859         gdb_bfd_stash_filename.
4860         * corelow.c (core_close): Don't free the BFD's filename.
4861         (core_open): Call gdb_bfd_stash_filename.
4862         * corefile.c (reopen_exec_file): Remove #if 0 code.
4863         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
4864         pathname.
4865         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4867 2012-07-18  Tom Tromey  <tromey@redhat.com>
4869         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4870         gdb_bfd_unref.
4871         (free_dwo_file): Use gdb_bfd_unref.
4872         * cli/cli-dump.c: Include gdb_bfd.h.
4873         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4874         (bfd_openr_with_cleanup): Likewise.
4875         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4876         gdb_bfd_unref.
4877         * utils.c: Include gdb_bfd.h.
4878         (do_bfd_close_cleanup): Use gdb_bfd_unref.
4879         * symfile.c: Include gdb_bfd.h.
4880         (separate_debug_file_exists): Use gdb_bfd_unref.
4881         (bfd_open_maybe_remote): Use gdb_bfd_ref.
4882         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4883         (generic_load): Use gdb_bfd_ref.
4884         (reread_symbols): Use gdb_bfd_unref.
4885         * symfile-mem.c: Include gdb_bfd.h.
4886         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4887         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4888         * solib.c: Include gdb_bfd.h.
4889         (solib_bfd_fopen): Use gdb_bfd_ref.
4890         (solib_bfd_open): Use gdb_bfd_unref.
4891         (free_so_symbols): Use gdb_bfd_unref.
4892         (reload_shared_libraries_1): Use gdb_bfd_unref.
4893         * solib-spu.c: Include gdb_bfd.h.
4894         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4895         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4896         gdb_bfd_unref.
4897         * solib-frv.c: Include gdb_bfd.h.
4898         (enable_break2): Use gdb_bfd_unref.
4899         * solib-dsbt.c: Include gdb_bfd.h.
4900         (enable_break2): Use gdb_bfd_unref.
4901         * solib-darwin.c: Include gdb_bfd.h.
4902         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4903         gdb_bfd_unref.
4904         (darwin_bfd_open): Use gdb_bfd_unref.
4905         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4906         * remote-mips.c: Include gdb_bfd.h.
4907         (mips_load_srec): Use gdb_bfd_ref.
4908         (pmon_load_fast): Use gdb_bfd_ref.
4909         * remote-m32r-sdi.c: Include gdb_bfd.h.
4910         (m32r_load): Use gdb_bfd_ref.
4911         * record.c: Include gdb_bfd.h.
4912         (record_save_cleanups): Use gdb_bfd_unref.
4913         (cmd_record_save): Use gdb_bfd_unref.
4914         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4915         gdb_bfd_unref.
4916         * objfiles.h (gdb_bfd_close_or_warn): Remove.
4917         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4918         * objfiles.c: Include gdb_bfd.h.
4919         (free_objfile): Use gdb_bfd_unref.
4920         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4921         gdb_bfd.c.
4922         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4923         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4924         (macho_check_dsym): Likewise.
4925         * m32r-rom.c: Include gdb_bfd.h.
4926         (m32r_load): Use gdb_bfd_ref.
4927         (m32r_upload_command): Use gdb_bfd_ref.
4928         * jit.c: Include gdb_bfd.h.
4929         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4930         * gdb_bfd.h: New file.
4931         * gdb_bfd.c: New file.
4932         * gcore.c: Include gdb_bfd.h.
4933         (create_gcore_bfd): Use gdb_bfd_ref.
4934         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4935         (gcore_command): Use gdb_bfd_unref.
4936         * exec.c: Include gdb_bfd.h.
4937         (exec_close): Use gdb_bfd_unref.
4938         (exec_close_1): Use gdb_bfd_unref.
4939         (exec_file_attach): Use gdb_bfd_ref.
4940         * elfread.c: Include gdb_bfd.h.
4941         (build_id_verify): Use gdb_bfd_unref.
4942         * dsrec.c: Include gdb_bfd.h.
4943         (load_srec): Use gdb_bfd_ref.
4944         * corelow.c: Include gdb_bfd.h.
4945         (core_close): Use gdb_bfd_unref.
4946         (core_open): Use gdb_bfd_ref.
4947         * bfd-target.c: Include gdb_bfd.h.
4948         (target_bfd_xclose): Use gdb_bfd_unref.
4949         (target_bfd_reopen): Use gdb_bfd_ref.
4950         * Makefile.in (SFILES): Add gdb_bfd.c.
4951         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4952         (COMMON_OBS): Add gdb_bfd.o.
4954 2012-07-18  Keith Seitz  <keiths@redhat.com>
4956         * breakpoint.c (find_condition_and_thread): Initialize
4957         TASK and REST.
4958         (create_breakpiont): find_condition_and_thread will now
4959         initialize COND_STRING, THREAD, and REST (and TASK).
4960         (addr_string_to_sals): Likewise.
4962 2012-07-18  Pedro Alves  <palves@redhat.com>
4964         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4965         Pull the single step breakpoints out of the target.
4967 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4969         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4970         * stap-probe.c (compile_probe_arg): Likewise.
4972 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4974         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4975         (elf_compile_to_ax): Likewise.
4976         * infrun.c (insert_exception_resume_from_probe): Likewise.
4977         (check_exception_resume): Remove `objfile' variable.
4978         * probe.c (find_probe_by_pc): Remove `objfile' argument.
4979         (struct probe_and_objfile, probe_and_objfile_s): Delete.
4980         (collect_probes): Adjust return value to `VEC (probe_p) *'.
4981         (compare_entries): Rename to...
4982         (compare_probes): ...this.  Adjust function to work with
4983         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
4984         respectively.
4985         (gen_ui_out_table_header_info): Adjust `probes' argument to be
4986         `VEC (probe_p) *'.
4987         (print_ui_out_info): Adjust argument to be `struct probe *'.
4988         (info_probes_for_ops): Adjust internal computations to use
4989         `VEC (probe_p) *'.
4990         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4991         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4992         gen_info_probes_table_values>: Remove `objfile' argument.
4993         (struct probe) <objfile>: New field.
4994         (find_probe_by_pc): Remove `objfile' argument.
4995         * stap-probe.c (stap_parse_probe_arguments): Likewise.
4996         (stap_get_probe_argument_count): Likewise.
4997         (stap_get_arg): Likewise.
4998         (stap_evaluate_probe_argument): Likewise.
4999         (stap_compile_to_ax): Likewise.
5000         (compile_probe_arg): Refactor not to pass `objfile' anymore.
5001         (handle_stap_probe): Fill `objfile' field from `struct probe'.
5002         (stap_gen_info_probes_table_header): Remove `objfile' argument.
5003         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
5004         sym_compile_to_ax>: Likewise.
5006 2012-07-18  Terry Guo  <terry.guo@arm.com>
5008         PR 14329
5009         * defs.h (GDB_MI_MSG_WIDTH): New.
5010         * ser_base (ser_base_read_error_fd): New function.
5011         (do_ser_base_readchar): Poll error file descriptor as well as
5012         standard output.
5013         (generic_readchar): Refactor error handling.
5015 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
5017         * NEWS: Create a new section for the next release branch.
5018         Rename the section of the current branch, now that it has
5019         been cut.
5021 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
5023         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
5024         * version.in: Bump version to 7.5.50.20120718-cvs.
5026 2012-07-17  Keith Seitz  <keiths@redhat.com>
5028         * linespec.c (linespec_parse_line_offset): Make parameter
5029         const.
5031 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5033         PR 11914
5034         * f-valprint.c (info_common_command): New variable frame_id.
5035         Reinitialize FI form FRAME_ID after each print_variable_and_value.
5036         * printcmd.c (print_variable_and_value): Extend function comment.
5037         Add comment for invalidated FRAME.
5038         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
5039         FI form FRAME_ID after each print_frame_local_vars.
5040         (struct print_variable_and_value_data): Change frame to frame_id.
5041         (do_print_variable_and_value): New variable frame, initialize it from
5042         p->frame_id.  Add comment for invalidated FRAME.
5043         (print_frame_local_vars, print_frame_arg_vars): New function comment.
5044         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
5045         for invalidated FRAME.
5047 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
5048             Pedro Alves  <palves@redhat.com>
5050         * linux-nat.c (linux_nat_detach): Don't unregister from the event
5051         loop.
5053 2012-07-16  Tom Tromey  <tromey@redhat.com>
5055         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
5057 2012-07-15  Doug Evans  <dje@google.com>
5059         * dwarf2read.c (stmt_list_hash): New struct.
5060         (type_unit_group): Embed "per_cu" member, remove pointer.
5061         New union member "t", move member "tus" into it, all uses updated.
5062         New member "hash", replaces member "line_offset, all uses updated.
5063         (quick_file_names): Replace member "offset" with "hash", all uses
5064         updated.
5065         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
5066         (hash_file_name_entry, eq_file_name_entry): Call them.
5067         (hash_type_unit_group, eq_type_unit_group): Ditto.
5068         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
5069         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
5070         (dw2_get_file_names): Update.
5071         (create_type_unit_group): Replace "per_cu" arg with "cu".
5072         All callers updated.  Fix "quick" (.gdb_index) handling.
5073         (get_type_unit_group): Replace "per_cu" arg with "cu".
5074         All callers updated.
5075         (build_type_unit_groups): Don't reset tu_stats.
5077         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
5078         "tab_cur_size".  Change member "tab" to be a htab_t.
5079         (create_filename_seen_cache): Update.
5080         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
5081         (filename_seen): Update.
5083 2012-07-13  Doug Evans  <dje@google.com>
5085         * symtab.c (filename_seen): Update comment.
5087 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5088             Doug Evans  <dje@google.com>
5090         * buildsym.c (end_symtab_1): Split it to ...
5091         (end_symtab_get_static_block): ... this ...
5092         (end_symtab_from_static_block): ... and this function.
5093         (end_symtab, end_expandable_symtab): Call them.
5094         * buildsym.h (end_symtab_get_static_block)
5095         (end_symtab_from_static_block): New declarations.
5096         * dwarf2read.c (process_full_comp_unit): New variable static_block.
5097         Set its valid CU ranges.
5099 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5101         * dwarf2loc.c (disassemble_dwarf_expression): Handle
5102         DW_OP_GNU_parameter_ref.
5104 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5106         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
5107         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
5109 2012-07-13  Doug Evans  <dje@google.com>
5111         * symtab.c (output_source_filename): Delete unnecessary forward decl.
5112         (filename_seen_cache): New struct.
5113         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
5114         (create_filename_seen_cache): New function.
5115         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
5116         (filename_seen): Delete arg "first".  New arg "cache".  All callers
5117         updated.
5118         (output_source_filename_data): New struct.
5119         (output_source_filename): Delete arg "first".  New arg "data".
5120         All callers updated.
5121         (sources_info): Delete local "first".  New locals "data", "cleanups".
5122         Rewrite to use filename_seen_cache.
5123         (add_partial_filename_data): Delete member "first".  New member
5124         "filename_seen_cache".  All uses updated.
5125         (make_source_files_completion_list): Rewrite to use
5126         filename_seen_cache.
5128 2012-07-12  Doug Evans  <dje@google.com>
5130         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5132 2012-07-10  Doug Evans  <dje@google.com>
5134         PR gdb/13498
5135         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5136         all_type_unit_groups, type_unit_groups, tu_stats.
5137         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5138         All uses updated.  Add type_unit_group to union "s".
5139         (type_unit_group): New struct.
5140         (IS_TYPE_UNIT_GROUP): New macro.
5141         (abbrev_table): Delete unused member "section".
5142         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5143         (dw2_get_cu): Assert not used with type_unit_group.
5144         (dw2_get_primary_cu): New function.
5145         (dw2_build_type_unit_groups_reader): New function.
5146         (dw2_build_type_unit_groups): New function.
5147         (dw2_get_file_names): Assert not called on type units.
5148         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5149         Redo loop to iterate over type unit groups instead of type units.
5150         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5151         (read_abbrev_offset): New function.
5152         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
5153         updated.
5154         (create_partial_symtab): New function.
5155         (process_psymtab_comp_unit_reader): Assert not used with type units.
5156         Call create_partial_symtab.
5157         (process_psymtab_type_unit): Delete.
5158         (hash_type_unit_group, eq_type_unit_group): New functions.
5159         (allocate_type_unit_groups_table): New function.
5160         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5161         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5162         (create_type_unit_group, get_type_unit_group): New functions.
5163         (tu_abbrev_offset): New struct.
5164         (sort_tu_by_abbrev_offset): New function.
5165         (add_type_unit_group_to_table): New function.
5166         (build_type_unit_groups): New function.
5167         (build_type_psymtabs_reader): New function.
5168         (build_type_psymtab_dependencies): New function.
5169         (build_type_psymtabs): Rewrite.
5170         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5171         is seen in a type unit.
5172         (process_queue): Move symtab expansion debugging printfs here.
5173         Call process_full_type_unit for type units.
5174         (compute_symtab_includes): Assert not called for type units.
5175         (process_cu_includes): Don't call compute_symtab_includes for
5176         type units.
5177         (process_full_type_unit): New function.
5178         (process_imported_unit_die): Flag an error if called for type units.
5179         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
5180         updated.  Assert not called for type units.
5181         (read_file_scope): Call dwarf2_start_symtab.
5182         (setup_type_unit_groups): New function.
5183         (read_type_unit_scope): Rewrite.
5184         (abbrev_table_read_table): Initialize abbrev_table->offset.
5185         (abbrev_table_free_cleanup): New function.
5186         (dwarf2_start_symtab): New function.
5187         (load_full_type_unit): Assert not called for type unit groups.
5188         * buildsym.c (finish_block_internal): New arg "expandable".
5189         All callers updated.
5190         (start_symtab): Move most contents to ...
5191         (restart_symtab): ... here.  New function.
5192         (reset_symtab_globals): New function.
5193         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
5194         Call reset_symtab_globals.
5195         (end_symtab, end_expandable_symtab): New functions.
5196         (set_missing_symtab, augment_type_symtab): New functions.
5197         * buildsym.h (end_expandable_symtab): Declare.
5198         (augment_type_symtab, restart_symtab): Declare.
5199         * psympriv.h (struct partial_symtab): New member "anonymous".
5200         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5201         anonymous psymtabs.
5202         (read_psymtabs_with_filename): Ditto.
5203         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5204         (expand_symtabs_matching_via_partial): Ditto.
5205         (dump_psymtab): Update.
5206         * dictionary.c (dict_add_pending): New function.
5207         * dictionary.h (dict_add_pending): Declare.
5209 2012-07-09  Doug Evans  <dje@google.com>
5211         * buildsym.c (start_subfile): Remove unnecessary check for
5212         name == NULL.
5214         * psymtab.c (allocate_psymtab): Use host_address_to_string.
5216         * dwarf2read.c (load_full_type_unit): Simplify.
5218         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5219         to struct signatured_type **.  All uses updated.
5221         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5222         All callers updated.
5224 2012-07-09  Tom Tromey  <tromey@redhat.com>
5226         * c-exp.y (check_parameter_typelist): New function.
5227         (parameter_typelist): Call it.
5228         * eval.c (make_params): Handle '(void)' case.
5229         * gdbtypes.c (lookup_function_type_with_arguments): Handle
5230         '(void)' case.
5232 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5234         * common/linux-ptrace.c: Include gdb_assert.h.
5235         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5236         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5237         stdint.h.
5238         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5239         functions.
5240         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5241         * linux-nat.c (linux_child_post_attach)
5242         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5244 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5246         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5247         nptl <2.7 bug workaround for core files.
5249 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5251         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5252         clearing.
5253         (save_siginfo): Remove.
5254         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5255         call.
5256         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5257         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5258         * linux-nat.h (struct lwp_info): Remove field siginfo.
5260 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5262         Code cleanup for the next patch.
5263         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5264         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5265         call for it.
5266         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5267         (ia64_linux_stopped_data_address):
5268         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5269         the return value.
5270         * linux-nat.h (linux_nat_get_siginfo): Likewise.
5271         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5272         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5273         call for it.
5275 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5277         PR 14321
5278         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5279         Increase buffer sizes to 2x we need, not just 2x of the previous size.
5281 2012-07-06  Tom Tromey  <tromey@redhat.com>
5283         * c-exp.y (DOTDOTDOT): New token.
5284         (func_mod, exp): Use parameter_typelist.
5285         (parameter_typelist): New production.
5286         (tokentab3): Add "..." token.
5287         * eval.c (make_params): Handle varargs.
5288         * gdbtypes.c (lookup_function_type_with_arguments): Handle
5289         varargs.
5291 2012-07-06  Tom Tromey  <tromey@redhat.com>
5293         PR exp/9608:
5294         * c-exp.y (%union) <tvec>: Change type.
5295         (func_mod): Now uses <tvec> type.
5296         (exp): Update for tvec change.
5297         (direct_abs_decl): Push the typelist.
5298         (func_mod): Return a typelist.
5299         (nonempty_typelist): Update for tvec change.
5300         * gdbtypes.c (lookup_function_type_with_arguments): New function.
5301         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5302         * parse.c (pop_type_list): New function.
5303         (push_typelist): New function.
5304         (follow_types): Handle tp_function_with_arguments.
5305         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
5306         (enum type_pieces) <tp_function_with_arguments>: New constant.
5307         (union type_stack_elt) <typelist_val>: New field.
5308         (push_typelist): Declare.
5310 2012-07-06  Tom Tromey  <tromey@redhat.com>
5312         * c-exp.y (%union) <type_stack>: New field.
5313         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
5314         (ptr_operator_ts): New production.
5315         (ptype): Update.
5316         * parse.c (type_stack_reserve): New function.
5317         (check_type_stack_depth): Use it.
5318         (pop_type_stack, append_type_stack, push_type_stack)
5319         (get_type_stack, type_stack_cleanup): New functions.
5320         (follow_types): Handle tp_type_stack.
5321         (_initialize_parse): Simplify initialization.
5322         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5323         constant.
5324         (union type_stack_elt) <stack_val>: New field.
5325         (get_type_stack, append_type_stack, push_type_stack)
5326         (type_stack_cleanup): Declare.
5328 2012-07-06  Tom Tromey  <tromey@redhat.com>
5330         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5331         Remove.
5332         (struct type_stack): New.
5333         * parse.c (type_stack, type_stack_size, type_stack_depth):
5334         Remove.
5335         (type_stack): New global.
5336         (parse_exp_in_context, check_type_stack_depth)
5337         (insert_into_type_stack, insert_type, push_type, push_type_int)
5338         (insert_type_address_space, pop_type, pop_type_int)
5339         (_initialize_parse): Update.
5341 2012-07-06  Tom Tromey  <tromey@redhat.com>
5343         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5344         Remove %type.
5346 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5348         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5350 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5351             Jan Kratochvil  <jan.kratochvil@redhat.com>
5353         * cp-valprint.c (cp_print_value): Replace potentially unsafe
5354         alloca with xmalloc/xfree.
5356 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5358         * MAINTAINERS (Write After Approval): Add myself to the list.
5360 2012-07-05  Doug Evans  <dje@google.com>
5362         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5364 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
5366         * ax-gdb.c (cli/cli-utils.h): New include.
5367         (linespec.h): Ditto.
5368         (agent_eval_command_one): New function.
5369         (agent_command_1): Ditto.
5370         (agent_command): Call function agent_command_1.
5371         (agent_eval_command): Ditto.
5372         (_initialize_ax_gdb): Change help for "maint agent"
5373         and "maint agent-eval".
5375 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
5377         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5378         * cli/cli-utils.c (check_for_argument): New function.
5379         * cli/cli-utils.h (check_for_argument): Ditto.
5381 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5383         * NEWS: Mention x32 ABI support.
5385 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5387         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5388         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5390         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5391         and pc_regnum_from_eax to -1.  Update SP regnum from
5392         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5393         needed.
5395         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5396         pc_regnum_from_eax.
5398 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5400         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5401         * dwarf2expr.h: Include gdbtypes.h.
5402         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5403         these forward declarations.
5404         (cu_offset, sect_offset): Move these ...
5405         * gdbtypes.h: Remove include dwarf2expr.h.
5406         (cu_offset, sect_offset): ... here.
5408 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5410         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5411         (amd64_linux_sigtramp_code): This.
5412         (amd64_x32_linux_sigtramp_code): New.
5413         (LINUX_SIGTRAMP_LEN): Updated.
5414         (amd64_linux_sigtramp_start): Check x32 sigtramp.
5416 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5418         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5420 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5422         * config.in: Regenerate.
5423         * configure: Regenerate.
5424         * configure.ac: Remove check for gnu/libc-version.h.
5425         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5426         gnu/libc-version.h.
5427         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5428         variables libc_version, libc_major and libc_minor.  Replace sscanf by
5429         inferior_has_bug.  Extend the comment.
5431 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5433         * linux-thread-db.c (inferior_has_bug): New function.
5434         (thread_db_find_new_threads_silently): Return boolean as checked by
5435         inferior_has_bug, describe it in the comments.
5436         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5437         earlier.  Abort the initialization if it returned non-zero.
5438         (thread_db_new_objfile): Exclude debug files.
5439         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
5440         if UNTIL_NO_NEW,
5442 2012-07-02  Doug Evans  <dje@google.com>
5444         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5445         related to queue management.
5447         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5448         instead of "debug dwarf2-die" in debugging printfs.
5449         (create_debug_info_hash_table_reader): Ditto.
5450         (create_debug_info_hash_table): Ditto.
5451         (init_dwo_file): Ditto.
5452         (init_cutu_and_read_dies): Add debugging printf.
5453         (init_cutu_and_read_dies_no_follow): Ditto.
5454         (process_psymtab_comp_unit_reader): Ditto.
5456 2012-07-02  Stan Shebs  <stan@codesourcery.com>
5458         Add target-side support for dynamic printf.
5459         * NEWS: Mention the additional style.
5460         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5461         (struct bp_location): New field cmd_bytecode.
5462         * breakpoint.c: Include format.h.
5463         (disconnected_dprintf): New global.
5464         (parse_cmd_to_aexpr): New function.
5465         (build_target_command_list): New function.
5466         (insert_bp_location): Call it.
5467         (remove_breakpoints_pid): Skip dprintf breakpoints.
5468         (print_one_breakpoint_location): Ditto.
5469         (dprintf_style_agent): New global.
5470         (dprintf_style_enums): Add dprintf_style_agent.
5471         (update_dprintf_command_list): Add agent case.
5472         (agent_printf_command): New function.
5473         (_initialize_breakpoint): Add new commands.
5474         * common/ax.def (printf): New bytecode.
5475         * ax.h (ax_string): Declare.
5476         * ax-gdb.h (gen_printf): Declare.
5477         * ax-gdb.c: Include cli-utils.h, format.h.
5478         (gen_printf): New function.
5479         (maint_agent_print_command): New function.
5480         (_initialize_ax_gdb): Add maint agent-printf command.
5481         * ax-general.c (ax_string): New function.
5482         (ax_print): Add printf disassembly.
5483         * Makefile.in (SFILES): Add format.c
5484         (COMMON_OBS): Add format.o.
5485         * common/format.h: New file.
5486         * common/format.c: New file.
5487         * printcmd.c: Include format.h.
5488         (ui_printf): Call parse_format_string.
5489         * remote.c (remote_state): New field breakpoint_commands.
5490         (PACKET_BreakpointCommands): New enum.
5491         (remote_breakpoint_commands_feature): New function.
5492         (remote_protocol_features): Add new BreakpointCommands entry.
5493         (remote_can_run_breakpoint_commands): New function.
5494         (remote_add_target_side_commands): New function.
5495         (remote_insert_breakpoint): Call it.
5496         (remote_insert_hw_breakpoint): Ditto.
5497         (_initialize_remote): Add new packet configuration for
5498         target-side breakpoint commands.
5499         * target.h (struct target_ops): New field
5500         to_can_run_breakpoint_commands.
5501         (target_can_run_breakpoint_commands): New macro.
5502         * target.c (update_current_target): Handle
5503         to_can_run_breakpoint_commands.
5505 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5507         Execute -ix and -iex only after system and user gdbinit files.
5508         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5509         processing down after gdbinit files.
5511 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5513         Add fnmatch-gnu module.
5514         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5515         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5516         * gnulib/aclocal.m4: Regenerate.
5517         * gnulib/config.in: Regenerate.
5518         * gnulib/configure: Regenerate.
5519         * gnulib/import/dummy.c: Remove.
5520         * gnulib/import/Makefile.am: Regenerate.
5521         * gnulib/import/Makefile.in: Likewise.
5522         * gnulib/import/m4/gnulib-cache.m4: Likewise.
5523         * gnulib/import/m4/gnulib-comp.m4: Likewise.
5524         * gnulib/import/alloca.c: New file.
5525         * gnulib/import/alloca.in.h: Likewise.
5526         * gnulib/import/config.charset: Likewise.
5527         * gnulib/import/fnmatch.c: Likewise.
5528         * gnulib/import/fnmatch.in.h: Likewise.
5529         * gnulib/import/fnmatch_loop.c: Likewise.
5530         * gnulib/import/localcharset.c: Likewise.
5531         * gnulib/import/localcharset.h: Likewise.
5532         * gnulib/import/m4/alloca.m4: Likewise.
5533         * gnulib/import/m4/codeset.m4: Likewise.
5534         * gnulib/import/m4/configmake.m4: Likewise.
5535         * gnulib/import/m4/fcntl-o.m4: Likewise.
5536         * gnulib/import/m4/fnmatch.m4: Likewise.
5537         * gnulib/import/m4/glibc21.m4: Likewise.
5538         * gnulib/import/m4/localcharset.m4: Likewise.
5539         * gnulib/import/m4/locale-fr.m4: Likewise.
5540         * gnulib/import/m4/locale-ja.m4: Likewise.
5541         * gnulib/import/m4/locale-zh.m4: Likewise.
5542         * gnulib/import/m4/mbrtowc.m4: Likewise.
5543         * gnulib/import/m4/mbsinit.m4: Likewise.
5544         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5545         * gnulib/import/m4/mbstate_t.m4: Likewise.
5546         * gnulib/import/m4/stdbool.m4: Likewise.
5547         * gnulib/import/m4/wchar_h.m4: Likewise.
5548         * gnulib/import/m4/wctype_h.m4: Likewise.
5549         * gnulib/import/m4/wint_t.m4: Likewise.
5550         * gnulib/import/mbrtowc.c: Likewise.
5551         * gnulib/import/mbsinit.c: Likewise.
5552         * gnulib/import/mbsrtowcs-impl.h: Likewise.
5553         * gnulib/import/mbsrtowcs-state.c: Likewise.
5554         * gnulib/import/mbsrtowcs.c: Likewise.
5555         * gnulib/import/ref-add.sin: Likewise.
5556         * gnulib/import/ref-del.sin: Likewise.
5557         * gnulib/import/stdbool.in.h: Likewise.
5558         * gnulib/import/streq.h: Likewise.
5559         * gnulib/import/strnlen1.c: Likewise.
5560         * gnulib/import/strnlen1.h: Likewise.
5561         * gnulib/import/verify.h: Likewise.
5562         * gnulib/import/wchar.in.h: Likewise.
5563         * gnulib/import/wctype.in.h: Likewise.
5565 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5567         Support shell wildcards for 'set auto-load safe-path'.
5568         * auto-load.c: Include fnmatch.h.
5569         (filename_is_in_dir): Rename to ...
5570         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5571         it.  Update function comment.  Rename dir_len to pattern_len.  New
5572         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
5573         messages.  Use gdb_filename_fnmatch.
5574         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5575         pattern.
5576         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5577         * defs.h (gdb_filename_fnmatch): New declaration.
5578         * utils.c: Include fnmatch.h.
5579         (gdb_filename_fnmatch): New function.
5581 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5583         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5584         `-probe' and `-probe-stap' options.
5586 2012-07-01  Yao Qi  <yao@codesourcery.com>
5588         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5589         always_inserted_off, and always_inserted_enums.
5590         Change always_inserted_mode's type to 'enum auto_boolean'.
5591         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5592         callers.
5593         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5594         of add_setshow_enum_cmd.
5595         * infrun.c: Remove can_use_displaced_stepping_auto,
5596         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5597         can_use_displaced_stepping_enum.
5598         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5599         (show_can_use_displaced_stepping, use_displaced_stepping): Update
5600         callers.
5601         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5602         add_setshow_enum_cmd.
5604 2012-06-30  Doug Evans  <dje@google.com>
5606         * dwarf2read.c (signatured_type): Make "per_cu" member first.
5607         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5608         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
5610 2012-06-29  Doug Evans  <dje@google.com>
5612         * linespec.c: #include "stack.h".
5613         (decode_line_with_current_source): Moved here from symtab.c and
5614         renamed from decode_line_spec.  All callers updated.
5615         (decode_line_with_last_displayed): Moved here from breakpoint.c and
5616         renamed from decode_line_spec_1.  All callers updated.
5617         * linespec.h (decode_line_with_current_source): Move declaration here
5618         from symtab.h and renamed from decode_line_spec.
5619         (decode_line_with_last_displayed): Move declaration here from symtab.h
5620         and renamed from decode_line_spec_1.
5621         * macrocmd.c: #include "linespec.h".
5622         * symtab.c: Remove #include "linespec.h".
5624 2012-06-28  Doug Evans  <dje@google.com>
5626         * dwarf2read.c (get_cu_length): New function.
5627         (offset_in_cu_p, error_check_comp_unit_head): Call it.
5628         (create_debug_types_hash_table): Ditto.
5629         (init_cutu_and_read_dies): Ditto.
5630         (init_cutu_and_read_dies_no_follow): Ditto.
5632         * dwarf2read.c (dwarf2_find_base_address): Move definition.
5634         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5635         (struct abbrev_table): Define.
5636         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5637         abbrev_table.
5638         (init_cutu_and_read_dies): Update.
5639         (abbrev_table_alloc_abbrev): New function.  Replaces
5640         dwarf_alloc_abbrev.  All callers updated.
5641         (abbrev_table_add_abbrev): New function.
5642         (abbrev_table_lookup_abbrev): New function.  Replaces
5643         dwarf2_lookup_abbrev.  All callers updated.
5644         (abbrev_table_read_table): New function.  Contents moved here from
5645         dwarf2_read_abbrevs.
5646         (dwarf2_read_abbrevs): Call it.
5647         (abbrev_table_free): New function.
5648         (dwarf2_free_abbrev_table): Call it.
5650 2012-06-28  Stan Shebs  <stan@codesourcery.com>
5652         * osdata.c (info_osdata_command): Filter out "Title" columns
5653         from non-MI uses.
5654         * common/linux-osdata.c (struct osdata_type): Add title field.
5655         (osdata_table): Add titles to each entry.
5656         (linux_command_xfer_osdata): Add a column for title data.
5658 2012-06-28  Stan Shebs  <stan@codesourcery.com>
5660         Make logging work for MI.
5661         * NEWS: Mention it.
5662         * interps.h (interp_set_logging_ftype): New typedef.
5663         (struct interp_procs): New field set_logging_proc.
5664         (current_interp_set_logging): Declare.
5665         * interps.c (current_interp_set_logging): New function.
5666         * cli/cli-logging.c: Include interps.h.
5667         (set_logging_redirect): Call current_interp_set_logging.
5668         (pop_output_files): Ditto.
5669         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5670         * mi/mi-console.h (mi_console_set_raw): Declare.
5671         * mi/mi-console.c (mi_console_set_raw): New function.
5672         * mi/mi-interp.c (saved_raw_stdout): New global.
5673         (mi_set_logging): New function.
5674         (_initialize_mi_interp): Add it to interp procs.
5676 2012-06-28  Doug Evans  <dje@google.com>
5678         * symtab.c (lookup_symbol_aux_objfile): Use
5679         ALL_OBJFILE_PRIMARY_SYMTABS.
5681         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5683 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5685         * common/buffer.c: Include inttypes.h and stdint.h.
5686         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5688 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5689             Pedro Alves  <palves@redhat.com>
5691         * gdbthread.h (ALL_THREADS): New macro.
5692         (thread_list): Declare.
5693         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5694         going, but instead fall through to the stepping handling.
5695         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
5696         the passed in signal.  Adjust debug output.
5697         (resume_callback): Rename to ...
5698         (linux_nat_resume_callback): ... this.  Pass the thread's last
5699         stop signal, if in "pass" state.
5700         (linux_nat_resume): Adjust to rename.
5701         (stop_wait_callback): New assertion.  Don't respawn signals;
5702         instead let the LWP remain with SIGNALLED set.
5703         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5704         * remote.c (append_pending_thread_resumptions): New.
5705         (remote_vcont_resume): Call it.
5706         * target.h (target_resume): Extend comment.
5708 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
5710         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5712 2012-06-27  Doug Evans  <dje@google.com>
5714         * dwarf2read.c (dwarf2_cu): Add ranges_base.
5715         Delete have_addr_base, unused.  All uses updated.
5716         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5717         (dwarf2_get_pc_bounds): Add ranges_base.
5718         (dwarf2_record_block_ranges): Ditto.
5720 2012-06-27  Tom Tromey  <tromey@redhat.com>
5722         PR macros/7961:
5723         * varobj.c (varobj_create): Update.
5724         (varobj_set_value): Update.
5725         * tracepoint.c (validate_actionline): Update.
5726         (encode_actions_1): Update.
5727         * parse.c (parse_exp_1): Add 'pc' argument.
5728         (parse_exp_in_context): Add 'pc' argument.  Change how
5729         expression_context_pc is set.
5730         (parse_expression): Update.
5731         (parse_field_expression): Update.
5732         * expression.h (parse_exp_1): Update.
5733         * eval.c (parse_to_comma_and_eval): Update.
5734         * breakpoint.c (set_breakpoint_condition): Update.
5735         (update_watchpoint): Update.
5736         (init_breakpoint_sal): Update
5737         (find_condition_and_thread): Update.
5738         (watch_command_1): Update.
5739         (update_breakpoint_locations): Update.
5740         * ada-lang.c (ada_read_renaming_var_value): Update.
5741         (create_excep_cond_exprs): Update.
5743 2012-06-27  Doug Evans  <dje@google.com>
5745         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5746         type units.
5748 2012-06-26  Doug Evans  <dje@google.com>
5750         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5751         prototype.
5752         (error_check_comp_unit_head): New arg abbrev_section.  All callers
5753         updated.
5754         (read_and_check_comp_unit_head): Ditto.
5755         (read_and_check_type_unit_head): Ditto.
5757 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
5759         New attribute 'last' for gdb.Symtab_and_line.
5760         * NEWS (Python Scripting): Add entry about the new attribute.
5761         * python/py-symtab.c (salpy_get_last): New function which
5762         implements the get method for the 'last' attribute of
5763         gdb.Symtab_and_line.
5764         (sal_object_getset): Add entry for the 'last' attribute.
5766 2012-06-26  Doug Evans  <dje@google.com>
5768         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5769         (dwo_sections): Add macinfo, macro.
5770         (dwarf2_locate_dwo_sections): Watch for macro sections.
5771         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5772         All callers updated.  Handle DWO files.
5774         * NEWS: Mention new options "set debug dwarf2-read" and
5775         "set debug symtab-create".
5776         * dwarf2read.c (dwarf2_read_debug): New static global.
5777         (dwarf2_build_psymtabs_hard): Add debugging printfs.
5778         (process_queue): Ditto.
5779         (process_full_comp_unit): Ditto.
5780         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5781         * elfread.c (elf_symfile_read): Add debugging printf.
5782         * minsyms.c (install_minimal_symbols): Ditto.
5783         * psymtab.c (allocate_psymtab): Ditto.
5784         * symfile.c (allocate_symtab): Ditto.
5785         * symtab.c (symtab_create_debug): New global.
5786         (_initialize_symtab): Add new option "set debug symtab-create".
5787         * symtab.h (symtab_create_debug): Declare.
5789         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5790         (lookup_dwo_type_unit): Ditto.
5792 2012-06-26  Roland McGrath  <roland@hack.frob.com>
5793             H.J. Lu  <hongjiu.lu@intel.com>
5795         * amd64-linux-nat.c: Include <sys/user.h>.
5796         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5797         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5798         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5800         * configure.ac: Check if the fs_base and gs_base members of
5801         `struct user_regs_struct' exist.
5802         * config.in: Regenerated.
5803         * configure: Likewise.
5805 2012-06-25  Michael Eager  <eager@eagercon.com>
5807         PR python/14291
5808         * python/python.c (gdbpy_write): Check for interrupted output.
5810 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
5812         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5813         register as a stack alignment in ARM mode.
5815 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5817         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5818         * gnulib/config.in: Regenerate.
5819         * gnulib/configure: Likewise.
5820         * gnulib/import/m4/extensions.m4: Update it.
5821         * gnulib/import/m4/gnulib-common.m4: Likewise.
5822         * gnulib/import/m4/memmem.m4: Likewise.
5823         * gnulib/import/m4/mmap-anon.m4: Likewise.
5824         * gnulib/import/m4/multiarch.m4: Likewise.
5825         * gnulib/import/stdint.in.h: Likewise.
5827 2012-06-24  Yao Qi  <yao@codesourcery.com>
5829         * corefile.c (write_memory_with_notification): New.
5830         * gdbcore.h: Declare write_memory_with_notification.
5831         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5832         'observer_notify_memory_changed' with 'write_memory_with_notification'.
5833         * valops.c (value_assign): Likewise.
5834         * python/py-inferior.c (infpy_write_memory): Call
5835         'write_memory_with_notification'.
5837 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5839         * cc-with-index.sh: Use also -ex "set auto-load no".
5841 2012-06-23  Doug Evans  <dje@google.com>
5843         PR 14125
5844         * NEWS: Document additions to .gdb_index.
5845         * dwarf2read.c: #include "gdb/gdb-index.h".
5846         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5847         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5848         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5849         (dwarf2_read_index): Recognize version 7.
5850         (dw2_do_expand_symtabs_matching): New args want_specific_block,
5851         block_kind, domain): All callers updated.
5852         (dw2_find_symbol_file): Handle new index CU values.
5853         (dw2_expand_symtabs_matching): Match symbol kind if requested.
5854         (add_index_entry): New args is_static, kind.  All callers updated.
5855         (offset_type_compare, uniquify_cu_indices): New functions
5856         (symbol_kind): New function.
5857         (write_psymtabs_to_index): Remove duplicate CU values.
5858         (write_psymtabs_to_index): Write .gdb_index version 7.
5860 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
5862         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5863         * configure: Regenerate.
5865 2012-06-20  Yao Qi  <yao@codesourcery.com>
5867         * python/py-inferior.c: Update comments of infpy_read_memory
5868         and infpy_write_memory.
5870 2012-06-19  Tom Tromey  <tromey@redhat.com>
5872         PR exp/9514:
5873         * parser-defs.h (insert_type, insert_type_address_space): Declare.
5874         (push_type_address_space): Remove.
5875         * parse.c (insert_into_type_stack): New function.
5876         (insert_type): Likewise.
5877         (insert_type_address_space): Rename from push_type_address_space.
5878         Insert tp_space_identifier.
5879         * c-exp.y (ptr_operator): New production.
5880         (abs_decl): Use ptr_operator.
5881         (space_identifier): Call insert_type_address_space.
5882         (ptype): Don't use const_or_volatile_or_space_identifier.
5883         (const_or_volatile_noopt): Call insert_type.
5884         (conversion_type_id, conversion_declarator): New productions.
5885         (operator): Use conversion_type_id.
5887 2012-06-18  Doug Evans  <dje@google.com>
5889         * symtab.h (minimal_symbol): New member created_by_gdb.
5890         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5891         created by gdb.
5892         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5893         (search_symbols): Call it instead of lookup_symbol.
5894         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
5896         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5897         Adjust address for DW_OP_GNU_addr_index.
5898         * dwarf2expr.h (dwarf_expr_context): Update comment.
5899         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5900         all callers updated.  Handle TLS vars described with
5901         DW_OP_GNU_const_index.
5902         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5903         and DW_OP_GNU_const_index.
5904         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5906         * block.c (find_block_in_blockvector): Make explicit the fact that we
5907         ignore GLOBAL_BLOCK.
5909 2012-06-18  Tom Tromey  <tromey@redhat.com>
5911         * c-exp.y (operator): Remove trailing space after "delete" and
5912         "delete[]".
5914 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
5915             Jan Kratochvil  <jan.kratochvil@redhat.com>
5917         Switch i386 and derived targets to ON_STACK.
5918         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5919         (amd64_dicos_init_abi): Remove its installment.
5920         * dicos-tdep.c (dicos_init_abi): Remove the
5921         set_gdbarch_call_dummy_location call.  Update the comment here.
5922         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5923         (i386_dicos_init_abi): Remove its installment.
5924         * i386-tdep.c (i386_push_dummy_code): New function.
5925         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5926         i386_push_dummy_code.
5928 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5930         Remove stale dummy frames.
5931         * breakpoint.c: Include dummy-frame.h.
5932         (longjmp_breakpoint_ops): New variable.
5933         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5934         bp_longjmp_call_dummy.
5935         (bpstat_what, bptype_string, print_one_breakpoint_location)
5936         (init_bp_location): Support bp_longjmp_call_dummy.
5937         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
5938         (set_longjmp_breakpoint_for_call_dummy)
5939         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5940         functions.
5941         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5942         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
5943         FIXME comment and extend the other comment for bp_call_dummy.
5944         (set_longjmp_breakpoint_for_call_dummy)
5945         (check_longjmp_breakpoint_for_call_dummy): New declarations.
5946         * dummy-frame.c: Include gdbthread.h.
5947         (pop_dummy_frame_bpt): New function.
5948         (pop_dummy_frame): Call pop_dummy_frame_bpt.
5949         (dummy_frame_discard): New function.
5950         (cleanup_dummy_frames): Update the comment about longjmps.
5951         * dummy-frame.h (dummy_frame_discard): New declaration.
5952         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5953         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
5954         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
5955         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5956         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
5957         keep_going if IS_LONGJMP and there is no other reason to stop.
5959 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
5961         * remote-sim.c (sim_command_completer): Initialize
5962         variable 'result'.
5964 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5966         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5967         * dwarf2loc.c (call_site_parameter_matches): Support
5968         CALL_SITE_PARAMETER_PARAM_OFFSET.
5969         (needs_dwarf_reg_entry_value): Push stub value.
5970         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
5971         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5972         * gdbtypes.h (enum call_site_parameter_kind): New item
5973         CALL_SITE_PARAMETER_PARAM_OFFSET.
5974         (struct call_site.parameter.u): New field param_offset.
5976 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5978         Code cleanup: Generalize call_site.parameter key.
5979         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5980         variable dwarf_reg.  New variable kind_u.  Update parameters to
5981         push_dwarf_reg_entry_value.
5982         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5983         * dwarf2expr.h (enum call_site_parameter_kind)
5984         (union call_site_parameter_u): Forward declarations.
5985         (struct dwarf_expr_context_funcs): Update parameters and their
5986         description for push_dwarf_reg_entry_value.
5987         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5988         * dwarf2loc.c (call_site_parameter_matches): New function.
5989         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5990         description.  Use call_site_parameter_matches.
5991         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5992         Update parameters and their description.
5993         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5994         New variable kind_u.  Adjust the caller for updated parameters.
5995         (needs_dwarf_reg_entry_value): Update parameters.
5996         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
5997         instead of attr.  Update for the changed fields of struct
5998         call_site_parameter.
5999         * gdbtypes.h: Include dwarf2expr.h.
6000         (enum call_site_parameter_kind): New.
6001         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
6002         fb_offset into new union u.
6004 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
6006         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
6007         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
6008         for x32.
6010 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
6012         * amd64-linux-nat.c (compat_x32_clock_t): New.
6013         (compat_x32_siginfo_t): Likewise.
6014         (compat_x32_siginfo_from_siginfo): Likewise.
6015         (siginfo_from_compat_x32_siginfo): Likewise.
6016         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
6017         and siginfo_from_compat_x32_siginfo for x32.
6019 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
6021         * tracepoint.c (tfile_xfer_partial): Add a lseek.
6023 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
6025         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
6026         instead of gdbarch_ptr_bit.
6027         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
6028         (amd64_supply_native_gregset): Likewise.
6029         (amd64_collect_native_gregset): Likewise.
6030         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
6031         (amd64_supply_xsave): Likewise.
6032         (amd64_collect_fxsave): Likewise.
6033         (amd64_collect_xsave): Likewise.
6035 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
6037         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
6038         (amd64_linux_read_description): Check DS segment register for
6039         x32 process.
6041 2012-06-15  Tom Tromey  <tromey@redhat.com>
6043         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
6044         init_cutu_and_read_dies.
6046 2012-06-15  Iain Sandoe <iain@codesourcery.com>
6048         * MAINTAINERS (Write After Approval): Add myself to the list.
6050 2012-06-15  Tom Tromey  <tromey@redhat.com>
6052         * valops.c (value_find_oload_method_list): Now static.
6053         * value.h (value_find_oload_method_list): Don't declare.
6055 2012-06-15  Tom Tromey  <tromey@redhat.com>
6057         * valops.c (find_overload_match): Use value_ind.
6059 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
6061         * infrun.c (handle_inferior_event): Correct indentation.
6063 2012-06-14  Doug Evans  <dje@google.com>
6065         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
6066         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
6067         All uses updated.
6068         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
6069         updated.  Handle DEBUG_LOC_START_LENGTH.
6070         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
6071         (loclist_describe_location): Ditto.
6073 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
6075         PR backtrace/13866
6076         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
6077         after hiding inline functions.
6079 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
6081         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
6082         _initialize_inf_ttrace.
6084 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
6086         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
6087         _initialize_hppa_hpux_nat.
6089 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
6091         * remote-sim.c (sim_command_completer): Change type of return
6092         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
6094 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
6095             Jan Kratochvil  <jan.kratochvil@redhat.com>
6097         PR tdep/14222
6098         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
6099         stack on a 16-byte boundary.
6101 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
6103         * jit.c (finalize_symtab): Set function's return type to 'void' by
6104         default.
6106 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
6107             H.J. Lu  <hongjiu.lu@intel.com>
6109         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
6110         Move bits common to both the classic LP64 and the new x32 ILP32
6111         ABI here.
6112         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
6113         (amd64_x32_linux_init_abi): New function.
6114         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
6115         subtype.
6117         * i386-tdep.h (i386_pseudo_register_name): New prototype.
6118         * i386-tdep.c (i386_pseudo_register_name): Make public.
6119         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
6120         * amd64-tdep.c (amd64_dword_names): Add "eip".
6121         (amd64_x32_pseudo_register_type): New function
6122         (amd64_x32_init_abi): New function.
6124 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6126         PR build/14003
6127         * inferior.h (struct inferior_suspend_state): Comment out.
6128         (struct inferior): Comment out the field suspend.
6129         * infrun.c (struct infcall_suspend_state): Comment out the field
6130         inferior_suspend.
6131         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6132         out its assignment.
6134 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6136         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6137         * c-exp.y (classify_inner_name): Remove caller assumptions in the
6138         function comment.  Return ERROR for unresolved cases.  Implement
6139         returning proper NAME.
6140         (yylex): Accept also NAME from classify_inner_name.
6141         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6142         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
6143         LOC_TYPEDEF type.
6144         * cp-support.h (cp_lookup_nested_type): Update its declaration.
6146 2012-06-13  Tom Tromey  <tromey@redhat.com>
6148         * breakpoint.c (condition_completer): New function.
6149         (_initialize_breakpoint): Use it.
6150         * value.c (complete_internalvar): New function.
6151         * value.h (complete_internalvar): Declare.
6153 2012-06-13  Tom Tromey  <tromey@redhat.com>
6155         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6156         * breakpoint.c (catch_syscall_completer): Return a VEC.
6157         * cli/cli-cmds.c (complete_command): Update.
6158         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6159         (complete_on_enum): Likewise.
6160         * command.h: Include gdb_vecs.h.
6161         (completer_ftype): Change return type.
6162         (complete_on_cmdlist, complete_on_enum): Likewise.
6163         * completer.c (noop_completer, filename_completer)
6164         (location_completer): Return a VEC.
6165         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
6166         to a VEC.
6167         (expression_completer, complete_line_internal, complete_line)
6168         (command_completer): Return a VEC.
6169         (gdb_completion_word_break_characters, line_completion_function):
6170         Update.
6171         * completer.h: Include gdb_vecs.h.
6172         (complete_line, noop_completer, filename_completer)
6173         (expression_completer, location_completer, command_completer):
6174         Update.
6175         * f-lang.c (f_word_break_characters): Return a VEC.
6176         * interps.c (interpreter_completer): Return a VEC.
6177         * language.h (struct language_defn)
6178         <la_make_symbol_completion_list>: Return a VEC.
6179         * python/py-cmd.c (cmdpy_completer): Return a VEC.
6180         * symtab.c (free_completion_list): Take a VEC.
6181         (return_val_size, return_val_index): Remove.
6182         (return_val): Now a VEC.
6183         (completion_list_add_name): Update.
6184         (default_make_symbol_completion_list_break_on)
6185         (default_make_symbol_completion_list, make_symbol_completion_list)
6186         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6187         Return a VEC.
6188         (add_filename_to_list): Update.
6189         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6190         <list>: Now a VEC.
6191         (maybe_add_partial_symtab_filename): Update.
6192         (make_source_files_completion_list): Return a VEC.
6193         * symtab.h (default_make_symbol_completion_list_break_on)
6194         (default_make_symbol_completion_list, make_symbol_completion_list)
6195         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6196         (make_source_files_completion_list): Update.
6198 2012-06-13  Tom Tromey  <tromey@redhat.com>
6200         * breakpoint.c (add_catch_command): Use completer_ftype.
6201         * breakpoint.h: Include command.h.
6202         (add_catch_command): Use completer_ftype.
6203         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6204         * cli/cli-decode.h (struct cmd_list_element) <completer>:
6205         Use completer_ftype.
6206         * command.h (completer_ftype): New typedef.
6207         (set_cmd_completer): Use it.
6208         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6209         completer_ftype.
6211 2012-06-13  Pedro Alves  <palves@redhat.com>
6213         Partial revert of previous change.
6215         * serial.c (scb_base): New global.
6216         (serial_for_fd): New.
6217         (serial_open, serial_fdopen_ops): Link new serial in open serials
6218         chain.
6219         (do_serial_close): Unlink serial from the open serials chain.
6221 2012-06-12  Pedro Alves  <palves@redhat.com>
6223         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6224         threads here.
6225         (prepare_for_detach): No longer context switch here in non-stop
6226         mode.
6227         (fetch_inferior_event): Ditto.
6228         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6229         to the event thread before removing breakpoints.  Switch to the
6230         event thread before inserting breakpoints and resuming.
6231         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6232         event thread before resuming.
6233         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6234         Switch to the event thread before removing breakpoints.
6236 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
6238         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6239         special characters correctly for the Windows shells.  See
6240         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6241         report.
6242         [!__MINGW32__]: Remove extra double quote character from special
6243         characters.
6245 2012-06-11  Stan Shebs  <stan@codesourcery.com>
6247         * ui-out.h: Remove #if 0 declarations.
6248         * ui-out.c: Remove #if 0 functions.
6250 2012-06-11  Pedro Alves  <palves@redhat.com>
6252         * ser-base.c (run_async_handler_and_reschedule): New.
6253         (fd_event, push_event): Use it.
6254         * serial.c (serial_open, serial_fdopen_ops): Set the initial
6255         reference count to 1.
6256         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
6257         instead of xfree.
6258         (serial_is_open, serial_ref, serial_unref): New.
6259         * serial.h (serial_open): Adjust comment.
6260         (serial_is_open): Declare.
6261         (serial_close): Adjust comment.
6262         (serial_ref, serial_unref) Declare.
6263         (struct serial): New field 'refcnt'.
6265 2012-06-11  Pedro Alves  <palves@redhat.com>
6267         Remove #if 0'd "connect" command, and unnecessary associated
6268         refcounting and serial reuse bits.
6270         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6271         * serial.c (last_serial_opened): Delete.
6272         (scb_base): Delete.
6273         (serial_open): Adjust.
6274         (serial_for_fd): Delete.
6275         (serial_fdopen_ops, do_serial_close): Adjust.
6276         (serial_fdopen_ops): Adjust.
6278 2012-06-11  Pedro Alves  <palves@redhat.com>
6280         * serial.c (do_serial_close): Remove early return when SCB is
6281         null.
6283 2012-06-11  Tom Tromey  <tromey@redhat.com>
6285         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6287 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6289         Fix regression by the "ambiguous linespec" series.
6290         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
6291         get_last_displayed_symtab and get_last_displayed_line and depending
6292         on CURSAL.
6294 2012-06-11  Tom Tromey  <tromey@redhat.com>
6296         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6297         (dw2_find_symbol_file): Use it.
6299 2012-06-11  Michael Eager  <eager@eagercon.com>
6301         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6302         * mips-linux-tdep.h (mips_signals): New
6304 2012-06-11  Tom Tromey  <tromey@redhat.com>
6306         * infrun.c (handle_inferior_event)
6307         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6308         breakpoint.
6309         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6310         exception logic in all cases.  Update comments.
6311         (insert_longjmp_resume_breakpoint): Set the exception resume
6312         breakpoint.
6314 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
6316         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6318 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
6320         * valarith.c (binop_types_user_defined_p): Fix a typo.
6322 2012-06-08  Yao Qi  <yao@codesourcery.com>
6323             Chung-Lin Tang <cltang@codesourcery.com>
6325         * arch-utils.c (default_return_in_first_hidden_param_p): New.
6326         * arch-utils.h: Declare.
6327         * gdbarch.sh: Add return_in_first_hidden_param_p.
6328         * gdbarch.c, gdbarch.h: Regenerated.
6329         * infcall.c (call_function_by_hand): Call
6330         gdbarch_return_in_first_hidden_param_p instead of
6331         language_pass_by_reference.
6333         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6334         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6335         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6336         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6337         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6338         `cplus_return_struct_by_reference'.
6339         (tic6x_return_value): Handle language cplusplus.
6340         (tic6x_return_in_first_hidden_param_p): New.
6341         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6343 2012-06-07  Doug Evans  <dje@google.com>
6345         * dwarf2read.c (dwarf2_cu): Add comment.
6347 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6349         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6350         variable.
6351         (mips_eabi_push_dummy_call): Likewise.
6352         (mips_n32n64_push_dummy_call): Likewise.
6353         (mips_o32_push_dummy_call): Likewise.
6354         (mips_o64_push_dummy_call): Likewise.
6356 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6358         * mips-tdep.c (mips_convert_register_p): Correct coding style.
6360 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6362         * mips-tdep.c (mips_pseudo_register_type): Use
6363         mips_float_register_p.
6365 2012-06-06  Pedro Alves  <palves@redhat.com>
6367         * infrun.c (handle_inferior_event): Remove calls to
6368         reinit_frame_cache that follow a context_switch call.
6370 2012-06-06  Pedro Alves  <palves@redhat.com>
6372         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6373         context_switch and remove stale comment.
6375 2012-06-06  Pedro Alves  <palves@redhat.com>
6377         * infrun.c (struct execution_control_state): Remove
6378         `new_thread_event' field.
6379         (handle_inferior_event): Simplify new threads handling; don't
6380         resume the inferior if we find a new thread.
6382 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
6384         * NEWS: Document the deprecation of SH's 'regs' command.
6385         * inferior.h (all_registers_info): Add function declaration.
6386         * sh-tdep.c (sh_show_regs): Remove variable.
6387         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6388         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6389         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6390         (sh_show_regs_command): Remove functions.
6391         (sh_gdbarch_init): Don't set sh_show_regs.
6392         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6393         'info all-registers'.
6394         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6395         (sh64_show_regs): Remove functions.
6396         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6398 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6400         * configure.ac: Move development=true below AC_INIT.
6401         * configure: Regenerate.
6403 2012-06-05  Stan Shebs  <stan@codesourcery.com>
6405         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6406         gdb_stdout.
6408 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6410         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6411         argument as ssize_t.
6412         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6413         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6414         * target.c (target_read_stack, target_write_memory)
6415         (target_write_raw_memory): Likewise.
6416         * target.h (target_read_stack, target_write_memory)
6417         (target_write_raw_memory): Likewise.
6419 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6421         * symfile-mem.c: Change gdb_static_assert to ssize_t.
6422         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6423         * target.c (target_read_memory): Change LEN to ssize_t.
6424         * target.h (target_read_memory): Change LEN to ssize_t.
6426 2012-06-05  Pedro Alves  <palves@redhat.com>
6428         PR backtrace/13866
6430         * breakpoint.c (until_break_command): Only fetch the selected
6431         frame after decode_line_1.
6433 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
6435         * solib-svr4.c (enable_break): Don't fallback to setting the solib
6436         event breakpoint at _start, __start or main if a program
6437         interpreter is not found.
6439 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6441         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6442         Add declaration.
6443         * windows-tdep.c: #include "objfiles.h".
6444         (windows_iterate_over_objfiles_in_search_order): New function.
6445         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6446         iterate_over_objfiles_in_search_order gdbarch method to
6447         windows_iterate_over_objfiles_in_search_order.
6448         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6450 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6452         * gdbarch.sh: Add generation of
6453         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6454         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
6455         (iterate_over_objfiles_in_search_order): New gdbarch method.
6456         * gdbarch.h, gdbarch.c: Regenerate.
6457         * objfiles.h (default_iterate_over_objfiles_in_search_order):
6458         Add declaration.
6459         * objfiles.c (default_iterate_over_objfiles_in_search_order):
6460         New function.
6461         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6462         out of lookup_symbol_aux_symtabs.
6463         (lookup_symbol_aux_symtabs): Replace extracted-out code by
6464         call to lookup_symbol_aux_objfile.
6465         (struct global_sym_lookup_data): New type.
6466         (lookup_symbol_global_iterator_cb): New function.
6467         (lookup_symbol_global): Search for symbol using
6468         gdbarch_iterate_over_objfiles_in_search_order and
6469         lookup_symbol_global_iterator_cb.
6470         * findvar.c (struct minsym_lookup_data): New type.
6471         (minsym_lookup_iterator_cb): New function.
6472         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6473         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6474         and minsym_lookup_iterator_cb.
6476 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6478         Revert the following patch:
6479         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6480         try locating the symbol in the symbol's own objfile first, before
6481         extending the search to all objfiles.
6482         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6483         out of lookup_symbol_aux_symtabs.
6484         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6485         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6486         Do not search EXCLUDE_OBJFILE.
6487         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6488         (lookup_symbol_global): Search for matches in the block's objfile
6489         first, before searching all other objfiles.
6491 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6493         * breakpoint.c (find_condition_and_thread): Stop parsing
6494         as soon as the first invalid keyword is found.
6496 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6498         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6500 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6502         * config/djgpp/djcheck.sh: Add copyright header.
6504 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6506         * copyright.py (update_files, main): Fix path to update-copyright
6507         script.
6509 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6511         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6512         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6513         for which a reminder to update by hand is printed.
6515 2012-06-04  Doug Evans  <dje@google.com>
6517         * buildsym.c (make_blockvector): Add comment.
6519 2012-06-04  Pedro Alves  <palves@redhat.com>
6521         * arch-utils.c (default_gdb_signal_from_target): Delete.
6522         * arch-utils.h (default_gdb_signal_from_target): Delete.
6523         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
6524         gdbarch_gdb_signal_from_target_p.
6525         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6526         predicate).
6527         * gdbarch.h: Regenerate.
6528         * gdbarch.c: Regenerate.
6530 2012-06-04  Pedro Alves  <palves@redhat.com>
6532         * gdbarch.sh (gdb_signal_from_target): Mention that the
6533         implementation of the method must be host independent.
6534         * gdbarch.h: Regenerate.
6536 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6538         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6539         parameters.
6540         (target_read_memory_bfd): New function.
6541         (symbol_file_add_from_memory): Use it.
6543 2012-06-03  Doug Evans  <dje@google.com>
6545         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6546         of primary symtab.
6547         (basic_lookup_transparent_type): Ditto.
6549         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6550         (ALL_PRIMARY_SYMTABS): Use it.
6551         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6552         * dwarf2read.c (dw2_find_symbol_file): Ditto.
6553         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6554         * symtab.c (lookup_symbol_aux_objfile): Ditto.
6555         (basic_lookup_transparent_type): Ditto.
6557 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6559         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
6560         it to optimize resolution of demangled name.
6562 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6564         * configure.ac (development): Define new variable.
6565         Call AC_CHECK_LIB for mcheck if $development.
6566         (ERROR_ON_WARNING): Enable it by default only if $development.
6567         * config.in: Regenerate.
6568         * configure: Regenerate.
6570 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6572         * target.c (target_read_memory): Make LEN argument as size_t.
6573         * target.h (target_read_memory): Likewise.
6575 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6577         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6579 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6581         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6582         BookE interface for PowerPC server processors if not available
6583         in the Linux Kernel.
6585 2012-05-31  Keith Seitz  <keiths@redhat.com>
6587         * linespec.c (decode_objc): Add cleanup to free
6588         INFO.FILE_SYMTABS.
6589         (find_linespec_symbols): Add cleanup to free CLASSES.
6590         * symfile.c (find_separate_debug_file_by_debuglink): Add
6591         cleanup to free DEBUGLINK.
6592         * ui-out.c (clear_header_list): No need to check if
6593         HEADER_NEXT.COLHDR is NULL.
6594         Free HEADER_NEXT.COL_NAME.
6596 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6598         * ada-lang.c (standard_lookup): Prevent uninitialized variable
6599         warning.
6601 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
6603         * configure.host (gdb_host_cpu): Handle tilegx*.
6604         (gdb_host): Handle tilegx-*-linux*.
6605         * tilegx-linux-nat.c: New file.
6606         * config/tilegx/linux.mh: New file.
6608 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
6610         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6611         tilegx-linux-tdep.o.
6612         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6613         tilegx-linux-tdep.c.
6614         * configure.tgt: Handle tilegx-*-linux*.
6615         * tilegx-tdep.h: New file.
6616         * tilegx-tdep.c: New file.
6617         * tilegx-linux-tdep.c: New file.
6618         * regformats/reg-tilegx.dat: New file.
6620 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6622         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6623         accounting of hw watchpoints on ppc.
6625 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
6627         * source.c (openp): Expand tilde in path entries.
6629 2012-05-29  Doug Evans  <dje@google.com>
6631         * buildsym.c (block_compar): Fix comment.
6632         (end_symtab): Fix and clarify some comments.
6634         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6635         cleanup_undefined_types.
6636         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6637         All callers updated.
6639 2012-05-29  Tom Tromey  <tromey@redhat.com>
6641         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6642         fails.
6643         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6644         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6645         fails.
6646         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6647         fails.
6649 2012-05-29  Tristan Gingold  <gingold@adacore.com>
6651         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6652         (struct darwin_info): ... New struct.
6653         (solib_darwin_pspace_data): New variable.
6654         (darwin_pspace_data_cleanup): New function.
6655         (get_darwin_info): Likewise.
6656         (darwin_dyld_version_ok, darwin_load_image_infos)
6657         (darwin_solib_get_all_image_info_addr_at_init)
6658         (darwin_solib_read_all_image_info_addr): Add info argument.
6659         Adjust code.
6660         (darwin_current_sos): Use per pspace structure.
6661         (darwin_solib_create_inferior_hook): Likewise.
6662         (darwin_clear_solib): Likewise.
6663         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6665 2012-05-28  Pedro Alves  <palves@redhat.com>
6667         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6668         block that uses them.  Clear ecss before handling each event.
6670 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6672         * solib-svr4.c (svr4_current_sos): New comment on
6673         svr4_current_sos_via_xfer_libraries fall back.
6675 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6677         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
6678         it as a fallback for TYPE_IS_OPAQUE.
6679         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6680         symbols for lookup_symbol.
6682 2012-05-24  John Steele Scott  <toojays@toojays.net>
6684         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6685         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6686         (producer_is_gxx_lt_4_6): Move the checking and caching to...
6687         (check_producer): ... this new function, which also checks for ICC
6688         and caches the result.
6689         (producer_is_icc): New function.
6690         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6691         producer was ICC.
6693 2012-05-24  Pedro Alves  <palves@redhat.com>
6695         PR gdb/7205
6697         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6698         (default_gdb_signal_to_target): ... this.  Add comment.
6699         (default_gdb_signal_from_host): Rename to ...
6700         (default_gdb_signal_from_target): ... this.  Add comment.
6701         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6702         (default_gdb_signal_to_target): ... this.
6703         (default_gdb_signal_from_host): Rename to ...
6704         (default_gdb_signal_from_target): ... this.
6705         * corelow.c (core_open): Adjust to naming change.  Replace comment.
6706         * gdbarch.sh (gdb_signal_from_host): Rename to ...
6707         (gdb_signal_from_target): ... this.  Adjust to
6708         default_gdb_signal_from_host naming change.  Extend comment.
6709         (gdb_signal_to_host): Rename to ...
6710         (gdb_signal_to_target): ... this.  Adjust to
6711         default_gdb_signal_to_host naming change.
6712         * gdbarch.h, gdbarch.c: Renegerate.
6714 2012-05-24  Pedro Alves  <palves@redhat.com>
6716         PR gdb/7205
6718         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6720 2012-05-24  Pedro Alves  <palves@redhat.com>
6722         PR gdb/7205
6724         Replace target_signal with gdb_signal throughout.
6726 2012-05-24  Pedro Alves  <palves@redhat.com>
6728         PR tui/14159
6730         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6731         string, instead of reusing the va_list argument.
6733 2012-05-24  Tom Tromey  <tromey@redhat.com>
6735         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6736         Remove.
6738 2012-05-23  Doug Evans  <dje@google.com>
6740         * symtab.c (search_symbols): Formatting fixes.
6741         (print_symbol_info): Formatting fixes.
6743         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6744         int64_t change to leb128 API.
6745         (read_encoded_value, decode_frame_entry_1): Ditto.
6746         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6747         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6748         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6749         (execute_stack_op): Ditto.
6750         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6751         (safe_read_uleb128, safe_read_sleb128): Ditto.
6752         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6753         (dwarf2_compile_expr_to_ax): Ditto.
6754         (locexpr_describe_location_piece): Ditto.
6755         (disassemble_dwarf_expression): Ditto.
6756         (locexpr_describe_location_1): Ditto.
6758 2012-05-23  Stan Shebs  <stan@codesourcery.com>
6759             Kwok Cheung Yeung  <kcy@codesourcery.com>
6761         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6762         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6763         (mi-cmd-info.o): New rule.
6764         * osdata.h (info_osdata_command): New declaration.
6765         * osdata.c (info_osdata_command): Change to non-static.
6766         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6767         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6768         * mi/mi-cmd-info.c: New file.
6770 2012-05-23  Doug Evans  <dje@google.com>
6772         * symtab.c (search_symbols): Pass NULL for file_matcher to
6773         expand_symtabs_matching if there are no files to match.
6775         * gdbtypes.c (lookup_typename): Simplify.
6777 2012-05-23  Pedro Alves  <palves@redhat.com>
6779         * arch-utils.h (default_target_signal_to_host): Delete.
6780         * arch-utils.c (default_target_signal_to_host): Delete.
6781         * gdbarch.sh (target_signal_to_host): Remove.
6782         * gdbarch.h, gdbarch.c: Regenerate.
6784 2012-05-22  Doug Evans  <dje@google.com>
6786         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6787         "const gdb_byte *".
6788         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6789         (execute_cfa_program): Update to match API of leb128 functions.
6790         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6791         "const gdb_byte *".
6792         (read_unsigned_leb128, read_signed_leb128): Delete.
6793         (read_initial_length): Change type of buf argument to
6794         "const gdb_byte *".
6795         (read_encoded_value): Update to match API of leb128 functions.
6796         (decode_frame_entry): Change result to "const gdb_byte *", and
6797         similarly for "start" parameter.
6798         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
6799         (dwarf2_build_frame_info): Change local frame_ptr to
6800         "const gdb_byte *".
6801         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6802         read_uleb128, read_sleb128.  All callers updated.
6803         (safe_skip_leb128): New function.
6804         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6805         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6806         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6807         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
6808         read_uleb128, read_sleb128.
6809         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6810         (execute_stack_op): Update to match API of leb128 functions.
6811         * dwarf2expr.h: #include "leb128.h".
6812         (read_uleb128, read_sleb128): Delete.
6813         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6814         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6815         * dwarf2loc.c (debug_loc_kind): New enum.
6816         (decode_debug_loc_addresses): New function.
6817         (decode_debug_loc_dwo_addresses): New function.
6818         (dwarf2_find_location_expression): Rewrite.
6819         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6820         (locexpr_describe_location_piece): Ditto.
6821         (disassemble_dwarf_expression): Ditto.
6822         (locexpr_describe_location_1): Ditto.
6823         (loclist_describe_location): Rewrite.
6824         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6825         * dwarf2read.c (die_reader_specs): New member "buffer_end".
6826         (dwarf2_section_buffer_overflow_complaint): Renamed from
6827         dwarf2_macros_too_long_complaint.  All callers updated.
6828         (skip_leb128): Delete.
6829         (init_cu_die_reader): Initialize reader->buffer_end.
6830         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6831         (skip_form_bytes): New arg buffer_end.  All callers updated.
6832         Replace call to skip_leb128 with gdb_skip_leb128.
6833         (skip_unknown_opcode): New arg mac_end.  All callers updated.
6834         (fill_in_loclist_baton): Initialize baton->from_dwo.
6836 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6838         * mips-linux-nat.c (mips_linux_read_description): Use a more
6839         verbose error message.
6841 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6843         * NEWS: Add MIPS/Linux DSP support.
6844         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6845         (SIGCONTEXT_DSPCTL): New macro.
6846         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6847         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6848         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6849         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6850         (N64_SIGCONTEXT_HI3): Likewise.
6851         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6852         (N64_SIGCONTEXT_LO3): Likewise.
6853         (N64_SIGCONTEXT_DSPCTL): Likewise.
6854         (N64_SIGCONTEXT_FPCSR): Clarify definition.
6855         (mips_linux_o32_sigframe_init): Handle DSP registers.
6856         (mips_linux_n32n64_sigframe_init): Likewise.
6858 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6860         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6861         call to abort.
6863 2012-05-22  Pedro Alves  <palves@redhat.com>
6865         * target.h (store_waitstatus): Move declaration ...
6866         * inf-child.h (store_waitstatus): ... here.
6867         * target.c: Move inclusion of gdb_wait.h, and ...
6868         (store_waitstatus): ... this ...
6869         * inf-child.c: ... here.
6870         * linux-nat.c: Include inf-child.h.
6871         * rs6000-nat.c: Include inf-child.h.
6872         * spu-linux-nat.c: Include inf-child.h.
6874 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6876         * tracepoint.c (start_tracing): Add missing i18n markup.
6877         (stop_tracing, set_trace_user): Ditto.
6878         (set_trace_notes, set_trace_stop_notes): Ditto.
6880 2012-05-21  Tom Tromey  <tromey@redhat.com>
6882         PR c++/7173:
6883         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6884         types.
6885         * value.h (value_cast_pointers): Update.
6886         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6887         (value_cast): Update.
6888         (update_search_result): New function.
6889         (do_search_struct_field): New, from search_struct_field.  Check
6890         for ambiguous results.
6891         (search_struct_field): Rewrite.
6892         * infcall.c (value_arg_coerce): Update.
6893         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6894         value_cast_pointers.
6895         * ada-lang.c (ada_convert_actual): Update.
6897 2012-05-21  Tom Tromey  <tromey@redhat.com>
6899         * macroexp.c (macro_stringify): Terminate the string.
6901 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6903         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6904         Describe it.
6905         * auto-load.c (auto_load_expand_dir_vars): New function.
6906         (auto_load_safe_path_vec_update): Use it, remove the
6907         substitute_path_component call thanks to it.
6908         (auto_load_objfile_script): Remove the debug_file_directory processing.
6909         Use auto_load_expand_dir_vars, remove the substitute_path_component
6910         call thanks to it.
6911         * configure: Regenerate.
6912         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6913         path.  Escape $ also for $debugdir.
6914         (--with_auto_load_safe_path): Escape $ also for $debugdir.
6915         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6917 2012-05-20  Doug Evans  <dje@google.com>
6919         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6920         before use.  Check for symtab->includes == NULL before scanning it.
6922 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6924         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6926 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6928         * NEWS: Add microMIPS support and "set mips compression",
6929         "show mips compression" commands.
6930         * mips-tdep.h (mips_isa): New enum.
6931         (gdbarch_tdep): Add mips_isa.
6932         (mips_pc_is_mips16): Update prototype.
6933         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6934         * mips-tdep.c (mips_compression_mips16): New variable.
6935         (mips_compression_micromips): Likewise.
6936         (mips_compression_strings): Likewise.
6937         (mips_compression_string): Likewise.
6938         (is_mips16_isa, is_micromips_isa): New functions.
6939         (is_mips16_addr): Rename to...
6940         (is_compact_addr): ... this.
6941         (unmake_mips16_addr): Likewise to...
6942         (unmake_compact_addr): ... this.
6943         (make_mips16_addr): Likewise to...
6944         (make_compact_addr): ... this.
6945         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6946         functions.
6947         (mips_elf_make_msymbol_special): Handle microMIPS code.
6948         (msymbol_is_special): Rename to...
6949         (msymbol_is_mips16): ... this.
6950         (mips_make_symbol_special, mips_pc_is_mips16): Update
6951         accordingly.
6952         (msymbol_is_mips, msymbol_is_micromips): New functions.
6953         (mips16_to_32_reg): Rename to...
6954         (mips_reg3_to_reg): ... this.
6955         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6956         (mips_pc_isa): Likewise.
6957         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6958         code.
6959         (mips_fetch_instruction): Pass return status instead of printing
6960         an error message if requested.  Handle microMIPS code.  Bail out
6961         on an invalid ISA.
6962         (micromips_op): New macro.
6963         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6964         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6965         (b6s4_op, b7s3_reg): Likewise.
6966         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6967         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6968         (mips_insn_size): New function.
6969         (mips32_next_pc): Update mips_fetch_instruction call.
6970         (micromips_relative_offset7): New function.
6971         (micromips_relative_offset10): Likewise.
6972         (micromips_relative_offset16): Likewise.
6973         (micromips_pc_insn_size): Likewise.
6974         (micromips_bc1_pc): Likewise.
6975         (micromips_next_pc): Likewise.
6976         (unpack_mips16): Update mips_fetch_instruction call.
6977         (extended_mips16_next_pc): Update according to change to
6978         mips16_to_32_reg.
6979         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
6980         code.
6981         (mips16_scan_prologue): Update mips_fetch_instruction call.
6982         Update according to change to mips16_to_32_reg.
6983         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6984         (mips_insn16_frame_base_sniffer): Likewise.
6985         (micromips_decode_imm9): New function.
6986         (micromips_scan_prologue): Likewise.
6987         (mips_micro_frame_cache): Likewise.
6988         (mips_micro_frame_this_id): Likewise.
6989         (mips_micro_frame_prev_register): Likewise.
6990         (mips_micro_frame_sniffer): Likewise.
6991         (mips_micro_frame_unwind): New variable.
6992         (mips_micro_frame_base_address): New function.
6993         (mips_micro_frame_base): New variable.
6994         (mips_micro_frame_base_sniffer): New function.
6995         (mips32_scan_prologue): Update mips_fetch_instruction call.
6996         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6997         rather than for MIPS16.
6998         (mips_insn32_frame_base_sniffer): Likewise.
6999         (mips_addr_bits_remove): Handle microMIPS code.
7000         (deal_with_atomic_sequence): Rename to...
7001         (mips_deal_with_atomic_sequence): ... this.  Update the type
7002         of the variable used to hold an instruction.  Remove the ISA bit
7003         check.  Update mips_fetch_instruction call.
7004         (micromips_deal_with_atomic_sequence): New function.
7005         (deal_with_atomic_sequence): Likewise.
7006         (mips_about_to_return): Handle microMIPS code.  Update
7007         mips_fetch_instruction call.
7008         (heuristic_proc_start): Check for the standard MIPS ISA rather
7009         than for MIPS16.  Update mips_pc_is_mips16 and
7010         mips_fetch_instruction calls.  Handle microMIPS code.
7011         (mips_push_dummy_code): Handle microMIPS code.
7012         (mips_eabi_push_dummy_call): Likewise.
7013         (mips_o32_return_value): Update mips_pc_is_mips16 call.
7014         (mips_o64_push_dummy_call): Handle microMIPS code.
7015         (mips_o64_return_value): Update mips_pc_is_mips16 call.
7016         (is_delayed): Remove function.
7017         (mips_single_step_through_delay): Replace the call to is_delayed
7018         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
7019         Handle microMIPS code.
7020         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
7021         microMIPS code.
7022         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
7023         call.
7024         (micromips_in_function_epilogue_p): New function.
7025         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
7026         call.
7027         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
7028         Handle microMIPS.
7029         (gdb_print_insn_mips): Likewise.
7030         (mips_breakpoint_from_pc): Likewise.
7031         (mips_remote_breakpoint_from_pc): New function.
7032         (mips32_instruction_has_delay_slot): Simplify making use of the
7033         updated mips_fetch_instruction interface.
7034         (micromips_instruction_has_delay_slot): New function.
7035         (mips16_instruction_has_delay_slot): Simplify making use of the
7036         updated mips_fetch_instruction interface.
7037         (mips_adjust_breakpoint_address): Check for the standard MIPS
7038         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
7039         calls.  Handle microMIPS code.
7040         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
7041         (mips_skip_trampoline_code): Handle microMIPS code.
7042         (global_mips_compression): New function.
7043         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
7044         file flags.  Register the microMIPS remote breakpoint handler
7045         and heuristic frame unwinder.
7046         (show_mips_compression): New function.
7047         (_initialize_mips_tdep): Add the "set mips compression" and
7048         "show mips compression" commands.
7050 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
7052         * ada-lang.c:
7053         * ada-tasks.c:
7054         * ada-varobj.c:
7055         * amd64-darwin-tdep.c:
7056         * arm-symbian-tdep.c:
7057         * arm-tdep.c:
7058         * avr-tdep.c:
7059         * ax-gdb.c:
7060         * bfin-linux-tdep.c:
7061         * breakpoint.c:
7062         * c-valprint.c:
7063         * cli/cli-cmds.c:
7064         * coffread.c:
7065         * cp-support.c:
7066         * cris-tdep.c:
7067         * dwarf2-frame-tailcall.c:
7068         * dwarf2-frame.c:
7069         * dwarf2expr.c:
7070         * dwarf2loc.c:
7071         * dwarf2read.c:
7072         * elfread.c:
7073         * eval.c:
7074         * expprint.c:
7075         * f-valprint.c:
7076         * frv-tdep.c:
7077         * h8300-tdep.c:
7078         * hppa-hpux-tdep.c:
7079         * hppa-tdep.c:
7080         * hppanbsd-tdep.c:
7081         * i386-nto-tdep.c:
7082         * i386-tdep.c:
7083         * i387-tdep.c:
7084         * ia64-tdep.c:
7085         * jit.c:
7086         * linespec.c:
7087         * linux-tdep.c:
7088         * lm32-tdep.c:
7089         * m2-valprint.c:
7090         * m32c-tdep.c:
7091         * m32r-rom.c:
7092         * m32r-tdep.c:
7093         * m68k-tdep.c:
7094         * m68klinux-tdep.c:
7095         * mi/mi-main.c:
7096         * microblaze-tdep.c:
7097         * mips-linux-tdep.c:
7098         * mips-tdep.c:
7099         * mn10300-tdep.c:
7100         * p-valprint.c:
7101         * parse.c:
7102         * ppc-linux-tdep.c:
7103         * ppc-sysv-tdep.c:
7104         * printcmd.c:
7105         * python/py-finishbreakpoint.c:
7106         * python/py-inferior.c:
7107         * python/py-infthread.c:
7108         * python/py-type.c:
7109         * python/python.c:
7110         * remote-fileio.c:
7111         * remote-m32r-sdi.c:
7112         * remote-mips.c:
7113         * reverse.c:
7114         * rl78-tdep.c:
7115         * rs6000-aix-tdep.c:
7116         * rs6000-tdep.c:
7117         * s390-tdep.c:
7118         * score-tdep.c:
7119         * sh64-tdep.c:
7120         * skip.c:
7121         * solib-darwin.c:
7122         * solib-dsbt.c:
7123         * solib-frv.c:
7124         * sparc-tdep.c:
7125         * spu-multiarch.c:
7126         * spu-tdep.c:
7127         * stack.c:
7128         * symfile.c:
7129         * symtab.c:
7130         * tic6x-tdep.c:
7131         * tracepoint.c:
7132         * v850-tdep.c:
7133         * valarith.c:
7134         * valprint.c:
7135         * value.c:
7136         * xcoffread.c:
7137         * xtensa-tdep.c:
7138         * ada-lang.c:
7139         * ada-tasks.c:
7140         * ada-varobj.c:
7141         * amd64-darwin-tdep.c:
7142         * arm-symbian-tdep.c:
7143         * arm-tdep.c: Delete unused variables.
7145 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7147         Rename $ddir to $datadir.
7148         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7149         * auto-load.c (auto_load_safe_path_vec_update)
7150         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7151         * configure: Regenerate.
7152         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7153         Likewise.  Remove the 'use $ddir' help string.
7155 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7157         * auto-load.c (show_auto_load_safe_path): Accept any combination of
7158         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7160 2012-05-18  Tom Tromey  <tromey@redhat.com>
7162         PR exp/13907:
7163         * valprint.h (struct value_print_options) <symbol_print>: New
7164         field.
7165         * valprint.c (user_print_options): Add default for symbol_print.
7166         (show_symbol_print): New function.
7167         (generic_val_print): Respect symbol_print.
7168         (_initialize_valprint): Add "print symbol" setting.
7169         * f-valprint.c (f_val_print): Respect symbol_print.
7170         * c-valprint.c (c_val_print): Respect symbol_print.
7171         * NEWS: Update.
7172         * printcmd.c (print_address_symbolic): Return int.  Ignore some
7173         zero-size symbols.
7174         (print_address_demangle): Return int.
7175         * defs.h: (print_address_symbolic): Return int.
7176         * value.h (print_address_demangle): Return int.
7178 2012-05-18  Tom Tromey  <tromey@redhat.com>
7180         * valprint.c (val_print_string): Don't print leading space.
7181         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7182         print space before string or vtbl.
7183         * m2-valprint.c (print_unpacked_pointer): Optionally print space
7184         before string.
7185         * jv-valprint.c (java_value_print): Print space before string.
7186         * go-valprint.c (print_go_string): Print space before string.
7187         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7188         space before string.
7189         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7190         space before string or vtbl.
7191         * auxv.c (fprint_target_auxv): Print space after address.
7193 2012-05-18  Tom Tromey  <tromey@redhat.com>
7195         * printcmd.c (print_address_demangle): Remove special case for 0.
7197 2012-05-18  Tom Tromey  <tromey@redhat.com>
7199         * printcmd.c (print_address_demangle): Add 'opts' argument.
7200         * p-valprint.c (pascal_val_print): Update.
7201         * jv-valprint.c (java_val_print): Update.
7202         * value.h: Update.
7203         * valprint.c (generic_val_print): Update.
7204         (print_function_pointer_address): Add 'options' argument.  Remove
7205         'addressprint' argument.  Update.
7206         * m2-valprint.c (print_unpacked_pointer): Update.
7207         * gnu-v3-abi.c (print_one_vtable): Update.
7208         (gnuv3_print_method_ptr): Update.
7209         * f-valprint.c (f_val_print): Update.
7210         * cp-valprint.c (cp_print_value_fields): Update.
7211         * valprint.h (print_function_pointer_address): Update.
7212         * c-valprint.c (c_val_print): Update.
7214 2012-05-18  Tom Tromey  <tromey@redhat.com>
7216         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7217         directly corresponding to the found psymtab.
7218         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7219         (dw2_find_pc_sect_symtab): Use it.
7220         * block.h (blockvector_contains_pc): Declare.
7221         * block.c (find_block_in_blockvector): New function.
7222         (blockvector_for_pc_sect): Use it.
7223         (blockvector_contains_pc): New function.
7225 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
7227         * mips-tdep.h (mips_write_pc): New prototype.
7228         * mips-tdep.c (mips_write_pc): Make external, add description.
7229         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7230         add description.
7232 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
7234         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7235         mips_regnum->pc.
7236         (mips_unwind_pc, mips_write_pc): Likewise.
7237         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7238         gdbarch_read_pc.
7240 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
7242         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7243         proc_warn, proc_error, proc_get_status, proc_flags,
7244         proc_why, proc_what, proc_nsysarg, proc_sysargs,
7245         proc_set_run_on_last_close, proc_unset_run_on_last_close,
7246         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7247         proc_stop_process, proc_wait_for_stop, proc_run_process,
7248         proc_set_traced_signals, proc_set_traced_faults,
7249         proc_set_traced_sysentry, proc_set_traced_sysexit,
7250         proc_set_held_signals, proc_get_held_signals,
7251         proc_get_traced_signals, proc_get_traced_faults,
7252         proc_get_traced_sysentry, proc_get_traced_sysexit,
7253         proc_clear_current_fault, proc_set_current_signal,
7254         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7255         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7256         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7257         proc_get_current_thread, proc_get_current_thread,
7258         proc_get_current_thread, proc_update_threads,
7259         proc_update_threads, proc_update_threads, proc_update_threads,
7260         proc_iterate_over_threads, procfs_find_new_threads,
7261         procfs_pid_to_str): Make static.  Remove advance declaration.
7262         (proc_cursig): Make static.  Conditionalized defintion on
7263         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7264         (proc_syscall, proc_set_kill_on_last_close,
7265         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7266         proc_get_pending_signals, proc_get_signal_actions,
7267         proc_trace_signal, proc_ignore_signal): Delete.
7269 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7271         * coffread.c (cs_section_address): Passing proper argument for
7272         `bfd_get_section_vma'.
7273         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7274         `bfd_get_section_flags'.
7275         * remote.c (remote_trace_set_readonly_regions): Likewise, for
7276         `bfd_get_section_vma'.
7278 2012-05-16  Tom Tromey  <tromey@redhat.com>
7280         PR macros/13205:
7281         * macrotab.h: (macro_define_special): Declare.
7282         (enum macro_special_kind): New.
7283         (struct macro_definition) <argc, replacement>: Update comments.
7284         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7285         (macro_define_object_internal): New function.
7286         (macro_define_object): Use it.
7287         (macro_define_special): New function.
7288         (fixup_definition): New function.
7289         (macro_lookup_definition, foreach_macro_in_scope)
7290         (foreach_macro): Use fixup_definition.
7291         * macroexp.h (macro_stringify): Declare.
7292         * macroexp.c (free_buffer_return_text): New function.
7293         (stringify): Constify "arg".
7294         (macro_stringify): New function.
7295         * dwarf2read.c (macro_start_file): Call macro_define_special.
7297 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
7298             Maciej W. Rozycki  <macro@mips.com>
7300         * breakpoint.h (bp_location): Add related_address member.
7301         * inferior.h (get_return_value): Take a pointer to struct value
7302         instead of struct type for the function requested.
7303         * value.h (using_struct_return): Likewise.
7304         * gdbarch.sh (return_value): Take a pointer to struct value
7305         instead of struct type for the function requested.
7306         * breakpoint.c (set_breakpoint_location_function): Initialize
7307         related_address for bp_gnu_ifunc_resolver breakpoints.
7308         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7309         requested function's address to gdbarch_return_value.
7310         * eval.c (evaluate_subexp_standard): Pass the requested
7311         function's address to using_struct_return.
7312         * infcall.c (call_function_by_hand): Pass the requested
7313         function's address to using_struct_return and
7314         gdbarch_return_value.
7315         * infcmd.c (get_return_value): Take a pointer to struct value
7316         instead of struct type for the function requested.
7317         (print_return_value): Update accordingly.
7318         (finish_command_continuation): Likewise.
7319         * stack.c (return_command): Pass the requested function's
7320         address to using_struct_return and gdbarch_return_value.
7321         * value.c (using_struct_return): Take a pointer to struct value
7322         instead of struct type for the function requested.  Pass the
7323         requested function's address to gdbarch_return_value.
7324         * python/py-finishbreakpoint.c (finish_breakpoint_object):
7325         New function_value member, replacing function_type.
7326         (bpfinishpy_dealloc): Update accordingly.
7327         (bpfinishpy_pre_stop_hook): Likewise.
7328         (bpfinishpy_init): Likewise.  Record the requested function's
7329         address.
7330         * mips-tdep.c (mips_fval_reg): New enum.
7331         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7332         words put in GP registers.
7333         (mips_o64_push_dummy_call): Update a comment.
7334         (mips_o32_return_value): Take a pointer to struct value instead
7335         of struct type for the function requested and use it to check if
7336         using the MIPS16 calling convention.  Return the designated
7337         general purpose registers for floating-point values returned in
7338         MIPS16 mode.
7339         (mips_o64_return_value): Likewise.
7340         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7341         (ppc_sysv_abi_broken_return_value): Likewise.
7342         (ppc64_sysv_abi_return_value): Likewise.
7343         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7344         value instead of struct type for the function requested.
7345         * amd64-tdep.c (amd64_return_value): Likewise.
7346         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7347         * arm-tdep.c (arm_return_value): Likewise.
7348         * avr-tdep.c (avr_return_value): Likewise.
7349         * bfin-tdep.c (bfin_return_value): Likewise.
7350         * cris-tdep.c (cris_return_value): Likewise.
7351         * frv-tdep.c (frv_return_value): Likewise.
7352         * h8300-tdep.c (h8300_return_value): Likewise.
7353         (h8300h_return_value): Likewise.
7354         * hppa-tdep.c (hppa32_return_value): Likewise.
7355         (hppa64_return_value): Likewise.
7356         * i386-tdep.c (i386_return_value): Likewise.
7357         * ia64-tdep.c (ia64_return_value): Likewise.
7358         * iq2000-tdep.c (iq2000_return_value): Likewise.
7359         * lm32-tdep.c (lm32_return_value): Likewise.
7360         * m32c-tdep.c (m32c_return_value): Likewise.
7361         * m32r-tdep.c (m32r_return_value): Likewise.
7362         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7363         * m68k-tdep.c (m68k_return_value): Likewise.
7364         (m68k_svr4_return_value): Likewise.
7365         * m88k-tdep.c (m88k_return_value): Likewise.
7366         * mep-tdep.c (mep_return_value): Likewise.
7367         * microblaze-tdep.c (microblaze_return_value): Likewise.
7368         * mn10300-tdep.c (mn10300_return_value): Likewise.
7369         * moxie-tdep.c (moxie_return_value): Likewise.
7370         * mt-tdep.c (mt_return_value): Likewise.
7371         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7372         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7373         (ppc_sysv_abi_broken_return_value): Likewise.
7374         (ppc64_sysv_abi_return_value): Likewise.
7375         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7376         * rl78-tdep.c (rl78_return_value): Likewise.
7377         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7378         * rx-tdep.c (rx_return_value): Likewise.
7379         * s390-tdep.c (s390_return_value): Likewise.
7380         * score-tdep.c (score_return_value): Likewise.
7381         * sh-tdep.c (sh_return_value_nofpu): Likewise.
7382         (sh_return_value_fpu): Likewise.
7383         * sh64-tdep.c (sh64_return_value): Likewise.
7384         * sparc-tdep.c (sparc32_return_value): Likewise.
7385         * sparc64-tdep.c (sparc64_return_value): Likewise.
7386         * spu-tdep.c (spu_return_value): Likewise.
7387         * tic6x-tdep.c (tic6x_return_value): Likewise.
7388         * v850-tdep.c (v850_return_value): Likewise.
7389         * vax-tdep.c (vax_return_value): Likewise.
7390         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7391         * xtensa-tdep.c (xtensa_return_value): Likewise.
7392         * gdbarch.c: Regenerate.
7393         * gdbarch.h: Regenerate.
7395 2012-05-15  Tom Tromey  <tromey@redhat.com>
7397         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7399 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7401         * breakpoint.c (init_breakpoint_sal): Add quotes around part
7402         of command in two error message.
7404 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7406         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7408 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7410         * breakpoint.c (find_condition_and_thread): Minor reformatting.
7412 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7414         * NEWS (show auto-load scripts-directory): Add forgotten command.
7416 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7418         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7419         parameters.
7421 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7423         * amd64-tdep.c: Include features/i386/x32.c and
7424         features/i386/x32-avx.c.
7425         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7426         initialize_tdesc_x32_avx.
7428 2012-05-14  Stan Shebs  <stan@codesourcery.com>
7430         Add dynamic printf.
7431         * breakpoint.h (enum bptype): New type bp_dprintf.
7432         (struct breakpoint): New field extra_string.
7433         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7434         (create_breakpoint): Add extra_string arg.
7435         * breakpoint.c (dprintf_breakpoint_ops): New.
7436         (is_breakpoint): Add bp_dprintf.
7437         (bpstat_what): Add dprintf case.
7438         (bptype_string): Ditto.
7439         (print_one_breakpoint_location): Ditto.
7440         (init_bp_location): Ditto.
7441         (bkpt_print_mention): Ditto.
7442         (dprintf_style_enums): New array.
7443         (dprintf_style): New global.
7444         (dprintf_function): New global.
7445         (dprintf_channel): New global.
7446         (update_dprintf_command_list): New function.
7447         (update_dprintf_commands): New function.
7448         (init_breakpoint_sal): Add extra_string argument, handle it.
7449         (create_breakpoint_sal): Add extra_string argument.
7450         (create_breakpoints_sal): Add extra_string argument, update callers.
7451         (find_condition_and_thread): Add extra argument.
7452         (create_breakpoint): Add extra_string argument, record it.
7453         (dprintf_command): New function.
7454         (break_command_1): Add arg to create_breakpoint call.
7455         (handle_gnu_v3_exceptions): Ditto.
7456         (trace_command): Ditto.
7457         (ftrace_command): Ditto.
7458         (strace_command): Ditto.
7459         (bkpt_print_mention): Add dprintf case.
7460         (create_breakpoint_sal_default): Add extra_string argument.
7461         (_initialize_breakpoint): Add new commands.
7462         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7463         * python/py-breakpoint.c (bppy_init): Ditto.
7464         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7466 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
7468         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7470 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
7472         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7473         unsigned long long.
7475 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
7477         Add a new function gdb.find_pc_line to the Python API.
7478         * NEWS (Python Scripting): Add entry about the new function.
7479         * python/python.c (gdbpy_find_pc_line): New function which
7480         implements gdb.find_pc_line.
7481         (GdbMethods): Add entry for the new function.
7483 2012-05-12  Pedro Alves  <palves@redhat.com>
7485         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7486         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7488 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
7490         * inferior.c: Include completer.h
7491         (initialize_inferiors): Set completer of add-inferior to
7492         filename_completer.
7494 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7496         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7497         gdbarch_ptr_bit for x32 core dump.
7499 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7501         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7502         and features/i386/x32-avx-linux.c.
7504 2012-05-11  Stan Shebs  <stan@codesourcery.com>
7505             Kwok Cheung Yeung  <kcy@codesourcery.com>
7507         * NEWS: Describe new info os commands.
7508         * common/linux-osdata.c (PID_T, TIME_T): Define.
7509         (MAX_PID_T_STRLEN): New.
7510         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
7511         MAX_PID_T_STRLEN.
7512         (command_from_pid): Add comment.  Change to use PID_T.
7513         (commandline_from_pid):  Change to use PID_T.
7514         (user_from_pid): Add comment.
7515         (get_process_owner): Add comment. Change to use PID_T and
7516         MAX_PID_T_STRLEN.
7517         (get_number_of_cpu_cores): Add comment.
7518         (get_cores_used_by_process): Add comment.  Change to use PID_T and
7519         MAX_PID_T_STRLEN.
7520         (linux_xfer_osdata_processes): Change to use PID_T and
7521         MAX_PID_T_STRLEN.
7522         (compare_processes): New function.
7523         (linux_xfer_osdata_processgroups): New function.
7524         (linux_xfer_osdata_threads): Change to use PID_T.
7525         (linux_xfer_osdata_fds): New function.
7526         (format_socket_state, print_sockets): New functions.
7527         (union socket_addr): New union.
7528         (linux_xfer_osdata_isockets): New function.
7529         (time_from_time_t, group_from_gid): New functions.
7530         (linux_xfer_osdata_shm): New function.
7531         (linux_xfer_osdata_sem): New function.
7532         (linux_xfer_osdata_msg): New function.
7533         (linux_xfer_osdata_modules): New function.
7534         (osdata_table): Add new entries.
7535         * common/buffer.c (buffer_xml_printf): Add support for long and
7536         long long format specifiers.
7538 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7540         * amd64-linux-tdep.h (tdesc_x32_linux): New.
7541         (tdesc_x32_avx_linux): Likewise.
7543 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7545         Implement multi-component --with-auto-load-dir.
7546         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7547         entries.
7548         (--with-auto-load-safe-path): Update the default value description.
7549         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7550         New.
7551         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
7552         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
7553         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
7554         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
7555         "set auto-load scripts-directory".
7556         * config.in: Regenerate.
7557         * configure: Regenerate.
7558         * configure.ac (--with-auto-load-dir): New configure option.
7559         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7561 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7563         Provide $ddir substitution for --with-auto-load-safe-path.
7564         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7565         entries.
7566         * auto-load.c: Include observer.h.
7567         (auto_load_safe_path_vec_update): Call substitute_path_component for
7568         each component.  New variable ddir_subst.
7569         (auto_load_gdb_datadir_changed): New function.
7570         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7571         AUTO_LOAD_SAFE_PATH.  New comment.
7572         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7573         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
7574         * config.in: Regenerate.
7575         * configure: Regenerate.
7576         * configure.ac (--auto-load-safe-path): Rename
7577         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
7578         GDB_DATADIR/auto-load.
7579         * defs.h (substitute_path_component): New declaration.
7580         * top.c: Include observer.h.
7581         (set_gdb_datadir): New function.
7582         (init_main): Install it for "set data-directory".
7583         * utils.c (substitute_path_component): New function.
7585 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7587         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7588         * auto-load.c (auto_load_objfile_script): Remove check for NULL
7589         DEBUG_FILE_DIRECTORY.  Handle multiple components of
7590         DEBUG_FILE_DIRECTORY.
7592 2012-05-10  Tom Tromey  <tromey@redhat.com>
7594         * dwarf2read.c (recursively_write_psymbols): New function.
7595         (write_psymtabs_to_index): Use it.
7597         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7598         field.
7599         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7600         (load_partial_comp_unit): Update.
7601         (queue_comp_unit): Add argument 'pretend_language'.
7602         (process_queue): Update.
7603         (psymtab_to_symtab_1): Skip dependencies that have a user.
7604         (load_partial_comp_unit_reader): Give meaning to the 'data'
7605         argument.
7606         (load_full_comp_unit): Add 'pretend_language' argument.
7607         (process_full_comp_unit): Add 'pretend_language' argument.  Set
7608         language on CU.
7609         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7610         Update.
7611         (maybe_queue_comp_unit): Add 'pretend_language' argument.
7612         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7613         Update.
7614         (prepare_one_comp_unit): Add 'pretend_language' argument.
7616         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7617         (struct dwarf2_per_objfile) <just_read_cus>: New field.
7618         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7619         (dw2_do_instantiate_symtab): Check whether symtab was read in
7620         before queueing.
7621         (dw2_instantiate_symtab): Add assertion.  Call
7622         process_cu_includes.
7623         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7624         (partial_symtab_p): New typedef.
7625         (set_partial_user): New function.
7626         (dwarf2_build_psymtabs_hard): Use set_partial_user.
7627         (scan_partial_symbols): Add imported CU to imported_symtabs.
7628         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7629         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7630         (get_symtab, recursively_compute_inclusions)
7631         (compute_symtab_includes, process_cu_includes)
7632         (process_imported_unit_die): New functions.
7633         (process_die) <DW_TAG_imported_unit>: New case.
7634         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7636         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7637         comment.
7638         (struct partial_die_info) <locdesc>: Remove.
7639         <d>: New field.
7640         (process_psymtab_comp_unit): Add 'read_partial' argument.
7641         Update.
7642         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7643         (scan_partial_symbols): Handle DW_TAG_imported_unit.
7644         (add_partial_symbol): Update.
7645         (process_die): Handle DW_TAG_partial_unit.
7646         (read_file_scope): Update comment.
7647         (load_partial_dies): Handle DW_TAG_imported_unit.
7648         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7649         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7651 2012-05-10  Tom Tromey  <tromey@redhat.com>
7653         * cc-with-dwz.sh: New file.
7655 2012-05-10  Tom Tromey  <tromey@redhat.com>
7657         * symtab.h (struct symtab) <includes, user>: New fields.
7658         * block.h (struct block_iterator) <d, idx, which>: New fields.
7659         * block.c (initialize_block_iterator, find_iterator_symtab)
7660         (block_iterator_step, block_iter_name_step)
7661         (block_iter_match_step): New functions.
7662         (block_iterator_first, block_iterator_next)
7663         (block_iter_name_first, block_iter_name_next)
7664         (block_iter_match_first, block_iter_match_next): Rewrite.
7665         (get_block_symtab): New function.
7667 2012-05-10  Tom Tromey  <tromey@redhat.com>
7669         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7670         set_block_symtab.
7671         * jit.c (finalize_symtab): Use allocate_global_block,
7672         set_block_symtab.
7673         * buildsym.c (finish_block_internal): New function, from old
7674         finish_block.
7675         (finish_block): Rewrite.
7676         (end_symtab): Use finish_block_internal, set_block_symtab.
7677         * block.h (struct global_block): New.
7678         (allocate_global_block, set_block_symtab): Declare.
7679         * block.c (allocate_global_block, set_block_symtab): New
7680         functions.
7682 2012-05-10  Tom Tromey  <tromey@redhat.com>
7684         * psymtab.c (partial_map_expand_apply): Add assertion.
7685         (partial_map_symtabs_matching_filename): Skip included psymtabs.
7686         (psymtab_to_symtab): Find unshared psymtab.
7687         (dump_psymtab): Print including psymtabs.
7688         (recursively_search_psymtabs): New function.
7689         (expand_symtabs_matching_via_partial): Use it.
7690         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7691         fields.
7692         (enum psymtab_search_status): New.
7694 2012-05-10  Tom Tromey  <tromey@redhat.com>
7696         * tracepoint.c (scope_info): Update.
7697         * symtab.c (lookup_block_symbol, iterate_over_symbols)
7698         (find_pc_sect_symtab, search_symbols)
7699         (default_make_symbol_completion_list_break_on)
7700         (make_file_symbol_completion_list): Update.
7701         * symmisc.c (dump_symtab_1): Update.
7702         * stack.c (print_frame_args, iterate_over_block_locals)
7703         (print_frame_labels, iterate_over_block_arg_vars): Update.
7704         * python/py-block.c (block_object) <dict>: Remove.
7705         <block>: New field.
7706         <iter>: Change type.
7707         (blpy_iter): Update.
7708         (blpy_block_syms_iternext): Update.
7709         * psymtab.c (map_block): Use block iterators.
7710         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7711         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7712         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7713         * infrun.c (check_exception_resume): Update.
7714         * cp-support.c (make_symbol_overload_list_block): Update.
7715         * coffread.c (patch_opaque_types): Update.
7716         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7717         * block.h (struct block_iterator): New.
7718         (block_iterator_first, block_iterator_next, block_iter_name_first)
7719         (block_iter_name_next, block_iter_match_first)
7720         (block_iter_match_next): Declare.
7721         (ALL_BLOCK_SYMBOLS): Redefine.
7722         * block.c (block_iterator_first, block_iterator_next)
7723         (block_iter_name_first, block_iter_name_next)
7724         (block_iter_match_first, block_iter_match_next): New functions.
7725         * ada-lang.c (ada_add_block_symbols)
7726         (ada_make_symbol_completion_list): Use block iterator.
7728 2012-05-10  Tom Tromey  <tromey@redhat.com>
7730         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7731         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7732         (lookup_partial_symbol, find_last_source_symtab_from_partial)
7733         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7734         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7735         Update.
7737 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7739         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7740         print-file-var-lib2.c, print-file-var-main.c and
7741         print-file-var.exp (located in gdb/testsuite/gdb.base).
7743 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7745         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7746         try locating the symbol in the symbol's own objfile first, before
7747         extending the search to all objfiles.
7748         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7749         out of lookup_symbol_aux_symtabs.
7750         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7751         Replace extracted-out code by call to lookup_symbol_aux_objfile.
7752         Do not search EXCLUDE_OBJFILE.
7753         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7754         (lookup_symbol_global): Search for matches in the block's objfile
7755         first, before searching all other objfiles.
7757 2012-05-10  Tristan Gingold  <gingold@adacore.com>
7759         * printcmd.c (set_command): Add pre/post inc/dec.
7761 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
7763         * gdb.1: Document -ex option.
7765 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7767         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7768         * inferior.h (AT_SYMBOL): Delete.
7770 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7772         * mips-tdep.c (mips_push_dummy_code): New function.
7773         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7774         ON_STACK and install mips_push_dummy_code as our gdbarch
7775         push_dummy_code routine.
7777 2012-05-09  Pedro Alves  <palves@redhat.com>
7779         * target.c (set_maintenance_target_async_permitted): Rename to ...
7780         (set_target_async_command): ... this.
7781         (show_maintenance_target_async_permitted): Rename to ...
7782         (show_target_async_command): ... this.
7783         (initialize_targets): Adjust.
7785 2012-05-08  Doug Evans  <dje@google.com>
7787         * go-exp.y (classify_name): Add missing assignment of fields of
7788         yylval.ssym.
7790 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
7792         Display the ">" prompt in interactive mode while reading canned
7793         commands, even when the current interpreter is MI.
7795         * interps.c (interp_set_temp): New function.
7797         * interps.h (interp_set_temp): Add prototype.
7799         * cli/cli-script.c (restore_interp): New cleanup function.
7800         (read_command_lines): Temporarily override the current interpreter
7801         with CLI and arrange for restoring the original one.
7803 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
7805         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7807 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7809         * probe.c (parse_probes): Move conditional to check for
7810         debuginfo files from here...
7811         * stap-probe.c (stap_get_probes): ... to here.
7813 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
7814             H.J. Lu  <hongjiu.lu@intel.com>
7816         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7817         `movl %esp, %ebp' for the X32 ABI.
7819 2012-05-07  Tom Tromey  <tromey@redhat.com>
7821         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
7822         get_DW_TAG_name.
7823         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
7824         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
7825         (dwarf_stack_op_name): Remove.
7826         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
7827         (decode_locdesc): Use get_DW_OP_name.
7828         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7829         (dwarf2_compile_expr_to_ax): Likewise.
7830         (disassemble_dwarf_expression): Likewise.
7831         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7833 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
7835         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7836         (sh_linux_sigtramp_cache): New function.
7837         (sh_linux_sigreturn_init): New function.
7838         (sh_linux_rt_sigreturn_init): New function.
7839         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7840         patterns.
7841         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7842         syscall codes.
7843         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7844         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7845         (sh_linux_init_abi): Add init calls to register new tramp_frame
7846         definitions under 32-bit SH, update comments.
7848 2012-05-07  Pedro Alves  <palves@redhat.com>
7850         PR gdb/10952
7852         * amd64-linux-tdep.c: Include glibc-tdep.h.
7853         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7854         gdbarch_skip_solib_resolver callback.
7856 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7858         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7859         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7860         (show_auto_load_safe_path): Check any-directory by comparison with "/".
7861         (add_auto_load_safe_path): Change the error message.
7862         (_initialize_auto_load): Change the "safe-path" help text.
7863         * configure: Regenerate
7864         * configure.ac (--without-auto-load-safe-path): Set
7865         WITH_AUTO_LOAD_SAFE_PATH to /.
7867 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7869         * stap-probe.h: Do not include unecessary `probe.h'.
7871 2012-05-05  Alan Modra  <amodra@gmail.com>
7873         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7874         bfd_und_section_ptr.
7875         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7876         and bfd_com_section_ptr.
7878 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7880         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7882 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7884         * windows-nat.h (segment_register_p_ftype): New typedef.
7885         (windows_set_segment_register_p): Add declaration.
7886         * windows-nat.c (segment_register_p): New static global.
7887         (windows_set_segment_register_p): New function.
7888         (do_windows_fetch_inferior_registers): Add special handling
7889         for segment registers.
7890         * amd64-windows-nat.c: #include "amd64-tdep.h".
7891         (amd64_windows_segment_register_p): New function.
7892         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7893         * i386-windows-nat.c: #include "i386-tdep.h".
7894         (i386_windows_segment_register_p): New function.
7895         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7897 2012-05-04  Tristan Gingold  <gingold@adacore.com>
7899         * printcmd.c (set_command): Emit a warning if the expression is not
7900         an assignment.
7902 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
7904         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7905         Make static.
7907 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
7909         * stap-probe.c (stap_is_operator): Change declaration.
7910         (stap_get_opcode): Change return value.
7911         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7912         `stap_parse_argument_1'.
7914 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
7916         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7917         debug log.
7919 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
7921         Add two new methods global_block and static_block to gdb.Symtab
7922         objects.
7923         * NEWS (Python scripting): Add entry about the new methods.
7924         * python/py-symtab.c (stpy_global_block): New function which
7925         implements the gdb.Symtab.global_block() method.
7926         (stpy_static_block): New function which implements the
7927         gdb.Symtab.static_block() method.
7928         (symtab_object_methods): Add entries for the two new methods.
7930 2012-05-03  Doug Evans  <dje@google.com>
7932         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7933         files.
7935 2012-05-03  Yao Qi  <yao@codesourcery.com>
7937         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7938         space.
7939         (i386_process_record): Ditto.
7941 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7943         * infcall.c (unwind_on_signal_p): Make static.
7945 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7947         * sol-thread.c (solaris_pid_to_str): Make static.
7948         (_initialize_sol_thread): Add prototype.
7950 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7952         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7954 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
7956         * MAINTAINERS: Remove myself.
7958 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7960         Fix --without-auto-load-safe-path for MS-Windows host platform.
7961         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7963 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
7965         * gdb_curses.h: Undefine KEY_EVENT before including curses
7966         headers.  Move "#undef MOUSE_MOVED" before any curses header
7967         inclusion.
7969 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7971         * features/i386/i386-mmx-linux.c: Regenerate.
7972         * features/rs6000/powerpc-32.c: Likewise.
7973         * features/rs6000/powerpc-32l.c: Likewise.
7974         * features/rs6000/powerpc-403.c: Likewise.
7975         * features/rs6000/powerpc-403gc.c: Likewise.
7976         * features/rs6000/powerpc-405.c: Likewise.
7977         * features/rs6000/powerpc-505.c: Likewise.
7978         * features/rs6000/powerpc-601.c: Likewise.
7979         * features/rs6000/powerpc-602.c: Likewise.
7980         * features/rs6000/powerpc-603.c: Likewise.
7981         * features/rs6000/powerpc-604.c: Likewise.
7982         * features/rs6000/powerpc-64.c: Likewise.
7983         * features/rs6000/powerpc-64l.c: Likewise.
7984         * features/rs6000/powerpc-750.c: Likewise.
7985         * features/rs6000/powerpc-860.c: Likewise.
7986         * features/rs6000/powerpc-e500.c: Likewise.
7987         * features/rs6000/powerpc-e500l.c: Likewise.
7988         * features/rs6000/powerpc-isa205-32l.c: Likewise.
7989         * features/rs6000/powerpc-isa205-64l.c: Likewise.
7990         * features/rs6000/rs6000.c: Likewise.
7992 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7994         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7995         variable.
7996         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7997         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7998         (stap_parse_argument) <e>: Likewise.
7999         (handle_stap_probe) <byte_order>: Likewise.
8001 2012-04-30  Doug Evans  <dje@google.com>
8003         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
8004         init_and_read_dies_worker.  All callers updated.
8005         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
8006         replaced with init_cutu_and_read_dies.
8007         (load_partial_comp_unit): Pass 1 for use_existing_cu.
8008         (find_partial_die): Remove FIXME.  Don't free current CU.
8010 2012-04-30  Sterling Augustine  <saugustine@google.com>
8012         * contrib: New directory.
8013         * contrib/test_pubnames_and_indexes.py: New file.
8015 2012-04-30  Doug Evans  <dje@google.com>
8017         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
8018         All callers updated.
8019         (init_cu_die_reader): Verify the section is non-empty.
8020         (dwarf_decode_line_header): Don't dereference section->asection
8021         until we know the section is present.
8023 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
8025         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
8026         probes.
8028 2012-04-29  Yao Qi  <yao@codesourcery.com>
8030         * gdb-code-style.el: New hook gdb-markup-hook
8031         and gdb-comment-hook.
8033 2012-04-28  Doug Evans  <dje@google.com>
8035         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
8036         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
8037         objfile->obfd.
8038         * symfile.h (dwarf2_debug_sections): New member addr.
8039         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
8040         (ctx_no_get_addr_index): New function.
8041         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
8042         (ctx_no_get_addr_index): Declare.
8043         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
8044         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
8045         (dwarf_expr_ctx_funcs): Update.
8046         (needs_get_addr_index): New function.
8047         (needs_frame_ctx_funcs): Update.
8048         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
8049         * dwarf2read.c: #include "gdbcore.h".
8050         (dwarf2_per_objfile): New members addr, dwo_files.
8051         (dwarf2_elf_names): Add entry for addr.
8052         (struct dwo_section_names): New type.
8053         (dwo_section_names): New static global.
8054         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
8055         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
8056         old debug_types_section member updated to use this.
8057         Rename member debug_types_section to info_or_types_section,
8058         all uses updated.
8059         (signatured_type): Rename member type_offset to type_offset_in_tu,
8060         all uses updated.  New member type_offset_in_section.
8061         (struct dwo_sections): New type.
8062         (struct dwo_unit): New type.
8063         (struct dwo_file): New type.
8064         (die_reader_specs): New member dwo_file.
8065         (dwarf2_locate_sections): Watch for .debug_addr.
8066         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
8067         (dwarf2_read_section): Get bfd of section from bfd's asection,
8068         instead of objfile.
8069         (create_cus_from_index): Initialize the_cu->info_or_types_section.
8070         (create_signatured_type_table_from_index): Initialize
8071         sig_type->info_or_types_section.
8072         (dw2_get_file_names): Statement lists for type units with DWO files
8073         live in the DWO file.
8074         (create_debug_types_hash_table): New function.
8075         (create_all_type_units): Rewrite.
8076         (init_cu_die_reader): New arg dwo_file, all callers updated.
8077         (init_and_read_dies_worker): Get section from
8078         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
8079         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
8080         continue reading the CU/TU from there.
8081         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
8082         updated.  Get section from this_cu->info_or_types_section.
8083         (create_all_comp_units): Initialize this_cu->info_or_types_section.
8084         (skip_one_die): New cases DW_FORM_GNU_addr_index,
8085         DW_FORM_GNU_str_index.
8086         (hash_dwo_file, eq_dwo_file): New functions.
8087         (allocate_dwo_file_hash_table): New function.
8088         (hash_dwo_unit, eq_dwo_unit): New functions.
8089         (allocate_dwo_unit_table): New function.
8090         (dwarf2_locate_dwo_sections): New function.
8091         (struct create_dwo_info_table_data): New type.
8092         (create_debug_info_hash_table_reader): New function.
8093         (create_debug_info_hash_table): New function.
8094         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
8095         (lookup_dwo_file): New function.
8096         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
8097         (free_dwo_file, free_dwo_file_cleanup): New functions.
8098         (free_dwo_file_from_slot, free_dwo_files): New functions.
8099         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
8100         (dwarf2_record_block_ranges): Ditto.
8101         (read_partial_die): Ditto.
8102         (process_enumeration_scope): Update to use type_offset_in_section.
8103         (read_full_die_1): New function.
8104         (read_full_die): Rewrite.
8105         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
8106         DW_FORM_GNU_str_index.
8107         (read_addr_index_1, read_addr_index): New functions.
8108         (read_addr_index_from_leb128): New function.
8109         (struct dwarf2_read_addr_index_data): New type.
8110         (dwarf2_read_addr_index_reader): New function.
8111         (dwarf2_read_addr_index): New function.
8112         (read_str_index): New function.
8113         (leb128_size): New function.
8114         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
8115         If processing a type unit from a DWO file, get the line section
8116         from the DWO file.
8117         (var_decode_location): Watch for DW_OP_GNU_addr_index.
8118         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
8119         DW_FORM_GNU_str_index.
8120         (lookup_die_type): Check whether section offset of type's die is
8121         known before looking it up.  Remove assert.  Condition can
8122         legimately happen for inter-cu type references.
8123         (dwarf_attr_name): Handle Fission attributes.
8124         (dwarf_form_name): Handle Fission forms.
8125         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8126         DW_FORM_GNU_str_index.
8127         (follow_die_sig): Update to use type_offset_in_section.
8128         (decode_locdesc): New case DW_OP_GNU_addr_index.
8129         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8130         DW_FORM_GNU_str_index.
8131         (cu_debug_loc_section): New function.
8132         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8133         (dwarf2_per_objfile_free): Unmap .debug_addr section.
8134         Free DWO files if present.
8135         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8137         Refactor DIE reading.
8138         * dwarf2read.c (dwarf2_per_objfile): Replace members
8139         debug_info_type_hash and debug_types_type_hash with die_type_hash.
8140         (die_reader_specs): New member "die_section".  Temporarily make
8141         member "buffer" non-const, pending constifying all info_ptr uses.
8142         (die_reader_func_ftype): New typedef.
8143         (dw2_get_file_names_reader): New function.
8144         (dw2_get_file_names): Rewrite.
8145         (read_and_check_type_unit_head): Rename arg type_offset to
8146         type_offset_in_tu.
8147         (create_all_type_units): Improve debugging message.
8148         Improve dummy type unit check.
8149         (init_cu_die_reader): New arg "section".  All callers updated.
8150         (init_and_read_dies_worker): New function.
8151         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8152         (init_cutu_and_read_dies_no_follow): New function.
8153         (init_cutu_and_read_dies_simple): New function.
8154         (process_psymtab_comp_unit_reader): New function.
8155         (process_psymtab_comp_unit): Delete args section,
8156         is_debug_types_section.  Rewrite.  All callers updated.
8157         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8158         All callers updated.  Rewrite.
8159         (load_partial_comp_unit_reader): New function.
8160         (load_partial_comp_unit): Rewrite.
8161         (skip_children): New arg reader.  Delete args buffer, cu.
8162         All callers updated.
8163         (skip_one_die): New arg reader.  Delete args buffer, cu.
8164         All callers updated.
8165         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
8166         All callers updated.
8167         (load_full_comp_unit_reader): New function.
8168         (load_full_comp_unit): Rewrite.
8169         (read_comp_unit): Delete.
8170         (read_die_and_children_1): Delete, contents moved ...
8171         (read_die_and_children): ... here.
8172         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
8173         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
8174         All callers updated.
8175         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
8176         All callers updated.
8177         (find_partial_die): Rewrite load_all_dies support.
8178         (read_attribute_value): New arg reader.  Delete args abfd, cu.
8179         All callers updated.
8180         (read_attribute): New arg reader.  Delete args abfd, cu.
8181         All callers updated.
8182         (load_full_type_unit): Add assert.
8183         (read_signatured_type_reader): New function.
8184         (read_signatured_type): Rewrite.
8185         (free_stack_comp_unit): Remove call to age_cached_comp_units.
8186         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8187         All callers updated.  Set per_cu->cu = NULL after freeing it.
8188         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8189         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8190         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8191         (set_die_type): Update.
8192         (get_die_type_at_offset): Update.
8193         (read_file_scope): Call prepare_one_comp_unit.
8194         (read_type_unit_scope): Ditto.
8195         (prepare_one_comp_unit): Set producer if present.
8197 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
8199         * probe.c (compile_rx_or_error): Silence ARI warning about missing
8200          gettext function on `error'.
8202 2012-04-27  Doug Evans  <dje@google.com>
8204         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8205         is empty.
8207 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8208             Tom Tromey  <tromey@redhat.com>
8210         * breakpoint.c (struct breakpoint_objfile_data)
8211         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8212         <exception_probes>: New fields.
8213         (free_breakpoint_probes): New function.
8214         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8215         `_Unwind_DebugHook'.
8216         (create_exception_master_breakpoint): Likewise.
8217         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8218         * infrun.c: Including necessary header files for handling SystemTap
8219         probes.
8220         (handle_inferior_event): Handling longjmp breakpoint and exceptions
8221         via SystemTap probes.
8222         (check_exception_resume): Remove `func' argument.  Handle exception
8223         unwinding breakpoint set via a SystemTap probe.
8224         (insert_exception_resume_from_probe): New function.
8226 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8227             Tom Tromey  <tromey@redhat.com>
8228             Jan Kratochvil  <jan.kratochvil@redhat.com>
8230         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8231         (COMMON_OBS): Likewise.
8232         (HFILES_NO_SRCDIR): Add `probe'.
8233         * NEWS: Mention support for static and SystemTap probes.
8234         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8235         SystemTap probes' arguments parser.
8236         * arm-linux-tdep.c: Including headers needed to perform the parsing
8237         of SystemTap probes' arguments.
8238         (arm_stap_is_single_operand): New function.
8239         (arm_stap_parse_special_token): Likewise.
8240         (arm_linux_init_abi): Initializing proper fields used by SystemTap
8241         probes' arguments parser.
8242         * ax-gdb.c (require_rvalue): Removing static declaration.
8243         (gen_expr): Likewise.
8244         * ax-gdb.h (gen_expr): Declaring function.
8245         (require_rvalue): Likewise.
8246         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8247         (bkpt_probe_breakpoint_ops): New variable.
8248         (momentary_breakpoint_from_master): Set the `probe' value.
8249         (add_location_to_breakpoint): Likewise.
8250         (break_command_1): Using proper breakpoint_ops according to the
8251         argument passed by the user in the command line.
8252         (bkpt_probe_insert_location): New function.
8253         (bkpt_probe_remove_location): Likewise.
8254         (bkpt_probe_create_sals_from_address): Likewise.
8255         (bkpt_probe_decode_linespec): Likewise.
8256         (tracepoint_probe_create_sals_from_address): Likewise.
8257         (tracepoint_probe_decode_linespec): Likewise.
8258         (tracepoint_probe_breakpoint_ops): New variable.
8259         (trace_command): Using proper breakpoint_ops according to the
8260         argument passed by the user in the command line.
8261         (initialize_breakpoint_ops): Initializing breakpoint_ops for
8262         static probes on breakpoints and tracepoints.
8263         * breakpoint.h (struct bp_location) <probe>: New field.
8264         * cli-utils.c (skip_spaces_const): New function.
8265         (extract_arg): Likewise.
8266         * cli-utils.h (skip_spaces_const): Likewise.
8267         (extract_arg): Likewise.
8268         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8269         * configure.ac: Append `stap-probe.o' to be generated when ELF
8270         support is present.
8271         * configure: Regenerate.
8272         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8273         * elfread.c: Include `probe.h' and `arch-utils.h'.
8274         (probe_key): New variable.
8275         (elf_get_probes): New function.
8276         (elf_get_probe_argument_count): Likewise.
8277         (elf_evaluate_probe_argument): Likewise.
8278         (elf_compile_to_ax): Likewise.
8279         (elf_symfile_relocate_probe): Likewise.
8280         (stap_probe_key_free): Likewise.
8281         (elf_probe_fns): New variable.
8282         (elf_sym_fns): Add `sym_probe_fns' value.
8283         (elf_sym_fns_lazy_psyms): Likewise.
8284         (elf_sym_fns_gdb_index): Likewise.
8285         (_initialize_elfread): Initialize objfile cache for static
8286         probes.
8287         * gdb_vecs.h (struct probe): New forward declaration.
8288         (probe_p): New VEC declaration.
8289         * gdbarch.c: Regenerate.
8290         * gdbarch.h: Regenerate.
8291         * gdbarch.sh (stap_integer_prefix): New variable.
8292         (stap_integer_suffix): Likewise.
8293         (stap_register_prefix): Likewise.
8294         (stap_register_suffix): Likewise.
8295         (stap_register_indirection_prefix): Likewise.
8296         (stap_register_indirection_suffix): Likewise.
8297         (stap_gdb_register_prefix): Likewise.
8298         (stap_gdb_register_suffix): Likewise.
8299         (stap_is_single_operand): New function.
8300         (stap_parse_special_token): Likewise.
8301         (struct stap_parse_info): Forward declaration.
8302         * i386-tdep.c: Including headers needed to perform the parsing
8303         of SystemTap probes' arguments.
8304         (i386_stap_is_single_operand): New function.
8305         (i386_stap_parse_special_token): Likewise.
8306         (i386_elf_init_abi): Initializing proper fields used by SystemTap
8307         probes' arguments parser.
8308         * i386-tdep.h (i386_stap_is_single_operand): New function.
8309         (i386_stap_parse_special_token): Likewise.
8310         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8311         * mipsread.c (ecoff_sym_fns): Likewise.
8312         * objfiles.c (objfile_relocate1): Support relocation for static
8313         probes.
8314         * parse.c (prefixify_expression): Remove static declaration.
8315         (initialize_expout): Likewise.
8316         (reallocate_expout): Likewise.
8317         * parser-defs.h (initialize_expout): Declare function.
8318         (reallocate_expout): Likewise.
8319         (prefixify_expression): Likewise.
8320         * ppc-linux-tdep.c: Including headers needed to perform the parsing
8321         of SystemTap probes' arguments.
8322         (ppc_stap_is_single_operand): New function.
8323         (ppc_stap_parse_special_token): Likewise.
8324         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8325         probes' arguments parser.
8326         * probe.c: New file, for generic statically defined probe support.
8327         * probe.h: Likewise.
8328         * s390-tdep.c: Including headers needed to perform the parsing of
8329         SystemTap probes' arguments.
8330         (s390_stap_is_single_operand): New function.
8331         (s390_gdbarch_init): Initializing proper fields used by SystemTap
8332         probes' arguments parser.
8333         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8334         * stap-probe.c: New file, for SystemTap probe support.
8335         * stap-probe.h: Likewise.
8336         * symfile.h: Include `gdb_vecs.h'.
8337         (struct sym_probe_fns): New struct.
8338         (struct sym_fns) <sym_probe_fns>: New field.
8339         * symtab.c (init_sal): Initialize `probe' field.
8340         * symtab.h (struct probe): Forward declaration.
8341         (struct symtab_and_line) <probe>: New field.
8342         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8343         locations.
8344         (stop_tracing): Likewise.
8345         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8347 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8348             Tom Tromey  <tromey@redhat.com>
8350         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8351         and to compile agent expressions.
8352         * infrun.c (siginfo_make_value): New argument `ignore'.
8353         (siginfo_funcs): New struct.
8354         (_initialize_infrun): New argument when calling
8355         `create_internalvar_type_lazy'.
8356         * thread.c (thread_id_make_value): New argument `ignore'.
8357         (thread_funcs): New struct.
8358         (_initialize_thread): New argument when calling
8359         `create_internalvar_type_lazy'.
8360         * tracepoint.c (sdata_make_value): New argument `ignore'.
8361         (sdata_funcs): New struct.
8362         (_initialize_tracepoint): New argument when calling
8363         `create_internalvar_type_lazy'.
8364         * value.c (make_value): New struct.
8365         (create_internalvar_type_lazy): New argument `data'.
8366         (compile_internalvar_to_ax): New function.
8367         (value_of_internalvar): Properly handling `make_value' case.
8368         (clear_internalvar): Likewise.
8369         (show_convenience): Adding `TRY_CATCH' block.
8370         * value.h (internalvar_make_value): Delete, replace by...
8371         (struct internalvar_funcs): ... this.
8372         (create_internalvar_type_lazy) <fun>: Delete argument.
8373         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8374         (compile_internalvar_to_ax): New function.
8375         * windows-tdep.c (tlb_make_value): New argument `ignore'.
8376         (tlb_funcs): New struct.
8377         (_initialize_windows_tdep): New argument when calling
8378         `create_internalvar_type_lazy'.
8380 2012-04-27  Mark Wielaard  <mjw@redhat.com>
8382         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8383         see whether it is an address or a constant offset from DW_AT_low_pc.
8384         (dwarf2_record_block_ranges): Likewise.
8385         (read_partial_die): Likewise.
8387 2012-04-26  Mark Wielaard  <mjw@redhat.com>
8389         * MAINTAINERS (Write After Approval): Add myself to the list.
8391 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
8393         * proc-utils.h (proc_prettyprint_signalset): New prototype.
8394         (proc_prettyprint_signal): Likewise.
8395         (proc_prettyprint_faultset): Likewise.
8396         (proc_prettyprint_fault): Likewise.
8397         (proc_prettyprint_actionset): Likewise.
8398         (proc_prettyprint_flags): Move to new proc-flags.c section.
8399         (proc_prettyfprint_flags): New prototype.
8400         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8401         (proc_syscall, proc_cursig): Likewise.
8402         (proc_set_kill_on_last_close): Likewise.
8403         (proc_unset_kill_on_last_close): Likewise.
8404         (proc_set_watchpoint): Make static.
8405         (proc_delete_dead_threads): Likewise.
8406         (procfs_set_watchpoint): Likewise.
8407         (_initialize_procfs): Add prototype.
8408         * proc-events.c: Include proc-utils.h.
8409         (init_syscall_table): Make static.
8410         * proc-api.c (_initialize_proc_api): Add prototype.
8411         * proc-flags.c: Include proc-utils.h.
8413 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
8415         * configure.ac: Add AC_ARG_PROGRAM.
8416         * configure: Regenerate.
8418 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8420         Fix DW_AT_lower_bound defaults for DWARF-4+.
8421         * dwarf2read.c (read_subrange_type): Remove initialization of low and
8422         high.  New variable low_default_is_valid.  Implement DWARF-4+
8423         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
8424         no default by the DWARF standard.
8426 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
8427             Maciej W. Rozycki  <macro@codesourcery.com>
8429         * infrun.c (handle_inferior_event): Move the check for return
8430         trampolines ahead of the check for function trampolines.
8431         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8432         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8433         (mips_str_mips16_ret_stub): Likewise.
8434         (mips_str_call_fp_stub): Likewise.
8435         (mips_str_call_stub): Likewise.
8436         (mips_str_fn_stub): Likewise.
8437         (mips_str_pic): Likewise.
8438         (mips_in_frame_stub): New function.
8439         (mips_unwind_pc): Return the return address rather than the PC
8440         if the PC of an intermediate frame is inside a call thunk.
8441         (mips_is_stub_suffix): New function.
8442         (mips_is_stub_mode): Likewise.
8443         (mips_get_mips16_fn_stub_pc): Likewise.
8444         (mips_skip_mips16_trampoline_code): Update to handle all the
8445         currently generated stub types.  Don't recurse into __fn_stub
8446         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
8447         Use cooked register accesses.
8448         (mips_in_return_stub): Reintroduce function.
8449         (mips_skip_trampoline_code): Traverse trampolines recursively.
8450         (mips_gdbarch_init): Handle MIPS16 return trampolines.
8452 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
8454         GDB 7.4.1 released.
8456 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
8458         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8459         * features/arm-with-m-vfp-d16.xml: New file. Describes
8460         Cortex-M with VFPv4-sp-d16 FPU register layout.
8461         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8462         * features/arm-with-m-vfp-d16.c: New. Generated from above.
8463         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8464         (arm-register_g_packet_guesses): Add vfp-d16 guess.
8465         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8467 2012-04-25  Doug Evans  <dje@google.com>
8469         * cli/cli-decode.c (print_doc_line): Use stream instead of
8470         current_uiout.
8472 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
8474         * features/arm-with-iwmmxt.c: Regenerate.
8475         * features/arm-with-m-fpa-layout.c: Likewise.
8476         * features/arm-with-m.c: Likewise.
8477         * features/arm-with-neon.c: Likewise.
8478         * features/arm-with-vfpv2.c: Likewise.
8479         * features/arm-with-vfpv3.c: Likewise.
8480         * features/mips-dsp-linux.c: Likewise.
8481         * features/mips-linux.c: Likewise.
8482         * features/mips64-dsp-linux.c: Likewise.
8483         * features/mips64-linux.c: Likewise.
8484         * features/s390-linux32.c: Likewise.
8485         * features/s390-linux32v1.c: Likewise.
8486         * features/s390-linux32v2.c: Likewise.
8487         * features/s390-linux64.c: Likewise.
8488         * features/s390-linux64v1.c: Likewise.
8489         * features/s390-linux64v2.c: Likewise.
8490         * features/s390x-linux64.c: Likewise.
8491         * features/s390x-linux64v1.c: Likewise.
8492         * features/s390x-linux64v2.c: Likewise.
8493         * features/tic6x-c62x-linux.c: Likewise.
8494         * features/tic6x-c62x.c: Likewise.
8495         * features/tic6x-c64x-linux.c: Likewise.
8496         * features/tic6x-c64x.c: Likewise.
8497         * features/tic6x-c64xp-linux.c: Likewise.
8498         * features/tic6x-c64xp.c: Likewise.
8499         * target-descriptions.c: Only generate `field_type' and `type'
8500         variables when needed.
8502 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
8504         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8506 2012-04-25  Doug Evans  <dje@google.com>
8508         Initial pass at Go language support.
8509         * NEWS: Mention Go.
8510         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8511         go-valprint.c.
8512         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8513         (YYFILES): Add go-exp.c.
8514         (YYOBJ): Add go-exp.o.
8515         (local-maintainer-clean): Delete go-exp.c.
8516         * defs.h (enum language): Add language_go.
8517         * dwarf2read.c: #include "go-lang.h".
8518         (fixup_go_packaging): New function.
8519         (process_full_comp_unit): Call it when processing Go CUs.
8520         (dwarf2_physname): Add Go support.
8521         (read_file_scope): Handle missing language spec for GNU Go.
8522         (set_cu_language): Handle DW_LANG_Go.
8523         * go-exp.y: New file.
8524         * go-lang.h: New file.
8525         * go-lang.c: New file.
8526         * go-typeprint.c: New file.
8527         * go-valprint.c: New file.
8528         * symtab.c: #include "go-lang.h".
8529         (symbol_set_language): Handle language_go.
8530         (symbol_find_demangled_name, symbol_set_names): Ditto.
8531         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8533 2012-04-24  Jim Meyering  <meyering@redhat.com>
8535         avoid a few strncpy-induced buffer overruns
8536         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8537         fname and psargs before trying to concatenate.
8538         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8539         "name" before applying strchr.
8541 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
8543         * CONTRIBUTE: Use unified diff instead of context diff when
8544         generating patches.
8546 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
8548         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8549         code.  Handle JR.HB correctly.
8551 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
8553         * mips-tdep.c
8554         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8555         with the other MIPS16 helpers.
8557 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
8559         * observer.sh: Conditionally declare `args', thus cleaning up
8560         unused instances of this variable.
8562 2012-04-24  Yao Qi  <yao@codesourcery.com>
8564         Revert this patch to allow breakpoint always-inserted
8565         in record target.
8566         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
8567         * breakpoint.c: Include record.h.
8568         (breakpoints_always_inserted_mode): Return false when the record
8569         target is in use.
8571         * breakpoint.c (iterate_over_bp_locations): New.
8572         * breakpoint.h: Declare.
8573         New typedef walk_bp_location_callback.
8574         * record.c (record_open): Call record_init_record_breakpoints.
8575         (record_sync_record_breakpoints): New.
8576         (record_init_record_breakpoints): New.
8577         * NEWS: Mention supporting breakpoint always-inserted mode in
8578         record target.
8580 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
8582         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8583         any thread.
8585 2012-04-24  Yao Qi  <yao@codesourcery.com>
8587         * breakpoint.c (ep_is_catchpoint): Renamed to ...
8588         (is_catchpoint): ... it.
8589         (print_one_breakpoint_location): Caller update.
8590         * breakpoint.h: Update declaration.
8592 2012-04-23  David S. Miller  <davem@davemloft.net>
8594         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8596 2012-04-23  Tom Tromey  <tromey@redhat.com>
8598         * buildsym.c (add_free_pendings): Remove.
8599         * buildsym.h (add_free_pendings): Remove.
8601 2012-04-23  Doug Evans  <dje@google.com>
8603         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8604         attr.u.unsnd instead of attr.u.addr.
8605         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8606         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8607         DW_FORM_ref_udata.
8608         (dump_die_shallow): Update cases DW_FORM_ref_addr,
8609         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
8610         DW_FORM_ref_udata.
8611         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8613 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
8615         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8616         (mips_o32_return_value): Likewise.
8617         (mips_o64_return_value): Likewise.
8619 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
8621         * ada-lang.c (ada_evaluate_subexp): Add cases for
8622         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8623         their treatment in eval.c.
8625 2012-04-21  David S. Miller  <davem@davemloft.net>
8627         * sparc-tdep.c (X_DISP10): Define.
8628         (sparc_analyze_control_transfer): Handle compare-and-branch.
8630 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
8632         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8633         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8635 2012-04-20  Nigel Stephens  <nigel@mips.com>
8636             Maciej W. Rozycki  <macro@codesourcery.com>
8638         * mips-tdep.c (mips_float_register_p): New function.
8639         (mips_convert_register_float_case_p): Use mips_float_register_p.
8640         (mips_register_type): Likewise.
8641         (mips_print_register): Likewise.
8642         (print_gp_register_row): Likewise.
8643         (mips_print_registers_info): Likewise.
8645 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
8647         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8648         of mips16 symbols.
8650 2012-04-20  Andrew Pinski  <apinski@cavium.com>
8652         * MAINTAINERS (Write After Approval): Add myself to the list.
8654 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8656         * MAINTAINERS: Update my e-mail address.
8658 2012-04-20  Pedro Alves  <palves@redhat.com>
8660         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8661         $srcdir.
8662         * configure: Regenerate.
8664 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8666         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
8667         declaration.
8668         * gdb_vecs.h: Declare `const_char_ptr' VEC.
8670 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8672         Fix compilation compatibility with python-2.4
8673         * python/py-type.c (convert_field): Cast ADDRSTRING for
8674         PyObject_SetAttrString as non-const.  New comment.
8676 2012-04-19  Tom Tromey  <tromey@redhat.com>
8678         * top.c (quit_target): Use all_cleanups.
8679         * main.c (captured_command_loop): Use all_cleanups.
8680         * exceptions.c (throw_exception): Use all_cleanups.
8682 2012-04-19  Pedro Alves  <palves@redhat.com>
8684         * Makefile.in (GNULIB_BUILDDIR): New.
8685         (LIBGNU, INCGNU, GNULIB_H): Adjust.
8686         (SUBDIRS): Add $(GNULIB_BUILDDIR).
8687         (CLEANDIRS). Remove gnulib/import.
8688         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8689         (all-lib): Ditto.
8690         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8691         (gnulib/import/Makefile): Replace gnulib/import with
8692         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
8693         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8694         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
8695         acx_configure_dir.m4.
8696         * acinclude.m4: Include acx_configure_dir.m4.
8697         * acx_configure_dir.m4: New file.
8698         * aclocal.m4: Regenerate.
8699         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8700         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
8701         (GNULIB): New variable.
8702         (GNULIB_STDINT_H): Adjust.
8703         (AC_OUTPUT): Don't output gnulib/Makefile.
8704         * defs.h: Include build-gnulib/config.h.
8705         * aclocal.m4: Regenerate.
8706         * config.in: Regenerate.
8707         * configure: Regenerate.
8709         * gnulib/Makefile.in: New file.
8710         * gnulib/configure.ac: New file.
8711         * gnulib/aclocal.m4: New file.
8712         * gnulib/config.in: New file.
8713         * gnulib/configure: New file.
8714         * gnulib/: Re-run gnulib-tool to adjust.
8716 2012-04-19  Doug Evans  <dje@google.com>
8718         * cleanups.h (struct cleanup): Move to cleanups.c.
8719         (make_cleanup_dtor_ftype): New typedef.
8720         (make_cleanup_dtor): Use it.
8721         (ALL_CLEANUPS): Replace with ...
8722         (all_cleanups): ... this.  Declare.  All uses updated.
8723         * cleanups.c: #include "gdb_assert.h".
8724         (sentinel_cleanup): New static global.
8725         (SENTINEL_CLEANUP): Define.
8726         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8727         (make_my_cleanup2): Assert result is non-NULL.
8728         (all_cleanups): New function.
8729         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8730         of NULL.
8732 2012-04-19  Pedro Alves  <palves@redhat.com>
8734         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8735         Adjust paths to gnulib imported files.
8737 2012-04-19  Pedro Alves  <palves@redhat.com>
8739         * gnulib/: Move whole directory ...
8740         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8741         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8742         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8743         (aclocal_m4_deps): Adjust.
8744         * aclocal.m4: Regenerate.
8745         * configure: Regenerate.
8746         * configure.ac: Adjust AC_OUTPUT output.
8748 2012-04-19  Yao Qi  <yao@codesourcery.com>
8750         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8751         (vec.o): New rule.
8752         * vec.c: Move it ...
8753         * common/vec.c: ... here.
8754         * vec.h: Move it ...
8755         * common/vec.h: ... here.
8757 2012-04-19  Yao Qi  <yao@codesourcery.com>
8759         * gdb-code-style.el: New.
8761 2012-04-18  Pedro Alves  <palves@redhat.com>
8763         Update gnulib from latest git.
8764         (639ea5ae15e39fe48d43e04864b2997301e4b969)
8766         * gnulib/Makefile.am: Update.
8767         * gnulib/dummy.c: Update.
8768         * gnulib/extra/arg-nonnull.h: Update.
8769         * gnulib/extra/c++defs.h: Update.
8770         * gnulib/extra/update-copyright: Update.
8771         * gnulib/extra/warn-on-use.h: Update.
8772         * gnulib/inttypes.in.h: Update.
8773         * gnulib/m4/00gnulib.m4: Update.
8774         * gnulib/m4/extensions.m4: Update.
8775         * gnulib/m4/gnulib-cache.m4: Update.
8776         * gnulib/m4/gnulib-common.m4: Update.
8777         * gnulib/m4/gnulib-comp.m4: Update.
8778         * gnulib/m4/gnulib-tool.m4: Update.
8779         * gnulib/m4/include_next.m4: Update.
8780         * gnulib/m4/inttypes-pri.m4: Update.
8781         * gnulib/m4/inttypes.m4: Update.
8782         * gnulib/m4/longlong.m4: Update.
8783         * gnulib/m4/memchr.m4: Update.
8784         * gnulib/m4/memmem.m4: Update.
8785         * gnulib/m4/mmap-anon.m4: Update.
8786         * gnulib/m4/multiarch.m4: Update.
8787         * gnulib/m4/onceonly.m4: Update.
8788         * gnulib/m4/stddef_h.m4: Update.
8789         * gnulib/m4/stdint.m4: Update.
8790         * gnulib/m4/string_h.m4: Update.
8791         * gnulib/m4/warn-on-use.m4: Update.
8792         * gnulib/m4/wchar_h.m4: Update.
8793         * gnulib/m4/wchar_t.m4: Update.
8794         * gnulib/m4/wint_t.m4: Update.
8795         * gnulib/memchr.c: Update.
8796         * gnulib/memmem.c: Update.
8797         * gnulib/stddef.in.h: Update.
8798         * gnulib/stdint.in.h: Update.
8799         * gnulib/str-two-way.h: Update.
8800         * gnulib/string.in.h: Update.
8801         * gnulib/wchar.in.h: Update.
8803         * gnulib/extra/arg-nonnull.h: Delete.
8804         * gnulib/extra/c++defs.h: Delete.
8805         * gnulib/extra/warn-on-use.h: Delete.
8806         * gnulib/m4/wchar_h.m4: Delete.
8807         * gnulib/m4/wint_t.m4: Delete.
8808         * gnulib/wchar.in.h: Delete.
8810         * gnulib/extra/snippets/arg-nonnull.h: New.
8811         * gnulib/extra/snippets/c++defs.h: New.
8812         * gnulib/extra/snippets/warn-on-use.h: New.
8814         * aclocal.m4: Regenerate.
8815         * config.in: Regenerate.
8816         * configure: Regenerate.
8817         * gnulib/Makefile.in: Regenerate.
8819 2012-04-18  Pedro Alves  <palves@redhat.com>
8821         Reimport the update-copyright module from gnulib
8822         (250b80067c1e1d8faa0c42fb572f721975b929c5).
8824         * configure: Regenerate.
8825         * gnulib/Makefile.am: Update.
8826         * gnulib/Makefile.in: Regenerate.
8827         * gnulib/extra/update-copyright: Update.
8828         * gnulib/m4/gnulib-cache.m4: Update.
8829         * gnulib/m4/gnulib-comp.m4: Update.
8831 2012-04-18  Tristan Gingold  <gingold@adacore.com>
8833         * configure.ac (aix): Put -lpthread into libs.
8834         * configure: Regenerate.
8836 2012-04-18  Tom Tromey  <tromey@redhat.com>
8838         * linespec.c (convert_linespec_to_sals): Don't use
8839         SYMBOL_OBJ_SECTION.
8840         (compare_msymbols): Arguments are minsym_and_objfile, not
8841         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
8843 2012-04-18  Pedro Alves  <palves@redhat.com>
8845         Revert gnulib/ part of:
8846         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
8847         Copyright year update in most files (performed by copyright.sh).
8849 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8851         Fix 64-bit constants on 32-bit hosts.
8852         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8853         from unsigned long to ULONGEST.
8854         (read_signed_leb128): Change declaration return type from long to
8855         LONGEST.
8856         (dwarf2_const_value_attr): Change declaration parameter value from long
8857         to LONGEST.
8858         (dwarf2_compute_name): Change variable value from long to LONGEST.
8859         (read_unsigned_leb128): Change return type, variable result and some
8860         casts from unsigned long to ULONGEST.
8861         (read_signed_leb128): Change return type, variable result and some
8862         casts from long to LONGEST.
8863         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8864         value from long to LONGEST.
8865         (dwarf2_const_value): Change variable value from long to LONGEST.
8866         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8867         plongest and hex_string.
8868         * symtab.h (struct general_symbol_info): Change ivalue from long to
8869         LONGEST, remove the comment.
8870         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8871         Change SYMBOL_VALUE format strings to use plongest and hex_string.
8873 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8875         PR symtab/7259:
8876         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8877         * ada-lang.c (ada_discrete_type_high_bound)
8878         (ada_discrete_type_low_bound): Fix function comment.  Use
8879         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8880         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8881         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8882         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8883         Use TYPE_FIELD_ENUMVAL.
8884         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8885         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8886         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8887         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
8888         TYPE_CODE_ENUM.
8889         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8890         * dwarf2read.c (process_enumeration_scope): Likewise.
8891         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8892         field.bitpos.
8893         (class StructMainTypePrettyPrinter): Support also
8894         FIELD_LOC_KIND_ENUMVAL.
8895         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8896         TYPE_CODE_ENUM.
8897         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8898         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8899         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8900         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
8901         field enumval.
8902         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8903         accommodate enumval.
8904         (struct call_site): Adjust loc_kind to accommodate enumval.
8905         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8906         (TYPE_FIELD_ENUMVAL): New macros.
8907         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8908         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8909         TYPE_CODE_ENUM.
8910         * p-typeprint.c (pascal_type_print_base): Likewise.
8911         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8912         enumval.
8913         * python/lib/gdb/types.py (make_enum_dict): Likewise.
8914         * python/py-type.c (convert_field): New variable addrstring.  Use
8915         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8916         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8917         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8918         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8919         TYPE_CODE_ENUM.
8920         * valprint.c (generic_val_print): Likewise.
8922 2012-04-17  Doug Evans  <dje@google.com>
8924         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8926         * dwarf2read.c: Whitespace fixes.
8927         (lookup_signatured_type): Tweak comment.
8928         (get_die_type_at_offset): Fix comment.
8930 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8932         * xcoffread.c (xcoff_secnum_to_sections): New function.
8933         (secnum_to_section, secnum_to_bfd_section): Reimplement
8934         using xcoff_secnum_to_sections.  Rename "secnum" parameter
8935         into "n_scnum".
8936         (RECORD_MINIMAL_SYMBOL): Delete.
8937         (record_minimal_symbol): New function.
8938         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8939         by call to record_minimal_symbol and set misc_func_recorded
8940         to 1.  Set last_csect_sec to the XCOFF section index instead
8941         of GDB's section_offset index.  Update calls to
8942         prim_record_minimal_symbol_and_info to pass the BFD section
8943         as well.
8945 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8947         * xcoffread.c (read_xcoff_symtab): Delete variables
8948         last_csect_val and last_csect_sec and associated code.
8950 2012-04-17  Doug Evans  <dje@google.com>
8952         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8953         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8954         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8955         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8957         * cleanups.h: New file.
8958         * cleanups.c: New file.
8959         * Makefile.in (SFILES): Add cleanups.c.
8960         (HFILES_NO_SRCDIR): Add cleanups.h.
8961         (COMMON_OBS): Add cleanups.o.
8962         * defs.h (struct cleanup): Moved to cleanups.h.
8963         (do_cleanups,do_final_cleanups): Ditto.
8964         (discard_cleanups,discard_final_cleanups): Ditto
8965         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8966         (save_cleanups,save_final_cleanups): Ditto.
8967         (restore_cleanups,restore_final_cleanups): Ditto.
8968         (null_cleanup): Ditto.
8969         (make_my_cleanup,make_my_cleanup2): Ditto.
8970         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8971         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8972         (do_cleanups,do_final_cleanups): Ditto.
8973         (discard_cleanups,discard_final_cleanups): Ditto
8974         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8975         (save_cleanups,save_final_cleanups): Ditto.
8976         (restore_cleanups,restore_final_cleanups): Ditto.
8977         (null_cleanup): Ditto.
8978         (make_my_cleanup,make_my_cleanup2): Ditto.
8979         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8981         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8982         make_my_cleanup.
8983         (make_cleanup_dyn_string_delete): Ditto.
8984         (make_cleanup_ui_file_delete): Ditto.
8985         (make_cleanup_ui_out_redirect_pop): Ditto.
8986         (make_cleanup_free_section_addr_info): Ditto.
8987         (make_cleanup_restore_integer): Ditto.
8988         (make_cleanup_unpush_target): Ditto.
8989         (make_cleanup_value_free_to_mark): Ditto.
8990         (make_cleanup_value_free): Ditto.
8991         (make_cleanup_free_so): Ditto.
8993 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8995         New option "set debug auto-load".
8996         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8997         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8998         (auto_load_safe_path_vec_update)
8999         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
9000         if DEBUG_AUTO_LOAD.
9001         (file_is_auto_load_safe): New parameters debug_fmt and ....
9002         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
9003         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
9004         caller by explanatory string.
9005         (_initialize_auto_load): Register "set debug auto-load".
9006         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
9007         and ....
9008         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9009         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
9010         by explanatory string.
9011         * main.c (captured_main): Likewise.
9012         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
9013         (source_section_scripts): Likewise.
9015 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9017         New option "set auto-load safe-path".
9018         * NEWS: New commands "set auto-load safe-path"
9019         and "show auto-load safe-path".
9020         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
9021         (auto_load_safe_path, auto_load_safe_path_vec)
9022         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
9023         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
9024         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
9025         (source_gdb_script_for_objfile): New variable is_safe.  Call
9026         file_is_auto_load_safe.  Return if it is not.
9027         (struct loaded_script): New field loaded.
9028         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
9029         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
9030         output "Missing" to "No".
9031         (_initialize_auto_load): New variable cmd.  Initialize
9032         auto_load_safe_path.  Register "set auto-load safe-path",
9033         "show auto-load safe-path" and "add-auto-load-safe-path".
9034         * auto-load.h (maybe_add_script): Add parameter loaded.
9035         (file_is_auto_load_safe): New declaration.
9036         * config.in: Regenerate.
9037         * configure: Regenerate.
9038         * configure.ac: New parameters --with-auto-load-safe-path
9039         and --without-auto-load-safe-path.
9040         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9041         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
9042         * main.c (captured_main): Check file_is_auto_load_safe for
9043         LOCAL_GDBINIT.
9044         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
9045         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
9046         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
9047         not.
9049 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9051         auto-load: Implementation.
9052         * NEWS: New descriptions for "info auto-load",
9053         "info auto-load gdb-scripts", "info auto-load python-scripts",
9054         "info auto-load local-gdbinit" and "info auto-load libthread-db".
9055         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
9056         and "show auto-load-scripts".  New description for "set auto-load",
9057         "show auto-load", "set auto-load gdb-scripts",
9058         "show auto-load gdb-scripts", "set auto-load python-scripts",
9059         "show auto-load python-scripts", "set auto-load local-gdbinit",
9060         "show auto-load local-gdbinit", "set auto-load libthread-db" and
9061         "show auto-load libthread-db".
9062         * auto-load.c: Remove include python/python-internal.h.  Add includes
9063         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
9064         cli/cli-setshow.h.
9065         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
9066         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
9067         (gdbpy_global_auto_load): Rename to ...
9068         (global_auto_load): ... here.
9069         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9070         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
9071         (script_language_gdb, source_gdb_script_for_objfile): New.
9072         (struct loaded_script): New field language.
9073         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
9074         LANGUAGE.
9075         (maybe_add_script): Add parameter language.  Drop redundant
9076         entry.full_path initialization.  Initialize entry.language and
9077         (*slot)->language.
9078         (auto_load_objfile_script): Change parameter suffix to language.
9079         Remove the call of maybe_add_script.
9080         Call language->source_script_for_objfile.
9081         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
9082         New.
9083         (collect_matching_scripts): Adjust it for
9084         struct collect_matching_scripts_data.
9085         (auto_load_info_scripts_pattern_nl): New variable.
9086         (info_auto_load_scripts): Rename to ...
9087         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
9088         for struct collect_matching_scripts_data.
9089         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
9090         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
9091         (auto_load_show_cmdlist_get, info_auto_load_cmd)
9092         (auto_load_info_cmdlist_get): New.
9093         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
9094         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
9095         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
9096         "info auto-load local-gdbinit".
9097         * auto-load.h (struct script_language): New.
9098         (gdbpy_global_auto_load): Rename to ...
9099         (global_auto_load): ... here.
9100         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9101         (auto_load_local_gdbinit_loaded): New declarations.
9102         (maybe_add_script): New parameter language.
9103         (auto_load_objfile_script): Change parameter suffix to language.
9104         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
9105         (auto_load_info_scripts, auto_load_set_cmdlist_get)
9106         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
9107         declarations.
9108         * linux-thread-db.c: Include auto-load.h and ctype.h.
9109         (auto_load_thread_db, show_auto_load_thread_db): New.
9110         (struct thread_db_info): New field filename.
9111         (delete_thread_db_info): Call xfree for FILENAME.
9112         (try_thread_db_load): Initialize FILENAME.
9113         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
9114         if !AUTO_LOAD_THREAD_DB.
9115         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
9116         (_initialize_thread_db): Install auto_load_thread_db
9117         as "set auto-load libthread-db" and install info_auto_load_libthread_db
9118         as "info auto-load libthread-db".
9119         * main.c (captured_main): Rename gdbpy_global_auto_load to
9120         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
9121         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
9122         (print_gdb_help): Extend the help for 'local init file'.
9123         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
9124         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
9125         (auto_load_scripts): Rename to ...
9126         (auto_load_python_scripts): ... here, update the comment.
9127         (gdbpy_load_auto_script_for_objfile): New declaration.
9128         (show_auto_load_python_scripts, script_language_python)
9129         (gdbpy_load_auto_script_for_objfile): New.
9130         (source_section_scripts): Refactor the code.
9131         (load_auto_scripts_for_objfile): Rename to ...
9132         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9133         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9134         (info_auto_load_python_scripts): New.
9135         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9136         Rename "set auto-load-scripts" to "set auto-load python-scripts".
9137         Register "set auto-load-scripts" as its deprecated alias.  Register
9138         "info auto-load python-scripts".  Register "info auto-load-scripts" as
9139         its deprecated alias.
9140         (load_auto_scripts_for_objfile): Rename to ...
9141         (gdbpy_load_auto_scripts_for_objfile): ... here.
9142         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9143         (gdbpy_load_auto_scripts_for_objfile): ... here.
9145 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9147         auto-load: Move files.
9148         * Makefile.in (SFILES): Add auto-load.c.
9149         (HFILES_NO_SRCDIR): Add auto-load.h.
9150         (COMMON_OBS): Add auto-load.o.
9151         (distclean): Change .gdbinit for gdb-gdb.gdb.
9152         * auto-load.c: New file, with parts from python/py-auto-load.c.
9153         * auto-load.h: New file, with parts from python/python.h.
9154         * configure: Regenerate.
9155         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9156         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9157         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9158         * main.c: Include auto-load.h.
9159         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9160         command.h, observer.h and progspace.h to auto-load.c.  Add include
9161         auto-load.h.
9162         (gdbpy_global_auto_load, struct auto_load_pspace_info)
9163         (struct loaded_script, auto_load_pspace_data)
9164         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9165         (hash_loaded_script_entry, eq_loaded_script_entry)
9166         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9167         (maybe_add_script): Move to auto-load.c.
9168         (source_section_scripts): Change maybe_add_script parameters passing,
9169         use script_not_found_warning_print.
9170         (clear_section_scripts, auto_load_objfile_script)
9171         (auto_load_new_objfile, loaded_script_ptr)
9172         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9173         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9174         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9175         auto_load_new_objfile and info_auto_load_scripts initizations to
9176         auto-load.c.
9177         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9179 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9181         Code cleanup.
9182         * charset.c (find_charset_names): Remove variables ix and elt.
9183         Use free_char_ptr_vec.
9184         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9185         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
9186         debugdir_end.  New variable debugdir_len.
9187         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9188         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9189         declarations.
9190         * progspace.c (clear_program_space_solib_cache): Remove variables ix
9191         and elt.  Use free_char_ptr_vec.
9192         * source.c (add_path): Remove variables argv, arg and argv_index.
9193         New variables dir_vec, back_to, ix and name.
9194         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
9195         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
9196         no longer expecting DIRNAME_SEPARATOR.
9197         (openp): Remove variable p, p1 and len.  New variables dir_vec,
9198         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
9199         no longer expecting DIRNAME_SEPARATOR.
9200         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9201         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
9202         debugdir_end.
9203         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9204         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9205         (dirnames_to_char_ptr_vec): New functions.
9207 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9209         Code cleanup.
9210         * source.c (add_path): Remove always true conditional 'p == 0' and
9211         unindent its code block.
9213 2012-04-17  Pedro Alves  <palves@redhat.com>
9215         * gdbtypes.h (FIELD_BITPOS): Rename to ...
9216         (FIELD_BITPOS_LVAL): ... this.
9217         (FIELD_BITPOS): New.
9218         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9219         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9220         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9221         SET_FIELD_BITPOS.
9222         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9223         SET_FIELD_BITPOS.
9224         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9225         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9226         * target-descriptions.c (tdesc_gdb_type): Adjust to use
9227         SET_FIELD_BITPOS.
9229 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9231         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9232         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9233         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9234         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9235         * jv-lang.c (java_link_class_type): Likewise, once.
9236         * stabsread.c (read_enum_type): Likewise.
9238 2012-04-16  Yao Qi  <yao@codesourcery.com>
9240         * common/agent.c (agent_run_command): Add one more parameter `len'.
9241         Update callers.
9242         * common/agent.h: Update declaration.
9243         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9244         Update.
9245         (linux_child_static_tracepoint_markers_by_strid): Ditto.
9247 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
9249         PR mi/13393
9250         * value.c (value_actual_type): New function.
9251         * value.h (value_actual_type): New declaration.
9252         * varobj.c (update_type_if_necessary): New function.
9253         (varobj_create): Call value_actual_type instead of
9254         value_type.
9255         (install_dynamic_child): distinct changed and type changed MI variable
9256         objects.
9257         (update_dynamic_varobj_children): Updated for install_dynamic_child
9258         change.  All callers updated.
9259         (varobj_update): Support for MI variable object type change if
9260         the value changed and RTTI is used to determine the type.
9261         (create_child_with_value): Call value_actual_type instead of
9262         value_type.
9263         (adjust_value_for_child_access): Extended with a new parameter which
9264         specify whether the given value should be casted to enclosing type.
9265         All callers updated.
9267 2012-04-14  Yao Qi  <yao@codesourcery.com>
9269         Import gnulib module inttypes from git
9270         (250b80067c1e1d8faa0c42fb572f721975b929c5)
9271         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9272         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9273         gnulib/m4/inttypes-pri.m4
9274         * aclocal.m4, config.in, configure: Regenerated.
9275         * gnulib/Makefile.am: Update.
9276         * gnulib/Makefile.in: Update.
9277         * gnulib/m4/gnulib-cache.m4: Update.
9278         * gnulib/m4/gnulib-comp.m4: Update.
9279         * gnulib/inttypes.in.h: New.
9280         * gnulib/m4/inttypes-pri.m4: New.
9281         * gnulib/m4/inttypes.m4: New.
9283 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
9285         * infrun.c (resume): Update PC address to the real PC after
9286         preparing to do displaced stepping.
9288 2012-04-12  Doug Evans  <dje@google.com>
9290         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9291         All callers updated.
9293 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
9295         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9297 2012-04-12  Doug Evans  <dje@google.com>
9299         * dwarf2read.c (create_all_type_units): Renamed from
9300         create_debug_types_hash_table.  All callers updated.
9302         * dwarf2read.c (create_signatured_type_table_from_index): Rename
9303         local type_sig to sig_type, type_offset to type_offset_in_tu.
9304         (hash_signatured_type): Renamed from hash_type_signature,
9305         all callers updated.
9306         (eq_signatured_type): Renamed from eq_type_signature,
9307         all callers updated.
9308         (create_debug_types_hash_table): Rename local type_sig to sig_type.
9309         (process_enumeration_scope): Ditto.
9310         (lookup_signatured_type_at_offset): Ditto.
9311         (load_full_type_unit, read_signatured_type): Ditto.
9313 2012-04-12  Yao Qi  <yao@codesourcery.com>
9315         * remote.c (async_remote_interrupt): Correct function name in
9316         debug message.
9317         (async_remote_interrupt_twice): Ditto.
9319 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
9321         * source.c (find_and_open_source): Consistently pass resulting
9322         full path through xfullpath.
9324 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9326         Provide more specific displaced-stepping memory error message.
9327         * infrun.c (displaced_step_prepare): New variable status.  Call
9328         target_read_memory instead of read_memory, provide more specific
9329         error message.
9331 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9333         PR gdb/13901
9334         * darwin-nat.c (darwin_execvp): Revert previous patch.
9336 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9338         PR gdb/13901
9339         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9340         in case of change.
9342 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9344         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9345         warning.
9347 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
9349         New command 'explore' which helps explore values and types in
9350         scope.
9351         * NEWS: Add an entry about the new 'explore' command.
9352         * data-directory/Makefile.in: Add gdb/command/explore.py
9353         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9354         command using the GDB Python API.
9356 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
9358         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9359         extension in jump target calculation.
9361 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
9363         * mips-tdep.c (mips32_next_pc): Handle JALX.
9365 2012-04-10  Yao Qi  <yao@codesourcery.com>
9367         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9369 2012-04-10  Yao Qi  <yao@codesourcery.com>
9371         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9372         and gnulib/m4/gnulib-tool.m4.
9374 2012-04-10  Doug Evans  <dje@google.com>
9376         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9377         (load_partial_dies): Clarify comment.
9378         (find_partial_die): Support rereading type units.
9379         Clarify CU handling, if we know offset is in CU, don't search for the
9380         containing CU.  Add comment regarding memory waste.
9382 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9384         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9385         i386/x32-avx and i386/x32-avx-linux.
9386         (i386/x32-expedite): New.
9387         (i386/x32-linux-expedite): Likewise.
9388         (i386/x32-avx-expedite): Likewise.
9389         (i386/x32-avx-linux-expedite): Likewise.
9390         ($(outdir)/i386/x32.dat): Likewise.
9391         ($(outdir)/i386/x32-linux.dat): Likewise.
9392         ($(outdir)/i386/x32-avx.dat): Likewise.
9393         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9395         * features/i386/x32-avx-linux.xml: New file.
9396         * features/i386/x32-avx.xml: Likewise.
9397         * features/i386/x32-core.xml: Likewise.
9398         * features/i386/x32-linux.xml: Likewise.
9399         * features/i386/x32.xml: Likewise.
9401         * features/i386/x32-avx-linux.c: New.  Generated.
9402         * features/i386/x32-avx.c: Likewise.
9403         * features/i386/x32-linux.c: Likewise.
9404         * features/i386/x32.c: Likewise.
9405         * regformats/i386/x32-avx-linux.dat: Likewise.
9406         * regformats/i386/x32-avx.dat: Likewise.
9407         * regformats/i386/x32-linux.dat: Likewise.
9408         * regformats/i386/x32.dat: Likewise.
9410 2012-04-10  Tristan Gingold  <gingold@adacore.com>
9412         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9413         code to kill the inferior.
9415 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
9417         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9418         defines.
9419         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9420         defines.
9421         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9422         (yyvsp): New defines.
9423         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9424         defines.
9425         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9426         defines.
9427         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9428         defines.
9429         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9430         defines.
9431         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9432         defines.
9434 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
9436         * sparc64-tdep.c (sparc64_store_arguments)
9437         (sparc64_store_arguments): Fix coding style.
9439 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
9441         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9442         complex floats, adjust some related comments and tighten a related
9443         assertion.
9444         (sparc64_extract_return_value): Handle complex floats.
9446 2012-04-07  Doug Evans  <dje@google.com>
9448         * dwarf2read.c (load_partial_dies): Change condition to assert.
9450 2012-04-06  Doug Evans  <dje@google.com>
9452         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9453         "mov %rsp,%rbp".
9455 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
9457         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9458         fencepost error.
9459         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9460         (v850_gdbarch_init): Set `num_regs' as appropriate for the
9461         architecture.
9463 2012-04-05  Keith Seitz  <keiths@redhat.com>
9465         * linespec.c (decode_compound): Remove.
9466         (enum offset_relative_sign): New enum.
9467         (struct line_offset): New struct.
9468         (struct linespec): New struct.
9469         (struct linespec_state): Move file_symtabs,
9470         user_filename, and user_function into struct linespec.
9471         Make result an anonymous struct holding vectors of
9472         symbolp and minsym_and_objfile_d.
9473         Add language member.
9474         (enum ls_token_type): New enum.
9475         (linespec_keywords): New array.
9476         (struct ls_token): New struct.
9477         (struct ls_parser): New struct.
9478         (linespec_lexer_lex_number): New function.
9479         (linespec_lexer_lex_keyword): New function.
9480         (is_ada_operator): New function.
9481         (skip_quote_char): New function.
9482         (copy_token_string): New function.
9483         (is_closing_quote_enclosed): New function.
9484         (find_parameter_list_end): New function.
9485         (linespec_lexer_lex_string): New function.
9486         (linespec_lexer_lex_one): New function.
9487         (linespec_lexer_consume_token): New function.
9488         (linespec_lexer_peek_token): New function.
9489         (cplusplus_error): Remove unused function.
9490         (find_methods): Update comment.
9491         (find_toplevel_char): Return const.
9492         (is_objc_method_format): Remove unused function.
9493         (find_toplevel_string): New function.
9494         (is_linespec_boundary): Remove.
9495         (symbol_not_found_error): New function.
9496         (find_method_overload_end): Remove function.
9497         (unexpected_linespec_error): New function.
9498         (keep_name_info): Remove.
9499         (linespec_parse_line_offset): New function.
9500         (linespec_parse_basic): New function.
9501         (canonicalize_linespec): New function.
9502         (decode_line_internal): Remove.
9503         (create_sals_line_offset): New function adapted from
9504         decode_all_digits.
9505         (convert_linespec_to_sals): New function.
9506         (parse_linespec): New function.
9507         (linespec_parser_new): New function.
9508         (linespec_state_destructor): Change parameter type to
9509         struct linespec_state *.
9510         Add language parameter.
9511         Remove freeing of moved members.
9512         (linespec_parser_delete): New function.
9513         (decode_line_full): Use parse_linespec and linespec_parser_new.
9514         (decode_line_1): Likewise.
9515         (decode_indirect): Rename to ...
9516         (linespec_expression_to_pc): ... this and rewrite
9517         to simply find CORE_ADDR, storing this result for later
9518         conversion to SALs.
9519         (locate_first_half): Remove.
9520         (deocde_objc): Add parameter LS.
9521         Initialize new struct collect_info members.
9522         Handle minimal symbols, too.
9523         (decode_compound): Delete.
9524         (lookup_prefix_sym): Rewrite.
9525         (compare_msymbols): New function.
9526         (find_method): Rewrite.
9527         Do not call cplusplus_error.
9528         (symtabs_from_filename): Rewrite.
9529         (collect_function_symbols): Delete.
9530         (find_function_symbols): Rewrite without ARGPTR-style
9531         processing.
9532         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9533         (decode_dollar): Adapted and renamed to ...
9534         (linespec_parse_variable): ... this.
9535         (find_linespec_symbols): New function.
9536         (decode_label): Adapted and renamed to ...
9537         (find_label_symbols): ... this.
9538         (decode_digits_list_mode): Add and use LS argument.
9539         (decode_digits_ordinary): Likewise.
9540         (collect_symbols): Do not collect SALs, just symbols and msymbols.
9541         If in list mode, allow any symbol class.  Otherwise, only
9542         permit LOC_BLOCK symbols.
9543         (minsym_found): Update comments.
9544         (search_minsyms_for_name): Do not convert the matching symbol
9545         into a SAL.  Simply push the symbol and objfile into the
9546         result vector.
9547         (decode_variable): Delete. Contents adapted into
9548         find_linespec_symbols.
9550         * cp-support.c (SKIP_SPACE): Remove.
9551         (operator_tokens): Remove unused global.
9552         (cp_validate_operator): Remove.
9553         * cp-support.h (cp_validate_operator): Remove declaration.
9555 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9557         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9558         for TYPE_VPTR_FIELDNO.
9559         * valprint.c (valprint_check_validity): Make it global, move the
9560         function comment ...
9561         * value.h (valprint_check_validity): ... to this new declaration.
9563 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9565         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9566         the STATE32 api for i386 state.
9567         (i386_darwin_store_inferior_registers): Likewise.
9569 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9571         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9572         SS offset.
9573         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9574         format_string.
9576 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9578         PR gdb/13901
9579         * darwin-nat.c (darwin_execvp): Set binary preference.
9581 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9583         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9585 2012-03-30  Tom Tromey  <tromey@redhat.com>
9587         * python/python.c (gdbpy_decode_line): Move cleanup creation out
9588         of TRY_CATCH.  Fix error handling.
9589         * python/py-value.c (convert_value_from_python): Move 'old'
9590         declaration to innermost scope.
9592 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9593             Andrey Smirnov  <andrew.smirnov@gmail.com>
9595         -Wshadow warning fix.
9596         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9597         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9598         Adjust code accordingly.
9600 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9602         * ada-lang.c (symbol_completion_add): Rename parameter
9603         "encoded" into "encoded_p".  Ajust code and documentation
9604         accordingly.
9606 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9607             Andrey Smirnov  <andrew.smirnov@gmail.com>
9609         -Wshadow warning fix.
9610         * ada-lang.c (symbol_completion_add): Rename parameter
9611         "wild_match" into wild_match_p.  Update code and documentation
9612         accordingly.
9614 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9616         * ada-lang.c (symbol_completion_match): Rename parameter
9617         "encoded" into "encoded_p".  Ajust code and documentation
9618         accordingly.
9620 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9621             Andrey Smirnov  <andrew.smirnov@gmail.com>
9623         -Wshadow warning fix.
9624         * ada-lang.c (symbol_completion_match): Rename parameter
9625         "wild_match" into "wild_match_p".  Adjust code and function
9626         documentation accordingly.
9628 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9629             Andrey Smirnov  <andrew.smirnov@gmail.com>
9631         -Wshadow warning fix.
9632         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9633         "symbol_info" into "info".  Adjust code accordingly.
9634         (ada_lookup_symbol): Likewise.
9636 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9638         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9639         of this function's documentation.
9641 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9642             Andrey Smirnov  <andrew.smirnov@gmail.com>
9644         -Wshadow warning fix.
9645         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9646         variable into "wild_match_p".  Adjust code accordingly.
9648 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9649             Andrey Smirnov  <andrew.smirnov@gmail.com>
9651         -Wshadow warning fix.
9652         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9653         parameter into "wild_match_p".  Adjust code accordingly.
9654         Document this parameter in the function description.
9656 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9657             Andrey Smirnov  <andrew.smirnov@gmail.com>
9659         -Wshadow warning fix.
9660         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9661         "wild_match" parameter to "wild_match_p" (-Wshadow).
9663 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9665         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9666         in function documentation.
9668 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9669             Andrey Smirnov  <andrew.smirnov@gmail.com>
9671         -Wshadow warning fix.
9672         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9673         variable into wild_match_p.  Adjust code accordingly.
9675 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9676             Andrey Smirnov  <andrew.smirnov@gmail.com>
9678         * ada-valprint.c (ada_val_print_1): Move the code handling
9679         TYPE_CODE_ENUM inside its own lexical block.  Declare
9680         variables len and val there, instead of in the function's
9681         top level block.  Avoid declaring deref_val again in a way
9682         that shadows another variable of the same name declared
9683         in one of the up-level blocks.  Just re-use the up-level
9684         variable instead.
9686 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9688         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9689         Replace block_found argument by symbol_info.  Adjust
9690         implementation accordingly.  Add function documentation.
9691         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9692         Fix documentation.
9693         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9694         * ada-exp.y (write_object_renaming): Adjust to new
9695         ada_lookup_encoded_symbol API.
9697 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9699         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
9700         documentation.
9702 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
9704         * v850-tdep.c: Add the enum values for mpu and fpu registers.
9705         (v850_register_name): Add the mpu and fpu register names.
9706         (v850e_register_name): Add the mpu and fpu register names.
9707         (v850e2_register_name): New function.
9708         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9709         bfd_mach_v850e2v3.
9711 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9713         * NEWS: Add entry for Ada varobj support.
9715 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9717         * varobj.c (default_value_is_changeable_p): New function,
9718         extracted from varobj_value_is_changeable_p.  Add declaration.
9719         (ada_value_is_changeable_p): New function, extracted from
9720         varobj_value_is_changeable_p.  Add declaration.
9721         (struct language_specific): New field "value_is_changeable_p".
9722         (languages): Add entries for new field.
9723         (varobj_create): Set language before calling install_new_value.
9724         (varobj_value_is_changeable_p): Reimplement to call the varobj's
9725         "value_is_changeable_p" language callback.
9727 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9729         * ada-varobj.h, ada-varobj.c: New files.
9730         * Makefile.in (SFILES): Add ada-varobj.c.
9731         (HFILES_NO_SRCDIR): Add ada-varobj.h.
9732         (COMMON_OBS): Add ada-varobj.o.
9734 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9736         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
9737         (struct language_specific): New field "value_has_mutated".
9738         (languages): Set field "value_has_mutated" in each entry of array.
9739         (varobj_value_has_mutated): New function.
9740         (varobj_udpdate): Add handling of type mutation.
9741         (value_of_root): Add handling of type mutation.
9742         (ada_value_has_mutated): New function.
9744 2012-03-28  Pedro Alves  <palves@redhat.com>
9746         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9747         Always supply $fr0 as 0.0 and $fr1 as 1.0.
9749 2012-03-28  Tom Tromey  <tromey@redhat.com>
9751         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9752         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
9753         before returning.
9755 2012-03-28  Tom Tromey  <tromey@redhat.com>
9757         * .dir-locals.el: New file.
9759 2012-03-28  Pedro Alves  <palves@redhat.com>
9761         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9763 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9765         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9766         handling for r0.
9768 2012-03-27  Pedro Alves  <palves@redhat.com>
9770         Eliminate struct ui_stream.
9772         * ui-out.h (struct ui_stream): Delete.
9773         (ui_out_field_stream): Adjust prototype.
9774         (ui_out_stream_new, ui_out_stream_delete)
9775         (make_cleanup_ui_out_stream_delete): Delete declarations.
9776         * ui-out.c (ui_out_field_stream): Change prototype to take a
9777         ui_file instead of a ui_stream.  Adjust.
9778         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9779         (make_cleanup_ui_out_stream_delete): Delete.
9780         * breakpoint.c (print_breakpoint_location)
9781         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9782         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9783         * disasm.c (dump_insns): Ditto.
9784         (do_mixed_source_and_assembly, do_assembly_only): Adjust
9785         prototype.
9786         (gdb_disassembly): Use ui_file/mem_fileopen instead of
9787         ui_stream/ui_out_stream_new.
9788         * infcmd.c (print_return_value): Ditto.
9789         * osdata.c (info_osdata_command): Don't allocate a local
9790         ui_stream.
9791         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9792         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9793         * tracepoint.c (print_one_static_tracepoint_marker): Don't
9794         allocate a local ui_stream.
9795         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9796         instead of ui_stream/ui_out_stream_new.
9797         (list_args_or_locals): Don't allocate a local ui_stream.
9798         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9799         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9800         ui_stream/ui_out_stream_new.
9801         * cli/cli-setshow.c (do_setshow_command): Ditto.
9803 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
9805         * arm-linux-tdep.c (arm_linux_init_abi): Call
9806         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
9807         * arm-tdep.c (arm_process_record): New function.
9808         (deallocate_reg_mem): New function.
9809         (decode_insn): New function.
9810         (thumb_record_branch): New function.
9811         (thumb_record_ldm_stm_swi(): New function.
9812         (thumb_record_misc): New function.
9813         (thumb_record_ld_st_stack): New function.
9814         (thumb_record_ld_st_imm_offset): New function.
9815         (thumb_record_ld_st_reg_offset(): New function.
9816         (thumb_record_add_sub_cmp_mov): New function.
9817         (thumb_record_shift_add_sub): New function.
9818         (arm_record_coproc_data_proc): New function.
9819         (arm_record_coproc): New function.
9820         (arm_record_b_bl): New function.
9821         (arm_record_ld_st_multiple): New function.
9822         (arm_record_ld_st_reg_offset): New function.
9823         (arm_record_ld_st_imm_offset): New function.
9824         (arm_record_data_proc_imm): New function.
9825         (arm_record_data_proc_misc_ld_str): New function.
9826         (arm_record_extension_space): New function.
9827         (arm_record_strx): New function.
9828         (sbo_sbz): New function.
9829         (struct insn_decode_record): New structure for arm insn record.
9830         (REG_ALLOC): New macro for reg allocations.
9831         (MEM_ALLOC): New macro for memory allocations.
9832         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9834 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
9836         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9837         (store_register): Likewise.
9839 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
9841         * MAINTAINERS (Write After Approval): Add myself to the list.
9843 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9845         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9846         Describe also the option "auto".
9848 2012-03-22  Richard Henderson  <rth@redhat.com>
9850         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9851         * sparc-nat.c (sparc_xfer_wcookie): Make static.
9853 2012-03-22  Richard Henderson  <rth@redhat.com>
9855         * jit.c (jit_read_code_entry): Compute alignment and offset of
9856         int64_t member before computing entry_size.
9858 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9860         Python scripting: Add new method Value.referenced_value to
9861         gdb.Value which can dereference pointer as well as reference
9862         values.
9863         * NEWS: Add entry under 'Python scripting' about the new method
9864         Value.referenced_value on gdb.Value objects.
9865         * python/py-value.c (valpy_referenced_value): New function
9866         defining a new method on gdb.Value objects which can dereference
9867         pointer and reference values.
9869 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9871         * MAINTAINERS (Write After Approval): Add myself to the list.
9873 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
9875         * symtab.c (skip_prologue_sal): Change test to check for "main()"
9876         in addition to "main".
9878 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
9880         * expression.h (op_name): Add declaration.
9881         * expprint.c (op_name): Remove declaration.  Make non-static.
9882         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9884 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9886         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9887         of struct siginfo.
9888         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9889         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9890         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9891         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9892         (linux_nat_get_siginfo): Likewise.
9893         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9894         (linux_nat_get_siginfo): Likewise.
9895         * linux-tdep.c (linux_get_siginfo_type): Likewise.
9896         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9897         * procfs.c (gdb_siginfo_t): Likewise.
9899 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
9901         * .gitignore: Ignore more files.
9903 2012-03-20  Pedro Alves  <palves@redhat.com>
9905         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9906         returns.
9908 2012-03-20  Yao Qi  <yao@codesourcery.com>
9910         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9911         comment.
9913 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9915         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9916         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9917         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9918         sect_offset.
9919         * dwarf2expr.h (cu_offset, sect_offset): New types.
9920         (struct dwarf_expr_context_funcs) <dwarf_call>
9921         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9922         sect_offset.
9923         (struct dwarf_expr_context) <len>: Improve the comment.
9924         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9925         cu_offset and sect_offset.
9926         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9927         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9928         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9929         * dwarf2loc.h: Include dwarf2expr.h.
9930         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9931         and sect_offset.
9932         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9933         Improve the comment.
9934         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9935         (struct signatured_type, struct line_header, struct partial_die_info)
9936         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9937         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9938         (get_die_type_at_offset, create_cus_from_index)
9939         (create_signatured_type_table_from_index, dw2_get_file_names)
9940         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9941         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9942         (create_debug_types_hash_table, process_psymtab_comp_unit)
9943         (load_partial_comp_unit, create_all_comp_units)
9944         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9945         (load_full_comp_unit, dwarf2_physname, read_import_statement)
9946         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9947         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9948         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9949         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9950         (find_partial_die, read_attribute_value, lookup_die_type)
9951         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9952         (is_ref_attr): New function comment.
9953         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9954         Use cu_offset and sect_offset.
9955         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9956         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9957         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9958         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9959         (offset_and_type_hash, offset_and_type_eq, set_die_type)
9960         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9961         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9962         sect_offset.
9964 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9966         Code cleanup.
9967         * python/py-auto-load.c (source_section_scripts): New variable back_to.
9968         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9969         with xfree.
9970         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9972 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9974         * NEWS: Describe new options --init-command=FILE, -ix and
9975         --init-eval-command=COMMAND, -iex.
9976         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9977         CMDARG_INIT_COMMAND.
9978         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
9979         "init-command", "init-eval-command", "ix" and "iex" to the variable
9980         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
9981         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9982         (print_gdb_help): Describe --init-command=FILE, -ix and
9983         --init-eval-command=COMMAND, -iex.
9985 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9987         Code cleanup.
9988         * main.c (struct cmdarg): Move it here from main.  Add more comments.
9989         (cmdarg_s, VEC (cmdarg_s)): New.
9990         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
9991         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
9992         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
9993         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
9994         of CMDARG.
9996 2012-03-19  Tom Tromey  <tromey@redhat.com>
9998         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
10000 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10002         PR symtab/13777
10003         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
10004         GCC >=4.5.
10006 2012-03-16  Chris January  <chris.january@allinea.com>
10008         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
10009         of clear.
10011 2012-03-16  Chris January  <chris.january@allinea.com>
10013         * source.c (add_path): Use memmove instead of strcpy because the
10014         strings overlap.
10016 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
10018         * value.h (set_value_parent): Add declaration.
10019         * value.c (set_value_parent): New function.
10020         (value_address): If VALUE->PARENT is not NULL, then use it as
10021         the base address instead of VALUE->LOCATION.address.
10022         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
10023         the same as OBJ's address.  Adjust V's offset accordingly.
10024         Set V's parent.
10026 2012-03-16  Gary Benson  <gbenson@redhat.com>
10028         PR breakpoints/10738
10029         * dwarf2read.c (use_deprecated_index_sections): New global.
10030         (struct partial_die_info): New member may_be_inlined.
10031         (read_partial_die): Set may_be_inlined where appropriate.
10032         (add_partial_subprogram): Add partial symbols for partial
10033         DIEs that may be inlined.
10034         (new_symbol_full): Add inlined subroutines to the current
10035         scope.
10036         (write_psymtabs_to_index): Bump version number.
10037         (dwarf2_read_index): Read only version 6 indices unless
10038         use_deprecated_index_sections is set.
10039         * linespec.c (symbol_and_data_callback): New structure.
10040         (iterate_inline_only): New function.
10041         (iterate_over_all_matching_symtabs): New argument
10042         "include_inline".  If nonzero, also call the callback for
10043         symbols representing inlined subroutines.
10044         (lookup_prefix_sym): Pass extra argument to the above.
10045         (find_function_symbols): Likewise.
10046         (add_matching_symbols_to_info): Likewise.
10047         * NEWS: Mention that GDB can now set breakpoints on inlined
10048         functions.
10050 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
10052         * p-typeprint.c (pascal_type_print_method_args):
10053         Fix display of parameter of methods.
10055 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
10057         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
10058         Add missing prototype.
10060 2012-03-16  Yao Qi  <yao@codesourcery.com>
10061             Jan Kratochvil  <jan.kratochvil@redhat.com>
10063         Fix false compilation warning.
10064         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
10066 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
10067             Pedro Alves  <pedro@codesourcery.com>
10069         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
10070         (arm_register_g_packet_guesses): New function.
10071         (arm_gdbarch_init): Don't force a target description with
10072         registers when the executable is detected as M-profile.  Instead
10073         set gdbarch->tdep->is_m.  Register `g' packet guesses.
10074         (_initialize_arm_tdep): Initialize the new target description.
10075         * features/arm-with-m-fpa-layout.xml: New description.
10076         * features/arm-with-m-fpa-layout.c: New, generated.
10078 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
10080         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
10081         Update function description.
10082         (insert_bp_location): Do not wipe bl->target_info out.
10083         * mem-break.c: #include "gdb_string.h".
10084         (default_memory_insert_breakpoint): Do not call target_read_memory
10085         with a pointer to the breakpoint's shadow_contents buffer.  Use
10086         a local buffer instead.
10087         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
10089 2012-03-15  Tom Tromey  <tromey@redhat.com>
10091         * NEWS: Mention "info vtbl", not "info vtable".
10092         * cp-support.c (info_vtbl_command): Fix comment.
10093         (_initialize_cp_support): Fix text.
10095 2012-03-15  Tom Tromey  <tromey@redhat.com>
10097         * cp-valprint.c (cp_print_value_fields): Use
10098         print_function_pointer_address for vtable slot.
10100 2012-03-15  Tom Tromey  <tromey@redhat.com>
10102         * gnu-v3-abi.c (struct value_and_voffset): New.
10103         (hash_value_and_voffset, eq_value_and_voffset)
10104         (compare_value_and_voffset, compute_vtable_size)
10105         (print_one_vtable, gnuv3_print_vtable): New functions.
10106         (init_gnuv3_ops): Initialize 'print_vtable' field.
10107         * cp-support.c (info_vtbl_command): New function.
10108         (_initialize_cp_support): Add "info vtbl".
10109         * cp-abi.h (cplus_print_vtable): Declare.
10110         (struct cp_abi_ops) <print_vtable>: New field.
10111         * cp-abi.c (cplus_print_vtable): New function.
10112         * NEWS: Update.
10114 2012-03-15  Tom Tromey  <tromey@redhat.com>
10116         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
10117         iterate_over_symbols.
10119 2012-03-14  Doug Evans  <dje@google.com>
10121         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
10122         DW_OP_GNU_parameter_ref.
10124 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10126         Fix double prompt of 'interpreter-exec mi'.
10127         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10128         (mi_interpreter_resume): use it.
10129         (mi_execute_command_input_handler): New function.
10130         * mi/mi-main.c (mi_execute_command): Move prompt printing to
10131         mi_execute_command_input_handler.
10133 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10135         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10136         prototype.
10137         (darwin_debug_port_info): Make static.
10138         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10139         * machoread.c (_initialize_machoread): Add prototype.
10140         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10141         (i386_darwin_set_control, i386_darwin_get_control)
10142         i386_darwin_dr_set_addr, i386_darwin_get_addr)
10143         i386_darwin_get_status, i386_darwin_get_control):
10144         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10146 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
10148         * ax-gdb.c (gen_usual_unary): Remove special handling of
10149         enum and bool types.
10151 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
10153         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10155 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
10157         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10159 2012-03-13  Chris January  <chris.january@allinea.com>
10161         * aix-thread.c (fill_sprs): Store the floating point registers
10162         at the correct offsets into vals.
10164 2012-03-13  Doug Evans  <dje@google.com>
10166         * NEWS: Mention symbol-reloading has been deleted.
10167         * symfile.c (symbol_reloading): Delete.
10168         (show_symbol_reloading): Delete.
10169         (_initialize_symfile): Delete set/show symbol-reloading.
10171         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10172         read_in_chain until we have successfully read it in.
10173         (load_full_comp_unit): Ditto.
10174         (read_signatured_type): Add comment.
10176 2012-03-13  Chris January  <chris.january@allinea.com>
10178         * stabsread.c (fix_common_block): Change type of valu argument
10179         to CORE_ADDR.
10181 2012-03-13  Chris January  <chris.january@allinea.com>
10183         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10184         instruction.
10186 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10188         * common/linux-procfs.c (linux_proc_get_int): New, from
10189         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10190         field.
10191         (linux_proc_get_tgid): Only call linux_proc_get_int.
10192         (linux_proc_get_tracerpid): New.
10193         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10194         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10195         linux_proc_pid_has_state.
10196         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10197         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10198         (linux_ptrace_attach_warnings): New.
10199         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10200         New declaration.
10201         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10202         (linux_nat_attach): New variables ex, buffer, message and message_s.
10203         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10205 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10207         * Makefile.in (linux-ptrace.o): New.
10208         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10209         from linux-nat.c.
10210         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10211         * common/linux-ptrace.c: New file.
10212         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10213         * config/arm/linux.mh: Likewise.
10214         * config/i386/linux.mh: Likewise.
10215         * config/i386/linux64.mh: Likewise.
10216         * config/ia64/linux.mh: Likewise.
10217         * config/m32r/linux.mh: Likewise.
10218         * config/m68k/linux.mh: Likewise.
10219         * config/mips/linux.mh: Likewise.
10220         * config/pa/linux.mh: Likewise.
10221         * config/powerpc/linux.mh: Likewise.
10222         * config/powerpc/ppc64-linux.mh: Likewise.
10223         * config/powerpc/spu-linux.mh: Likewise.
10224         * config/s390/s390.mh: Likewise.
10225         * config/sparc/linux.mh: Likewise.
10226         * config/sparc/linux64.mh: Likewise.
10227         * config/xtensa/linux.mh: Likewise.
10228         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10229         common/linux-procfs.c.
10230         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10232 2012-03-13  Hui Zhu  <teawater@gmail.com>
10233             Pedro Alves  <palves@redhat.com>
10235         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
10236         CREATE_BREAKPOINT_FLAGS_INSERTED.
10237         (create_breakpoint_sal, create_breakpoints_sal)
10238         (base_breakpoint_create_breakpoints_sal)
10239         (tracepoint_create_breakpoints_sal)
10240         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
10241         down.
10242         (break_command_1, handle_gnu_v3_exceptions, trace_command)
10243         (ftrace_command, strace_command): Adjust.
10244         (create_tracepoint_from_upload): Pass
10245         CREATE_BREAKPOINT_FLAGS_INSERTED.
10246         * breakpoint.h (enum breakpoint_create_flags): New.
10247         (create_breakpoint): New flags parameter.
10248         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10249         * python/py-breakpoint.c (bppy_init): Adjust.
10250         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10251         * spu-tdep.c (spu_catch_start): Adjust.
10253 2012-03-13  Pedro Alves  <palves@redhat.com>
10254             Hui Zhu  <teawater@gmail.com>
10255             Yao Qi  <yao@codesourcery.com>
10257         * remote.c (struct remote_state): New field `starting_up'.
10258         (remote_start_remote): Set and clear it.
10259         (remote_can_download_tracepoint): If starting up, return false.
10261 2012-03-13  Yao Qi  <yao@codesourcery.com>
10263         * inferior.h (struct inferior): Remove fields any_syscall_count,
10264         syscalls_counts and total_syscalls_count.  Move them to new
10265         struct catch_syscall_inferior_data in breakpoint.c.
10266         * breakpoint.c: Call DEF_VEC_I(int).
10267         (struct catch_syscall_inferior_data): New.
10268         (get_catch_syscall_inferior_data): New.
10269         (catch_syscall_inferior_data_cleanup): New.
10270         (insert_catch_syscall): Update to access data in
10271         struct catch_syscall_inferior_data.
10272         (insert_catch_syscall): Likewise.
10273         (remove_catch_syscall): Likewise.
10274         (remove_catch_syscall): Likewise.
10275         (is_syscall_catchpoint_enabled): Likewise.
10276         (add_catch_command): Likewise.
10277         (_initialize_breakpoint): Register cleanup.
10278         * breakpoint.h: Removed DEF_VEC_I(int).
10279         * dwarf2loc.c: Call DEF_VEC_I(int).
10280         * mi/mi-main.c: Likewise.
10282 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
10284         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10286 2012-03-12  Chris January  <chris.january@allinea.com>
10288         * aix-thread.c (_initialize_aix_thread): Add prototype.
10289         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10290         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10292 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
10294         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10295         include of "amd64-nat.h".
10297 2012-03-12  Tom Tromey  <tromey@redhat.com>
10299         * buildsym.c (record_pending_block): Now static.
10300         * buildsym.h: (record_pending_block): Remove.
10302 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
10304         * amd64bsd-nat.c: Include amd64bsd-nat.h.
10306 2012-03-09  Tom Tromey  <tromey@redhat.com>
10308         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10309         producer_is_gxx_lt_4_6>: New fields.
10310         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10312 2012-03-09  Tom Tromey  <tromey@redhat.com>
10314         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10316 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10318         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10319         prototype.
10321 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10323         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10325 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10327         Fix -Wmissing-prototypes build.
10328         * arm-linux-nat.c (get_thread_id): Make it static.
10329         * xtensa-linux-nat.c (get_thread_id): Likewise.
10331 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10333         * server.c (process_point_options): If a conditional expression
10334         is found, only print a message if remote_debug is nonzero.
10336 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
10338         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10339         of internal error for unknown/unsupported types.
10341 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10343         Fix CU relative vs. absolute DIE offsets.
10344         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10345         offset to offset_in_cu.
10346         * dwarf2read.c (process_enumeration_scope): Add CU offset to
10347         TYPE_OFFSET.
10348         (dwarf2_fetch_die_location_block): Rename parameter offset to
10349         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
10351 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10353         * libunwind-frame.c: Rename to ...
10354         * ia64-libunwind-tdep.c: ... here.
10355         * libunwind-frame.h: Rename to ...
10356         * ia64-libunwind-tdep.h: ... here.
10357         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10358         ia64-libunwind-tdep.h.
10359         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10360         * README (--with-libunwind): Rename to ...
10361         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10362         * config.in: Regenerate.
10363         * configure: Regenerate.
10364         * configure.ac: New option --with-libunwind-ia64, make the
10365         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
10366         Remove AC_DEFINE for HAVE_LIBUNWIND.
10367         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10368         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10369         Rename libunwind-frame in the general comment.
10370         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10371         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10372         Move forward declarations inside #ifndef.  Rename libunwind-frame in
10373         the general comment.
10374         * ia64-tdep.c: Rename libunwind-frame.h #include to
10375         ia64-libunwind-tdep.h.
10376         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10377         (ia64_libunwind_descr): Rename libunwind-frame to
10378         ia64-libunwind-tdep in these function comments.
10379         * ia64-tdep.h: Rename libunwind-frame.h #include to
10380         ia64-libunwind-tdep.h.
10381         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10382         ia64-libunwind-tdep in that data comment.
10384 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10386         * libunwind-frame.h (struct frame_unwind): New declaration.
10388 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10390         * breakpoint.c (_initialize_breakpoint): Fix error in help of
10391         "set breakpoint condition-evaluation" command.
10393 2012-03-08  Tristan Gingold  <gingold@adacore.com>
10395         * sparc-stub.c: Move to stubs/
10396         * sh-stub.c: Likewise.
10397         * m68k-stub.c: Likewise.
10398         * m32r-stub.c: Likewise.
10399         * i386-stub.c: Likewise.
10401 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
10403         * m68klinux-tdep.c (m68k_linux_init_abi): Register
10404         linux_get_siginfo_type.
10406         * m68klinux-nat.c: Include "gdb_proc_service.h".
10407         (PTRACE_GET_THREAD_AREA): Define.
10408         (ps_get_thread_area): New function.
10410 2012-03-08  Yao Qi  <yao@codesourcery.com>
10412         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10413         `xsnprintf'.
10414         (remote_query_attached): Likewise.
10415         (remote_static_tracepoint_marker_at): Likewise.
10416         (remote_set_permissions): Likewise.
10417         (remote_detach_1, extended_remote_attach_1): Likewise.
10418         (send_g_packet, remote_vkill): Likewise.
10419         (extended_remote_disable_randomization): Likewise.
10420         (remote_add_target_side_condition): Likewise.
10421         (remote_insert_breakpoint): Likewise.
10422         (remote_remove_breakpoint): Likewise.
10423         (remote_insert_watchpoint): Likewise.
10424         (remote_remove_watchpoint): Likewise.
10425         (remote_insert_hw_breakpoint): Likewise.
10426         (remote_insert_hw_breakpoint): Likewise.
10427         (remote_remove_hw_breakpoint): Likewise.
10428         (remote_download_command_source): Likewise.
10429         (remote_download_tracepoint): Likewise.
10430         (remote_download_trace_state_variable): Likewise.
10431         (remote_disable_tracepoint): Likewise.
10432         (remote_trace_set_readonly_regions): Likewise.
10433         (remote_get_tracepoint_status): Likewise.
10434         (remote_trace_find): Likewise.
10435         (remote_get_trace_state_variable_value): Likewise.
10436         (remote_set_disconnected_tracing): Likewise.
10437         (remote_set_circular_trace_buffer): Likewise.
10438         (remote_get_min_fast_tracepoint_insn_len): Likewise.
10439         (remote_use_agent): Likewise.
10440         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10441         Update callers.
10443 2012-03-07  Pedro Alves  <palves@redhat.com>
10445         * NEWS: Mention QProgramSignals.
10446         * inferior.h (update_signals_program_target): Declare.
10447         * infrun.c: (update_signals_program_target): New.
10448         (handle_command): Update the target of the new program signals
10449         array changes.
10450         * remote.c (PACKET_QProgramSignals): New enum.
10451         (last_program_signals_packet): New global.
10452         (remote_program_signals): New.
10453         (remote_start_remote): Update the target with the program signals
10454         list.
10455         (remote_protocol_features): Add entry for QPassSignals.
10456         (remote_open_1): Free anc clear last_program_signals_packet.
10457         (init_remote_ops): Install remote_program_signals.
10458         * target.c (update_current_target): Adjust.
10459         (target_program_signals): New.
10460         * target.h (struct target_ops) <to_program_signals>: New field.
10461         (target_program_signals): Declare.
10463 2012-03-07  Pedro Alves  <palves@redhat.com>
10465         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10466         extensions.
10468 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
10470         * m68klinux-nat.c (getregs_supplies): Make static.
10471         (getfpregs_supplies): Likewise.
10472         (have_ptrace_getregs): Likewise.
10474 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
10476         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10477         in call to get_die_type_at_offset.
10479 2012-03-06  Stan Shebs  <stan@codesourcery.com>
10481         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10482         * mi/mi-cmd-disas.c: Ditto.
10483         * mi/mi-cmd-env.c: Ditto.
10484         * mi/mi-cmd-file.c: Ditto.
10485         * mi/mi-cmd-stack.c: Ditto.
10486         * mi/mi-cmd-target.c: Ditto.
10487         * mi/mi-cmd-var.c: Ditto.
10488         * mi/mi-cmds.c: Ditto.
10489         * mi/mi-cmds.h: Ditto.
10490         * mi/mi-console.c: Ditto.
10491         * mi/mi-getopt.c: Ditto.
10492         * mi/mi-getopt.h: Ditto.
10493         * mi/mi-interp.c: Ditto.
10494         * mi/mi-main.c: Ditto.
10495         * mi/mi-out.c: Ditto.
10496         * mi/mi-parse.c: Ditto.
10497         * mi/mi-parse.h: Ditto.
10498         * mi/mi-symbol-cmds.c: Ditto.
10500         * mi/mi-getopt.h: Move mi_opt struct up.
10501         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10502         return.
10503         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10505 2012-03-06  Tom Tromey  <tromey@redhat.com>
10507         * proc-service.c (ps_pglobal_lookup): Set the current program
10508         space.
10510 2012-03-06  Pedro Alves  <palves@redhat.com>
10512         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10514 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
10516         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10518 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10520         Code cleanup.
10521         * common/linux-osdata.c (linux_common_core_of_thread): New function
10522         comment.
10523         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10524         call by linux_common_core_of_thread.
10525         (linux_nat_core_of_thread_1): Remove.
10526         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10527         * linux-thread-db.c: Include linux-osdata.h.
10528         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10529         linux_common_core_of_thread.
10531 2012-03-05  Tom Tromey  <tromey@redhat.com>
10533         * value.c (value_primitive_field): Don't fetch contents for
10534         non-virtual bases.
10536 2012-03-05  Tom Tromey  <tromey@redhat.com>
10538         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10540 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10542         * s390-nat.c: Include "gregset.h".
10544 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10546         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10547         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10548         (libunwind_load): New variable so_error, use it for dlerror.  Try to
10549         load also LIBUNWIND_SO_7.
10551 2012-03-05  Pedro Alves  <palves@redhat.com>
10553         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10554         is not NULL, and remove resulting dead code.
10556 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
10558         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10559         prologue to sh_analyze_prologue.
10560         (sh_analyze_prologue): Make better use of such an upper limit, and
10561         generally be more cautious about accessing memory.
10563 2012-03-05  Tom Tromey  <tromey@redhat.com>
10565         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10566         _initialize_ia64_hpux_tdep.
10568 2012-03-05  Pedro Alves  <palves@redhat.com>
10570         PR gdb/13766
10572         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10573         the register state is clear, supply explicit zero, instead of
10574         marking the register unavailable.
10576 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10578         * NEWS: Mention OpenVMS ia64 new target.
10580 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10582         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10583         (ia64_unw_accessors, ia64_unw_rse_accessors)
10584         (ia64_libunwind_descr): Declare.
10585         * ia64-vms-tdep.c: New file.
10586         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10587         (ia64_libunwind_descr): Make them public.
10588         * configure.tgt: Add ia64-*-*vms*.
10589         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10590         (ALLDEPFILES): Add ia64-vms-tdep.c
10592 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10594         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10595         * remote.c (PACKET_qXfer_uib): New enum value.
10596         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10597         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10598         (_initialize_remote): Call add_packet_config_cmd for
10599         xfer:uib packet.
10601 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10603         * osabi.c (gdb_osabi_names): Add OpenVMS.
10604         (generic_elf_osabi_sniffer): Likewise.
10605         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10607 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10609         Removed unused code.
10610         * libunwind-frame.c (libunwind_frame_unwind)
10611         (libunwind_frame_base_address): Remove.
10612         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10614 2012-03-04  Yao Qi  <yao@codesourcery.com>
10616         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10617         remove trailing new line.
10618         (agent_run_command, agent_run_command): Add _ markup.
10619         (agent_capability_check): Likewise.
10621 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10623         * breakpoint.c (set_condition_evaluation_mode): Set
10624         CONDITION_EVALUATION_MODE unconditionally.
10626 2012-03-03  Yao Qi  <yao@codesourcery.com>
10628         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10629         * common/agent.h: Update declaration.
10630         * inf-child.c (inf_child_use_agent): New.
10631         (inf_child_can_use_agent): New.
10632         (inf_child_target): Initialize fields `to_use_agent'
10633         and `to_can_use_agent'.
10634         * agent.c (agent_new_objfile): New.
10635         (_initialize_agent): Add agent_new_objfile to new_objfile
10636         observer.
10638         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10639         New.
10640         (linux_target_install_ops): Initialize field
10641         `to_static_tracepoint_markers_by_strid'.
10642         * remote.c (free_current_marker): Move it to ...
10643         * tracepoint.c (free_current_marker): ... here.  New.
10644         (cleanup_target_stop): New.
10645         * tracepoint.h: Declare free_current_marker.
10646         * NEWS: Add one entry about `info static-tracepoint-marker'.
10648 2012-03-03  Yao Qi  <yao@codesourcery.com>
10650         * common/agent.c (agent_loaded_p): New.
10651         (agent_look_up_symbols): New global.
10652         * common/agent.h: Declare agent_loaded_p.
10654 2012-03-03  Yao Qi  <yao@codesourcery.com>
10656         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10657         (agent_capability_check, agent_capability_invalidate): New.
10658         (symbol_list): New array element.
10659         * common/agent.h (enum agent_capa): New.
10660         * target.c (target_pre_inferior): Call agent_capability_invalidate.
10662 2012-03-03  Yao Qi  <yao@codesourcery.com>
10664         * target.h (struct target_ops) <to_use_agent>: New field.
10665         (struct target_ops) <to_can_use_agent>: New field.
10666         (target_use_agent, target_can_use_agent): New macro.
10667         * target.c (update_current_target): Update.
10668         * remote.c: New enum `PACKET_QAgent'.
10669         (remote_protocol_features): Add a new element.
10670         (remote_use_agent, remote_can_use_agent): New.
10671         (init_remote_ops): Initialize field `can_use_agent' with
10672         remote_can_use_agent.  Intiailize field `use_agent' with
10673         remote_use_agent.
10674         * common/agent.c (use_agent): New global.
10675         * common/agent.h: Declare it.
10676         * tracepoint.c (info_static_tracepoint_markers_command): Add
10677         comment.
10678         * Makefile.in (SFILES): Add common/agent.c and agent.c.
10679         (COMMON_OBS): Add common/agent.o and agent.o
10680         (common-agent.o): New rule.
10681         * agent.c: New.
10683 2012-03-03  Yao Qi  <yao@codesourcery.com>
10685         * common/agent.c: New.
10686         * common/agent.h: New.
10687         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10688         AC_CHECK_HEADERS.
10689         * configure, configh.in: Regenerated.
10691 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
10693         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10694         unless it exists for this architecture.
10696 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10698         * language.h (struct language_defn): New "method" la_read_var_value.
10699         * findvar.c: #include "language.h".
10700         (default_read_var_value): Renames read_var_value.  Rewrite
10701         function description.
10702         (read_var_value): New function.
10703         * value.h (default_read_var_value): Add prototype.
10704         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10705         New functions.
10706         (ada_language_defn): Add entry for la_read_var_value.
10707         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10708         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10709         language_defn structures to add entry for new la_read_var_value
10710         field.
10712 2012-03-02  Tom Tromey  <tromey@redhat.com>
10713             Pedro Alves  <palves@redhat.com>
10715         PR breakpoints/13776:
10716         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10717         breakpoints.
10718         (delete_longjmp_breakpoint_at_next_stop): New.
10719         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10720         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10721         before deleting the inferior.  Add comments.
10722         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10723         breakpoints immediately, but only on next stop.  Move that code
10724         next to where we mark other breakpoints for deletion.
10726 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10728         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10729         marker.
10730         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10731         violation.
10733 2012-03-02  Pedro Alves  <palves@redhat.com>
10735         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10737 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
10739         Fix -Wmissing-prototypes build.
10740         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10741         * remote-sim.c (gdbsim_has_all_memory): Likewise.
10742         (gdbsim_has_memory): Likewise.
10744 2012-03-02  Yao Qi  <yao@codesourcery.com>
10746         Fix -Wmissing-prototypes build.
10747         * charset.c (phony_iconv_open): Make static.
10748         (phony_iconv_close, phony_iconv): Likewise.
10749         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10750         * i386-windows-nat.c (_initialize_i386_windows_nat): New
10751         prototype.
10752         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10753         * ser-mingw.c (create_select_thread): Make static.
10754         * windows-termcap.c (tgetent): New prototype.
10755         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10757 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
10759         Fix -Wmissing-prototypes build.
10760         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10761         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10762         (_initialize_loadable): New prototypes.
10764 2012-03-02  Doug Evans  <dje@google.com>
10766         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10767         abbrev table, read_comp_unit will do it.
10769 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10771         Fix -Wmissing-prototypes build.
10772         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10773         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10774         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10775         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10776         (_initialize_arm_symbian_tdep): New prototype.
10777         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10778         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10779         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10780         static.
10781         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10782         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10783         prototype.
10784         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10785         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10786         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10787         static.
10788         * moxie-tdep.c (moxie_process_record): Likewise.
10789         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10790         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10791         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10792         (_initialize_rl78_tdep): New prototype.
10793         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10794         (_initialize_rx_tdep): New prototype.
10795         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10796         (_initialize_darwin_solib): New prototype.
10797         * solib-spu.c: Include solib-spu.h.
10798         (_initialize_spu_solib): New prototype.
10799         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10800         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10801         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10802         (tic6x_software_single_step): Make it static.
10803         (_initialize_tic6x_tdep): New prototype.
10805 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10807         Fix -Wmissing-prototypes build.
10808         * cris-tdep.c (cris_can_use_hardware_watchpoint)
10809         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10811 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10813         Fix -Wmissing-prototypes build.
10814         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10815         (frv_have_stopped_data_address): Remove.
10817 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10819         Fix -Wmissing-prototypes build.
10820         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10821         * sh-tdep.c: Include sh64-tdep.h.
10822         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10823         * sh64-tdep.c: Include sh64-tdep.h.
10824         * sh64-tdep.h: New file.
10826 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
10828         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10830 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10832         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10833         sp_regnum once the gdbarch_init_osabi hook has been called.
10835 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10837         * mips-tdep.c (mips32_bc1_pc): New function.
10838         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10839         BPOSGE32 and BPOSGE64 instructions.
10840         (deal_with_atomic_sequence): Likewise.
10841         (mips32_instruction_has_delay_slot): Likewise.
10843 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
10844             Chris Dearman  <chris@mips.com>
10845             Maciej W. Rozycki  <macro@codesourcery.com>
10846             Joseph Myers  <joseph@codesourcery.com>
10848         * features/mips-dsp.xml: New file.
10849         * features/mips64-dsp.xml: New file.
10850         * features/mips-dsp-linux.xml: New file.
10851         * features/mips64-dsp-linux.xml: New file.
10852         * features/Makefile (WHICH): Add mips-dsp-linux and
10853         mips64-dsp-linux.
10854         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10855         * features/mips-dsp-linux.c: New file.
10856         * features/mips64-dsp-linux.c: New file.
10857         * regformats/mips-dsp-linux.dat: New file.
10858         * regformats/mips64-dsp-linux.dat: New file.
10859         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10860         registers.
10861         (mips64_linux_register_addr): Likewise.
10862         (mips64_linux_regsets_fetch_registers): Likewise.
10863         (mips64_linux_regsets_store_registers): Likewise.
10864         (mips64_linux_fetch_registers): Update call to
10865         mips64_linux_regsets_fetch_registers.
10866         (mips64_linux_store_registers): Update call to
10867         mips64_linux_regsets_store_registers.
10868         (mips_linux_read_description): Probe for DSP registers.
10869         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10870         and initialize_tdesc_mips64_dsp_linux.
10871         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10872         Remove padding of no longer used embedded register slots.
10873         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10874         (MIPS_RESTART_REGNUM): Redefine enum value.
10875         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10876         strings.
10877         (mips_tx39_reg_names): Likewise.
10878         (mips_linux_reg_names): New array of register names for Linux
10879         targets.
10880         (mips_register_name): Check for a null pointer in
10881         mips_processor_reg_names and return an empty string.
10882         (mips_register_type): Exclude embedded registers for the IRIX
10883         and Linux ABIs.
10884         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
10885         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
10886         DSP registers.
10887         (mips_stab_reg_to_regnum): Handle DSP accumulators.
10888         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10889         (mips_gdbarch_init): Likewise.  Initialize internal register
10890         indices for the Linux ABI.  Use dynamic numbers to refer to
10891         registers, as applicable, while parsing the target description.
10892         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10894 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10896         * frame.h (read_frame_register_unsigned): Fix typo in function
10897         description.
10899 2012-03-01  Pedro Alves  <palves@redhat.com>
10901         * jit-reader.in [!__cplusplus]
10902         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10904 2012-03-01  Pedro Alves  <palves@redhat.com>
10906         * configure.ac (build_warnings): Add -Wmissing-prototypes.
10907         * configure: Regenerate.
10909 2012-03-01  Pedro Alves  <palves@redhat.com>
10911         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10912         * breakpoint.c (create_exception_master_breakpoint, trace_command)
10913         (ftrace_command, strace_command): Make static.
10914         * d-lang.c (_initialize_d_language): Declare.
10915         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10916         * dwarf2loc.c (_initialize_dwarf2loc):
10917         * dwarf2read.c (process_psymtab_comp_unit): Make static.
10918         * exec.c (exec_get_section_table): Make static.
10919         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10920         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10921         * inferior.c (remove_inferior_command, add_inferior_command)
10922         (clone_inferior_command): Make static.
10923         * linux-nat.c (linux_nat_thread_address_space)
10924         (linux_nat_core_of_thread): Make static.
10925         * linux-tdep.c (_initialize_linux_tdep): Declare.
10926         * objc-lang.c (_initialize_objc_lang): Declare.
10927         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10928         Make static.
10929         (_initialize_opencl_language): Declare.
10930         * record.c (_initialize_record): Declare.
10931         * remote.c (demand_private_info, remote_get_tib_address)
10932         (remote_supports_cond_tracepoints)
10933         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10934         Make static.
10935         * skip.c (_initialize_step_skip): Declare.
10936         * symtab.c (skip_prologue_using_lineinfo): Make static.
10937         * tracepoint.c (delete_trace_state_variable)
10938         (trace_variable_command, delete_trace_variable_command)
10939         (get_uploaded_tsv, find_matching_tracepoint_location)
10940         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10941         Make static.
10942         * value.c (pack_unsigned_long): Make static.
10943         * varobj.c (varobj_ensure_python_env): Make static.
10944         * windows-tdep.c (_initialize_windows_tdep): Declare.
10945         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10947 2012-03-01  Pedro Alves  <palves@redhat.com>
10949         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
10950         gdbarch parameter.
10951         (linux_init_abi): Install it as has_shared_address_space gdbarch
10952         callback.
10954 2012-03-01  Pedro Alves  <palves@redhat.com>
10956         * observer.c (observer_test_first_notification_function)
10957         (observer_test_second_notification_function)
10958         (observer_test_third_notification_function): Add declarations.
10960 2012-03-01  Pedro Alves  <palves@redhat.com>
10962         * common/signals.c (default_target_signal_to_host)
10963         (default_target_signal_from_host): Move ...
10964         * arch-utils.c: ... here.
10965         * arch-utils.h (default_target_signal_to_host)
10966         (default_target_signal_from_host): Declare.
10968         * common/signals.c (target_signal_from_command): Move ...
10969         * infrun.c: ... here.
10970         * inferior.h (target_signal_from_command): Declare.
10971         * target.h (target_signal_from_command)
10972         (default_target_signal_from_host, default_target_signal_to_host):
10973         Delete declarations.
10975         * common/signals.c (_initialize_signals): Delete.
10977 2012-03-01  Pedro Alves  <palves@redhat.com>
10979         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10980         both __cplusplus and !__cplusplus.
10982 2012-03-01  Pedro Alves  <palves@redhat.com>
10984         * psymtab.c (find_and_open_source): Delete declaration.
10985         * source.c (find_and_open_source): Move comment ...
10986         * source.h (find_and_open_source): ... to this new declaration.
10988 2012-03-01  Pedro Alves  <palves@redhat.com>
10990         * inline-frame.c: Include inline-frame.h.
10992 2012-03-01  Pedro Alves  <palves@redhat.com>
10994         * tui/tui-data.c (set_gen_win_origin): Delete.
10995         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10996         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10998 2012-03-01  Pedro Alves  <palves@redhat.com>
11000         * remote.c (encode_actions): Delete declaration.
11001         * tracepoint.c (encode_actions): Make extern.
11002         * tracepoint.h (encode_actions): Declare.
11004 2012-03-01  Pedro Alves  <palves@redhat.com>
11006         * python/py-breakpoint.c: Include python.h.
11007         * python/py-continueevent.c (create_continue_event_object): Make
11008         static.
11009         * python/py-lazy-string.c (stpy_get_type): Make static.
11010         * python/py-newobjfileevent.c (create_new_objfile_event_object):
11011         Make static.
11012         * python/py-utils.c (unicode_to_target_python_string): Make
11013         static.
11014         * python/py-value.c: Include python.h.
11016 2012-03-01  Pedro Alves  <palves@redhat.com>
11018         * inferior.c (delete_threads_of_inferior): Delete.
11020 2012-03-01  Pedro Alves  <palves@redhat.com>
11022         Import fallback definitions from glibc.
11024         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
11025         ps_prochandle): Forward declare.
11026         (ps_err_e): Use glibc's comments.
11027         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11028         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11029         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
11030         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
11031         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
11032         (struct ps_prochandle): Adjust comment.
11034 2012-03-01  Pedro Alves  <palves@redhat.com>
11036         * ada-lang.c (ada_modulus_from_name): Delete.
11037         * ada-lex.l (lexer_init): Make static.
11039 2012-03-01  Pedro Alves  <palves@redhat.com>
11041         PR gdb/13767
11043         * frame.c (read_frame_register_unsigned): New.
11044         * frame.h (read_frame_register_unsigned): Declare.
11045         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
11046         Handle it.
11047         (print_i387_control_word): New parameter `control_p'.  Handle it.
11048         (i387_print_float_info): Handle unavailable float registers.
11050 2012-03-01  Keith Seitz  <keiths@redhat.com>
11052         * linespec.c (decode_line_2): Sort the list of methods
11053         alphabetically before presenting the user with a selection
11054         menu.
11056 2012-03-01  Doug Evans  <dje@google.com>
11058         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
11059         has_namespace_info.
11060         (dwarf2_read_abbrevs): Remove corresponding initialization.
11062 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
11064         * NEWS: Mention new python command class gdb.COMMAND_USER.
11065         * cli/cli-cmds.c (show_user): Print error when used on a python
11066         command.
11067         (init_cli_cmds): Update documentation strings for "show user" and
11068         "set/show max-user-call-depth" to clarify that it does not apply to
11069         python commands.
11070         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
11071         error check.
11072         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
11073         gdb python api.
11074         * top.c (execute_command): Only execute a user-defined command as a
11075         legacy macro if c->user_commands is set.
11077 2012-03-01  Tom Tromey  <tromey@redhat.com>
11079         * valprint.h (struct generic_val_print_decorations): New.
11080         (generic_val_print): Declare.
11081         * valprint.c (generic_val_print): New function.
11082         * p-valprint.c (p_decorations): New global.
11083         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
11084         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
11085         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
11086         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
11087         * m2-valprint.c (m2_decorations): New global.
11088         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
11089         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
11090         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
11091         TYPE_CODE_ERROR>: Call generic_val_print.
11092         * f-valprint.c (f_decorations): New global.
11093         (f_val_print): Use print_function_pointer_address.
11094         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
11095         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
11096         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
11097         generic_val_print.
11098         * c-valprint.c (c_decorations): New global.
11099         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
11100         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
11101         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
11102         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
11103         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
11104         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
11105         case.
11107 2012-03-01  Tom Tromey  <tromey@redhat.com>
11109         * valprint.c (val_print): Update.
11110         * p-valprint (pascal_val_print): Return void.
11111         * p-lang.h (pascal_val_print): Return void.
11112         * m2-valprint.c (m2_val_print): Return void.
11113         * m2-lang.h (m2_val_print): Return void.
11114         * language.h (struct language_defn) <la_val_print>: Return void.
11115         * language.c (unk_lang_val_print): Return void.
11116         * jv-valprint.c (java_val_print): Return void.
11117         * jv-lang.h (java_val_print): Return void.
11118         * f-valprint.c (f_val_print): Return void.
11119         * f-lang.h (f_val_print): Return void.
11120         * d-valprint.c (d_val_print): Return void.
11121         (dynamic_array_type): Update.
11122         * d-lang.h (d_val_print): Return void.
11123         * c-valprint.c (c_val_print): Return void.
11124         * c-lang.h (c_val_print): Return void.
11125         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11126         void.
11127         * ada-lang.h (ada_val_print): Return void.
11129 2012-03-01  Tom Tromey  <tromey@redhat.com>
11131         * value.h (val_print): Return void.
11132         * valprint.c (val_print): Return void.
11134 2012-03-01  Tom Tromey  <tromey@redhat.com>
11136         * value.h (common_val_print): Return void.
11137         * valprint.c (common_val_print): Return void.
11139 2012-03-01  Tom Tromey  <tromey@redhat.com>
11141         * value.h (value_print): Return void.
11142         * valprint.c (value_print): Return void.
11143         * p-valprint.c (pascal_value_print): Return void.
11144         * p-lang.h (pascal_value_print): Return void.
11145         * language.h (struct language_defn) <la_value_print>: Return
11146         void.
11147         * language.c (unk_lang_value_print): Return void.
11148         * jv-valprint.c (java_value_print): Return void.
11149         * jv-lang.h (java_value_print): Return void.
11150         * f-valprint.c (c_value_print): Don't declare.
11151         Include c-lang.h.
11152         * c-valprint.c (c_value_print): Return void.
11153         * c-lang.h (c_value_print): Return void.
11154         * ada-valprint.c (ada_value_print): Return void.
11155         * ada-lang.h (ada_value_print): Return void.
11157 2012-03-01  Tom Tromey  <tromey@redhat.com>
11159         * value.c (value_primitive_field): Handle virtual base classes.
11161 2012-03-01  Tom Tromey  <tromey@redhat.com>
11163         * gdbtypes.h (struct vbase): Remove.
11165 2012-03-01  Tom Tromey  <tromey@redhat.com>
11167         * c-valprint.c (print_function_pointer_address): Move...
11168         * valprint.c: ... here.  Make non-static.
11169         * m2-valprint.c (print_function_pointer_address): Remove.
11170         * valprint.h (print_function_pointer_address): Declare.
11172 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
11174         * NEWS: Document the fact that one can provide a condition when
11175         creating an Ada exception catchpoint.
11177 2012-03-01  Tom Tromey  <tromey@redhat.com>
11179         * valprint.c (val_print_type_code_flags): Fix placement of
11180         trailing brace.
11182 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
11184         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11185         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11186         environment variable before calling update-copyright.
11188 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
11190         * gnulib/extra/update-copyright: Update to the latest from
11191         gnulib's git repository.
11192         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11193         variable to 2 instead of 1.
11195 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11197         * varobj.c (c_value_of_variable): Remove dead code.
11199 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11201         * ada-lex.p (processId): Do not modify already encoded IDs.
11202         Update function documentation.
11204 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11206         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11207         "name" with "struct symbol *name_sym".
11208         * ada-exp.y (write_var_or_type): Update call to
11209         ada_find_renaming_symbol.
11210         "name" with "struct symbol *name_sym". Adjust Implementation
11211         accordingly.  Adjust the function documentation.
11213 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11215         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11216         * ada-lang.c (ada_find_any_type): Add advance declaration.
11217         Make static.  Replace ada_find_any_symbol by
11218         ada_find_any_type_symbol.
11219         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11220         Improve function description.  Make static.
11221         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11222         Replace ada_find_any_symbol by ada_find_any_type_symbol.
11224 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11226         * ada-lang.c (struct tag_args): Delete.
11227         (ada_get_tsd_type): Function body moved up in source file.
11228         (ada_tag_name_1, ada_tag_name_2): Delete.
11229         (ada_get_tsd_from_tag): New function.
11230         (ada_tag_name_from_tsd): New function.
11231         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11232         to determine the tag name.
11234 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11236         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11237         declaration.
11238         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11239         function.
11241 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11243         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11245 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11247         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11248         full searches.
11250 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11252         * ada-lang.c (constrained_packed_array_type): If there is a
11253         parallel XA type, use it to determine the array index type.
11255 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11257         * ada-valprint.c (ada_val_print_1): If our value is a reference
11258         to an array descriptor, dereference it before converting it
11259         to a simple array.
11261 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11263         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11264         creating fixed value.
11265         (ada_value_ind, ada_coerce_ref, assign_component)
11266         (ada_evaluate_subexp): Remove call to unwrap_value before
11267         call to ada_to_fixed_value.
11269 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11271         * ada-lang.c (to_fixed_array_type): Set result's type name.
11273 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11275         * ada-lang.c (catch_ada_exception_command_split): Add new
11276         argument cond_string.  Add support for condition at end of
11277         "catch exception" commands.
11278         (ada_decode_exception_location): Add new argument cond_string.
11279         Update call to catch_ada_exception_command_split.
11280         (create_ada_exception_catchpoint): Add new argument cond_string.
11281         Set the breakpoint condition if needed.
11282         (catch_ada_exception_command): Update call to
11283         ada_decode_exception_location.
11284         (ada_decode_assert_location): Add function documentation.
11285         Add support for condition at end of "catch assert" command.
11286         (catch_assert_command): Update calls to ada_decode_assert_location
11287         and create_ada_exception_catchpoint.
11289 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11291         Fix disp-step-syscall.exp: fork: single step over fork.
11292         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11293         (i386_linux_get_syscall_number_from_regcache): ... here, new function
11294         comment, change parameters gdbarch and ptid to regcache.  Remove
11295         parameter regcache, initialize gdbarch from regcache here.
11296         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11297         New functions.
11298         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11299         instead.
11300         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11301         'syscall'.  Make the 'int' check more strict.
11303 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11305         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11306         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11307         (i386_linux_intx80_sysenter_syscall_record): ... here.
11308         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11309         Use the renamed function name.
11311 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11313         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11314         * breakpoint.c (until_break_command): Likewise.
11315         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11316         * infcall.c (call_function_by_hand): Likewise.
11317         * infcmd.c (finish_forward): Likewise.
11318         * infrun.c (insert_exception_resume_breakpoint): Likewise.
11320 2012-02-28  Tristan Gingold  <gingold@adacore.com>
11322         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11323         avoid variable assignments inside condition.
11325 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11327         Fix static analysis issue found by cppcheck.
11328         * microblaze-tdep.c (microblaze_extract_return_value): Fix
11329         uninitialized BUF for size 2.
11331 2012-02-27  Chris Dearman  <chris@mips.com>
11332             Nathan Froyd  <froydnj@codesourcery.com>
11333             Maciej W. Rozycki  <macro@codesourcery.com>
11335         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11336         (mips16_instruction_has_delay_slot): Likewise.
11337         (mips_segment_boundary): Likewise.
11338         (mips_adjust_breakpoint_address): Likewise.
11339         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11341 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
11342             Maciej W. Rozycki  <macro@codesourcery.com>
11344         * infrun.c (handle_inferior_event): Don't proceed through
11345         shared library trampolines if stepping at the machine
11346         instruction level.
11348 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
11350         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11351         too.
11353 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
11355         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11356         (sh_stub_unwind_sniffer): New functions.
11357         (sh_stub_unwind): New variable.
11358         (sh_gdbarch_init): Wire everything.
11360 2012-02-27  Pedro Alves  <palves@redhat.com>
11362         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11363         (linux_nat_post_attach_wait): Adjust to use
11364         linux_proc_pid_is_stopped.
11365         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11366         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11367         based on pid_is_stopped from both linux-nat.c and
11368         gdbserver/linux-low.c, and renamed.
11370 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
11372         * remote.c (remote_watchpoint_addr_within_range): New function.
11373         (init_remote_ops): Use it.
11375 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
11377         * target.h (target_watchpoint_addr_within_range): Document macro.
11379 2012-02-24  Pedro Alves  <palves@redhat.com>
11381         * stack.c (set_last_displayed_sal): Issue internal_error instead
11382         of warning, and issue it after clearing the last displayed sal.
11384 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11385             Pedro Alves  <palves@redhat.com>
11387         * breakpoint.c (until_break_command): Install breakpoints after
11388         all frame manipulations.
11390 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11392         * remote.c (remote_supports_cond_breakpoints): New forward
11393         declaration.
11394         (remote_add_target_side_condition): New function.
11395         (remote_insert_breakpoint): Add target-side breakpoint
11396         conditional if supported.
11397         (remote_insert_hw_breakpoint): Likewise.
11398         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11399         hook.
11401         * target.c (update_current_target): Inherit
11402         to_supports_evaluation_of_breakpoint_conditions.
11403         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11405         * target.h (struct target_ops)
11406         <to_supports_evaluation_of_breakpoint_conditions>: New field.
11407         (target_supports_evaluation_of_breakpoint_conditions): New #define.
11409         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11410         (condition_evaluation_both, condition_evaluation_auto,
11411         condition_evaluation_host, condition_evaluation_target,
11412         condition_evaluation_enums, condition_evaluation_mode_1,
11413         condition_evaluation_mode): New static globals.
11414         (translate_condition_evaluation_mode): New function.
11415         (breakpoint_condition_evaluation_mode): New function.
11416         (gdb_evaluates_breakpoint_condition_p): New function.
11417         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11418         (mark_breakpoint_modified): New function.
11419         (mark_breakpoint_location_modified): New function.
11420         (set_condition_evaluation_mode): New function.
11421         (show_condition_evaluation_mode): New function.
11422         (bp_location_compare_addrs): New function.
11423         (get_first_location_gte_addr): New helper function.
11424         (set_breakpoint_condition): Free condition bytecode if locations
11425         has become unconditional.  Call mark_breakpoint_modified (...).
11426         (condition_command): Call update_global_location_list (1) for
11427         breakpoints.
11428         (breakpoint_xfer_memory): Use is_breakpoint (...).
11429         (is_breakpoint): New function.
11430         (parse_cond_to_aexpr): New function.
11431         (build_target_condition_list): New function.
11432         (insert_bp_location): Handle target-side conditional
11433         breakpoints and call build_target_condition_list (...).
11434         (update_inserted_breakpoint_locations): New function.
11435         (insert_breakpoint_locations): Handle target-side conditional
11436         breakpoints.
11437         (bpstat_check_breakpoint_conditions): Add comment.
11438         (bp_condition_evaluator): New function.
11439         (bp_location_condition_evaluator): New function.
11440         (print_breakpoint_location): Print information on where the condition
11441         will be evaluated.
11442         (print_one_breakpoint_location): Likewise.
11443         (init_bp_location): Call mark_breakpoint_location_modified (...) for
11444         breakpoint location.
11445         (force_breakpoint_reinsertion): New functions.
11446         (update_global_location_list): Handle target-side breakpoint
11447         conditions.
11448         Reinsert locations that are already inserted if conditions have
11449         changed.
11450         (bp_location_dtor): Free agent expression bytecode.
11451         (disable_breakpoint): Call mark_breakpoint_modified (...).
11452         Call update_global_location_list (...) with parameter 1 for breakpoints.
11453         (disable_command): Call mark_breakpoint_location_modified (...).
11454         Call update_global_location_list (...) with parameter 1 for breakpoints.
11455         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11456         (enable_command): mark_breakpoint_location_modified (...).
11457         (_initialize_breakpoint): Update documentation and add
11458         condition-evaluation breakpoint subcommand.
11460         * breakpoint.h: Include ax.h.
11461         (condition_list): New data structure.
11462         (condition_status): New enum.
11463         (bp_target_info) <cond_list>: New field.
11464         (bp_location) <condition_changed, cond_bytecode>: New fields.
11465         (is_breakpoint): New prototype.
11467 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11469         * remote.c (remote_state) <cond_breakpoints>: New field.
11470         (PACKET_ConditionalBreakpoints): New enum.
11471         (remote_cond_breakpoint_feature): New function.
11472         (remote_protocol_features): Add new ConditionalBreakpoints entry.
11473         (remote_supports_cond_breakpoints): New function.
11474         (_initialize_remote): Add new packet configuration for
11475         target-side conditional breakpoints.
11477 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11479         * NEWS: Mention target-side conditional breakpoint support,
11480         new condition-evaluation breakpoint subcommand and remote
11481         packet extensions.
11483 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11485         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11486         number.
11488 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
11490         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11491         (after_prologue): Remove.
11493 2012-02-23  Tom Tromey  <tromey@redhat.com>
11495         * jv-valprint.c (java_val_print): Remove dead code.
11497 2012-02-23  Tristan Gingold  <gingold@adacore.com>
11499         * ada-tasks.c (struct ada_tasks_inferior_data): Add
11500         known_tasks_element and known_tasks_length fields.
11501         (read_known_tasks_array): Change argument type.  Use pointer type
11502         and number of elements from DATA.  Adjust.
11503         (read_known_tasks_list): Likewise.
11504         (get_known_tasks_addr): Remove.
11505         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11506         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
11507         type and array length.  Merge former get_known_tasks_addr code.
11509 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11511         PR backtrace/13716
11512         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11513         it after set_momentary_breakpoint.
11515 2012-02-22  Sterling Augustine  <saugustine@google.com>
11517         PR 13689:
11518         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11520 2012-02-22  Gary Benson  <gbenson@redhat.com>
11522         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11523         (find_slot_in_mapped_hash): Likewise.
11525 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11527         PR build/13638
11528         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11529         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11530         * configure: Regenerate.
11532 2012-02-21  Tristan Gingold  <gingold@adacore.com>
11533             Pedro Alves  <palves@redhat.com>
11535         * ia64-tdep.c: Do not include libunwind-ia64.h.
11536         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11537         Include libunwind-ia64.h instead of libunwind.h.
11538         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11539         for libunwind.h existence.
11540         * configure, config.in: Regenerate.
11542 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
11544         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11545         instead of value_rtti_target_type.
11546         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11547         instead of value_rtti_target_type.
11548         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11549         value_rtti_target_type.
11550         * valops.c (value_ind): Extract function readjust_indirect_value_type.
11551         (value_rtti_target_type): Rename to ...
11552         (value_rtti_indirect_type): ... here and make it indirect.  Update
11553         function comment.
11554         * value.c (readjust_indirect_value_type): New function.
11555         (coerce_ref): Support for enclosing type setting for references
11556         with readjust_indirect_value_type.
11557         * value.h (readjust_value_type): New declaration.
11558         (value_rtti_target_type): Rename to ...
11559         (value_rtti_indirect_type): ... here.
11561 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
11563         * MAINTAINERS (Write After Approval): Add myself to the list.
11565 2012-02-20  Doug Evans  <dje@google.com>
11567         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11568         Rename objfile_p_char parameter to objfilep.
11569         (build_objfile_section_table): Result is now void.  All callers
11570         updated.
11571         * objfiles.h (struct objfile): Tweak comments, whitespace.
11572         (build_objfile_section_table): Update.
11574         * elfread.c (elf_symfile_segments): Fix warning text.
11576 2012-02-20  Tom Tromey  <tromey@redhat.com>
11578         PR gdb/13498:
11579         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11580         particular set of file names once.
11581         (dw2_map_symbol_filenames): Likewise.
11583 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
11585         Code cleanup.
11586         * main.c (write_files): Remove the declaration.
11587         (external_editor_command): Move the declaration ...
11588         [GDBTK] (external_editor_command): ... here.  Fix the comment.
11590 2012-02-20  Tom Tromey  <tromey@redhat.com>
11592         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11593         extraneous block.
11595 2012-02-20  Tristan Gingold  <gingold@adacore.com>
11597         * darwin-nat.h (enum darwin_msg_state): Add comments.
11599 2012-02-20  Tristan Gingold  <gingold@adacore.com>
11601         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11602         value.
11604 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
11606         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11607         between function description and implementation.
11609 2012-02-17  Tom Tromey  <tromey@redhat.com>
11611         PR python/12070:
11612         * python/py-event.c (event_object_getset): New global.
11613         (event_object_type): Reference it.
11614         * python/py-type.c (field_object_getset): New global.
11615         (field_object_type): Reference it.
11616         * python/python-internal.h (gdb_py_generic_dict): Declare.
11617         * python/py-utils.c (gdb_py_generic_dict): New function.
11619 2012-02-17  Tristan Gingold  <gingold@adacore.com>
11621         * solib-darwin.c (darwin_current_sos): Check magic and filetype
11623 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11625         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11626         TYPE_CALLING_CONVENTION annotation.
11628 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
11630         * MAINTAINERS: Add rx to target ISA section.
11631         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11632         (ALLDEPFILES): Add rx-tdep.c.
11634 2012-02-16  Tom Tromey  <tromey@redhat.com>
11636         * symfile.c (symbol_file_add_main_1): Use inferior's
11637         symfile_flags.
11638         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11639         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11640         inferior.
11641         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11642         inferior.
11643         (follow_exec): Use inferior's symfile_flags.
11644         * inferior.h (struct inferior) <symfile_flags>: New field.
11646 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
11648         PR gdb/9734:
11649         * remote-sim.c (gdbsim_create_inferior): Call error() when
11650         sim_create_inferior() fails.
11652 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
11654         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11656 2012-02-16  Tom Tromey  <tromey@redhat.com>
11658         PR c++/13653:
11659         * thread.c (struct current_thread_cleanup) <was_removable>: New
11660         field.
11661         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11662         (make_cleanup_restore_current_thread): Initialize new field.
11664 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
11666         * MAINTAINERS: Add rl78 to target ISA section.
11667         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11668         (ALLDEPFILES): Add rl78-tdep.c.
11669         * NEWS: Mention rl78 as a new target.
11671 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
11673         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11674         data.
11675         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11677 2012-02-15  Tom Tromey  <tromey@redhat.com>
11679         PR gdb/12659:
11680         * infcmd.c (registers_info): Print just the current register's
11681         name.
11683 2012-02-15  Tom Tromey  <tromey@redhat.com>
11685         * python/py-symbol.c (sympy_value): Use _().
11687 2012-02-15  Pedro Alves  <palves@redhat.com>
11689         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11690         output to be like native targets'.
11691         (remote_pid_to_str): Special case the null ptid.
11693 2012-02-14  Stan Shebs  <stan@codesourcery.com>
11695         * NEWS: Mention enable count command.
11696         * breakpoint.h (struct breakpoint): New field enable_count.
11697         * breakpoint.c (enable_breakpoint_disp): Add count argument.
11698         (enable_breakpoint): Add arg to call.
11699         (struct disp_data): New struct.
11700         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11701         (do_map_enable_once_breakpoint): Create a struct and pass it.
11702         (do_map_enable_delete_breakpoint): Ditto.
11703         (do_map_enable_count_breakpoint): New function.
11704         (enable_count_command): New function.
11705         (bpstat_stop_status): Decrement enable_count.
11706         (print_one_breakpoint_location): Report enable count.
11707         (_initialize_breakpoint): Add enable count command.
11709 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11711         * rl78-tdep.c (reggroups.h): Include.
11712         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11713         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11714         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11715         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11716         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11717         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11718         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11719         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11720         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11721         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11722         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11723         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11724         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11725         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11726         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11727         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11728         beginning of register list.
11729         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11730         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11731         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11732         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11733         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11734         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11735         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11736         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11737         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11738         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11739         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11740         the pseudo registers.  Rearrange other pseudo registers too so
11741         that the bank registers appear at the end.
11742         (rl78_register_type): Account for the fact that the byte sized
11743         bank registers are now pseudo-registers.
11744         (rl78_register_name): Rearrange the register name array.  Make
11745         initial set of raw banked registers inaccessible.
11746         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11747         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11748         case for copying bytes back and forth between raw and pseudo
11749         versions of the banked registers.  Update other cases to reflect
11750         the changed names.
11751         (rl78_return_value): Update to account for changed names of
11752         raw registers.
11753         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11754         rl78_register_sim_regno().
11756 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11758         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11759         the name parameter being passed to find_pc_partial_function().
11761 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11763         * MAINTAINERS: Step down from being ia64 target maintainer.
11765 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11767         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11768         compilation warning.
11770 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11772         Fix crash on loaded shlibs without loaded exec_bfd.
11773         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11774         (set_section_command): Replace exec_bfd by p->bfd.
11776 2012-02-10  Tom Tromey  <tromey@redhat.com>
11778         * linespec.c (decode_line_internal): Skip symtabs_from_filename
11779         when we have a C++ qualified name.
11781 2012-02-10  Pedro Alves  <palves@redhat.com>
11783         * inferior.c (inferior_pid_to_str): New.
11784         (print_inferior, inferior_command): Use it.
11786 2012-02-10  Pedro Alves  <palves@redhat.com>
11788         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11789         the test CFLAGS.
11790         * configure: Regenerate.
11792 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11794         * linespec.c (decode_line_internal): Fix comment correctness.
11796 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
11798         PR gdb/12953
11799         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11800         * amd64bsd-nat.c: Add support for debug registers (adapted from
11801         i386bsd-nat.c).
11802         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11803         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11804         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11805         (amd64bsd_dr_get_control): New functions.
11806         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11807         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11808         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11809         watchpoints initialization.
11810         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11812 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11814         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11815         flds_bnds.fields.
11816         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11818 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11820         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
11822 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11824         * language.h (symbol_name_cmp_ftype): Renames
11825         symbol_name_match_p_ftype.
11826         (struct language_defn)[la_get_symbol_name_cmp]: Renames
11827         la_get_symbol_name_match_p.
11828         * ada-lang.c (ada_get_symbol_name_cmp): Renames
11829         ada_get_symbol_name_match_p.  Update comment.
11830         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11831         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11832         Renames symbol_name_match_p.  Update field type.
11833         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11834         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11835         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11836         "la_get_symbol_name_cmp" in comments.
11837         * language.c: Likewise.
11839 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11841         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11842         %eflags offset.
11843         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11844         (amd64_sol2_gregset32_reg_offs): Likewise.
11846 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11848         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11849         of the returned BFD is allocated by GDB.
11851 2012-02-07  Tom Tromey  <tromey@redhat.com>
11853         PR python/12027:
11854         * python/python-internal.h (frame_object_type): Declare.
11855         * python/py-symbol.c (sympy_needs_frame): New function.
11856         (sympy_value): New function.
11857         (symbol_object_getset): Add "needs_frame".
11858         (symbol_object_methods): Add "value".
11859         * python/py-frame.c (frame_object_type): No longer static.
11861 2012-02-07  Tom Tromey  <tromey@redhat.com>
11863         PR python/13599:
11864         * python/py-symbol.c (sympy_line): New function.
11865         (symbol_object_getset): Add "line".
11867 2012-02-07  Tom Tromey  <tromey@redhat.com>
11869         * charset.c (find_charset_names): Check 'in' against NULL.
11871 2012-02-06  Doug Evans  <dje@google.com>
11873         * gdbtypes.h (struct main_type): Change type of name,tag_name,
11874         and fields.name members from char * to const char *.  All uses updated.
11875         (struct cplus_struct_type): Change type of fn_fieldlists.name member
11876         from char * to const char *.  All uses updated.
11877         (type_name_no_tag): Update.
11878         (lookup_unsigned_typename, lookup_signed_typename): Update.
11879         * gdbtypes.c (type_name_no_tag): Change result type
11880         from char * to const char *.  All callers updated.
11881         (lookup_unsigned_typename, lookup_signed_typename): Change type of
11882         name parameter from char * to const char *.
11883         * symtab.h (struct cplus_specific): Change type of demangled_name
11884         member from char * to const char *.  All uses updated.
11885         (struct general_symbol_info): Change type of name and
11886         mangled_lang.demangled_name members from char * to const char *.
11887         All uses updated.
11888         (symbol_get_demangled_name, symbol_natural_name): Update.
11889         (symbol_demangled_name, symbol_search_name): Update.
11890         * symtab.c (symbol_get_demangled_name): Change result type
11891         from char * to const char *.  All callers updated.
11892         (symbol_natural_name, symbol_demangled_name): Ditto.
11893         (symbol_search_name): Ditto.
11894         (completion_list_add_name): Change type of symname,sym_text,
11895         text,word parameters from char * to const char *.
11896         (completion_list_objc_symbol): Change type of sym_text,
11897         text,word parameters from char * to const char *.
11898         * ada-lang.c (find_struct_field): Change type of name parameter
11899         from char * to const char *.
11900         (encoded_ordered_before): Similarly for N0,N1 parameters.
11901         (old_renaming_is_invisible): Similarly for function_name parameter.
11902         (ada_type_name): Change result type from char * to const char *.
11903         All callers updated.
11904         * ada-lang.h (ada_type_name): Update.
11905         * buildsym.c (hashname): Change type of name parameter
11906         from char * to const char *.
11907         * buildsym.h (hashname): Update.
11908         * dbxread.c (end_psymtab): Change type of include_list parameter
11909         from char ** to const char **.
11910         * dwarf2read.c (determine_prefix): Change result type
11911         from char * to const char *.  All callers updated.
11912         * f-lang.c (find_common_for_function): Change type of name, funcname
11913         parameters from char * to const char *.
11914         * f-lang.c (find_common_for_function): Update.
11915         * f-valprint.c (list_all_visible_commons): Change type of funcname
11916         parameters from char * to const char *.
11917         * gdbarch.sh (static_transform_name): Change type of name parameter
11918         and result from char * to const char *.
11919         * gdbarch.c: Regenerate.
11920         * gdbarch.h: Regenerate.
11921         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11922         of name parameter from char * to const char *.
11923         * jv-lang.c (java_primitive_type_from_name): Ditto.
11924         (java_demangled_signature_length): Similarly for signature parameter.
11925         (java_demangled_signature_copy): Ditto.
11926         (java_demangle_type_signature): Ditto.
11927         * jv-lang.h (java_primitive_type_from_name): Update.
11928         (java_demangle_type_signature): Update.
11929         * objc-lang.c (specialcmp): Change type of a,b parameters
11930         from char * to const char *.
11931         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11932         from char * to const char *.  All callers updated.
11933         * p-lang.h (is_pascal_string_type): Update.
11934         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11935         of name parameter from char * to const char *.
11936         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11937         * utils.c (fprintf_symbol_filtered): Ditto.
11938         * defs.h (fprintf_symbol_filtered): Update.
11939         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11940         * stabsread.h (end_psymtab): Update.
11941         * stack.c (find_frame_funname): Change type of funname parameter
11942         from char ** to const char **.
11943         * stack.h (find_frame_funname): Update.
11944         * typeprint.c (type_print): Change type of varstring parameter
11945         from char * to const char *.
11946         * value.h (type_print): Update.
11947         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11948         from char * to const char *.  All callers updated.
11949         (xcoff_end_psymtab): Change type of include_list parameter
11950         from char ** to const char **.  All callers updated.
11951         (swap_sym): Similarly for name parameter.  All callers updated.
11952         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11953         Use xstrdup.
11954         (process_coff_symbol): Use xstrdup.
11955         * stabsread.c (stabs_method_name_from_physname): Renamed from
11956         update_method_name_from_physname.  Change result type from void
11957         to char *.  All callers updated.
11958         (read_member_functions): In has_destructor case, store name in objfile
11959         obstack instead of malloc space.  In !has_stub case, fix mem leak.
11961 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
11963         * configure: Rebuild.
11964         * configure.ac: Put -L../bfd and -L../libiberty at the front of
11965         LDFLAGS.
11967 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
11969         * configure.tgt (rl78-*-elf): New target.
11970         * rl78-tdep.c: New file.
11972 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11974         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11975         and continue the loop.  Add QUIT statement.
11977 2012-02-03  Tom Tromey  <tromey@redhat.com>
11979         PR gdb/13596:
11980         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11981         bfd_lookup_symbol_from_symtab.
11982         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11983         gdb_bfd_lookup_symbol_from_symtab.
11985 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
11987         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11988         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11989         symbol.  Add assertion that sym2 is never NULL.
11991 2012-02-02  Doug Evans  <dje@google.com>
11993         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11994         "name" parameter to const char ** from char **.  All callers updated.
11995         (find_pc_partial_function): Ditto.
11996         (cache_pc_function_name): Change type to const char * from char *.
11997         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11998         (find_pc_partial_function): Update.
11999         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
12000         type of "name" parameter to const char * from char *.
12001         All uses updated.
12002         * arch-utils.c (generic_in_solib_return_trampoline): Change
12003         type of "name" parameter to const char * from char *.
12004         * arch-utils.h (generic_in_solib_return_trampoline): Update.
12005         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
12006         type of "name" parameter to const char * from char *.
12007         * gdbarch.sh (in_solib_return_trampoline): Ditto.
12008         * gdbarch.c: Regenerate.
12009         * gdbarch.h: Regenerate.
12010         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
12011         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
12012         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
12013         type of "name" parameter to const char * from char *.
12014         * skip.c (skip_function_pc): Ditto.
12015         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
12016         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
12017         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
12018         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
12019         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
12020         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
12021         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
12022         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
12023         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
12025 2012-02-02  Pedro Alves  <palves@redhat.com>
12027         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
12028         the current inferior has no execution.  Make sure the current
12029         remote process matches gdb's current inferior.
12031 2012-02-02  Tom Tromey  <tromey@redhat.com>
12033         PR gdb/13405:
12034         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
12035         read-only memory.
12037 2012-02-02  Tom Tromey  <tromey@redhat.com>
12039         PR gdb/9307:
12040         * symtab.c (lookup_language_this): Set block_found.
12042 2012-02-01  Tom Tromey  <tromey@redhat.com>
12044         PR gdb/13431:
12045         * jit.c (struct jit_inferior_data): Rewrite.
12046         (struct jit_objfile_data): New.
12047         (get_jit_objfile_data): New function.
12048         (add_objfile_entry): Update.
12049         (jit_read_descriptor): Return int.  Replace descriptor_addr
12050         argument with inf_data.  Update.  Don't call error.
12051         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
12052         descriptor here.
12053         (jit_inferior_init): Don't look up descriptor.  Don't call error.
12054         (jit_reset_inferior_data_and_breakpoints)
12055         (jit_inferior_created_observer): Remove.
12056         (jit_inferior_exit_hook): Update.
12057         (jit_executable_changed_observer): Remove.
12058         (jit_event_handler): Update.
12059         (free_objfile_data): Reset inferior data if needed.
12060         (_initialize_jit): Update.
12062 2012-02-01  Tom Tromey  <tromey@redhat.com>
12064         * jit.c (bfd_open_from_target_memory): Move higher in file.
12066 2012-02-01  Tristan Gingold  <gingold@adacore.com>
12068         * libunwind-frame.c (libunwind_load): Display message if dlopen
12069         failed.
12071 2012-02-01  Gary Benson  <gbenson@redhat.com>
12073         * symtab.h (symbol_found_callback_ftype): New typedef.
12074         (iterate_over_symbols): Use the above.
12075         * symtab.c (iterate_over_symbols): Likewise.
12076         * language.h (language_defn->la_iterate_over_symbols): Likewise.
12077         * ada-lang.c (ada_iterate_over_symbols): Likewise.
12078         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
12079         (iterate_name_matcher): Document return values.
12080         (collect_one_symbol): Likewise.
12081         (collect_function_symbols): Likewise.
12082         (collect_symbols): Likewise.
12084 2012-02-01  Tom Tromey  <tromey@redhat.com>
12086         * ada-lang.c (resolve_subexp): Update.
12087         (ada_lookup_symbol_list): Add 'full_search' argument.
12088         (ada_iterate_over_symbols): Pass 0 as full_search argument to
12089         ada_lookup_symbol_list.
12090         (ada_lookup_encoded_symbol): Update.
12091         (get_var_value): Update.
12092         * ada-exp.y (block_lookup): Update.
12093         (write_var_or_type): Update.
12094         (write_name_assoc): Update.
12095         * ada-lang.h (ada_lookup_symbol_list): Update.
12097 2012-01-31  Tom Tromey  <tromey@redhat.com>
12099         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
12100         comment.
12102 2012-01-31  Doug Evans  <dje@google.com>
12104         * symtab.h: Remove outdated comment.
12105         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
12107 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
12109         Fix build error in Darwin port.
12110         * i386-darwin-nat.c: Include i386-nat.h.
12112 2012-01-30  Tom Tromey  <tromey@redhat.com>
12114         PR breakpoints/13568:
12115         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
12116         argument.  Check for recursive includes.
12117         (dwarf_decode_macros): Create an include hash.
12119 2012-01-30  Michael Eager  <eager@eagercon.com>
12121         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
12122         * ppc-linux-tdep.c: Include glibc-tdep.h.
12123         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
12124         (powerpc_linux_in_plt_stub): New function.
12125         (powerpc_linux_in_dynsym_resolve_code): New function.
12126         (ppc_skip_trampoline_code): New function.
12127         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12128         Use glibc_skip_solib_resolver.
12130 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
12132         Code cleanup: Make 1440 bytes of data segment read-only.
12133         * arch-utils.c (endian_enum): Make it const char *const [].
12134         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12135         Likewise.
12136         * breakpoint.c (always_inserted_enums): Likewise.
12137         * cli/cli-cmds.c (script_ext_enums): Likewise.
12138         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12139         enumlist parameter const char *const *.
12140         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12141         const char *const *.
12142         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12143         parameter const char *const *.
12144         * cris-tdep.c (cris_modes): Make it const char *const [].
12145         * filesystem.c (target_file_system_kinds): Likewise.
12146         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12147         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12148         (can_use_displaced_stepping_enum, scheduler_enums)
12149         (exec_direction_names): Likewise.
12150         * language.c (_initialize_language): Make the type_or_range_names and
12151         case_sensitive_names variables const char *const [].
12152         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12153         * python/python.c (python_excp_enums): Likewise.
12154         * remote.c (interrupt_sequence_modes): Likewise.
12155         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12156         * serial.c (logbase_enums): Likewise.
12157         * sh-tdep.c (sh_cc_enum): Likewise.
12158         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12159         Likewise.
12160         * symtab.c (multiple_symbols_modes): Likewise.
12161         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12162         Likewise.
12163         * utils.c (internal_problem_modes): Likewise.
12165 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
12167         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12168         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12169         result.
12171 2012-01-27  Doug Evans  <dje@google.com>
12173         * configure.ac (with_python): Fix absolute path handling for win32.
12174         * configure: Regenerate.
12176 2012-01-26  Doug Evans  <dje@google.com>
12178         * symtab.c: Whitespace cleanup, no code changes.
12180         * symtab.c (lookup_symbol_in_language): Improve comment.
12181         (lookup_symbol_aux): Fix comment.
12183         * psymtab.c (add_psymbol_to_list): Result is now "void".
12184         * psympriv.h (add_psymbol_to_list): Update.
12186         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12188 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12190         Do not open script filenames twice.
12191         * cli/cli-cmds.c (source_script_from_stream): Pass to
12192         source_python_script also STREAM.
12193         * python/py-auto-load.c (source_section_scripts): Pass to
12194         source_python_script_for_objfile also STREAM.
12195         (auto_load_objfile_script): Pass to source_python_script_for_objfile
12196         also INPUT.
12197         * python/python-internal.h (source_python_script_for_objfile): New
12198         parameter file, rename parameter file to filename.
12199         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12200         instead if !_WIN32.  Update the function comment.
12201         (source_python_script, source_python_script_for_objfile)
12202         (source_python_script): New parameter file, rename parameter file to
12203         filename.  Pass FILENAME to python_run_simple_file.
12204         * python/python.h (source_python_script): New parameter file, rename
12205         parameter file to filename.
12207 2012-01-26  Pedro Alves  <palves@redhat.com>
12209         * corelow.c (core_has_fake_pid): Delete.
12210         (core_close): Delete references to `core_has_fake_pid'.
12211         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12212         (core_open): Delete references to `core_has_fake_pid'.
12213         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12214         the removed global.
12216 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
12218         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12219         Remove language parameter from name_matcher.  Adjust the comment.
12220         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12221         Remove language parameter.
12222         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12223         * linespec.c (iterate_name_matcher): Likewise.
12224         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12225         name_matcher.  Adjust call accordingly.
12226         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12227         (maintenance_check_symtabs): Adjust type of parameter "fun".
12228         * psymtab.h (maintenance_check_symtabs): Likewise.
12230 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
12232         * language.h (symbol_name_match_p_ftype): New typedef.
12233         (struct language_defn): Replace field la_symbol_name_compare
12234         by la_get_symbol_name_match_p.
12235         * ada-lang.c (ada_get_symbol_name_match_p): New function.
12236         (ada_language_defn): Use it.
12237         * linespec.c (struct symbol_matcher_data): New type.
12238         (iterate_name_matcher): Rewrite.
12239         (iterate_over_all_matching_symtabs): Pass a pointer to
12240         a symbol_matcher_data struct to expand_symtabs_matching
12241         instead of just the lookup name.
12242         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12243         opencl-lang.c, p-lang.c, language.c: Delete field
12244         la_symbol_name_compare, and replace by NULL for new field
12245         la_get_symbol_name_match_p.
12246         * symfile.h (struct quick_symbol_functions): Update comment.
12248 2012-01-25  Tom Tromey  <tromey@redhat.com>
12250         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12251         dereferencing.
12253 2012-01-24  Tom Tromey  <tromey@redhat.com>
12255         PR symtab/12406:
12256         * solib.c (update_solib_list): Update the program space's
12257         added_solibs and deleted_solibs fields.
12258         * progspace.h (struct program_space) <added_solibs,
12259         deleted_solibs>: New fields.
12260         (clear_program_space_solib_cache): Declare.
12261         * progspace.c (release_program_space): Call
12262         clear_program_space_solib_cache.
12263         (clear_program_space_solib_cache): New function.
12264         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12265         bpstat_stop_status.  Use handle_solib_event.
12266         * breakpoint.c: Include gdb_regex.h.
12267         (print_solib_event): New function.
12268         (bpstat_print): Use print_solib_event.
12269         (bpstat_stop_status): Add special case for bp_shlib_event.
12270         (handle_solib_event): New function.
12271         (bpstat_what): Use handle_solib_event.
12272         (struct solib_catchpoint): New.
12273         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12274         (breakpoint_hit_catch_solib, check_status_catch_solib)
12275         (print_it_catch_solib, print_one_catch_solib)
12276         (print_mention_catch_solib, print_recreate_catch_solib): New
12277         functions.
12278         (catch_solib_breakpoint_ops): New global.
12279         (catch_load_or_unload, catch_load_command_1)
12280         (catch_unload_command_1): New functions.
12281         (internal_bkpt_check_status): Add special case for
12282         bp_shlib_event.
12283         (internal_bkpt_print_it): Use print_solib_event.
12284         (initialize_breakpoint_ops): Initialize
12285         catch_solib_breakpoint_ops.
12286         (_initialize_breakpoint): Register "catch load" and "catch
12287         unload".
12288         * breakpoint.h (handle_solib_event): Declare.
12289         * NEWS: Add entry for "catch load" and "catch unload".
12291 2012-01-24  Tom Tromey  <tromey@redhat.com>
12293         * ada-lang.c: Include gdb_vecs.h.
12294         * charset.c: Include gdb_vecs.h.
12295         * tracepoint.h: Include gdb_vecs.h.
12296         * gdb_vecs.h: New file.
12298 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
12300         * breakpoint.c (breakpoint_hit_catch_fork)
12301         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12302         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12303         * infrun.c (inferior_has_forked, inferior_has_vforked)
12304         (inferior_has_execd, inferior_has_called_syscall): Delete.
12305         (handle_syscall_event): Get syscall_number from the execution
12306         control state's wait status.
12307         (wait_for_inferior): Don't clear syscall_number.
12309 2012-01-24  Pedro Alves  <palves@redhat.com>
12311         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12312         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12313         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12314         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12315         `ws' parameter.
12316         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
12317         false for events other than TARGET_SIGNAL_TRAP.
12318         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12319         Add `ws' parameter.
12320         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
12321         events other than TARGET_SIGNAL_TRAP.
12322         (tracepoint_breakpoint_hit): Add `ws' parameter.
12323         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12324         parameter.
12325         (bpstat_stop_status): Same.
12326         (pc_at_non_inline_function): Same.
12327         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12328         to pass the current event's waitstatus to bpstat_stop_status
12329         and pc_at_non_inline_function.
12331 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12333         Code cleanup.
12334         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12335         Update the function comment for it.
12336         (source_script_with_search): Call make_cleanup_fclose for STREAM.
12337         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12338         for STREAM.
12340 2012-01-24  Pedro Alves  <palves@redhat.com>
12342         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12343         outside `bs->stop' block.
12344         (bpstat_what): Rework bp_shlib_event handling.
12345         (internal_bkpt_check_status): If the breakpoint is a
12346         bp_shlib_event, then set bs->stop and bs->print if
12347         stop_on_solib_events is set.
12349 2012-01-24  Gary Benson  <gbenson@redhat.com>
12351         Delete #if 0'd out code.
12352         * stack.c (print_frame_label_vars): Remove.
12353         (catch_info): Likewise.
12354         (_initialize_stack): Remove "info catch" command.
12355         * NEWS: Mention the above.
12357 2012-01-24  Pedro Alves  <palves@redhat.com>
12359         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
12360         it.
12361         (remote_notice_new_inferior): If the remote end doesn't support
12362         the multiprocess extensions, then the PID is fake.
12363         (add_current_inferior_and_thread): New.
12364         (remote_start_remote): Use it.
12365         (extended_remote_attach_1): Adjust.
12366         (extended_remote_create_inferior_1): Use
12367         add_current_inferior_and_thread.
12369 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12371         Fix watchpoints to be specific for each inferior.
12372         * breakpoint.c (watchpoint_in_thread_scope): Verify also
12373         current_program_space.
12374         * i386-nat.c (i386_inferior_data_cleanup): New.
12375         (i386_inferior_data_get): Replace variable inf_data_local by an
12376         inferior_data call.
12377         (i386_use_watchpoints): Initialize i386_inferior_data.
12378         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12379         specific iterate_over_lwps.
12381 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12383         Fix watchpoints across inferior fork.
12384         * amd64-linux-nat.c (update_debug_registers_callback): Update the
12385         comment for linux_nat_iterate_watchpoint_lwps.
12386         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12387         linux_nat_iterate_watchpoint_lwps.
12388         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12389         * i386-linux-nat.c (update_debug_registers_callback): Update the
12390         comment for linux_nat_iterate_watchpoint_lwps.
12391         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12392         linux_nat_iterate_watchpoint_lwps.
12393         (i386_linux_prepare_to_resume): New comment on Linux kernel.
12394         * i386-nat.c: Include inferior.h.
12395         (dr_mirror): Remove.
12396         (i386_inferior_data, struct i386_inferior_data)
12397         (i386_inferior_data_get): New.
12398         (i386_debug_reg_state): Use i386_inferior_data_get.
12399         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12400         (i386_insert_watchpoint, i386_remove_watchpoint)
12401         (i386_stopped_data_address, i386_insert_hw_breakpoint)
12402         (i386_remove_hw_breakpoint): New variable state, use
12403         i386_debug_reg_state instead of DR_MIRROR.
12404         * linux-nat.c (delete_lwp): New declaration.
12405         (num_lwps): Move here from downwards.
12406         (delete_lwp_cleanup): New.
12407         (linux_child_follow_fork): Create new child_lp, call
12408         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12409         PTRACE_DETACH.
12410         (num_lwps): Move upwards.
12411         (linux_nat_iterate_watchpoint_lwps): New.
12412         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12413         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12415 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
12417         GDB 7.4 released.
12419 2012-01-23  Pedro Alves  <palves@redhat.com>
12421         * top.c (caution): Rename to ...
12422         (confirm): ... this.
12423         (show_caution): Rename to ...
12424         (show_confirm): ... this.
12425         (quit_cover): Adjust.
12426         (init_main): Adjust.
12427         * top.h (caution): Rename to ...
12428         (confirm): ... this.
12429         * utils.c (internal_vproblem, defaulted_query): Adjust.
12431 2012-01-23  Pedro Alves  <palves@redhat.com>
12433         * top.c (caution): Update comment.
12434         (execute_command): Don't consider the current value of `caution'.
12436 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
12438         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12440 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
12442         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12443         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12444         * target.c (target_fileio_pwrite): Remove buffer address from
12445         debug output.
12446         (target_fileio_pread): Likewise.
12448 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12450         * NEWS: Document remote "info proc" and "generate-core-file".
12452 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12454         * gdbarch.sh (find_memory_regions): New callback.
12455         * gdbarch.c, gdbarch.h: Regenerate.
12457         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12458         callback before falling back to target method.
12460         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12461         (linux_target_install_ops): No longer install it.
12463         * linux-tdep.c (linux_find_memory_regions): New function.
12464         (linux_init_abi): Install it.
12466 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12468         * gdbarch.sh (make_corefile_notes): New architecture callback.
12469         * gdbarch.c: Regenerate.
12470         * gdbarch.h: Likewise.
12472         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12473         before target_make_corefile_notes.  If NULL is returned, the
12474         target does not support core file generation.
12476         * linux-nat.c: Include "linux-tdep.h".
12477         (find_signalled_thread, find_stop_signal): Remove.
12478         (linux_nat_do_thread_registers): Likewise.
12479         (struct linux_nat_corefile_thread_data): Likewise.
12480         (linux_nat_corefile_thread_callback): Likewise.
12481         (iterate_over_spus): Likewise.
12482         (struct linux_spu_corefile_data): Likewise.
12483         (linux_spu_corefile_callback): Likewise.
12484         (linux_spu_make_corefile_notes): Likewise.
12485         (linux_nat_collect_thread_registers): New function.
12486         (linux_nat_make_corefile_notes): Replace contents by call to
12487         linux_make_corefile_notes passing linux_nat_collect_thread_registers
12488         as native-only callback.
12490         * linux-tdep.h: Include "bfd.h".
12491         (struct regcache): Add forward declaration.
12492         (linux_collect_thread_registers_ftype): New typedef.
12493         (linux_make_corefile_notes): Add prototype.
12494         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12495         "regset.h", and "elf-bfd.h".
12496         (find_signalled_thread, find_stop_signal): New functions.
12497         (linux_spu_make_corefile_notes): Likewise.
12498         (linux_collect_thread_registers): Likewise.
12499         (struct linux_corefile_thread_data): New data structure.
12500         (linux_corefile_thread_callback): New funcion.
12501         (linux_make_corefile_notes): Likewise.
12502         (linux_make_corefile_notes_1): Likewise.
12503         (linux_init_abi): Install it.
12505 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12507         * gdbarch.sh (info_proc): New callback.
12508         * gdbarch.c, gdbarch.h: Regenerate.
12510         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12511         before falling back to the target info_proc callback.
12513         * linux-nat.c: Do not include "cli/cli-utils.h".
12514         (linux_nat_info_proc): Remove.
12515         (linux_target_install_ops): No longer install it.
12517         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12518         (read_mapping): New function.
12519         (linux_info_proc): Likewise.
12520         (linux_init_abi): Install it.
12522 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12524         * defs.h (enum info_proc_what): Moved here from linux-nat.c
12525         * infcmd.c: (info_proc_cmd_1): New function.
12526         (info_proc_cmd): New function, moved here from equivalent routine
12527         orignally in linux-nat.c.
12528         (info_proc_cmd_mappings): Likewise.
12529         (info_proc_cmd_stat): Likewise.
12530         (info_proc_cmd_status): Likewise.
12531         (info_proc_cmd_cwd): Likewise.
12532         (info_proc_cmd_cmdline): Likewise.
12533         (info_proc_cmd_exe): Likewise.
12534         (info_proc_cmd_all): Likewise.
12535         (_initialize_infcmd): Install "info proc" command and subcommands.
12537         * target.h (struct target_ops): Add to_info_proc.
12538         (target_info_proc): Add prototype.
12539         * target.c (target_info_proc): New function.
12541         * procfs.c (procfs_info_proc): Add prototype.
12542         (info_proc_cmd): Rename into ...
12543         (procfs_info_proc): ... this.  Update argument types as appropriate
12544         for a to_info_proc implementation.  Handle "what" argument.
12545         (procfs_target): Install procfs_info_proc.
12546         (_initialize_procfs): No longer install "info proc" command.
12548         * linux-nat.c: (enum info_proc_what): Remove.
12549         (linux_nat_info_proc_cmd_1): Rename into ...
12550         (linux_nat_info_proc): ... this.  Update argument types as appropriate
12551         for a to_info_proc implementation.
12552         (linux_nat_info_proc_cmd): Remove.
12553         (linux_nat_info_proc_cmd_mappings): Likewise.
12554         (linux_nat_info_proc_cmd_stat): Likewise.
12555         (linux_nat_info_proc_cmd_status): Likewise.
12556         (linux_nat_info_proc_cmd_cwd): Likewise.
12557         (linux_nat_info_proc_cmd_cmdline): Likewise.
12558         (linux_nat_info_proc_cmd_exe): Likewise.
12559         (linux_nat_info_proc_cmd_all): Likewise.
12560         (linux_target_install_ops): Install linux_nat_info_proc.
12561         (_initialize_linux_nat): No longer install "info proc" command
12562         and subcommands.
12564 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12566         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12567         * config.in, configure: Regenerate.
12569         * target.h (struct target_ops): Add to_fileio_readlink.
12570         (target_fileio_readlink): Add prototype.
12571         * target.c (target_fileio_readlink): New function.
12573         * inf-child.c: Conditionally include <sys/param.h>.
12574         (inf_child_fileio_readlink): New function.
12575         (inf_child_target): Install it.
12577         * remote.c (PACKET_vFile_readlink): New enum value.
12578         (remote_hostio_readlink): New function.
12579         (init_remote_ops): Install it.
12580         (_initialize_remote): Handle vFile:readlink packet type.
12582 2012-01-20  Pedro Alves  <palves@redhat.com>
12583             Ulrich Weigand  <ulrich.weigand@linaro.org>
12585         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12586         * config.in, configure: Regenerate.
12588         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12589         to_fileio_pread, to_fileio_close, to_fileio_unlink.
12590         (target_fileio_open): Add prototype.
12591         (target_fileio_pwrite): Likewise.
12592         (target_fileio_pread): Likewise.
12593         (target_fileio_close): Likewise.
12594         (target_fileio_unlink): Likewise.
12595         (target_fileio_read_alloc): Likewise.
12596         (target_fileio_read_stralloc): Likewise.
12598         * target.c: Include "gdb/fileio.h".
12599         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12600         (default_fileio_target): New function.
12601         (target_fileio_open): Likewise.
12602         (target_fileio_pwrite): Likewise.
12603         (target_fileio_pread): Likewise.
12604         (target_fileio_close): Likewise.
12605         (target_fileio_unlink): Likewise.
12606         (target_fileio_close_cleanup): Likewise.
12607         (target_fileio_read_alloc_1): Likewise.
12608         (target_fileio_read_alloc): Likewise.
12609         (target_fileio_read_stralloc): Likewise.
12611         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12612         <fcntl.h>, and <unistd.h>.
12613         (inf_child_fileio_open_flags_to_host): New function.
12614         (inf_child_errno_to_fileio_error): Likewise.
12615         (inf_child_fileio_open): Likewise.
12616         (inf_child_fileio_pwrite): Likewise.
12617         (inf_child_fileio_pread): Likewise.
12618         (inf_child_fileio_close): Likewise.
12619         (inf_child_fileio_unlink): Likewise.
12620         (inf_child_target): Install to_fileio routines.
12622         * remote.c (init_remote_ops): Install to_fileio routines.
12624 2012-01-20  Pedro Alves  <palves@redhat.com>
12625             Ulrich Weigand  <ulrich.weigand@linaro.org>
12627         * remote.c (remote_multi_process_p): Only check for multi-process
12628         protocol feature, do not check for extended protocol.
12629         (remote_supports_multi_process): Check for extended protocol here.
12630         (set_general_process): Likewise.
12631         (extended_remote_kill): Likewise.
12632         (remote_pid_to_str): Likewise.
12633         (remote_query_supported): Always query multiprocess mode.
12635 2012-01-20  Pedro Alves  <palves@redhat.com>
12636             Ulrich Weigand  <ulrich.weigand@linaro.org>
12638         * inferior.h (struct inferior): Add fake_pid_p.
12639         * inferior.c (exit_inferior_1): Clear fake_pid_p.
12640         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12641         magic_null_ptid since the remote side doesn't provide a real PID.
12643 2012-01-19  Tom Tromey  <tromey@redhat.com>
12645         * NEWS: Combine the two Python sections.
12647 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
12649         * target.h (target_close): Update comment on the target's unpush state.
12651 2012-01-19  Pedro Alves  <palves@redhat.com>
12653         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12654         linux_nat_async directly instead of going through the target
12655         vector.
12656         * target.c (unpush_target): Close target after unpushing it, not
12657         before.
12659 2012-01-19  Gary Benson  <gbenson@redhat.com>
12661         * mdebugread.c (sort_blocks): Replace integer constants with ones
12662         derived from FIRST_LOCAL_BLOCK.
12664 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12665             Jan Kratochvil  <jan.kratochvil@redhat.com>
12667         PR gdb/9538
12668         * symfile.c (find_separate_debug_file): New function.
12669         (terminate_after_last_dir_separator): Likewise.
12670         (find_separate_debug_file_by_debuglink): Also try realpath.
12671         * configure.ac (AC_CHECK_FUNCS): Add lstat.
12672         * configure: Regenerate.
12673         * config.in: Regenerate.
12675 2012-01-18  Doug Evans  <dje@google.com>
12677         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12678         (main.o): Remove rule.
12679         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12680         (--with-sysroot): Rewrite.
12681         * configure: Regenerate.
12682         * config.in: Regenerate.
12684 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
12686         * parse.c (initialize_expout): New function.
12687         (reallocate_expout): Likewise.
12688         (parse_exp_in_context): Use `initialize_expout' and
12689         `reallocate_expout' when appropriate.
12691 2012-01-18  Pedro Alves  <palves@redhat.com>
12693         * record.c (struct record_breakpoint, record_breakpoint_p)
12694         (record_breakpoints): New.
12695         (record_insert_breakpoint, record_remove_breakpoint): Manage
12696         record breakpoints list.  Only remove breakpoints from the
12697         inferior if they had been inserted there in the first place.
12699 2012-01-17  Doug Evans  <dje@google.com>
12701         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12702         if we know we don't have a file name to look for.
12704 2012-01-17  Pedro Alves  <palves@redhat.com>
12706         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12707         the frame's stop reason is UNWIND_UNAVAILABLE.
12709 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12711         Fix compilation error.
12712         * m2-exp.y (yyerror): Use ANSI C prototype.
12714 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12716         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12717         (growbuf_by_size): Likewise.
12718         (yyerror): Likewise.
12719         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12720         (modblock): Remove variable (was #if 0'ed).
12721         (parse_number): Convert prototype from K&R to ANSI C.
12722         (yyerror): Likewise.
12723         * objc-exp.y (parse_number): Likewise.
12724         (yyerror): Likewise.
12725         (yylex): Remove #if 0'ed code.
12726         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12727         (yyerror): Likewise.
12729 2012-01-16  Tom Tromey  <tromey@redhat.com>
12731         * NEWS: Add item.
12732         * symtab.h (compare_filenames_for_search): Declare.
12733         * symtab.c (compare_filenames_for_search): New function.
12734         (iterate_over_some_symtabs): Use it.
12735         * symfile.h (struct quick_symbol_functions)
12736         <map_symtabs_matching_filename>: Change spec.
12737         * psymtab.c (partial_map_symtabs_matching_filename): Use
12738         compare_filenames_for_search.  Update for new spec.
12739         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12740         compare_filenames_for_search.  Update for new spec.
12741         * breakpoint.c (clear_command): Use compare_filenames_for_search.
12743 2012-01-16  Tom Tromey  <tromey@redhat.com>
12745         PR python/13281:
12746         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12747         (struct main_type) <flag_flag_enum>: New field.
12748         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12749         * NEWS: Add entries.
12750         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12751         enums.
12752         * python/lib/gdb/printing.py (_EnumInstance): New class.
12753         (FlagEnumerationPrinter): Likewise.
12755 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12757         * breakpoint.c (create_sals_from_address_default): New function.
12758         (create_breakpoints_sal_default): Likewise.
12759         (decode_linespec_default): Likewise.
12760         (is_marker_spec): Removed.
12761         (strace_marker_p): New function.
12762         (init_breakpoint_sal): Using `strace_marker_p' instead of
12763         `is_marker_spec'.
12764         (create_breakpoint): Call method `create_sals_from_address' from
12765         breakpoint_ops, replacing code that created SALs conditionally
12766         on the type of the breakpoint.  Call method `create_breakpoints_sal',
12767         replacing code that created breakpoints conditionally on the type
12768         wanted.
12769         (base_breakpoint_create_sals_from_address): New function.
12770         (base_breakpoint_create_breakpoints_sal): Likewise.
12771         (base_breakpoint_decode_linespec): Likewise.
12772         (base_breakpoint_ops): Add methods
12773         `base_breakpoint_create_sals_from_address',
12774         `base_breakpoint_create_breakpoints_sal' and
12775         `base_breakpoint_decode_linespec'.
12776         (bkpt_create_sals_from_address): New function.
12777         (bkpt_create_breakpoints_sal): Likewise.
12778         (bkpt_decode_linespec): Likewise.
12779         (tracepoint_create_sals_from_address): Likewise.
12780         (tracepoint_create_breakpoints_sal): Likewise.
12781         (tracepoint_decode_linespec): Likewise.
12782         (strace_marker_create_sals_from_address): Likewise.
12783         (strace_marker_create_breakpoints_sal): Likewise.
12784         (strace_marker_decode_linespec): Likewise.
12785         (strace_marker_breakpoint_ops): New variable.
12786         (addr_string_to_sals): Remove `marker_spec'.  Call method
12787         `decode_linespec' from breakpoint_ops, replacing code that decoded
12788         an address string into a SAL.  Use `strace_marker_p' instead of
12789         `marker_spec'.
12790         (strace_command): Decide whether we are dealing with a static
12791         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
12792         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12793         * breakpoint.h (linespec_result, linespec_sals): New forward
12794         declarations.
12795         (breakpoint_ops) <create_sals_from_address>,
12796         <create_breakpoints_sal>, <decode_linespec>: New methods.
12798 2012-01-14  Doug Evans  <dje@google.com>
12800         * NEWS: Update text for "maint set python print-stack".
12801         It is deprecated in gdb 7.4 and deleted in 7.5.
12803 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
12805         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12806         including curses.h.
12808 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
12810         * configure: Regenerate.
12811         * config.in: Regenerate.
12813 2012-01-12  Keith Seitz  <keiths@redhat.com>
12815         PR mi/10586
12816         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12817         (ANONYMOUS_UNION_NAME): Define.
12818         (is_path_expr_parent): New function.
12819         (get_path_expr_parent): New function.
12820         (is_anonymous_child): New function.
12821         (create_child_with_value): If the child is anonymous and without
12822         a name, assign an object name to it.
12823         (c_describe_child): Use get_path_expr_parent to determine
12824         the parent expression.
12825         If there field represents an anonymous struct or union and
12826         has no name, set an appropriate display name and expression.
12827         (cplus_describe_child): Likewise.
12829 2012-01-12  Pedro Alves  <palves@redhat.com>
12831         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12832         available when %ebp is found to be zero (outermost).
12834 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
12836         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12837         an internal gdb_static_assert.
12838         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12840 2012-01-11  Tom Tromey  <tromey@redhat.com>
12842         PR gdb/9598:
12843         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12844         catch" and "catch throw".
12846 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
12848         * blockframe.c (block_innermost_frame): Start search from selected
12849         frame, if present, or otherwise the current frame.
12851         * c-exp.y (variable): Update innermost_block for
12852         'block COLONCOLON NAME' clause.
12853         * m2-exp.y (variable): Ditto.
12854         * objc-exp.y (variable): Ditto.
12856 2012-01-10  Tom Tromey  <tromey@redhat.com>
12858         PR python/13199:
12859         * python/python.c (finish_python_initialization): Set sys.argv.
12861 2012-01-10  Doug Evans  <dje@google.com>
12863         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
12864         "want_line_info".  All callers updated.
12865         (dwarf_decode_lines_1): New function.
12866         (handle_DW_AT_stmt_list): Add function comment.
12867         New arg "want_line_info".  All callers updated.
12868         (read_file_scope,read_type_unit_scope): Move comment from
12869         handle_DW_AT_stmt_list to here.
12871 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12873         Fix regression after libiberty/ update for GCC PR 6057 and others.
12874         * c-exp.y (operator) <OPERATOR DELETE>
12875         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12876         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12877         (make_builtin_type, make_name): New variable i, add gdb_assert.
12878         (operator) <OPERATOR NEW>: Update ARGS to 3.
12879         (operator) <OPERATOR DELETE>: Add trailing space.
12880         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12881         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12882         * cp-support.c (cp_canonicalize_string): Check NULL from
12883         cp_comp_to_string, call warning and return.
12885 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12887         Fix duplicate .o files after omitting libbfd.a.
12888         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12889         (SFILES): Add corelow.c.
12890         (COMMON_OBS): Add corelow.o.
12891         (ALLDEPFILES): Remove corelow.c.
12892         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12893         * config/alpha/alpha-osf3.mh: Likewise.
12894         * config/alpha/fbsd.mh: Likewise.
12895         * config/arm/nbsdaout.mh: Likewise.
12896         * config/arm/nbsdelf.mh: Likewise.
12897         * config/i386/i386gnu.mh: Likewise.
12898         * config/ia64/hpux.mh: Likewise.
12899         * config/ia64/linux.mh: Likewise.
12900         * config/m32r/linux.mh: Likewise.
12901         * config/m68k/linux.mh: Likewise.
12902         * config/mips/irix5.mh: Likewise.
12903         * config/mips/irix6.mh: Likewise.
12904         * config/pa/hpux.mh: Likewise.
12905         * config/pa/linux.mh: Likewise.
12906         * config/powerpc/aix.mh: Likewise.
12907         * config/sparc/linux.mh: Likewise.
12908         * config/sparc/linux64.mh: Likewise.
12909         * config/sparc/sol2.mh: Likewise.
12910         * config/vax/vax.mh: Likewise.
12911         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12912         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12913         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12914         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12915         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12916         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12917         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12918         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12919         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12920         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12921         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12922         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12923         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12924         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12925         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12926         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12927         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12928         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12929         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12930         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12931         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12932         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12933         corelow.o from gdb_target_obs.
12934         * corefile.c (core_target): Update the comment on NULL value.
12935         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12936         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12937         MATCHES.  Drop YUMMY set on NULL.
12938         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
12939         reclaim CORE_DATA if it is already NULL.
12941 2012-01-09  Doug Evans  <dje@google.com>
12943         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12944         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12946 2012-01-09  Keith Seitz  <keiths@redhat.com>
12948         * breakpoint.c (wrapper.h): Don't include.
12950 2012-01-09  Keith Seitz  <keiths@redhat.com>
12952         * Makefile.in (SFILES): Remove wrapper.c.
12953         (HFILES_NO_SRCDIR): Remove wrapper.h.
12954         (COMMON_OBS): Remove wrapper.o.
12955         * cli/cli-interp.c: Don't inlude wrapper.h.
12956         * corelow.c: Likewise.
12957         (core_open): Replace gdb_target_find_new_threads with
12958         TRY_CATCH around target_find_new_threads.
12959         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12960         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12961         * varobj.c (varobj_create): Likewise for parse_exp_1 and
12962         evaluate_expression.
12963         (varobj_set_value): Likewise for evaluate_expression and
12964         value_assign.
12965         (install_new_variable): Likewise for value_fetch_lazy.
12966         (adjust_value_for_child_access): Likewise for value_ind.
12967         (c_describe_child): Likewise for value_subscript and
12968         value_ind.
12969         (c_value_of_root): Likewise for evaluate_expression.
12970         * wrapper.c: Remove.
12971         * wrapper.h: Remove.
12973 2012-01-09  Doug Evans  <dje@google.com>
12975         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12976         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
12977         "abfd" args with "section".  All callers updated.
12978         Error checking code moved ...
12979         (error_check_comp_unit_head): ... here.  New function.
12980         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12981         Delete arg "abfd".  New arg "type_offset".  All callers updated.
12982         (create_debug_types_hash_table): Simplify by using
12983         read_and_check_type_unit_head.
12985         * parser-defs.h (namecopy): Delete.
12986         * parse.c (namecopy, namecopy_size): Move into copy_name.
12988 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12990         Partially fix duplicate .o files after omitting libbfd.a.
12991         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12992         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12993         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12994         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12995         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12996         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12997         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12999 2012-01-09  Pedro Alves  <palves@redhat.com>
13001         * MAINTAINERS: Update my email address.
13003 2012-01-08  Doug Evans  <dje@google.com>
13005         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
13006         n_type_units.  Rename type_comp_units to all_type_units.
13007         All uses updated.
13008         (add_signatured_type_cu_to_table): Renamed from
13009         add_signatured_type_cu_to_list.  All callers updated.
13011         * gdbtypes.h (struct cplus_struct_type): Delete member
13012         nfn_fields_total.  All uses removed.
13014 2012-01-06  Doug Evans  <dje@google.com>
13016         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
13017         to top of file.
13018         (dwarf2_find_comp_unit): Delete.
13019         (process_psymtab_comp_unit): Make result "void".
13020         Delete args buffer, info_ptr, buffer_size, and replace with
13021         "section".  All callers updated.
13022         (dwarf2_build_psymtabs_hard): Simplify.
13024 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
13025             Thiago Jung Bauermann  <bauerman@br.ibm.com>
13027         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
13028         before `struct gdb_exception'.
13029         * breakpoint.c (update_global_location_list_nothrow)
13030         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
13031         * cp-abi.c (value_rtti_type): Likewise.
13032         * cp-support.c (cp_validate_operator): Likewise.
13033         * infrun.c (insert_exception_resume_breakpoint)
13034         (check_exception_resume, keep_going): Likewise.
13035         * mi-interp.c (mi_breakpoint_created)
13036         (mi_breakpoint_modified): Likewise.
13037         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
13038         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
13039         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
13041 2012-01-05  Doug Evans  <dje@google.com>
13043         * dwarf2read.c (statement_prologue): Delete, unused.
13045         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
13046         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
13048         * dwarf2read.c (comp_unit_header): Delete, unused.
13050 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
13052         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
13053         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
13055 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
13057         * infrun.c (normal_stop): Don't skip calling the normal_stop
13058         observers if the thread was doing a multi-step, but stopped for
13059         some reason other than stepping.
13061 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
13063         * cli/cli-decode.h: Add comments.
13064         (CMD_LIST_AMBIGUOUS): Moved to command.h
13065         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
13066         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
13067         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
13068         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
13069         (add_com, add_com_alias, add_info, add_info_alias)
13070         (complete_on_cmdlist, complete_on_enum, help_list): Remove
13071         declarations.
13072         * command.h: Add and adjust comments.
13073         (CMD_LIST_AMBIGUOUS): Moved here.
13074         (help_cmd, help_cmd_list): Delete declarations.
13076 2012-01-04  Doug Evans  <dje@google.com>
13078         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
13079         All callers updated.
13080         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
13081         Replace all arguments with "per_cu".  All callers updated.
13083         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
13085         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
13086         New arg "per_cu".  All callers updated.
13088         Delete #if 0'd out code.
13089         * language.c (binop_result_type): Delete.
13090         (simple_type, ordered_type, same_type, integral_type): Delete.
13091         (numeric_type, character_type, string_type, boolean_type): Delete.
13092         (float_type, structured_type): Delete.
13093         * language.h: Update.
13095 2012-01-04  Tom Tromey  <tromey@redhat.com>
13097         * python/py-value.c (valpy_binop): Initialize 'res_val'.
13099 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13101         * corefile.c (close_exec_file): Delete.
13102         (reopen_exec_file): Remove commented out code that seems related
13103         to close_exec_file, which is being deleted here.
13104         * inferior.h (close_exec_file): Delete.
13105         * fork-child.c (fork_inferior): Remove call to fork_inferior.
13107 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13109         * ada-lang.c: #include "cli/cli-utils.h".
13110         (get_selections): Use skip_spaces.
13111         (ada_get_next_arg): Use skip_spaces and skip_to_space.
13112         (catch_ada_exception_command_split): Use skip_spaces.
13113         (ada_decode_assert_location): Likewise.
13115 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13117         * linespec.c (decode_line_internal): Check for C++ or Java
13118         compound constructs only if the current language is C, C++
13119         or Java.
13121 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
13123         Revert:
13124         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13125                     Joel Brobecker  <brobecker@adacore.com>
13126         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13127         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13128         3 times.
13129         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13130         fall through into AT_ENTRY_POINT.
13131         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
13132         DUMMY_ADDR with it.
13133         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13134         PPC_INSN_SIZE skip to 3 times.
13136 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13138         * linespec.c (add_minsym): Preserve function descriptors.
13140 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
13142         * breakpoint.c (all_locations_are_pending): Consider locations
13143         in program spaces executing during startup pending as well.
13145 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13147         Copyright year update in most files of the GDB Project.
13149 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13151         * copyright.sh: Delete.
13152         * copyright.py: Rewrite.
13154 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13156         * gnulib/extra/update-copyright: New file, imported from gnulib.
13158 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
13160         * README (Copyright and License Notices): New section.
13162 2012-01-03  Tom Tromey  <tromey@redhat.com>
13164         PR python/12533:
13165         * python/py-value.c (valpy_dereference, valpy_get_address
13166         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13167         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13168         (valpy_absolute, valpy_richcompare): Free intermediate values.
13170 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
13172         * ada-lang.c: Reformat the copyright notice.
13174 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13176         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13177         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13178         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13179         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13180         Revert this part of:
13181         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13182         Build gdb directly from *.o files not using libgdb.a.
13183         * Makefile.in (COMMON_OBS): Remove solib-target.o.
13185 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13187         * common/gdb_thread_db.h, dbxread.c, environ.c,
13188         gcore.h, rs6000-tdep.h, s390-nat.c, tic6x-tdep.c:
13189         Reformat the copyright header.
13191 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13193         Revert this part of:
13194         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13195         Remove the gdbtui binary.
13196         * gdb.c (main): Remove args.interpreter_p initialization.
13197         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13198         * main.h (struct captured_main_args): Remove interpreter_p.
13200 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13202         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13204 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13206         * top.c (print_gdb_version): Update copyright year.
13208 2012-01-02  Yao Qi  <yao@codesourcery.com>
13210         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13212 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13213             Joel Brobecker  <brobecker@adacore.com>
13215         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13216         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13217         3 times.
13218         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13219         fall through into AT_ENTRY_POINT.
13220         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
13221         DUMMY_ADDR with it.
13222         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13223         PPC_INSN_SIZE skip to 3 times.
13225 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13227         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13228         the return value.
13229         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13231 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13233         Build gdb directly from *.o files not using libgdb.a.
13234         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13235         (COMMON_OBS): Remove solib-target.o.
13236         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13237         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13238         (LIBGDB_OBS, libgdb.a): Move it above.
13239         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13240         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13241         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13242         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13243         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13244         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13245         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13246         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13247         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13248         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13249         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13250         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13251         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13252         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13253         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13254         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13255         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13256         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13257         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13258         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13259         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13260         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13261         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13262         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13263         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13264         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13265         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13267 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13269         Remove the gdbtui binary.
13270         * .gitignore (/gdbtui): Remove.
13271         * Makefile.in (TUI): Remove.
13272         (SUBDIR_TUI_OBS): Remove tui-main.o.
13273         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13274         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13275         (tui-main.o): Remove.
13276         (all_object_files): Remove tui-main.o.
13277         * NEWS: New note for the gdbtui removal.
13278         * configure: Rebuilt.
13279         * configure.ac: No longer add all-tui, clean-tui, install-tui and
13280         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13281         CONFIG_UNINSTALL respectively.
13282         * gdb.c (main): Remove args.interpreter_p initialization.
13283         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13284         * main.h (struct captured_main_args): Remove interpreter_p.
13285         * tui/tui-main.c: Remove.
13287 2012-01-01  Doug Evans  <dje@google.com>
13289         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13290         (dwarf2_physname, read_import_statement): Ditto.
13291         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13292         (process_structure_scope read_subroutine_type): Ditto.
13293         (read_typedef, load_partial_dies, read_partial_die): Ditto.
13294         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13295         (dwarf2_fetch_die_location_block): Ditto.
13296         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13298         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13299         All callers updated.
13300         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13301         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13302         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13304         * dwarf2read.c (load_cu): Move assert to more useful location.
13306         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13307         All callers updated.
13309         * dwarf2read.c (dwarf2_per_objfile): Add comment.
13310         (dwarf2_elf_names): Minor reformat.
13311         (dwarf2_per_cu_data): Tweak comment.
13312         (dwarf2_read_section): Fix comment.
13313         (create_all_comp_units): Fix comment.
13314         (load_full_comp_unit): Fix comment.
13315         (process_full_comp_unit): Fix comment.
13316         (read_signatured_type): Fix comment.
13318 For older changes see ChangeLog-2011.
13320 Local Variables:
13321 mode: change-log
13322 left-margin: 8
13323 fill-column: 74
13324 version-control: never
13325 coding: utf-8
13326 End: