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-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

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