* [PATCH] Build dw2-abs-hi-pc with nodebug
@ 2014-03-07 0:23 Doug Evans
2014-03-07 13:10 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2014-03-07 0:23 UTC (permalink / raw)
To: gdb-patches, brobecker
Hi.
I was seeing this fail on fission, and traced it to the test
being compiled with debug info in addition to debug info coming
from the .S files.
[The failure is that when compiled with fission the breakpoint was set
on line 25 whereas the test is expecting 24. I suspect the .S file
is wrong, but it's not egregiously so, so I've that alone.]
2014-03-06 Doug Evans <dje@google.com>
* gdb.dwarf2/dw2-abs-hi-pc.exp: Build tests with "nodebug".
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
index 3353fda..4ca16cf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
@@ -22,7 +22,7 @@ if {![dwarf2_support]} {
standard_testfile
set executable ${testfile}
-if {[build_executable ${testfile}.exp ${executable} "${testfile}.c ${testfile}-hello-dbg.S ${testfile}-hello.c ${testfile}-world-dbg.S ${testfile}-world.c"] == -1} {
+if {[build_executable ${testfile}.exp ${executable} "${testfile}.c ${testfile}-hello-dbg.S ${testfile}-hello.c ${testfile}-world-dbg.S ${testfile}-world.c" "nodebug"] == -1} {
return -1
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Build dw2-abs-hi-pc with nodebug
2014-03-07 0:23 [PATCH] Build dw2-abs-hi-pc with nodebug Doug Evans
@ 2014-03-07 13:10 ` Joel Brobecker
2014-03-27 18:39 ` Doug Evans
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2014-03-07 13:10 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb-patches
> I was seeing this fail on fission, and traced it to the test
> being compiled with debug info in addition to debug info coming
> from the .S files.
>
> [The failure is that when compiled with fission the breakpoint was set
> on line 25 whereas the test is expecting 24. I suspect the .S file
> is wrong, but it's not egregiously so, so I've that alone.]
>
> 2014-03-06 Doug Evans <dje@google.com>
>
> * gdb.dwarf2/dw2-abs-hi-pc.exp: Build tests with "nodebug".
Yes, I got tricked by the fact that we (nearly?) always add the "debug"
option when building, so I had no second thought when I removed it.
As explained to Doug on IRC, the point of the .S file is to be the
source of the debugging info for the correspoing .c file, so we must
compile the .c files without -g. Strange that it worked before at all...
Thanks for the fix, Doug!
> diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
> index 3353fda..4ca16cf 100644
> --- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
> +++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
> @@ -22,7 +22,7 @@ if {![dwarf2_support]} {
> standard_testfile
> set executable ${testfile}
>
> -if {[build_executable ${testfile}.exp ${executable} "${testfile}.c ${testfile}-hello-dbg.S ${testfile}-hello.c ${testfile}-world-dbg.S ${testfile}-world.c"] == -1} {
> +if {[build_executable ${testfile}.exp ${executable} "${testfile}.c ${testfile}-hello-dbg.S ${testfile}-hello.c ${testfile}-world-dbg.S ${testfile}-world.c" "nodebug"] == -1} {
> return -1
> }
>
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Build dw2-abs-hi-pc with nodebug
2014-03-07 13:10 ` Joel Brobecker
@ 2014-03-27 18:39 ` Doug Evans
0 siblings, 0 replies; 3+ messages in thread
From: Doug Evans @ 2014-03-27 18:39 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On Fri, Mar 7, 2014 at 5:09 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> I was seeing this fail on fission, and traced it to the test
>> being compiled with debug info in addition to debug info coming
>> from the .S files.
>>
>> [The failure is that when compiled with fission the breakpoint was set
>> on line 25 whereas the test is expecting 24. I suspect the .S file
>> is wrong, but it's not egregiously so, so I've that alone.]
>>
>> 2014-03-06 Doug Evans <dje@google.com>
>>
>> * gdb.dwarf2/dw2-abs-hi-pc.exp: Build tests with "nodebug".
>
> Yes, I got tricked by the fact that we (nearly?) always add the "debug"
> option when building, so I had no second thought when I removed it.
> As explained to Doug on IRC, the point of the .S file is to be the
> source of the debugging info for the correspoing .c file, so we must
> compile the .c files without -g. Strange that it worked before at all...
Committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-27 18:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-07 0:23 [PATCH] Build dw2-abs-hi-pc with nodebug Doug Evans
2014-03-07 13:10 ` Joel Brobecker
2014-03-27 18:39 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).