List Info

Thread: Re: question about GDB message




Re: question about GDB message
user name
2007-09-25 11:45:28
On 9/25/07, Daniel Jacobowitz <drowfalse.org> wrote:
> On Tue, Sep 25, 2007 at 09:30:57AM -0700, The
Westlakers wrote:
> > >
> > > Did you load a 64-bit file into GDB so that
it knows you are debugging
> > > a 64-bit image?
> > >
> > I am not sure if GDB gets it or not, I typed
"gdb main", main is my
> > 64-bit ELF image. 'info reg' can display correctly
with the pc address
> > along with its symbol too.
>
> Then I'm out of ideas.  Sorry.
thanks so much for your great help! I love GNU and its
folks!
>
> Looking at the source code, it looks to me like there
is no support
> for 64-bit bare ELF binaries on SPARC; only Linux /
Solaris / BSD
> binaries.
any idea how much work to be done to support it? I may be
able to do it
along with my current GDB support for Ultra Sparc N1 and
N2.


>
> --
> Daniel Jacobowitz
> CodeSourcery
>

Re: question about GDB message
country flaguser name
United States
2007-09-25 11:54:33
On Tue, Sep 25, 2007 at 09:45:28AM -0700, The Westlakers
wrote:
> > Looking at the source code, it looks to me like
there is no support
> > for 64-bit bare ELF binaries on SPARC; only Linux
/ Solaris / BSD
> > binaries.
> any idea how much work to be done to support it? I may
be able to do it
> along with my current GDB support for Ultra Sparc N1
and N2.

It should not be a lot of work; it's a little tricky to do
it without
breaking other configurations though.  Take a look at
sparc64_init_abi
and its current callers.

Something as simple as this might work, but no promises:

  gdbarch_register_osabi (bfd_arch_sparc,
bfd_mach_sparc_v9,
                          GDB_OSABI_UNKNOWN,
sparc64_init_abi);


-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )