Bug 7719 - Obsolete gdb -epoch
Summary: Obsolete gdb -epoch
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: 7.6
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-25 15:58 UTC by ac131313
Modified: 2013-01-07 16:53 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ac131313 2002-07-25 22:58:00 UTC
[Converted from Gnats 614]

David Carlton writes:

I was amused to just notice that GDB has a -epoch flag, whose sole
purpose is to cause the 'inspect' to print out objects slightly
differently so the Epoch version of GDB mode can try to do something
clever with them.

Given that there hasn't been a new version of Epoch for a decade and
that XEmacs (its descendant, if there is one) doesn't use that flag
currently (I have no idea how long it's been since anybody used that
flag; GNU Emacs doesn't use it currently, either), perhaps the -epoch
flag and the "inspect" command should be deprecated?  It wouldn't make
a big difference, but deleting them would allow the inspect_it global
variable to be removed, which is probably a good thing on general
principles.

Release:
unknown
Comment 1 Andrew Cagney 2003-01-31 07:47:26 UTC
Responsible-Changed-From-To: unassigned->cagney
Responsible-Changed-Why: mine
Comment 2 Andrew Cagney 2003-07-27 21:25:41 UTC
Responsible-Changed-From-To: cagney->unassigned
Responsible-Changed-Why: no change, back in the pool
Comment 3 Tom Tromey 2012-12-17 20:12:24 UTC
Sent a patch.
Comment 4 Sourceware Commits 2013-01-07 16:40:49 UTC
CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2013-01-07 16:40:40

Modified files:
	gdb            : ChangeLog NEWS ada-valprint.c cp-valprint.c 
	                 jv-valprint.c m2-lang.c main.c objc-lang.c 
	                 p-lang.c p-valprint.c printcmd.c top.c top.h 
	                 valprint.c valprint.h 
	gdb/doc        : ChangeLog gdb.texinfo 

Log message:
	PR cli/7719:
	* NEWS: Update.
	* ada-valprint.c (printstr, print_field_values): Remove
	"inspect_it" code.
	* cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
	code.
	* jv-valprint.c (java_print_value_fields): Remove "inspect_it"
	code.
	* m2-lang.c (m2_printstr): Remove "inspect_it" code.
	* main.c (captured_main): Remove "epoch" argument.
	* objc-lang.c (objc_printstr): Remove "inspect_it" code.
	* p-lang.c (pascal_printstr): Remove "inspect_it" code.
	* p-valprint.c (pascal_object_print_value_fields): Remove
	"inspect_it" code.
	* printcmd.c (print_command_1): Remove 'inspect' argument.
	(print_command, call_command): Update.
	(inspect_command): Remove.
	(_initialize_printcmd): Make "inspect" an alias for "print".
	* top.c (epoch_interface): Remove.
	* top.h (epoch_interface): Remove.
	* valprint.c (user_print_options): Update.
	(print_converted_chars_to_obstack): Remove "inspect_it" code.
	* valprint.h (struct value_print_options) <inspect_it>: Remove
	field.
	doc
	* gdb.texinfo (Mode Options): Don't mention -epoch.
	(Data, Emacs): Remove obsolete comments.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14998&r2=1.14999
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.561&r2=1.562
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&r1=1.94&r2=1.95
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-valprint.c.diff?cvsroot=src&r1=1.88&r2=1.89
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/jv-valprint.c.diff?cvsroot=src&r1=1.64&r2=1.65
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/m2-lang.c.diff?cvsroot=src&r1=1.67&r2=1.68
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/main.c.diff?cvsroot=src&r1=1.117&r2=1.118
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/objc-lang.c.diff?cvsroot=src&r1=1.109&r2=1.110
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/p-lang.c.diff?cvsroot=src&r1=1.68&r2=1.69
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/p-valprint.c.diff?cvsroot=src&r1=1.104&r2=1.105
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/printcmd.c.diff?cvsroot=src&r1=1.217&r2=1.218
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/top.c.diff?cvsroot=src&r1=1.224&r2=1.225
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/top.h.diff?cvsroot=src&r1=1.35&r2=1.36
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/valprint.c.diff?cvsroot=src&r1=1.132&r2=1.133
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/valprint.h.diff?cvsroot=src&r1=1.43&r2=1.44
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1401&r2=1.1402
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.1039&r2=1.1040
Comment 5 Tom Tromey 2013-01-07 16:53:07 UTC
Removed.
Comment 6 Tom Tromey 2013-01-07 16:53:45 UTC
Forgot to close.