How can I 'getchar()' in module code?

Daniel Baluta daniel.baluta at gmail.com
Wed Dec 4 16:21:14 EST 2013


On Tue, Dec 3, 2013 at 4:20 PM, Bernd Petrovitsch
<bernd at petrovitsch.priv.at> wrote:
> On Die, 2013-12-03 at 08:38 -0500, Valdis.Kletnieks at vt.edu wrote:
>> On Tue, 03 Dec 2013 20:35:41 +0800,  said:
>> > For debugging purpose, I want something like 'getchar()' that can pause
>> > execution in the module code. Do any candidates I can choose?

I think there is a way to stop execution :). Run your image under
qemu, and use gdb to
set breakpoints.

thanks,
Daniel.



More information about the Kernelnewbies mailing list