This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: wrong htons() used?
- To: Grant dot Edwards at comtrol dot com
- Subject: Re: wrong htons() used?
- From: jtc at redback dot com (J.T. Conklin)
- Date: 21 Oct 1999 13:49:10 -0700
- Cc: gdb at sourceware dot cygnus dot com
- References: <19991021151610.A3919@comtrol.com>
- Reply-To: jtc at redback dot com
>>>>> "Grant" == Grant Edwards <Grant.Edwards@comtrol.com> writes:
Grant> I assume that what is happening is that it's using the htons()
Grant> that would be applicible if gdb was going to execute on an
Grant> big-endian ARM architecture, but I can't figure out where this
Grant> happens...
This is quite odd, since htons() should be a function provided by your
host system. I can't find any htons() implementation or other config-
ury that would override that.
When trying to track down problems like this, I often examine the pre-
processed output of the sources to see if I find something unexpected.
You can do this by grabbing the line make invokes, replacing -c with
-E, and removing the -o etherdrv.o).
If that doesn't pan out, link with the -Map option to determine where
it's pulling in htons.o
--jtc
--
J.T. Conklin
RedBack Networks