From: Pedro Alves <pedro_alves@portugalmail.pt>
To: Joel Brobecker <brobecker@adacore.com>,
Pierre Muller <muller@ics.u-strasbg.fr>,
'Pedro Alves' <pedro_alves@portugalmail.pt>,
gdb-patches@sourceware.org
Subject: Re: [RFC] Stabs parsing regression from GDB 6.6 to GDB 6.6.90
Date: Wed, 03 Oct 2007 21:36:00 -0000 [thread overview]
Message-ID: <47040AD9.6000900@portugalmail.pt> (raw)
In-Reply-To: <20071003185126.GA1976@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Wed, Oct 03, 2007 at 11:41:56AM -0700, Joel Brobecker wrote:
>>> I definitively think that this patch should go both into
>>> head and branch, but it needs approval from someone else...
>> Unless someone like Elena who knows this code very well says it's safe,
>> I would prefer if the patch didn't get applied to the branch. I'm a bit
>> concerned about it given the few iterations that you both had to go
>> through in order to get it to that point. It just shows that it is
>> not obvious.
>
That's because the original code to read signed octals was never
triggered from day 1. I suspect it was due to a bad/incomplete
merge from whatever tree it came from, and a testcase that
doesn't really trigger it.
> I think it's a bad idea to ship a release of GDB with a new bug that
> we know about, which wasn't present in the previous release.
>
Another option is to revert this on the branch:
2007-08-04 Michael Snyder
* stabsread.c (read_huge_number): Attempt to compute value before
values that it depends on.
Since nobody complained until then (except for Coverity). The signed
octal parsing was dead code Before Michail's Patch (BMP), and is broken
after it. BMP, the basic types happened to be recorded with the
correct bit sizes, but ADA ranges that have a negative edge (-50, 50)
would be misrecorded . That was what the original code attempted to
fix, but I don't really know where it makes a difference. Perhaps
a print command which sets a value whose type is covered by a
range, with an out-of-range value, will trigger a warning:
print var = -51
warning: -51 is out of range for type x [-50, 50].
If gdb doesn't do it yet, it could be useful anyway.
What I know of ADA is what one can learn from a 10 minutes HOWTO reading.
> I read through the patch. It seems fine to me, though I am mostly
> trusting Pedro, Pierre, and their test cases.
>
next prev parent reply other threads:[~2007-10-03 21:36 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <000e01c7fb9b$22e600f0$68b202d0$@u-strasbg.fr>
2007-09-21 8:01 ` Pierre Muller
2007-09-22 3:07 ` Pedro Alves
2007-09-22 4:20 ` Joel Brobecker
2007-09-22 10:17 ` Pedro Alves
2007-09-22 19:39 ` Pedro Alves
2007-09-22 22:58 ` Joel Brobecker
2007-09-22 23:08 ` Daniel Jacobowitz
2007-09-23 1:17 ` Joel Brobecker
2007-09-23 10:17 ` Pedro Alves
2007-09-23 11:39 ` Pedro Alves
2007-09-23 12:42 ` Daniel Jacobowitz
2007-09-23 13:57 ` Pedro Alves
2007-09-24 0:43 ` Pedro Alves
2007-09-24 9:15 ` Pierre Muller
2007-09-24 10:21 ` Pedro Alves
2007-09-24 13:30 ` Pierre Muller
2007-09-25 8:09 ` Pedro Alves
2007-09-25 23:58 ` Pedro Alves
2007-10-03 12:06 ` Pierre Muller
2007-10-03 16:43 ` Jim Blandy
2007-10-03 18:44 ` Joel Brobecker
2007-10-03 18:51 ` Daniel Jacobowitz
2007-10-03 19:07 ` Joel Brobecker
2007-10-03 21:36 ` Pedro Alves [this message]
2007-10-03 21:40 ` Daniel Jacobowitz
2007-10-05 9:59 ` Pedro Alves
2007-10-08 23:26 ` Pedro Alves
2007-10-09 9:10 ` Pierre Muller
2007-10-09 11:39 ` Pedro Alves
2007-09-23 1:06 ` Joel Brobecker
2007-09-24 6:57 ` Pierre Muller
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=47040AD9.6000900@portugalmail.pt \
--to=pedro_alves@portugalmail.pt \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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