build: create copy of kernel binary with debug symbols
This commit is contained in:
@@ -10,7 +10,8 @@ if command -v gdb &> /dev/null; then
|
||||
new-session -d -s hz-debug "sleep 0.3; gdb -tui -x $gdb_cfg" \; \
|
||||
split-window -h -l 80 \; \
|
||||
split-window -v -l 25 "$@"\; \
|
||||
select-pane -t 0
|
||||
select-pane -t 0 \; \
|
||||
resize-pane -R 20
|
||||
elif command -v lldb &> /dev/null; then
|
||||
printf " \033[93;1mLLDB\033[0m boot/socks_kernel\n"
|
||||
tmux \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
set confirm off
|
||||
symbol-file build/socks_kernel
|
||||
symbol-file build/socks_kernel.dbg
|
||||
target remote localhost:1234
|
||||
set confirm on
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
file build/socks_kernel
|
||||
file build/socks_kernel.dbg
|
||||
gdb-remote localhost:1234
|
||||
|
||||
Reference in New Issue
Block a user