* Re: How is info.bfd_arch_info set ?
[not found] <1134332391.14961.10.camel@localhost.localdomain>
@ 2005-12-11 20:27 ` Kim Lux
2005-12-11 22:34 ` Jim Blandy
0 siblings, 1 reply; 2+ messages in thread
From: Kim Lux @ 2005-12-11 20:27 UTC (permalink / raw)
To: gdb
I am debugging a custom gdb stub. m6811-elf-gdb, to be exact.
gdb is initiating with info.bfd_arch_info->arch set to the wrong target. (m6811 and not 6812).
I can't figure out how info.bfd_arch_info->arch gets set. What determines which arch gets used ? Where is this done ?
Thanks.
--
Kim Lux, Diesel Research Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How is info.bfd_arch_info set ?
2005-12-11 20:27 ` How is info.bfd_arch_info set ? Kim Lux
@ 2005-12-11 22:34 ` Jim Blandy
0 siblings, 0 replies; 2+ messages in thread
From: Jim Blandy @ 2005-12-11 22:34 UTC (permalink / raw)
To: Kim Lux; +Cc: gdb
You need to tell us more about what you're doing. There's no global
variable called 'info', so you must be looking at a local variable of
some function; which function? How did you get there?
The m68hc11_gdbarch_init function will usually be called more than
once. If I remember right, once for GDB's default architecture and
once for the architecture it gets from the executable file. So don't
assume that, because it's being called once with the wrong
bfd_arch_info structure, that that's the one it will actually use.
After you've told GDB which executable file you want it to use for
debugging information, use 'show arch' to see what architecture it's
using.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-11 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1134332391.14961.10.camel@localhost.localdomain>
2005-12-11 20:27 ` How is info.bfd_arch_info set ? Kim Lux
2005-12-11 22:34 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox