From 917842682328cdf232487ef761593049118cf485 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Thu, 19 Jun 2014 03:31:00 -0400 Subject: [PATCH] Better --segv-spin messages. --- src/main/util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/util.cpp b/src/main/util.cpp index 14ee82613..bcb3d448f 100644 --- a/src/main/util.cpp +++ b/src/main/util.cpp @@ -106,7 +106,8 @@ void segv_handler(int sig, siginfo_t* info, void* c) { 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); } @@ -141,6 +142,7 @@ void ill_handler(int sig, siginfo_t* info, void*) { } 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); } @@ -181,6 +183,7 @@ void cvc4unexpected() { } 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); } -- 2.30.2