public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/27365] New: The "file" command broken
@ 2021-02-07 14:36 bbstry at 163 dot com
  2021-06-25 19:05 ` [Bug cli/27365] " dahllunde at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bbstry at 163 dot com @ 2021-02-07 14:36 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27365
           Summary: The "file" command broken
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: bbstry at 163 dot com
  Target Milestone: ---

My OS is macos mojave 10.14.6, the gdb version is 10.1 and compiled from the
source using default parameters.
When invoke the gdb using command line:
    gdb file_name
it's ok , but when I use file command in gdb shell, it reports:
  thread.c:95: internal-error: struct thread_info *inferior_thread(): Assertion
`current_thread_ != nullptr' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

Then I try to use batch mode to do same work, like this:
   gdb -batch -ex 'file f_add' -ex 'disassemble/rs add'

the same error occured , but when I use the following command line:
   gdb f_add -batch -ex 'disassemble/rs add'

it's OK.

So I think the FILE command in GDB is broken.(In fact, I also used the older
release gdb like version 8.3.1, the gdb file command produced the similar error
like this:
    inferior.c:287: internal-error: struct inferior *find_inferior_pid(int):
Assertion `pid != 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
And the error has been reported by many people , for example ,the following
link: https://github.com/microsoft/vscode-cpptools/issues/5256 )

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

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

end of thread, other threads:[~2021-07-05  0:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 14:36 [Bug cli/27365] New: The "file" command broken bbstry at 163 dot com
2021-06-25 19:05 ` [Bug cli/27365] " dahllunde at gmail dot com
2021-07-02 18:46 ` levraiphilippeblain at gmail dot com
2021-07-05  0:57 ` simark at simark dot ca

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