public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: William Tambe <tambewilliam@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Threading support in binutils simulator such that gdb "info threads" sees it
Date: Fri, 15 Jan 2021 01:25:03 -0500	[thread overview]
Message-ID: <20210115062503.GP6938@vapier> (raw)
In-Reply-To: <CAF8i9mPPWP+LK0cNjG4PaDtsUA88XRyP9ULHkVAeKSGxNXhHKA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On 20 Aug 2019 00:55, William Tambe wrote:
> What should be implemented within the binutils simulator

it's just "the simulator".  no relation to binutils.

> such that gdb "info threads" sees it ?

there is no support for threads in the simulator.  the simulator is
simulating processors, not processes.  so the concept doesn't even
really map.

if/when we finish up multiprocessor support, i'd expect we'd expose
those as threads in gdb.  but that would still be hardware level,
not software level.

> I tried using fork() within sim_create_inferior() but GDB would behave
> erratically.

it's unclear what you mean, but if you forked the sim, you now have two
sims running ... and if the sim is built into gdb, you now have two gdbs
running ...
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-01-15  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20  5:55 William Tambe
2021-01-15  6:25 ` Mike Frysinger [this message]

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=20210115062503.GP6938@vapier \
    --to=vapier@gentoo.org \
    --cc=gdb@sourceware.org \
    --cc=tambewilliam@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).