Hello Dave, When I try to input gdb command through pipe, I find crash doesn't work well, like below. # echo -ne "gdb help\n gdb help" | ./crash -s Undefined command: "". Try "help". gdb: gdb request failed: help No source file named help. gdb: gdb request failed: b help So I make the patch to clean command, please refer to the patch. -- -- Regards Qiao Nuohan
>From 9c50321d8cde4026124f631b39d2632fe66eff6f Mon Sep 17 00:00:00 2001 From: qiaonuohan <qiaonuohan@xxxxxxxxxxxxxx> Date: Tue, 18 Sep 2012 11:23:58 +0800 Subject: [PATCH] clean command line from pipe --- cmdline.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cmdline.c b/cmdline.c index da4fd81..0459e72 100755 --- a/cmdline.c +++ b/cmdline.c @@ -133,6 +133,7 @@ process_command_line(void) } else { if (fgets(pc->command_line, BUFSIZE-1, stdin) == NULL) clean_exit(1); + clean_line(pc->command_line); strcpy(pc->orig_line, pc->command_line); } -- 1.7.1
-- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility