Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Charlie Mills <cmills@synopsys.com>
To: Fernando Nasser <fnasser@cygnus.com>, Daniel Berlin <dan@cgsoftware.com>
Cc: Michael Snyder <msnyder@cygnus.com>,
	"Frank Ch. Eigler" <fche@redhat.com>,
	gdb-patches@sources.redhat.com
Subject: Re: Simple but crucial bug fix to gdb
Date: Fri, 01 Jun 2001 14:05:00 -0000	[thread overview]
Message-ID: <3.0.5.32.20010601140529.009ea7a0@pophost.pdxuxbre.lmc.com> (raw)
In-Reply-To: <3B17DE0E.5A5F9BAD@cygnus.com>

At 02:25 PM 6/1/01 -0400, Fernando Nasser wrote:
>Daniel Berlin wrote:
>> 
>> Michael Snyder <msnyder@cygnus.com> writes:
>> 
>> > "Frank Ch. Eigler" wrote:
>> > >
>> > > Daniel Berlin <dan@cgsoftware.com> writes:
>> > >
>> > > : [...]
>> > > : However, we should *never* see a case where pst is NULL, and
>> > > : textlow_not_set is 1, at the point we see a function.
>> > > : [...]
>> > >
>> > > Would a gdb_assert() to this effect satisfy all sides?
>> >
>> > gdb_assert causes an abort if the conditional fails.
>> > I generally think it's better if the debugger doesn't abort
>> > (unles it's believed to be in an unrecoverable state).
>> 
>> To be honest, i'd consider it an unrecoverable state.
>> This is because if the compiler is producing such broken debug info
>> that we see functions outside of where we should, it's likely your
>> debug info is so screwed up as to be worthless, and just cause you to
>> think GDB is broken.
>> 
>
>As I understand from Charles Mills message, he can use the debugger if it
is allowed to proceed.  So things are not that bad.
>
>Charles, can you confirm that?  Thanks.
>
>
>-- 
>Fernando Nasser
>Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
>2323 Yonge Street, Suite #300
>Toronto, Ontario   M4P 2C9
>
>

Well, yes and no!  I can and do use gdb with my simple
patch, it's certainly a lot better than a crash,
but it is true that gdb then cannot find line numbers in
*some* of my functions, just as Jim Blandy surmises, so I am
still going to have to figure out how to fix my executable to
be more friendly to gdb.

You guys are excellent!  Thanks.

-- Charlie Mills
   cmills@synopsys.com  ..work
   mills@q7.com         ..personal
   (503)748-2665        ..at work today


  reply	other threads:[~2001-06-01 14:05 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-30 14:27 Charlie Mills
2001-05-30 14:36 ` Christopher Faylor
2001-05-30 15:16   ` Fernando Nasser
2001-05-30 20:18     ` Jim Blandy
2001-05-30 20:25       ` Christopher Faylor
2001-05-31  5:30       ` Fernando Nasser
2001-05-31 13:55         ` Jim Blandy
2001-05-31 14:43           ` Fernando Nasser
2001-05-31 16:46           ` Christopher Faylor
2001-05-31 17:40             ` Daniel Berlin
2001-05-31 20:00               ` Frank Ch. Eigler
2001-06-01  9:41                 ` Fernando Nasser
2001-06-01 10:01                 ` Michael Snyder
2001-06-01 11:14                   ` Daniel Berlin
2001-06-01 11:25                     ` Fernando Nasser
2001-06-01 14:05                       ` Charlie Mills [this message]
2001-06-06  6:01                 ` Andrew Cagney
2001-05-30 20:00   ` Christopher Faylor
2001-05-30 20:43     ` Christopher Faylor
2001-05-30 20:12 ` Jim Blandy
2001-05-30 21:23   ` Daniel Berlin
2001-06-01 13:35 ` Jim Blandy
2001-06-01 13:41   ` Fernando Nasser
2001-06-01 14:07   ` Daniel Berlin
2001-06-01 14:15     ` Jim Blandy
2001-06-01 14:17     ` Jim Blandy

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=3.0.5.32.20010601140529.009ea7a0@pophost.pdxuxbre.lmc.com \
    --to=cmills@synopsys.com \
    --cc=dan@cgsoftware.com \
    --cc=fche@redhat.com \
    --cc=fnasser@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@cygnus.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