diff options
author | Stan Shebs <shebs@apple.com> | 1999-05-05 14:45:51 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 1999-05-05 14:45:51 +0000 |
commit | 049f10d7dc48a42b664a15149f83d5c3db004ef7 (patch) | |
tree | 8dd4e1a383afddd41a30a65adf68142dfd45ec72 /gdb/infcmd.c | |
parent | 1942e83ab587eb3c0c54e57e9d1c9e11c17ac07e (diff) | |
download | gdb-049f10d7dc48a42b664a15149f83d5c3db004ef7.tar.gz |
import gdb-19990504 snapshot
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index b6df2e9afe1..16ec0b7c355 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -503,16 +503,16 @@ jump_command (arg, from_tty) /* Go to line or address in current procedure */ static void -go_command(line_no, from_tty) +go_command (line_no, from_tty) char *line_no; int from_tty; { if (line_no == (char *)NULL || !*line_no) - printf_filtered(GO_USAGE); + printf_filtered (GO_USAGE); else { - tbreak_command(line_no, from_tty); - jump_command(line_no, from_tty); + tbreak_command (line_no, from_tty); + jump_command (line_no, from_tty); } } @@ -1496,15 +1496,17 @@ Execution will also stop upon exit from the current stack frame."); Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\ for an address to start at."); - add_com ("go", class_run, go_command, - "Usage: go <location>\n\ + if (xdb_commands) + add_com ("go", class_run, go_command, + "Usage: go <location>\n\ Continue program being debugged, stopping at specified line or \n\ address.\n\ Give as argument either LINENUM or *ADDR, where ADDR is an \n\ expression for an address to start at.\n\ This command is a combination of tbreak and jump."); + if (xdb_commands) - add_com_alias("g", "g", class_run, 1); + add_com_alias("g", "go", class_run, 1); add_com ("continue", class_run, continue_command, "Continue program being debugged, after signal or breakpoint.\n\ |