Re: Using GDB for debugging netlink communication

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

 



Hi... :)

On Sat, Jul 21, 2012 at 10:46 PM, Ranjan Sinha <rnjn.sinha@xxxxxxxxx> wrote:
> Now, using gdb, if I add a break point in any function that is called
> by netlink server thread in user mode, the break point is never hit
> and the kernel log is flooded with messages like
> -------------------------8<------------------------------------------------8<-------------------------------------
>     Somebody woke us up before we got a reply. Time left 3499
>
>     Somebody woke us up before we got a reply. Time left 3499
>
>     Somebody woke us up before we got a reply. Time left 3499
>
>     Somebody woke us up before we got a reply. Time left 3499
>
>     ..
>
>     ..
>
>     Somebody woke us up before we got a reply. Time left 3498
> -------------------------8<------------------------------------------------8<-------------------------------------

I got a feeling that somehow gdb trap one or more signal received/sent
by/to your application. Maybe you need to ignore that by setting it in
your gdb (it's the same when you debug UML kernel using gdb).
Unfortunately i forgot the exact command to do it.

Another possibility is that, you're not "attaching" to right thread.
Are you sure you have switched to the target thread?

All above are strictly my speculation.....

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
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