aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dlang/watch-loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dlang/watch-loc.c')
-rw-r--r--gdb/testsuite/gdb.dlang/watch-loc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dlang/watch-loc.c b/gdb/testsuite/gdb.dlang/watch-loc.c
index c3159ce..de594f3 100644
--- a/gdb/testsuite/gdb.dlang/watch-loc.c
+++ b/gdb/testsuite/gdb.dlang/watch-loc.c
@@ -28,6 +28,8 @@ int _Dmain (void)
return 0;
}
+asm ("_Dmain_end: .globl _Dmain_end");
+
int
main (void)
{
@@ -51,7 +53,7 @@ asm (
" .2byte 0 \n" // Pad to 16 byte boundary
" .2byte 0 \n"
" .4byte _Dmain \n" // Address
-" .4byte 0x1000 \n" // Length
+" .4byte _Dmain_end - _Dmain \n" // Length
" .4byte 0 \n"
" .4byte 0 \n"
".Laranges_end: \n"