* RE: System calls debugging
@ 2004-02-11 3:55 Kotian, Deepak
2004-02-11 14:32 ` Andrew Cagney
0 siblings, 1 reply; 7+ messages in thread
From: Kotian, Deepak @ 2004-02-11 3:55 UTC (permalink / raw)
To: MuthuKumar-Hotpop; +Cc: gdb
Will strace command for you ?
-----Original Message-----
From: MuthuKumar-Hotpop [mailto:kmuthu_linux@HotPOP.com]
Sent: Wednesday, February 11, 2004 9:19 AM
Cc: gdb@sources.redhat.com
Subject: System calls debugging
Hello deBUGies,
Is there any way to debug what are all the "system calls" usage and process happening over on the program.
I have written a simple program which gets the a string.I have made it to wait for the input and using that process-id,
I have attached the process with gdb.Now the "where" command gives the stackframes about the system calls information.
To find the processings of other system calls what is the way.
Regards,
Muthu.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: System calls debugging
2004-02-11 3:55 System calls debugging Kotian, Deepak
@ 2004-02-11 14:32 ` Andrew Cagney
2004-02-11 17:37 ` Kip Macy
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2004-02-11 14:32 UTC (permalink / raw)
To: Kotian, Deepak; +Cc: MuthuKumar-Hotpop, gdb
> Will strace command for you ?
BTW, a wish-list item is for GDB to directly include strace support.
enjoy,
Andrew
> -----Original Message-----
> From: MuthuKumar-Hotpop [mailto:kmuthu_linux@HotPOP.com]
> Sent: Wednesday, February 11, 2004 9:19 AM
> Cc: gdb@sources.redhat.com
> Subject: System calls debugging
>
>
>
> Hello deBUGies,
>
> Is there any way to debug what are all the "system calls" usage and process happening over on the program.
>
> I have written a simple program which gets the a string.I have made it to wait for the input and using that process-id,
> I have attached the process with gdb.Now the "where" command gives the stackframes about the system calls information.
> To find the processings of other system calls what is the way.
>
> Regards,
> Muthu.
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: System calls debugging
2004-02-11 14:32 ` Andrew Cagney
@ 2004-02-11 17:37 ` Kip Macy
2004-02-11 18:28 ` Andrew Cagney
0 siblings, 1 reply; 7+ messages in thread
From: Kip Macy @ 2004-02-11 17:37 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
What would that look like?
Would you just type
(gdb) strace <args>
and have it print out what strace does now while it runs,
or do you have something more in mind?
-Kip
On Wed, 11 Feb 2004, Andrew Cagney wrote:
> > Will strace command for you ?
>
> BTW, a wish-list item is for GDB to directly include strace support.
>
> enjoy,
> Andrew
>
>
> > -----Original Message-----
> > From: MuthuKumar-Hotpop [mailto:kmuthu_linux@HotPOP.com]
> > Sent: Wednesday, February 11, 2004 9:19 AM
> > Cc: gdb@sources.redhat.com
> > Subject: System calls debugging
> >
> >
> >
> > Hello deBUGies,
> >
> > Is there any way to debug what are all the "system calls" usage and process happening over on the program.
> >
> > I have written a simple program which gets the a string.I have made it to wait for the input and using that process-id,
> > I have attached the process with gdb.Now the "where" command gives the stackframes about the system calls information.
> > To find the processings of other system calls what is the way.
> >
> > Regards,
> > Muthu.
> >
> >
> >
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: System calls debugging
2004-02-11 17:37 ` Kip Macy
@ 2004-02-11 18:28 ` Andrew Cagney
2004-02-12 11:28 ` Muthukumar
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2004-02-11 18:28 UTC (permalink / raw)
To: Kip Macy; +Cc: gdb
> ld you just type
> (gdb) strace <args>
>
> and have it print out what strace does now while it runs,
> or do you have something more in mind?
who knows, something like:
(gdb) {set,show} strace <see help handle>
or
(gdb) catch syscall all
Catch point 5 created
(gdb) commands 5
silent
backtrace
continue
end
(gdb)
(and don't get me started about that "silent" "feature" :-)
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: System calls debugging
@ 2004-02-12 11:35 Kotian, Deepak
0 siblings, 0 replies; 7+ messages in thread
From: Kotian, Deepak @ 2004-02-12 11:35 UTC (permalink / raw)
To: Muthukumar, Andrew Cagney, Kip Macy; +Cc: gdb
Please try tusc command, not sure if it is there by default.
-----Original Message-----
From: Muthukumar [mailto:kmuthu_linux@HotPOP.com]
Sent: Thursday, February 12, 2004 4:58 PM
To: Andrew Cagney; Kip Macy
Cc: gdb@sources.redhat.com
Subject: Re: System calls debugging
Hai all,
Regarding to the system calls debuggin,in linux using the process id
of the debugging file with strace we can find.
In HP-UNIX ,how we can trace the system calls with the GDB support.
Regards,
Muthu.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Pending breakpoints and scripts
@ 2004-02-09 20:02 Andrew Cagney
2004-02-09 22:32 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2004-02-09 20:02 UTC (permalink / raw)
To: gdb
Anyone noticed this?
(top-gdb) run testsuite/gdb.base/advance
Starting program: ...
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Breakpoint 1 (internal_error) pending.
Function "info_command" not defined.
Breakpoint 2 (info_command) pending.
(top-gdb)
It's caused by this:
if (!query ("Make breakpoint pending on future shared library
load? ")
)
return rc;
The old behavior was: when in batch mode, throw an error (and hence
abandon the script) if the breakpoint insert fails.
The new behavior is: when in batch mode, always insert the breakpoint.
when not in batch mode never throw an error.
For the existing behavior to be restored the query's logic would need to
be reversed (ask the oposite question) and then re-throw the error. A
/pending qualifier could then be added.
Thoughts?
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Pending breakpoints and scripts
2004-02-09 20:02 Pending breakpoints and scripts Andrew Cagney
@ 2004-02-09 22:32 ` Daniel Jacobowitz
2004-02-10 21:22 ` Andrew Cagney
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2004-02-09 22:32 UTC (permalink / raw)
To: gdb
On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
> Anyone noticed this?
>
> (top-gdb) run testsuite/gdb.base/advance
> Starting program: ...
> Setting up the environment for debugging gdb.
> Function "internal_error" not defined.
> Breakpoint 1 (internal_error) pending.
> Function "info_command" not defined.
> Breakpoint 2 (info_command) pending.
> (top-gdb)
>
> It's caused by this:
>
> if (!query ("Make breakpoint pending on future shared library
> load? ")
> )
> return rc;
>
> The old behavior was: when in batch mode, throw an error (and hence
> abandon the script) if the breakpoint insert fails.
>
> The new behavior is: when in batch mode, always insert the breakpoint.
> when not in batch mode never throw an error.
>
> For the existing behavior to be restored the query's logic would need to
> be reversed (ask the oposite question) and then re-throw the error. A
> /pending qualifier could then be added.
>
> Thoughts?
I'd rather not reverse the question. We could check from_tty at the
call site, and not set pending breakpoints if no tty...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Pending breakpoints and scripts
2004-02-09 22:32 ` Daniel Jacobowitz
@ 2004-02-10 21:22 ` Andrew Cagney
2004-02-10 22:26 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2004-02-10 21:22 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
> On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
>
>> Anyone noticed this?
>>
>> (top-gdb) run testsuite/gdb.base/advance
>> Starting program: ...
>> Setting up the environment for debugging gdb.
>> Function "internal_error" not defined.
>> Breakpoint 1 (internal_error) pending.
>> Function "info_command" not defined.
>> Breakpoint 2 (info_command) pending.
>> (top-gdb)
>>
>> It's caused by this:
>>
>> if (!query ("Make breakpoint pending on future shared library
>> load? ")
>> )
>> return rc;
>>
>> The old behavior was: when in batch mode, throw an error (and hence
>> abandon the script) if the breakpoint insert fails.
>>
>> The new behavior is: when in batch mode, always insert the breakpoint.
>> when not in batch mode never throw an error.
>>
>> For the existing behavior to be restored the query's logic would need to
>> be reversed (ask the oposite question) and then re-throw the error. A
>> /pending qualifier could then be added.
>>
>> Thoughts?
>
>
> I'd rather not reverse the question. We could check from_tty at the
> call site, and not set pending breakpoints if no tty...
Why?
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Pending breakpoints and scripts
2004-02-10 21:22 ` Andrew Cagney
@ 2004-02-10 22:26 ` Daniel Jacobowitz
2004-02-11 3:48 ` System calls debugging MuthuKumar-Hotpop
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2004-02-10 22:26 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
On Tue, Feb 10, 2004 at 04:22:41PM -0500, Andrew Cagney wrote:
> >On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
> >
> >>Anyone noticed this?
> >>
> >>(top-gdb) run testsuite/gdb.base/advance
> >>Starting program: ...
> >>Setting up the environment for debugging gdb.
> >>Function "internal_error" not defined.
> >>Breakpoint 1 (internal_error) pending.
> >>Function "info_command" not defined.
> >>Breakpoint 2 (info_command) pending.
> >>(top-gdb)
> >>
> >>It's caused by this:
> >>
> >> if (!query ("Make breakpoint pending on future shared library
> >>load? ")
> >>)
> >> return rc;
> >>
> >>The old behavior was: when in batch mode, throw an error (and hence
> >>abandon the script) if the breakpoint insert fails.
> >>
> >>The new behavior is: when in batch mode, always insert the breakpoint.
> >>when not in batch mode never throw an error.
> >>
> >>For the existing behavior to be restored the query's logic would need to
> >>be reversed (ask the oposite question) and then re-throw the error. A
> >>/pending qualifier could then be added.
> >>
> >>Thoughts?
> >
> >
> >I'd rather not reverse the question. We could check from_tty at the
> >call site, and not set pending breakpoints if no tty...
>
> Why?
Well, how would you word it? It makes more intuitive sense to me to
answer 'y' to create something special and 'n' to do nothing, than the
other way around.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 7+ messages in thread* System calls debugging
2004-02-10 22:26 ` Daniel Jacobowitz
@ 2004-02-11 3:48 ` MuthuKumar-Hotpop
0 siblings, 0 replies; 7+ messages in thread
From: MuthuKumar-Hotpop @ 2004-02-11 3:48 UTC (permalink / raw)
Cc: gdb
Hello deBUGies,
Is there any way to debug what are all the "system calls" usage and process happening over on the program.
I have written a simple program which gets the a string.I have made it to wait for the input and using that process-id,
I have attached the process with gdb.Now the "where" command gives the stackframes about the system calls information.
To find the processings of other system calls what is the way.
Regards,
Muthu.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-12 11:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 3:55 System calls debugging Kotian, Deepak
2004-02-11 14:32 ` Andrew Cagney
2004-02-11 17:37 ` Kip Macy
2004-02-11 18:28 ` Andrew Cagney
2004-02-12 11:28 ` Muthukumar
-- strict thread matches above, loose matches on Subject: below --
2004-02-12 11:35 Kotian, Deepak
2004-02-09 20:02 Pending breakpoints and scripts Andrew Cagney
2004-02-09 22:32 ` Daniel Jacobowitz
2004-02-10 21:22 ` Andrew Cagney
2004-02-10 22:26 ` Daniel Jacobowitz
2004-02-11 3:48 ` System calls debugging MuthuKumar-Hotpop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox