Re: [PATCH v4 4/4] pr_emerg add WARN_XX() debugger options

From: Maciej W. Rozycki
Date: Tue Feb 02 2016 - 14:40:57 EST


On Mon, 1 Feb 2016, Jeffrey Merkey wrote:

> If a debugger is loaded it will not crash, just enter the debugger.
> But yes, it will int3 if set and no debugger has been loaded to handle
> the int3 condition. Hmmm. Maybe its better just to skip calling
> pr_emerg and put this logic as a single call somewhere else.

What's the point? If you have a debugger loaded, then surely you can
just set a breakpoint anywhere you like using whatever user interface the
debugger provides for setting breakpoints. You can actually set any
number of software breakpoints you like wherever you like, depending on
what you actually want to debug. I fail to see why it would have to be
prearranged within the kernel -- do you have a configuration where you run
the kernel from ROM by any chance?

Maciej