abort();
} else {
fprintf(stderr, "Spinning so that a debugger can be connected.\n");
- cerr << "Try: gdb " << progName << " " << getpid() << endl;
+ cerr << "Try: gdb " << progName << " " << getpid() << endl
+ << " or: gdb --pid=" << getpid() << " " << progName << endl;
for(;;) {
sleep(60);
}
} else {
fprintf(stderr, "Spinning so that a debugger can be connected.\n");
fprintf(stderr, "Try: gdb %s %u\n", progName, getpid());
+ fprintf(stderr, " or: gdb --pid=%u %s\n", getpid(), progName);
for(;;) {
sleep(60);
}
} else {
fprintf(stderr, "Spinning so that a debugger can be connected.\n");
fprintf(stderr, "Try: gdb %s %u\n", progName, getpid());
+ fprintf(stderr, " or: gdb --pid=%u %s\n", getpid(), progName);
for(;;) {
sleep(60);
}