Skip to contentSkip to conversation

[[email protected]: Re: kgdb internet/ethernet support and {gcc or gdb} bug on test addr

Linux-ia64 David Mosberger 1 participant 1 message Jan 3, 2002

lore
Share & tools
lore
#0 lore raw

Piet/Pete> I'm having trouble with GDB on ia64/sn with addresses in Piet/Pete> the text segment. Pointers to functions are being Piet/Pete> reported wrong. I tried changing to the latest gcc and Piet/Pete> gdb but it hasn't helped. The actual address for a Piet/Pete> function will be 0x2000000000037fa8 but it will be Piet/Pete> reported as 0x4000000000059ee0 for a large program or Piet/Pete> just slightly for a small program as illustrated below. I Piet/Pete> wonder if our kernel could be the cause possibly using:

Try linking the program statically. I think gdb is reporting the address of the function's plt entry.

	--david