This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [BUG] Regression in 2.14.90 (relative to 2.13.90)
On Tue, Nov 25, 2003 at 09:29:09AM -0800, H. J. Lu wrote:
> Have you tried it on my testcase:
>
> http://sources.redhat.com/ml/binutils/2003-06/msg00473.html
With 2.13.90:
~/c++/tests/binutils>make
g++ -g -c -o test01a.o test01a.cpp
g++ -g -c -o test01b.o test01b.cpp
g++ -g -c -o test01c.o test01c.cpp
g++ -g -o test test01a.o test01b.o test01c.o
gdb test > gdb.log
bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
echo $bp2 | grep 0x0:; \
if [ $? = 0 ]; then exit 1; else true; fi
Breakpoint 2 at 0x0: file test01a.h, line 4.
make: *** [all] Error 1
With 2.14.90, without Nicks patch:
~/c++/tests/binutils>make
g++ -g -c -o test01a.o test01a.cpp
g++ -g -c -o test01b.o test01b.cpp
g++ -g -c -o test01c.o test01c.cpp
g++ -g -o test test01a.o test01b.o test01c.o
gdb test > gdb.log
bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
echo $bp2 | grep 0x0:; \
if [ $? = 0 ]; then exit 1; else true; fi
~/c++/tests/binutils>
With 2.14.90 *with* Nicks patch:
~/c++/tests/binutils>make
g++ -g -c -o test01a.o test01a.cpp
g++ -g -c -o test01b.o test01b.cpp
g++ -g -c -o test01c.o test01c.cpp
g++ -g -o test test01a.o test01b.o test01c.o
gdb test > gdb.log
bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
echo $bp2 | grep 0x0:; \
if [ $? = 0 ]; then exit 1; else true; fi
Breakpoint 2 at 0x0: file test01a.h, line 4.
make: *** [all] Error 1
Imho, this means that gdb is bugged, not ld.
--
Carlo Wood <carlo@alinoe.com>