diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2013-10-21 12:42:02 +0000 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2013-10-21 12:42:02 +0000 |
commit | 95e4302a8f872b3f68c4cf5af774ca1bde9d2c1a (patch) | |
tree | 698f489f374c78f2f53c6bd79cf19e50823a5598 /gdb/testsuite/gdb.base/run.c | |
parent | 4c406179784990e349f3b554c93dc418e9a007a5 (diff) |
2013-10-21 Jose E. Marchesi <jose.marchesi@oracle.com>
PR gdb/15986
* gdb.base/run.c (main): gdb_get_line_number tag added for
commands.exp.
(factorial): Likewise.
* gdb.base/commands.exp (watchpoint_command_test): Use
gdb_get_line_number in order to determine the locations in run.c
where local_var is detected to go out of scope.
Diffstat (limited to 'gdb/testsuite/gdb.base/run.c')
-rw-r--r-- | gdb/testsuite/gdb.base/run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/run.c b/gdb/testsuite/gdb.base/run.c index c1c3a1ba3b..c7293ced2d 100644 --- a/gdb/testsuite/gdb.base/run.c +++ b/gdb/testsuite/gdb.base/run.c @@ -50,7 +50,7 @@ char *argv[], **envp; #endif { #ifdef FAKEARGV - printf ("%d\n", factorial (1)); + printf ("%d\n", factorial (1)); /* commands.exp: hw local_var out of scope */ #else if (argc != 2) { printf ("usage: factorial <number>\n"); @@ -75,4 +75,4 @@ int factorial (value) int value; } local_var = value; return (value); -} +} /* commands.exp: local_var out of scope */ |