mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 08:37:28 +03:00
launch gdb with -nx (ignore all .gdbinit)
Otherwise the test may fail simply because .gdbinit setup does something strange (I happen to have 'set auto-solib-add off', which disables loading debug info by default).
This commit is contained in:
parent
3015f5e418
commit
face536c39
@ -49,7 +49,7 @@ readelf -WS $t/exe 2> /dev/null | fgrep -q .gdb_index
|
||||
|
||||
$QEMU $t/exe | grep -q 'Hello world'
|
||||
|
||||
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
DEBUGINFOD_URLS= gdb $t/exe -nx -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
-ex c -ex bt -ex quit >& $t/log
|
||||
|
||||
grep -Pq 'hello \(\) at .*<stdin>:7' $t/log
|
||||
|
@ -60,7 +60,7 @@ readelf -WS $t/exe 2> /dev/null | fgrep -q .gdb_index
|
||||
|
||||
$QEMU $t/exe | grep -q 'Hello world'
|
||||
|
||||
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
DEBUGINFOD_URLS= gdb $t/exe -nx -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
-ex c -ex bt -ex quit >& $t/log
|
||||
|
||||
grep -Pq 'hello2 \(\) at .*<stdin>:7' $t/log
|
||||
|
@ -60,7 +60,7 @@ readelf -WS $t/exe 2> /dev/null | fgrep -q .gdb_index
|
||||
|
||||
$QEMU $t/exe | grep -q 'Hello world'
|
||||
|
||||
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
DEBUGINFOD_URLS= gdb $t/exe -nx -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
-ex c -ex bt -ex quit >& $t/log
|
||||
|
||||
grep -Pq 'hello2 \(\) at .*<stdin>:7' $t/log
|
||||
|
@ -60,7 +60,7 @@ readelf -WS $t/exe 2> /dev/null | fgrep -q .gdb_index
|
||||
|
||||
$QEMU $t/exe | grep -q 'Hello world'
|
||||
|
||||
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
DEBUGINFOD_URLS= gdb $t/exe -nx -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
-ex c -ex bt -ex quit >& $t/log
|
||||
|
||||
grep -Pq 'hello2 \(\) at .*<stdin>:7' $t/log
|
||||
|
@ -92,7 +92,7 @@ readelf -WS $t/exe 2> /dev/null | fgrep -q .gdb_index
|
||||
|
||||
$QEMU $t/exe | grep -q 'Hello world'
|
||||
|
||||
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
DEBUGINFOD_URLS= gdb $t/exe -nx -batch -ex 'b main' -ex r -ex 'b trap' \
|
||||
-ex c -ex bt -ex quit >& $t/log
|
||||
|
||||
grep -Pq 'fn8 \(\) at .*/d.c:6' $t/log
|
||||
|
Loading…
Reference in New Issue
Block a user