Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Max Larsson via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Porting GDB to an architecture with a shared memory model
Date: Sun, 28 Jul 2024 19:33:16 +0200	[thread overview]
Message-ID: <CAGKMySXjBTc1DZ9Eo9wNgMaHNLYxU5ZLA+Tb0YMgtCJiMXHSTQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2024-07-28 17:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-28 17:33 Max Larsson via Gdb [this message]
2024-07-29  7:36 ` Luis Machado via Gdb
2024-08-05  6:26   ` Max Larsson via Gdb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGKMySXjBTc1DZ9Eo9wNgMaHNLYxU5ZLA+Tb0YMgtCJiMXHSTQ@mail.gmail.com \
    --to=gdb@sourceware.org \
    --cc=max.larsson@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox