* [RFA] Fix typo in replace type
@ 2007-02-28 19:24 Joel Brobecker
2007-02-28 19:31 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2007-02-28 19:24 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 907 bytes --]
This is a followup on something that was discovered while reviewing
a stabs patch:
http://www.sourceware.org/ml/gdb-patches/2007-02/msg00139.html
In particular, this is where we discovered this little typo:
http://www.sourceware.org/ml/gdb-patches/2007-02/msg00368.html
I confirm that I misanalyzed the second problem I mentioned in my
original message, and that this is the source of the issue I was seeing:
Breakpoint 1, pck.lock.set (x=Unrecognized 0-bit floating-point type.
) at pck.adb:11
Basically, the effect of the typo is that we forgot to update the
type length of the other types in the same CV ring. Fixed thusly.
2007-02-28 Joel Brobecker <brobecker@adacore.com>
* gdbtypes.c (replace_type): Fix typo that caused us to not update
length of the types referenced by the new type CV ring.
Tested on x86-linux, no regression. OK to apply?
Thanks,
--
Joel
[-- Attachment #2: replace_type.diff --]
[-- Type: text/plain, Size: 581 bytes --]
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.113
diff -u -p -r1.113 gdbtypes.c
--- gdbtypes.c 28 Feb 2007 16:35:48 -0000 1.113
+++ gdbtypes.c 28 Feb 2007 19:09:56 -0000
@@ -636,7 +636,7 @@ replace_type (struct type *ntype, struct
call replace_type(). */
gdb_assert (TYPE_ADDRESS_CLASS_ALL (chain) == 0);
- TYPE_LENGTH (ntype) = TYPE_LENGTH (type);
+ TYPE_LENGTH (chain) = TYPE_LENGTH (type);
chain = TYPE_CHAIN (chain);
} while (ntype != chain);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Fix typo in replace type
2007-02-28 19:24 [RFA] Fix typo in replace type Joel Brobecker
@ 2007-02-28 19:31 ` Daniel Jacobowitz
2007-02-28 19:36 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-02-28 19:31 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On Wed, Feb 28, 2007 at 11:24:10AM -0800, Joel Brobecker wrote:
> 2007-02-28 Joel Brobecker <brobecker@adacore.com>
>
> * gdbtypes.c (replace_type): Fix typo that caused us to not update
> length of the types referenced by the new type CV ring.
>
> Tested on x86-linux, no regression. OK to apply?
OK. Do you mean this completely fixed the issue?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Fix typo in replace type
2007-02-28 19:31 ` Daniel Jacobowitz
@ 2007-02-28 19:36 ` Joel Brobecker
0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2007-02-28 19:36 UTC (permalink / raw)
To: gdb-patches
> On Wed, Feb 28, 2007 at 11:24:10AM -0800, Joel Brobecker wrote:
> > 2007-02-28 Joel Brobecker <brobecker@adacore.com>
> >
> > * gdbtypes.c (replace_type): Fix typo that caused us to not update
> > length of the types referenced by the new type CV ring.
> >
> > Tested on x86-linux, no regression. OK to apply?
>
> OK.
Thanks, will commit momentarily.
> Do you mean this completely fixed the issue?
Not completely, no, we still need to add handling for the anonymous
forward reference, but I decided that this separate issue deserved
a separate commit...
Thanks,
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-28 19:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 19:24 [RFA] Fix typo in replace type Joel Brobecker
2007-02-28 19:31 ` Daniel Jacobowitz
2007-02-28 19:36 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox