From: Joel Brobecker <brobecker@gnat.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 08:38:00 -0000 [thread overview]
Message-ID: <20020621083753.A29523@gnat.com> (raw)
In-Reply-To: <DAV70oHyvHsCaB2YGtM0001172e@hotmail.com>; from newhaka@hotmail.com on Fri, Jun 21, 2002 at 05:17:34PM +0800
> (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?
I don't have a Sun CC license handy to verify this, but I remember that
Sun decided to put the debugging informatin outside of the object files.
IIRC, the magical switch is -xs (try compiling with '-g -xs'), otherwise
it should be in the cc manpage.
--
Joel
next prev parent reply other threads:[~2002-06-21 15:38 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 [this message]
2002-06-21 10:05 ` Don Howard
2002-06-21 10:08 ` Don Howard
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=20020621083753.A29523@gnat.com \
--to=brobecker@gnat.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