wrong htons() used?
J.T. Conklin
jtc@redback.com
Thu Oct 21 13:49:00 GMT 1999
>>>>> "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
More information about the Gdb
mailing list