[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
Responsible-Changed-From-To: unassigned->cagney Responsible-Changed-Why: mine
Responsible-Changed-From-To: cagney->unassigned Responsible-Changed-Why: no change, back in the pool
Sent a patch.
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
Removed.
Forgot to close.