Skip to content

Commit

Permalink
Merge pull request #1413 from jluebbe/gdb-history
Browse files Browse the repository at this point in the history
qemu-test-init: configure gdb to save history and enable pretty printing
  • Loading branch information
ejoerns committed May 10, 2024
2 parents cd3aa7c + 3eb50f8 commit 3197c56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.cache/
/build/
/.qemu_bash_history
/.qemu_gdb_history
/qemu-test-ok
app.info
/bzImage
Expand Down
9 changes: 9 additions & 0 deletions qemu-test-init
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ ip link set eth0 up
ip route add default via 10.0.2.2
echo "nameserver 10.0.2.3" > /etc/resolv.conf

export HOME="/root"

# allow git access to our repo
git config --system --add safe.directory "$(pwd)"

Expand All @@ -74,6 +76,13 @@ save_gcov_data () {
fi
}

# enable gdb history
cat > /root/.gdbinit <<EOF
set history filename $(pwd)/.qemu_gdb_history
set history save on
set print pretty on
EOF

# fake entropy
$BUILD_DIR/test/fakerand

Expand Down

0 comments on commit 3197c56

Please sign in to comment.