* GDB Query
@ 2004-07-06 5:20 Vikas S
2004-07-06 7:02 ` Monika Chaddha
2004-07-06 13:45 ` Daniel Jacobowitz
0 siblings, 2 replies; 7+ messages in thread
From: Vikas S @ 2004-07-06 5:20 UTC (permalink / raw)
To: gdb
Hi,
I've two queries on gdb.
1) I wish to have a break whenever a function call is encountered. The no.
of functions is
very high and may change.
2) Can we pass break and other parameters from unix command line.
Thanks,
Vikas
_________________________________________________________________
Claim your Citibank Ready Cash today. http://go.msnserver.com/IN/52041.asp
ItÂs fast, easy and affordable.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: GDB Query
2004-07-06 5:20 GDB Query Vikas S
@ 2004-07-06 7:02 ` Monika Chaddha
2004-07-06 13:45 ` Daniel Jacobowitz
1 sibling, 0 replies; 7+ messages in thread
From: Monika Chaddha @ 2004-07-06 7:02 UTC (permalink / raw)
To: 'Vikas S'; +Cc: gdb
>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Vikas S
>Sent: Tuesday, July 06, 2004 10:50 AM
>To: gdb@sources.redhat.com
>Subject: GDB Query
>
>
>Hi,
Hello,
>
>
>I've two queries on gdb.
>
>1) I wish to have a break whenever a function call is encountered. The
no.
>of functions is
>very high and may change.
I have not seen such type of facility in gdb till now.
>
>2) Can we pass break and other parameters from unix command line.
Do u want to put break point from unix command line or gdb command line?
From gdb command line u can do easily.
Regards
Monika Chaddha
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB Query
2004-07-06 5:20 GDB Query Vikas S
2004-07-06 7:02 ` Monika Chaddha
@ 2004-07-06 13:45 ` Daniel Jacobowitz
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2004-07-06 13:45 UTC (permalink / raw)
To: Vikas S; +Cc: gdb
On Tue, Jul 06, 2004 at 10:50:07AM +0530, Vikas S wrote:
>
> Hi,
>
>
> I've two queries on gdb.
>
> 1) I wish to have a break whenever a function call is encountered. The no.
> of functions is
> very high and may change.
Try rbreak. I'm not sure how well GDB will perform when you set this
many breakpoints, though.
> 2) Can we pass break and other parameters from unix command line.
Yes, by using a command script (-x).
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB Query
@ 2004-07-06 15:35 Vikas S
0 siblings, 0 replies; 7+ messages in thread
From: Vikas S @ 2004-07-06 15:35 UTC (permalink / raw)
To: gdb
I've turned on debugging while compiling. Also, I'm able to get the program
flow etc. Only variables/arguments values are not obtainable.
Regards,
Vikas
>From: Daniel Jacobowitz <drow@false.org>
>To: Vikas S <vikas_s40@hotmail.com>
>CC: gdb@sources.redhat.com
>Subject: Re: GDB Query
>Date: Tue, 6 Jul 2004 10:19:45 -0400
>
>When responding to posts on a mailing list, please post to the mailing
>list instead of mailing directly to the poster.
>
>On Tue, Jul 06, 2004 at 07:21:46PM +0530, Vikas S wrote:
> >
> > Thanks. I'm using rbreak.
> >
> > I'm having another problem.
> >
> > When I'm trying to see Local Variables and Arguments, it shows
> > "No symbol table info available". So, I'm unable to see variable
> > values and arguments.
>
>It sounds like that object does not have debugging information.
>
>
>--
>Daniel Jacobowitz
_________________________________________________________________
Claim your Citibank Ready Cash today. http://go.msnserver.com/IN/52041.asp
ItÂs fast, easy and affordable.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB Query
[not found] <BAY15-F5AfdicbiGokI00012b9a@hotmail.com>
@ 2004-07-06 14:20 ` Daniel Jacobowitz
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2004-07-06 14:20 UTC (permalink / raw)
To: Vikas S; +Cc: gdb
When responding to posts on a mailing list, please post to the mailing
list instead of mailing directly to the poster.
On Tue, Jul 06, 2004 at 07:21:46PM +0530, Vikas S wrote:
>
> Thanks. I'm using rbreak.
>
> I'm having another problem.
>
> When I'm trying to see Local Variables and Arguments, it shows
> "No symbol table info available". So, I'm unable to see variable
> values and arguments.
It sounds like that object does not have debugging information.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: GDB Query
[not found] <BAY15-F11JswFCHOzyf0005635d@hotmail.com>
@ 2004-07-06 13:21 ` Monika Chaddha
0 siblings, 0 replies; 7+ messages in thread
From: Monika Chaddha @ 2004-07-06 13:21 UTC (permalink / raw)
To: 'Vikas S'; +Cc: gdb
>-----Original Message-----
>From: Vikas S [mailto:vikas_s40@hotmail.com]
>Sent: Tuesday, July 06, 2004 4:56 PM
>To: monika@acmet.com
>Subject: RE: GDB Query
>
>
>Please note that I'm not aware of the full function flow and this is
>precisely
>what I'm trying to find out by putting breaks.
>
What I understand till now form your mails that u r debugging some
source code and want to understand the exact flow.
GDB is really nice to do this. Use DDD as a GUI for GDB, it will help u.
Put break point in main and in functions or lines which u suspect can be
part of flow. Use next/step (to go inside functions) commands
Try this; this will help u a lot. Try up and down during debugging, it
will show flow. By doing this u can find more places to put breakpoints.
Preferably use 'step' command and go inside functions, it will show u
the full flow.
Try this and tell me status or any problem if u face.
Cheers
Monika
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: GDB Query
[not found] <BAY15-F26XVT10Nd0BK00035aca@hotmail.com>
@ 2004-07-06 10:17 ` Monika Chaddha
0 siblings, 0 replies; 7+ messages in thread
From: Monika Chaddha @ 2004-07-06 10:17 UTC (permalink / raw)
To: 'Vikas S'; +Cc: gdb
>-----Original Message-----
>From: Vikas S [mailto:vikas_s40@hotmail.com]
>Sent: Tuesday, July 06, 2004 12:47 PM
>To: monika@acmet.com
>Subject: RE: GDB Query
>
>
>Hi,
>
>Thanks.
>
>1) Ok.. The reason I asked for this is that I'm trying to trace full
>function flow of a
>process. In case of gdb, everytime I've to type break manually for each
>function which
>is tedious. If you know any other function which will do the above job,
>please inform.
>I'm on Linux.
If u want to get rid of this problem than I have one solution for u .U
can put all breakpoints in a file and can run that file after invoking
gdb. U will get all breakpoints after running only this single file.
>
>2) I wanted to do it from unix command line. This is in relation to
above
>requirement
>only. I wanted something like
>
>$ gdb <program> <pid> break=f1,f2...
Yes I m getting u. I'll again see and try if I get something better.
Monika
>
>Thanks,
>Vikas
>
>>From: "Monika Chaddha" <monika@acmet.com>
>>To: "'Vikas S'" <vikas_s40@hotmail.com>
>>CC: <gdb@sources.redhat.com>
>>Subject: RE: GDB Query
>>Date: Tue, 6 Jul 2004 12:30:35 +0530
>>
>>
>>
>> >-----Original Message-----
>> >From: gdb-owner@sources.redhat.com
>>[mailto:gdb-owner@sources.redhat.com] On
>> >Behalf Of Vikas S
>> >Sent: Tuesday, July 06, 2004 10:50 AM
>> >To: gdb@sources.redhat.com
>> >Subject: GDB Query
>> >
>> >
>> >Hi,
>>
>>Hello,
>>
>> >
>> >
>> >I've two queries on gdb.
>> >
>> >1) I wish to have a break whenever a function call is encountered.
The
>>no.
>> >of functions is
>> >very high and may change.
>>
>>I have not seen such type of facility in gdb till now.
>>
>> >
>> >2) Can we pass break and other parameters from unix command line.
>>
>>Do u want to put break point from unix command line or gdb command
line?
>>From gdb command line u can do easily.
>>
>>Regards
>>Monika Chaddha
>>
>
>_________________________________________________________________
>Earn without investing. http://go.msnserver.com/IN/52048.asp Sell
anything
>under the sun.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-07-06 15:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 5:20 GDB Query Vikas S
2004-07-06 7:02 ` Monika Chaddha
2004-07-06 13:45 ` Daniel Jacobowitz
[not found] <BAY15-F26XVT10Nd0BK00035aca@hotmail.com>
2004-07-06 10:17 ` Monika Chaddha
[not found] <BAY15-F11JswFCHOzyf0005635d@hotmail.com>
2004-07-06 13:21 ` Monika Chaddha
[not found] <BAY15-F5AfdicbiGokI00012b9a@hotmail.com>
2004-07-06 14:20 ` Daniel Jacobowitz
2004-07-06 15:35 Vikas S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox