public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/27822] New: [gdb/tdep, x86_64] Wrong thread picked to select process 64/32-bitness
@ 2021-05-04 14:00 vries at gcc dot gnu.org
  2021-05-04 14:02 ` [Bug tdep/27822] " bp at alien8 dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2021-05-04 14:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27822

            Bug ID: 27822
           Summary: [gdb/tdep, x86_64] Wrong thread picked to select
                    process 64/32-bitness
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

See this conversation here (
https://lore.kernel.org/io-uring/CAHk-=wh0KoEZXPYMGkfkeVEerSCEF1AiCZSvz9TRrx=Kj74D+Q@mail.gmail.com/
).

The problem seems to be that gdb picks the wrong thread to select 32-bit/64-bit
property for a process.

AFAICT, this is done here in x86_linux_nat_target::read_description:
...
  /* GNU/Linux LWP ID's are process ID's.  */
  tid = inferior_ptid.lwp ();
  if (tid == 0)
    tid = inferior_ptid.pid (); /* Not a threaded program.  */
...

It's not obvious to me from the discussion what is wrong with that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-23  8:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 14:00 [Bug tdep/27822] New: [gdb/tdep, x86_64] Wrong thread picked to select process 64/32-bitness vries at gcc dot gnu.org
2021-05-04 14:02 ` [Bug tdep/27822] " bp at alien8 dot de
2021-05-04 15:26 ` vries at gcc dot gnu.org
2021-05-07  8:44 ` vries at gcc dot gnu.org
2021-05-23  8:08 ` cvs-commit at gcc dot gnu.org
2021-05-23  8:11 ` vries at gcc dot gnu.org

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).