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
This commit is contained in:
parent
46e7a66ba0
commit
f52501ba8c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user