Re: [PATCH] Allow user-defined as a category for python gdb macros (resend)

Keith Seitz
2012-03-01T20:26:18Z

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

On 03/01/2012 11:31 AM, Doug Evans wrote:
> Hi.
> Committed.

I've committed the attached patch, which updates the doc string modified
by this patch:

>>> @@ -1912,7 +1913,7 @@ Two arguments (separated by a comma) are taken as
>>> a range of memory to dump,\n\
>>> Run the ``make'' program using the rest of the line as arguments."));
>>> set_cmd_completer (c, filename_completer);
>>> add_cmd ("user", no_class, show_user, _("\
>>> -Show definitions of user defined commands.\n\
>>> +Show definitions of non-python user defined commands.\n\
>>> Argument is the name of the user defined command.\n\
>>> With no argument, show definitions of all user defined commands."),
>>> &showlist);
>>> add_com ("apropos", class_support, apropos_command,

This regresses a test in help.exp.

Keith

ChangeLog
2012-03-01 Keith Seitz <keiths@redhat.com>

* gdb.base/help.exp (help show user): Update expected result
for new doc string changes (add "non-python").

[-- Attachment #2: help.exp.patch --]
[-- Type: text/x-patch, Size: 1214 bytes --]

Index: testsuite/gdb.base/help.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/help.exp,v
retrieving revision 1.55
diff -u -p -r1.55 help.exp
--- testsuite/gdb.base/help.exp 24 Jan 2012 15:13:30 -0000 1.55
+++ testsuite/gdb.base/help.exp 1 Mar 2012 20:23:41 -0000
@@ -574,7 +574,7 @@ gdb_test "help show radix" "Show the def
# test help show symbol-reloading
gdb_test "help show symbol-reloading" "Show dynamic symbol table reloading multiple times in one run\." "help show symbol-reloading"
# test help show user
-gdb_test "help show user" "Show definitions of user defined commands\.\[\r\n\]+Argument is the name of the user defined command\.\[\r\n\]+With no argument, show definitions of all user defined commands\." "help show user"
+gdb_test "help show user" "Show definitions of non-python user defined commands\.\[\r\n\]+Argument is the name of the user defined command\.\[\r\n\]+With no argument, show definitions of all user defined commands\." "help show user"
# test help show values
gdb_test "help show values" "Elements of value history around item number IDX \\(or last ten\\)\." "help show values"
# test help show verbose