forked from abaire/nxdk_pgraph_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
36 lines (28 loc) · 921 Bytes
/
.gdbinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# CLion
# To allow this file to work you'll need to enable parsing of project-local
# .gdbinit files. Create/edit ~/.gdbinit (on WSL make sure it's inside the
# linux guest) and add:
#
# set auto-load local-gdbinit on
# add-auto-load-safe-path /
# Tell GDB that we are using 32-bit x86 architecture
set arch i386
# Tell GDB to load symbols from main.exe
#
# Notice here that we are using the .exe file, not the .xbe file, as
# GDB does not understand the .xbe format.
#
add-symbol-file main.exe
# Use a layout which shows source code
# CLion: Not supported
#layout src
# Prevent CLion from dying with "doesn't support qGetTIBAddr packet"
set osabi none
# CLion: Handled by CLion
# Connect to the XQEMU GDB server
# target remote 127.0.0.1:1234
# Stop execution at the beginning of the `main` function
# b main
# Let XQEMU run until the CPU tries to execute from the address
# we have placed our breakpoint(s)
# c