Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 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-11 18:28     ` Andrew Cagney
@ 2004-02-12 11:28       ` Muthukumar
  0 siblings, 0 replies; 7+ messages in thread
From: Muthukumar @ 2004-02-12 11:28 UTC (permalink / raw)
  To: Andrew Cagney, Kip Macy; +Cc: gdb


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

* 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

* 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