Commit Graph

31680 Commits

Author SHA1 Message Date
Joel Brobecker b9786c7408 Update copyright year in gdb/gdbserver/gdbreplay version output.
gdb/ChangeLog:

        * top.c (print_gdb_version): Update copyright year.

gdb/gdbserver/ChangeLog:

        * gdbreplay.c (gdbreplay_version): Update copyright year.
        * server.c (gdbserver_version): Likewise.
2013-01-01 05:45:22 +00:00
Joel Brobecker 72b20e9c8d Rotate gdb's ChangeLog file.
gdb:

        * ChangeLog-2012: Renamed from ChangeLog:
        * ChangeLog: New file.
        * config/djgpp/fnchange.lst: Add entry for ChangeLog-2012.
2013-01-01 05:30:40 +00:00
gdbadmin 33634978a8 *** empty log message *** 2013-01-01 00:00:03 +00:00
Yao Qi 8dbe8ece3c gdb/doc/
* gdb.texinfo (Remote Non-Stop): Move paragraphs to ...
	(Packets): Move "vStopped" packet to ...
	(Notification Packets): ... here.  Describe the components
	of notification.  Add a table of supported notifications.
	Add an example on the process of he async notification.
2012-12-31 03:00:11 +00:00
gdbadmin d17275f766 *** empty log message *** 2012-12-31 00:00:03 +00:00
gdbadmin 7f86c57e78 *** empty log message *** 2012-12-30 00:00:33 +00:00
gdbadmin 2c0b365581 *** empty log message *** 2012-12-29 00:00:03 +00:00
Jan Kratochvil d180bcbd34 gdb/
* symtab.c (find_line_symtab): Call symtab_to_fullname instead of
	accessing FULLNAME directly.
2012-12-28 09:05:40 +00:00
gdbadmin 6457f4cfc2 *** empty log message *** 2012-12-28 00:00:33 +00:00
gdbadmin 2d65ea6498 *** empty log message *** 2012-12-27 00:00:33 +00:00
gdbadmin bcef180ccb *** empty log message *** 2012-12-26 00:00:33 +00:00
Sergio Durigan Junior 137a83b9f9 2012-12-25 Sergio Durigan Junior <sergiodj@redhat.com>
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
2012-12-25 17:27:49 +00:00
Jan Kratochvil f35a17b542 gdb/
* ada-lang.c (is_known_support_routine): New variable fullname.  Use
	access call to verify the symtab_to_fullname result.
	* breakpoint.c (print_breakpoint_location, update_static_tracepoint):
	Remove NULL check of symtab_to_fullname result.
	* cli/cli-cmds.c (edit_command): Likewise.
	* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
	(mi_cmd_file_list_exec_source_files): Likewise.
	* python/py-symtab.c (stpy_fullname): Likewise.
	* source.c (symtab_to_fullname): Update function comment.  Rename
	variable r to fd, move it to inner block.  Always provide non-NULL
	result.
	(print_source_lines_base): Remove NULL check of symtab_to_fullname
	result.
	* stack.c (print_frame): Likewise.
	* symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info):
	Likewise.
	* tracepoint.c (print_one_static_tracepoint_marker): Likewise.

gdb/doc/
	* gdb.texinfo (GDB/MI Data Manipulation) (fullname): Make it always
	present.
	(GDB/MI File Commands) (-file-list-exec-source-files): Make the
	fullname output always present.

gdb/testsuite/
	* gdb.mi/mi-fullname-deleted.exp: New file.
2012-12-25 08:03:33 +00:00
gdbadmin c2c899ab4b *** empty log message *** 2012-12-25 00:00:03 +00:00
Jan Kratochvil 4e04028d95 gdb/
Code cleanup.
	* dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for
	NULL.
	* linespec.c (add_sal_to_sals): Likewise.
	* psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL.
	* stack.c (print_frame): Do not check symtab->FILENAME for NULL.
	* symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL.
	* symtab.h (struct symtab): Add comment it is never NULL for filename.
	* tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME
	for NULL.
	* tui/tui-source.c (tui_set_source_content): Likewise.
2012-12-24 19:42:16 +00:00
Jan Kratochvil 858174054d gdb/
* breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
	* infrun.c (handle_inferior_event): Rename the called function to
	function_name_is_marked_for_skip, pass it TMP_SAL.
	* skip.c (struct skiplist_entry): Update function_name comment.  Remove
	fields pc, gdbarch and pending.
	(skip_function_pc): Rename this forward declaration to ...
	(skip_function): ... here.
	(skip_file_command): Remove variable pending and its use, remove
	initialization of E fields pending and gdbarch.  Do not use SYMTAB
	filename, use the specified one.
	(skip_function_command): Remove variable func_pc, do not set it.
	Update the caller of skip_function.  Replace decode_line_1 call by
	a lookup_symbol call.  Remove variables orig_arg, decode_exception and
	sals.  Update the caller of skip_function.
	(skip_info): Remove variable address_width and its use.  Do not print
	address (PC).  Renumber column 5 to 4.
	(skip_function_pc): Rename to ...
	(skip_function): ... here and remove its parameters pc, arch and
	pending.  Update the function comment and no longer use those
	parameters.
	(function_pc_is_marked_for_skip): Rename to ...
	(function_name_is_marked_for_skip): ... here, update function comment
	just to a skip.h reference, replace pc parameter by function_name and
	function_sal.  No longer use E field pending and pc.  Remove variables
	searched_for_sal, sal and filename.  Call compare_filenames_for_search
	instead of just strcmp.
	(skip_re_set): Remove the function.
	* skip.h (struct symtab_and_line): New declaration.
	(function_pc_is_marked_for_skip): Rename to ...
	(function_name_is_marked_for_skip): ... here, replace pc parameter by
	function_name and function_sal, update the function comment.

gdb/testsuite/
	* gdb.base/skip-solib.exp (info skip with pending file): Update the
	expected output.
	(info skip with pending file): Remove.
	(ignoring function in solib, info skip for function multiply): Update
	the expected output.
	* gdb.base/skip.ex (skip (main), skip function baz, info skip)
	(info skip (delete 1), info skip after disabling all)
	(info skip after enabling all, info skip after disabling 4 2-3)
	(info skip after enabling 2-3, info skip 2-3)
	(info skip after deleting 2 3): Update the expected output.
	* gdb.linespec/base/two/thefile.cc (n): New variable v, split the
	statement to its initialization and return.
	* gdb.linespec/skip-two.exp: New file.
2012-12-24 19:40:05 +00:00
gdbadmin e14d7bc6b3 *** empty log message *** 2012-12-24 00:00:36 +00:00
gdbadmin e9d39edd56 *** empty log message *** 2012-12-23 00:00:03 +00:00
Pierre Muller 2da6da3b30 * ui-file.h (tee_file_new): Add extern modifier in header declaration. 2012-12-22 18:53:36 +00:00
Pierre Muller 0dfd2fad8b * gdbint.texinfo (Function prototypes): Require use of "extern"
modifier for function prototypes in headers.
2012-12-22 17:51:11 +00:00
gdbadmin e2b61e6894 *** empty log message *** 2012-12-22 00:00:03 +00:00
gdbadmin 600e715a7b *** empty log message *** 2012-12-21 00:00:34 +00:00
Tom Tromey 29f5339515 * serial.c (deprecated_serial_fd): Remove.
* serial.h (deprecated_serial_fd): Remove.
2012-12-20 15:30:25 +00:00
Doug Evans 27210e1258 * gdb.base/maint.exp: Handle testing with .gdb_index. 2012-12-20 05:05:49 +00:00
Yao Qi 80480540e6 gdb/
2012-12-20  Yao Qi  <yao@codesourcery.com>

	* maint.c (_initialize_maint_cmds): Move code ...
	* symmisc.c (_initialize_symmisc): ... to here.
	(maintenance_print_msymbols): Make it static.
	(maintenance_print_objfiles): Likewise.
	(maintenance_print_symbols): Likewise.
	(maintenance_info_symtabs): Likewise.
	* symtab.h (maintenance_print_msymbols): Remove declaration.
	(maintenance_print_objfiles, maintenance_print_symbols): Likewise.
	(maintenance_info_symtabs): Likewise.
2012-12-20 01:07:04 +00:00
Yao Qi dfc7bb5b17 gdb/
2012-12-20  Yao Qi  <yao@codesourcery.com>

	* maint.c (_initialize_maint_cmds): Move code to ...
	* psymtab.c (_initialize_psymtab): ... here.  New.
	Include "gdbcmd.h".
	(maintenance_print_psymbols): Make it static.
	(maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
	* symtab.h (maintenance_print_psymbols): Remove declaration.
	(maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
2012-12-20 00:58:14 +00:00
gdbadmin 463133ca3a *** empty log message *** 2012-12-20 00:00:03 +00:00
Maxim Kuvyrkov 64e4f34fb7 * MAINTAINERS: Add myself to write-after-approval maintainers. 2012-12-19 22:07:44 +00:00
Andreas Tobler 4b844a3875 2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
* mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
        branch_bp to keep gcc happy.
2012-12-19 20:57:55 +00:00
Joel Brobecker bb627a1246 Change copyright from Cavium to FSF.
gdb/testsuite/ChangeLog:

        * gdb.arch/mips-octeon-bbit.exp: Fix copyright header from
        Cavium to FSF.
2012-12-19 15:49:44 +00:00
Joel Brobecker 586a64c27f Add copyright header to stubs/buildvms.com.
gdb/stubs/ChangeLog:

        * buildvms.com: Add copyright header.
2012-12-19 10:54:54 +00:00
Joel Brobecker bf6be9db91 Fix copyright years in gdbarch.h and gdbarch.c.
copyright.py was updating gdbarch.sh' copyright years, but not
the function that genarates the copyright headers for gdbarch.[hc].

This patch makes the following changes:
  - fixes gdbarch.sh and regenerates gdbarch.[hc]

  - Modify copyright.py to remind the user to update gdbarch.sh
    by hand.  This should also remind the user to rerun the script
    and update gdbarch.[hc] - see next point;

  - Allow copyright.py to update gdbarch.[hc]'c copyright years,
    even though these are generated files;  This should free
    the user from having to update gdbarch.[hc] himself;

gdb/ChangeLog:

        * gdbarch.sh (copyright): Update copyright years.
        * gdbarch.h, gdbarch.c: Regenerate.
        * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
        (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
2012-12-19 08:20:43 +00:00
Joel Brobecker 7785b8804f update copyright notices in various GDB files.
Update some files in GDB that were accidently left with a GPL v2
copyright header.

Update some files where the copyright notice still provides the
old contact info, using the approach for providing the FSF's contact
info.

gdb/ChangeLog:

        * acinclude.m4: Update contact info in copyright notice.

gdb/doc/ChangeLog:

        * refcard.tex: Update copyright notice to GPL v3 or later.
        Update contact info.

gdb/testsuite/ChangeLog:

        * dg-extract-results.sh: Update contact info in copyright notice.
        * gdb.arch/mips-octeon-bbit.exp: Update copyright notice to
        GPL v3 or later.  Update contact info.
        * gdb.fortran/logical.f90, gdb.threads/watchpoint-fork-child.c,
        gdb.threads/watchpoint-fork-mt.c,
        gdb.threads/watchpoint-fork-parent.c,
        gdb.threads/watchpoint-fork-st.c,
        gdb.threads/watchpoint-fork.h: Likewise.
2012-12-19 08:19:59 +00:00
Yao Qi 025cfdb2f7 gdb/
2012-12-19  Yao Qi  <yao@codesourcery.com>

	* maint.c (maintenance_print_statistics): Make it static.
	* symtab.h (maintenance_print_statistics): Remove declaration.
2012-12-19 07:51:50 +00:00
Joel Brobecker 249729c4e9 NEWS: Announce ppc-lynx178 support.
gdb/ChangeLog:

        * NEWS: Add entry announcing ppc-lynx178 support.
2012-12-19 04:28:53 +00:00
Joel Brobecker a143c6dee4 Revert "Import gnulib's errno module."
There are some compatibility concerns with libiconv to be
discussed first.

gdb/ChangeLog:

        Revert the following change:
        * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
        * gnulib/import/errno.in.h: Import.
        * gnulib/import/m4/errno_h.m4: Import.
        * gnulib/aclocal.m4: Regenerate.
        * gnulib/configure: Regenerate.
        * gnulib/import/Makefile.am: Update.
        * gnulib/import/Makefile.in: Update.
        * gnulib/import/m4/gnulib-cache.m4: Update.
        * gnulib/import/m4/gnulib-comp.m4: Update.
2012-12-19 04:13:54 +00:00
gdbadmin e0e51b2391 *** empty log message *** 2012-12-19 00:00:32 +00:00
Tom Tromey d8a4f9280a fix some bad ChangeLog dates from today 2012-12-18 19:33:44 +00:00
Tom Tromey 28da164739 * defs.h (directory_command): Don't declare.
* source.c (directory_command): Now static.
2012-12-18 19:32:41 +00:00
Tom Tromey 1dd5fedcf5 * infcmd.c (all_registers_info, nexti_command, stepi_command)
(continue_command, interrupt_target_command): Now static.
	(registers_info): Remove declaration.
	* inferior.h (all_registers_info, nexti_command, stepi_command)
	(continue_command, interrupt_target_command): Don't declare.
2012-12-18 19:31:17 +00:00
Tom Tromey c419cfba93 * cli/cli-cmds.c (apropos_command): Now static. 2012-12-18 19:27:35 +00:00
Tom Tromey da821c7be2 * breakpoint.c (dprintf_command): Now static. 2012-12-18 19:27:00 +00:00
Tom Tromey ca7b0bbcfa * Makefile.in (init.c): Declare initialize_all_files;
don't include call-cmds.h.
	* call-cmds.h: Remove.
	* symtab.c: Don't include call-cmds.h.
	* top.c: Don't include call-cmds.h.  Declare
	initialize_all_files.
2012-12-18 19:26:29 +00:00
Tom Tromey 5d3055ad4f * symfile.c (list_overlays_command, map_overlay_command)
(unmap_overlay_command): Now static.
2012-12-18 19:25:24 +00:00
Tom Tromey 2370e8539c * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
"define", "while", and "if" commands.
	* cli/cli-script.c (while_command, if_command, define_command)
	(document_command): Now static.
	(_initialize_cli_script): New function.
	* cli/cli-script.h (while_command, if_command, define_command)
	(document_command): Don't declare.
2012-12-18 19:24:40 +00:00
Tom Tromey 43e4916ffe * cli/cli-cmds.c (_initialize_cli_cmds): New function.
(init_cli_cmds): Move most code into new function.
2012-12-18 19:23:33 +00:00
Tom Tromey c9630d9c13 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
* minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
	declare.
2012-12-18 19:21:53 +00:00
Joel Brobecker d5367fe16e Port GDB to powerpc-lynx178.
gdb/ChangeLog:

        * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
        * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
        * xcoffread.c (xcoff_get_core_n_import_files): New function.
        (xcoff_get_n_import_files): New function.
        * xcoffread.h (xcoffread.h): Add declaration.
        * rs6000-aix-tdep.c: #include "xcoffread.h".
        (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
        XCOFF executables that do not depend on any shared library.
        * rs6000-lynx178-tdep.c: New file.
        * configure.tgt: Add powerpc-*-lynx*178 handling.
        * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
        (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
2012-12-18 14:52:59 +00:00
Markus Metzger 02d403bfba Fix ChangeLog format. 2012-12-18 08:01:42 +00:00
Hui Zhu 2a9d5ccf79 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
* ui-file.c (ui_file): Add to_fseek.
	(ui_file_new): Call set_ui_file_fseek.
	(null_file_fseek, ui_file_fseek, set_ui_file_fseek,
	 stdio_file_fseek): New functions.
	(stdio_file_new): Call set_ui_file_fseek.
	* ui-file.h (ui_file_fseek_ftype): New typedef.
	(set_ui_file_fseek, ui_file_fseek): New externs.
2012-12-18 07:01:58 +00:00