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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

The problem is that pausing execution in module code is dangerous, as if
you hold any locks or anything like that, you can hang other threads or
even the whole machine.

You probablhy want to be looking at the kgdb support, that is coded to
work around a lot of the issues and you get full GDB support not just a
getchar() pause.

Attachment: pgpWGjLiPTVHx.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux