aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-01-10 10:16:26 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2017-01-10 10:18:08 -0500
commitdf2946549f60624503663cc6c28cd5a6ef0ab434 (patch)
treeafd06d9de6f1c51ab214ee8c035bc979c9e5ac17
parent1a94eb29d0dd72e6c34bb2d32927c510d16e4c00 (diff)
downloadgdb-df2946549f60624503663cc6c28cd5a6ef0ab434.zip
gdb-df2946549f60624503663cc6c28cd5a6ef0ab434.tar.gz
gdb-df2946549f60624503663cc6c28cd5a6ef0ab434.tar.bz2
Update help of the "frame" command
The help message of the "frame" command states that nothing is printed if the command is executed from the command file or user-defined command. My testing leads me to think that this is not true (at least today). (gdb) bt #0 bar (n=17) at test.c:9 #1 0x00000000004006e0 in foo (v=17) at test.c:13 #2 0x00000000004006f0 in main () at test.c:21 (gdb) frame #0 bar (n=17) at test.c:9 9 baz(n); (gdb) define foo Type commands for definition of "foo". End with a line saying just "end". >frame 1 >end (gdb) foo #1 0x00000000004006e0 in foo (v=17) at test.c:13 13 bar(v); This patch simply removes that bit from the help message. I didn't find anything corresponding to this in the documentation that needs to be fixed. The behavior change corresponding to this documentation change was done in commit b00771232fab861fb31e42dfd5f6643ba1b43cc9. gdb/ChangeLog: * stack.c (_initialize_stack): Update "frame" command help message.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/stack.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f16a5f..4733d8d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
+
+ * stack.c (_initialize_stack): Update "frame" command help message.
+
2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
* d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
diff --git a/gdb/stack.c b/gdb/stack.c
index 1d43971..e00e297 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2629,9 +2629,7 @@ This is useful in command scripts."));
Select and print a stack frame.\nWith no argument, \
print the selected stack frame. (See also \"info frame\").\n\
An argument specifies the frame to select.\n\
-It can be a stack frame number or the address of the frame.\n\
-With argument, nothing is printed if input is coming from\n\
-a command file or a user-defined command."));
+It can be a stack frame number or the address of the frame.\n"));
add_com_alias ("f", "frame", class_stack, 1);