Find the answer to your Linux question:
Results 1 to 2 of 2
I want to know how to debug the kernel while my client and server program are running .Actually i want to know the flow of the socket functions when my ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    29

    Unhappy debugging the kernel

    I want to know how to debug the kernel while my client and server program are running .Actually i want to know the flow of the socket functions when my server create the socket ,binds to the socket again accept the request from the client etc. I want to check the values of the variable in the socket.c file of kernel when my client and server are running
    Please help me out.....

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I'm not sure about this question - Do you want start a C program and trace its stuff system calls and find kernel code .If so then User Mode Linux ,may be helpful.
    But If you want to check your C program alone (like checking variables in server/client) then GDB should be enough.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •