Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Marty Leisner" <leisner@rochester.rr.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Nick Roberts <nickrob@snap.net.nz>,
	        Marty Leisner <leisner@rochester.rr.com>,
	gdb@sourceware.org,         leisner@rochester.rr.com
Subject: Re: breaking on open(2) on linux
Date: Sun, 13 Apr 2008 21:38:00 -0000	[thread overview]
Message-ID: <200804130641.m3D6fIVG010260@dell2.home> (raw)
In-Reply-To: <20080413041833.GA19526@caradoc.them.org>

Daniel Jacobowitz <drow@false.org> writes  on Sun, 13 Apr 2008 00:18:33 -0400
     > > Marty Leisner writes:
     > >  > I've used gdb for 20 years...I've found the ability to 
     > >  > break on a system call and then backtrace very useful when
     > >  > reverse engineering code
     > >  > 
     > >  > Now, I can't do it (not sure when I last could -- I recall its been
     > >  > a problem before, but I worked around it).
     > >  > 
     > >  > strace shows open(2) calls...
     > > 
     > 
     > Glibc is not good about passing all calls to e.g. open through the
     > "open" function.  Many will be inlined.  GDB does not support stopping
     > on system calls, though I hope it will some day (someone tried to
     > contribute this, but the assignment paperwork never went through and I
     > can no longer reach him).
     > 
     > -- 

I always felt it would be useful to embed some of the capability of strace into 
gdb...an "strace mode" where gdb gives strace like output until a breakpoint is
hit...

Stopping on system calls IMHO is a very useful feature....
I think I'm going to look into this...

I'm not sure why the static and the shared are acting very different (guess
its time to build glibc ;-().

marty


  reply	other threads:[~2008-04-13  6:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 23:12 Marty Leisner
2008-04-13  4:18 ` Kip Macy
2008-04-13  6:13 ` Nick Roberts
2008-04-13  6:41   ` Daniel Jacobowitz
2008-04-13 21:38     ` Marty Leisner [this message]
2008-04-13 21:41     ` Nick Roberts
2008-04-13 22:05       ` Daniel Jacobowitz
2008-04-15 10:27         ` Vladimir Prus
2008-04-16  0:47           ` Eli Zaretskii
2008-04-16 15:29             ` Vladimir Prus
2008-04-20 14:32               ` Eli Zaretskii
2008-04-21 12:57                 ` Vladimir Prus
2008-04-13  8:56   ` Marty Leisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200804130641.m3D6fIVG010260@dell2.home \
    --to=leisner@rochester.rr.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=nickrob@snap.net.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox