diff options
author | jhb <jhb@FreeBSD.org> | 2008-01-28 20:31:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-01-28 20:31:30 +0000 |
commit | df803c74ff3f06c640c3ebdea30a11fe64840c84 (patch) | |
tree | 46ab9f091548fcc5ddbd73e455f18a8bb0c74a90 /gnu | |
parent | 910410640b71f7191c0274d5d3b0e0c0c9bbbcfd (diff) | |
download | FreeBSD-src-df803c74ff3f06c640c3ebdea30a11fe64840c84.zip FreeBSD-src-df803c74ff3f06c640c3ebdea30a11fe64840c84.tar.gz |
If the quiet flag is specified (-q), don't dump the unread portion of
the message buffer on startup.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/main.c b/gnu/usr.bin/gdb/kgdb/main.c index 629b9c5..b9452e2 100644 --- a/gnu/usr.bin/gdb/kgdb/main.c +++ b/gnu/usr.bin/gdb/kgdb/main.c @@ -72,6 +72,7 @@ kvm_t *kvm; static char kvm_err[_POSIX2_LINE_MAX]; static int dumpnr; +static int quiet; static int verbose; static char crashdir[PATH_MAX]; @@ -239,6 +240,8 @@ kgdb_init_target(void) * Display the unread portion of the message buffer. This gives the * user a some initial data to work from. */ + if (quiet) + return; bufp = kgdb_parse("msgbufp->msg_ptr"); size = (int)kgdb_parse("msgbufp->msg_size"); rseq = (int)kgdb_parse("msgbufp->msg_rseq"); @@ -302,7 +305,7 @@ main(int argc, char *argv[]) struct stat st; struct captured_main_args args; char *s; - int a, ch, quiet, writecore; + int a, ch, writecore; dumpnr = -1; |