public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28798] New: `set logging on` in gdbearlyinit
@ 2022-01-20 11:07 wuzy01 at qq dot com
  2022-03-06 16:42 ` [Bug gdb/28798] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: wuzy01 at qq dot com @ 2022-01-20 11:07 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28798
           Summary: `set logging on` in gdbearlyinit
           Product: gdb
           Version: 11.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: wuzy01 at qq dot com
  Target Milestone: ---

Enviroment:
OS: 5.15.11
gdb: 11.1-4
I found `gdb -eiex 'set logging on' main` will cause an `abort (core dumped)`.
Is it a bug or a feature? Thanks.

-- 
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 gdb/28798] `set logging on` in gdbearlyinit
  2022-01-20 11:07 [Bug gdb/28798] New: `set logging on` in gdbearlyinit wuzy01 at qq dot com
@ 2022-03-06 16:42 ` tromey at sourceware dot org
  2022-08-10 17:45 ` tromey at sourceware dot org
  2022-08-12 20:02 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:42 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-03-06
                 CC|                            |tromey at sourceware dot org
     Ever confirmed|0                           |1

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
All crashes are bugs.

-- 
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 gdb/28798] `set logging on` in gdbearlyinit
  2022-01-20 11:07 [Bug gdb/28798] New: `set logging on` in gdbearlyinit wuzy01 at qq dot com
  2022-03-06 16:42 ` [Bug gdb/28798] " tromey at sourceware dot org
@ 2022-08-10 17:45 ` tromey at sourceware dot org
  2022-08-12 20:02 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-08-10 17:45 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Early commands are run before the interpreter is set
(intentionally, it seems) and so logging can't work.
I wouldn't be surprised if there were other crashes
along these lines.

Still a bug though.

-- 
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 gdb/28798] `set logging on` in gdbearlyinit
  2022-01-20 11:07 [Bug gdb/28798] New: `set logging on` in gdbearlyinit wuzy01 at qq dot com
  2022-03-06 16:42 ` [Bug gdb/28798] " tromey at sourceware dot org
  2022-08-10 17:45 ` tromey at sourceware dot org
@ 2022-08-12 20:02 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-08-12 20:02 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Maybe the initial interpreter can be set earlier.
The only caveat is that if --help or the like is given,
it should probably force the interpreter to "console".

-- 
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:[~2022-08-12 20:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 11:07 [Bug gdb/28798] New: `set logging on` in gdbearlyinit wuzy01 at qq dot com
2022-03-06 16:42 ` [Bug gdb/28798] " tromey at sourceware dot org
2022-08-10 17:45 ` tromey at sourceware dot org
2022-08-12 20:02 ` tromey at sourceware dot 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).