Skip to content

Commit dc18f7d

Browse files
raboofwilhelmy
authored andcommitted
Add script to run with xephyr in gdb (#229)
1 parent f756640 commit dc18f7d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

utils/xephyr/xephyr-notion-gdb.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
#
3+
# run the local dev build in xephyr
4+
#
5+
# usage:
6+
#
7+
# ./start-xephyr.sh &
8+
# ./xephyr-notion.sh
9+
10+
display=${NOTION_TEST_DISPLAY:-:1.0}
11+
12+
this_rel=$(dirname ${BASH_SOURCE[0]})
13+
rel_root=$this_rel/../..
14+
15+
notion_root=$(realpath $rel_root)
16+
search_dir_script=$notion_root/utils/dev-search-dirs.sh
17+
18+
notion_exe=$notion_root/notion/notion
19+
20+
gdb $notion_exe -ex "run \
21+
$($search_dir_script) \
22+
-nodefaultconfig \
23+
-smclientid testinxephyr \
24+
-session $notion_root/.session \
25+
-display $display \
26+
$@"

0 commit comments

Comments
 (0)