Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb@sources.redhat.com
Subject: Should internal-error default to dumping core?
Date: Mon, 01 Oct 2001 08:01:00 -0000	[thread overview]
Message-ID: <3BB88526.8050809@cygnus.com> (raw)

Hello,

At preset an internal-error interaction looks like:

> (gdb) maint internal-error
> /home/scratch/GDB/src/gdb/maint.c:119: gdb-internal-error: internal maintenance
> An internal GDB error was detected.  This may make further
> debugging unreliable.  Continue this debugging session? (y or n) n
> 
> Create a core file containing the current state of GDB? (y or n) n
 > $

that is the default/no case is to not dump core.

At present, if GDB encounters an internal error (from say a NULL pointer 
reference) it doesn't leave any physical evidence around in the form of 
a core dump.  I'm thinking it should.  Hence, I'd like to change the 
second prompt to be one that defaults to a core dump.

Looking back through the notes it appears that the [my] rationale for 
the current behavour was somewhat arbitrary.

thoughts?
Andrew


             reply	other threads:[~2001-10-01  8:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-01  8:01 Andrew Cagney [this message]
2001-10-01  8:30 ` Fernando Nasser
2001-10-01  8:49   ` Andrew Cagney
2001-10-01  9:08     ` Fernando Nasser
2002-01-13 12:22       ` Andrew Cagney

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=3BB88526.8050809@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.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