Hi Tapas,

On Thu, Sep 9, 2010 at 3:12 PM, Tapas Mishra <[email protected]> wrote:
> I tried to debug a running process.
> I am taking firefox as an example.

For debugging purposes you can start with a `lighter' program.
>
> So I wanted to see it in detail as how is Linux kernel communicating with it.
> Here is my output
> such as which kernel symbol is used in this process what other macros
> it is using
> any thing from kernel that is affecting it like that things  that I
> can look in it using gdb.

In order for gdb to dump meaningful results the program must be compiled
with debugging symbols enabled (-g flag should be present in compilation line).

> I am doing it for learning purpose.
> Can any one suggest some thing meaningful?

Useful information about a processes can be found with:
      * pmap, reports memory map of a process.
      * lsof, lists opened files for a process.
      * strace/ltrace, allows you to analyse system/function calls.
      * cat /proc/PID, various info about a process.

thanks,
Daniel.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to