Porting GDB to an architecture with a shared memory model

Max Larsson via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGKMySXjBTc1DZ9Eo9wNgMaHNLYxU5ZLA+Tb0YMgtCJiMXHSTQ@mail.gmail.com>
Hi everyone,

I porting or better trying to report GDB to the AmigaOS 4 PPC target (elf
based).
I already succeeded in (re)porting the binutils stuff, but I'm stuck with
GDB.

I have a working nat, which can create an inferior, set breakpoints,etc..
but
because the target has a shared memory model, the inferior is not accessible
at the vma addresses as specified in the elf format. Currently I'm trying
to translate
the vma addresses used by the gdb core to the physical address where the
inferior
ist loaded.

I found in the source the method "set_gdbarch_has_shared_address_space" and
"exec_set_action_address", with which I think I could tell the gdb core
where the inferior
is loaded, so that I don't need to translate the address, but until know I
wasn't
able to use them correctly.

So can someone give me a hint how to realize that, or how gdb support such
a target,
or not?

kind regards

Max
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.