From 230e08557d566cb2ef369f5adbd202d68161ccec Mon Sep 17 00:00:00 2001 From: brooks Date: Fri, 3 Sep 2004 07:11:42 +0000 Subject: If the argument to the -r flag starts with a ':' or a '|', don't try to make sure it is a device. GDB special cases these prefixes and treats :#### as a tcp port on localhost and executes what ever follows '|'. This allows kgdb to debug via dconschat. Discussed with: marcel --- gnu/usr.bin/gdb/kgdb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin/gdb') diff --git a/gnu/usr.bin/gdb/kgdb/main.c b/gnu/usr.bin/gdb/kgdb/main.c index 3209fc9..30dd6a8 100644 --- a/gnu/usr.bin/gdb/kgdb/main.c +++ b/gnu/usr.bin/gdb/kgdb/main.c @@ -284,7 +284,7 @@ main(int argc, char *argv[]) if (!S_ISREG(st.st_mode)) errx(1, "%s: not a regular file", path); vmcore = strdup(path); - } else if (remote != NULL) { + } else if (remote != NULL && remote[0] != ':' && remote[0] != '|') { if (stat(remote, &st) != 0) { snprintf(path, sizeof(path), "/dev/%s", remote); if (stat(path, &st) != 0) { -- cgit v1.1