From: Don Howard <dhoward@redhat.com>
To: "NewHaka@hotmail" <newhaka@hotmail.com>
Cc: <gdb@sources.redhat.com>
Subject: Re: How can I get the C function prototype from a SO(link by cc) on solaris using gdb?
Date: Fri, 21 Jun 2002 10:08:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.33.0206211006270.17436-100000@theotherone> (raw)
In-Reply-To: <Pine.LNX.4.33.0206211003060.17436-100000@theotherone>
On Fri, 21 Jun 2002, Don Howard wrote:
> On Fri, 21 Jun 2002, NewHaka@hotmail wrote:
>
> > hi,all
> >
> > (gdb 5.0 sparc solaris 8)
> >
> > I have a library link by sun cc,this library is complied and link
> > with flag -g.
> >
> > I try to find out the prototype of functions in this library,gdb output:
> > (gdb) p GetDatVersion
> > $1 = {<text variable, no debug info>} 0xff273374 <GetDatVersion>
> > (gdb) p GetDatVersion
> > type = int ()
> >
> > Does the library must complied by gcc?
> >
>
> 'p <function>' or 'print <function>' tells you only the returned type.
> Try 'ptype <function>'.
No. I'm quite wrong here. Both commands should give you full prototype
info when applied to a function.
Sorry for the confusion.
--
dhoward@redhat.com
gdb engineering
next prev parent reply other threads:[~2002-06-21 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 2:16 NewHaka@hotmail
2002-06-21 8:38 ` Joel Brobecker
2002-06-21 10:05 ` Don Howard
2002-06-21 10:08 ` Don Howard [this message]
2002-06-21 10:27 ` Keith Seitz
2002-06-23 17:46 ` Hi,Thank you for your help! Re: How can I get the C function protot NewHaka@hotmail
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=Pine.LNX.4.33.0206211006270.17436-100000@theotherone \
--to=dhoward@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=newhaka@hotmail.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