Re: kgdb support in vanilla 2.6.2

From: Andrew Morton
Date: Thu Mar 04 2004 - 00:20:21 EST


"Amit S. Kale" <amitkale@xxxxxxxxxxxxx> wrote:
>
> Flashing keyboard lights is easy on x86 and x86_64 platforms.

Please, no keyboards. Some people want to be able to use kgdboe
to find out why machine number 324 down the corridor just died.

How about just doing


char *why_i_crashed;


{
...
if (expr1)
why_i_crashed = "hit a BUG";
else if (expr2)
why_i_crashed = "divide by zero";
else ...
}

then provide a gdb macro which prints out the string at *why_i_crashed?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/