Skip to content

Commit

Permalink
Use modified GDB script on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
godunko committed Jul 8, 2024
1 parent 3e46e3c commit 63fa6b2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
File renamed without changes.
31 changes: 31 additions & 0 deletions testsuite/gdbpp/gdbinit.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
set logging redirect on
set logging file NUL
set logging enabled on
# Redirecting of the output to file and enable logging send all GDB's output
# into the file. Logging is disabled a bit later when output of the
# 'output'/'echo' commands need to be output to the standard output to check
# with expected results.

source vss_pp.py

start
set charset UTF-8
next
next
next
next
next

set logging enabled off
output ss1
echo \n
output us1
echo \n
output vsn
echo \n
output vs1
echo \n
output vs2
echo \n
output vi1
echo \n
6 changes: 5 additions & 1 deletion testsuite/gdbpp/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
gprbuild -q -P test.gpr
gdb --batch --command=gdbinit --directory=$VSS_GDBPP .objs/main
if [ "$OS" = "Windows_NT" ]; then
gdb --batch --command=gdbinit.windows --directory=$VSS_GDBPP .objs/main
else
gdb --batch --command=gdbinit.posix --directory=$VSS_GDBPP .objs/main
fi

0 comments on commit 63fa6b2

Please sign in to comment.