From 3bfdcc979da0f857b014318f3df5d95a0f93eb27 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 1 Dec 2009 12:37:26 -0800 Subject: Minor tweaks to debuggerd. Changed "process has crashed" message: - say ":5039" instead of ":port" so mouse-paste of command is trivial - removed trailing spaces, which consume log buffer to little effect - improved (I hope) the short explanation of what's going on and what the HOME key does Fixed typo ("ignorning"). --- debuggerd/debuggerd.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'debuggerd') diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c index 996e6c204..145135fcb 100644 --- a/debuggerd/debuggerd.c +++ b/debuggerd/debuggerd.c @@ -606,15 +606,16 @@ static void wait_for_user_action(unsigned tid, struct ucred* cr) (void)tid; /* First log a helpful message */ LOG( "********************************************************\n" - "* process %d crashed. debuggerd waiting for gdbserver \n" - "* \n" - "* adb shell gdbserver :port --attach %d & \n" - "* \n" - "* and press the HOME key. \n" + "* Process %d has been suspended while crashing. To\n" + "* attach gdbserver for a gdb connection on port 5039:\n" + "*\n" + "* adb shell gdbserver :5039 --attach %d &\n" + "*\n" + "* Press HOME key to let the process continue crashing.\n" "********************************************************\n", cr->pid, cr->pid); - /* wait for HOME key */ + /* wait for HOME key (TODO: something useful for devices w/o HOME key) */ if (init_getevent() == 0) { int ms = 1200 / 10; int dit = 1; @@ -698,7 +699,7 @@ static void handle_crashing_process(int fd) sprintf(buf,"/proc/%d/task/%d", cr.pid, tid); if(stat(buf, &s)) { - LOG("tid %d does not exist in pid %d. ignorning debug request\n", + LOG("tid %d does not exist in pid %d. ignoring debug request\n", tid, cr.pid); close(fd); return; -- cgit v1.2.3