This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. a9f116cbf2fb9892ddbc46478b85ebfa99b0074f
- From: krisman at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 7 Sep 2014 23:15:57 -0000
- Subject: gdb and binutils branch master updated. a9f116cbf2fb9892ddbc46478b85ebfa99b0074f
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via a9f116cbf2fb9892ddbc46478b85ebfa99b0074f (commit)
from c75bd3a23915c3122070a95e1974e323543ffbe4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a9f116cbf2fb9892ddbc46478b85ebfa99b0074f
commit a9f116cbf2fb9892ddbc46478b85ebfa99b0074f
Author: Gabriel Krisman Bertazi <gabriel@krisman.be>
Date: Sun Sep 7 20:12:19 2014 -0300
Fix PR gdb/17035: "show user" doesn't list user-defined commands that
have empty bodies.
User-defined commands that have empty bodies weren't being shown because
the print function returned too soon. Now, it prints the command's name
before checking if it has any body at all. This also fixes the same
problem on "show user <myemptycommand>", which wasn't being printed due
to a similar reason.
gdb/Changelog:
* cli/cli-cmds.c (show_user): Use cli_user_command_p to
decide whether we display the command on "show user".
* cli/cli-script.c (show_user_1): Only verify cmdlines after
printing command name.
* cli/cli-decode.h (cli_user_command_p): Declare new function.
* cli/cli-decode.c (cli_user_command_p): Create helper function
to verify whether cmd_list_element is a user-defined command.
gdb/testsuite/Changelog:
* gdb.base/commands.exp: Add tests to verify user-defined
commands with empty bodies.
* gdb.python/py-cmd.exp: Test that we don't show user-defined
python commands in `show user command`.
* gdb.python/scm-cmd.exp: Test that we don't show user-defined
scheme commands in `show user command`.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 11 +++++++++++
gdb/cli/cli-cmds.c | 5 ++---
gdb/cli/cli-decode.c | 7 +++++++
gdb/cli/cli-decode.h | 5 +++++
gdb/cli/cli-script.c | 4 ++--
gdb/testsuite/ChangeLog | 10 ++++++++++
gdb/testsuite/gdb.base/commands.exp | 22 ++++++++++++++++++++++
gdb/testsuite/gdb.guile/scm-cmd.exp | 4 ++++
gdb/testsuite/gdb.python/py-cmd.exp | 4 ++++
9 files changed, 67 insertions(+), 5 deletions(-)
hooks/post-receive
--
gdb and binutils