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

* [Bug cli/27365] The "file" command broken
  2021-02-07 14:36 [Bug cli/27365] New: The "file" command broken bbstry at 163 dot com
@ 2021-06-25 19:05 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: dahllunde at gmail dot com @ 2021-06-25 19:05 UTC (permalink / raw)
  To: gdb-prs

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

Vegz78 <dahllunde at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dahllunde at gmail dot com

--- Comment #1 from Vegz78 <dahllunde at gmail dot com> ---
@Fil's work-around from bug 25560 is now included the Homebrew tap domq/gdb/gdb
for quick 'n easy installation on MacOS!
https://github.com/domq/homebrew-gdb

The workaround handles this and a couple of other bugs, and it's now possible
again to debug with gdb both locally on the Mac and remotely from Visual Studio
on Windows.

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

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

* [Bug cli/27365] The "file" command broken
  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
  2 siblings, 0 replies; 4+ messages in thread
From: levraiphilippeblain at gmail dot com @ 2021-07-02 18:46 UTC (permalink / raw)
  To: gdb-prs

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

Philippe Blain <levraiphilippeblain at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |levraiphilippeblain at gmail dot c
                   |                            |om

--- Comment #2 from Philippe Blain <levraiphilippeblain at gmail dot com> ---
Looks like a duplicate of https://sourceware.org/bugzilla/show_bug.cgi?id=26912
(and https://sourceware.org/bugzilla/show_bug.cgi?id=28010).

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

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

* [Bug cli/27365] The "file" command broken
  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
  2 siblings, 0 replies; 4+ messages in thread
From: simark at simark dot ca @ 2021-07-05  0:57 UTC (permalink / raw)
  To: gdb-prs

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

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |simark at simark dot ca
         Resolution|---                         |DUPLICATE

--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
Marking as duplicate, thanks.

*** This bug has been marked as a duplicate of bug 26912 ***

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