From: Daniel Jacobowitz <drow@false.org>
To: Thomas Covenant <null_geodesic@yahoo.com>
Cc: GDB Mailinglist <gdb@sources.redhat.com>
Subject: Re: libc functions in gdb expressions
Date: Wed, 28 Sep 2005 21:58:00 -0000 [thread overview]
Message-ID: <20050928215813.GA22635@nevyn.them.org> (raw)
In-Reply-To: <20050928204945.5092.qmail@web34811.mail.mud.yahoo.com>
On Wed, Sep 28, 2005 at 01:49:45PM -0700, Thomas Covenant wrote:
> I've noticed that functions like strlen and strcmp are
> available for use in expressions like
>
> (gdb) print strcmp(s, "foo!")
>
> during my debugging sessions with GDB.
>
> Is the entire C library available for expressions?
I've just answered this one, so I have it handy...
> Is there anywhere a list of allowed functions from gdb script (I know
> that printf, strcmp... are allowed) ?
They aren't "allowed" per se. You're calling functions in the program
you're debugging when you do this.
So, in short, whatever functions are linked in to the program you're
debugging are available.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-09-28 21:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 21:55 Thomas Covenant
2005-09-28 21:58 ` Daniel Jacobowitz [this message]
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=20050928215813.GA22635@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=null_geodesic@yahoo.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).