Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4272
b: refs/heads/2.3
c: fd6b626
h: refs/heads/2.3
  • Loading branch information
Giel van Schijndel committed Jul 1, 2008
1 parent 32ebd64 commit 1077509
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/2.3: 45b8413abfbe6906f74af162c747b573c0387a34
refs/heads/2.3: fd6b6262babb52bf959705911658d214e440aa43
10 changes: 8 additions & 2 deletions trunk/lib/exceptionhandler/exceptionhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,16 @@ static void posixExceptionHandler(int signum, siginfo_t * siginfo, WZ_DECL_UNUSE
}
else if (pid > (pid_t)0)
{
static const char gdbCommands[] = "backtrace full\n"
"frame 3\n"
"disassemble\n"
"info registers\n"
"quit\n";

close(gdbPipe[0]); // No input from pipe

write(gdbPipe[1], "backtrace full\n" "quit\n",
strlen("backtrace full\n" "quit\n"));
write(gdbPipe[1], gdbCommands,
sizeof(gdbCommands));

if (waitpid(pid, NULL, 0) < 0)
{
Expand Down

0 comments on commit 1077509

Please sign in to comment.