Re: debugging a process

2010-09-10 Thread John Mahoney
On Thu, Sep 9, 2010 at 9:01 AM, Tapas Mishra mightydre...@gmail.com wrote: On Thu, Sep 9, 2010 at 6:28 PM, Paul-Ovidiu Dascalu paul.dasc...@gmail.com wrote: Hi Paul /usr/bin/firefox is not an executable file to begin with. Yes this thing I got in my search also it is not an executable.

Re: debugging a process

2010-09-10 Thread Tapas Mishra
On Fri, Sep 10, 2010 at 12:46 PM, John Mahoney jmaho...@waav.com wrote: Actually, it is an executable, but not the actual firefox binary one would expect.  Instead it is a symbolic link to a  wrapper script which executes the first line of the file /bin/sh(a link to dash in Ubuntu) which

Re: debugging a process

2010-09-10 Thread Daniel Baluta
On Fri, Sep 10, 2010 at 6:03 PM, mohit verma mohit89m...@gmail.com wrote: On Thu, Sep 9, 2010 at 8:44 PM, mohit verma mohit89m...@gmail.com wrote: hi, i am debugging the same firefox program. it is showing 33 threads running in my system .i switch to each  thread and type the command bt to

debugging a process

2010-09-09 Thread Tapas Mishra
I tried to debug a running process. I am taking firefox as an example. 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

Re: debugging a process

2010-09-09 Thread Daniel Baluta
Hi Tapas, On Thu, Sep 9, 2010 at 3:12 PM, Tapas Mishra mightydre...@gmail.com 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

Re: debugging a process

2010-09-09 Thread Tapas Mishra
On Thu, Sep 9, 2010 at 6:06 PM, Daniel Baluta daniel.bal...@gmail.com wrote: Hi Daniel For debugging purposes you can start with a `lighter' program. can you suggest some thing.Which you can consider as lighter program. In order for gdb to dump meaningful results the program must be compiled

Re: debugging a process

2010-09-09 Thread Tapas Mishra
On Thu, Sep 9, 2010 at 6:28 PM, Paul-Ovidiu Dascalu paul.dasc...@gmail.com wrote: Hi Paul /usr/bin/firefox is not an executable file to begin with. Yes this thing I got in my search also it is not an executable. Also you can you 'strace' on a program to see the the system calls and signal a

Re: debugging a process

2010-09-09 Thread Daniel Baluta
On Thu, Sep 9, 2010 at 3:59 PM, Tapas Mishra mightydre...@gmail.com wrote: On Thu, Sep 9, 2010 at 6:06 PM, Daniel Baluta daniel.bal...@gmail.com wrote: Hi Daniel For debugging purposes you can start with a `lighter' program. can you suggest some thing.Which you can consider as lighter program.

Re: debugging a process

2010-09-09 Thread Paul-Ovidiu Dascalu
Hi Tapas, For that you probably need to compile Firefox or whatever other application you need to analyze with debug support (-g flag) and optimization disabled (-O0 most likely). If you want to go further down then you will also need libraries you compiled with debug support or at leas the