-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
55 lines (44 loc) · 1.28 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2023 Paweł Sacawa. All rights reserved.
# dashboard stack -style limit 15
db -layout breakpoints expressions history memory source stack variables
# GTK
define interactive-gtk4
set environment GTK_DEBUG=interactive
dont-repeat
end
define preload-gtk4
set environment LD_PRELOAD=./build/lib/libtetradactyl-gtk4.so
add-symbol-file ./build/lib/libtetradactyl-gtk4.so -readnow
dont-repeat
end
define debug-gtk4
set environment LD_LIBRARY_PATH=/usr/local/libd
dont-repeat
end
define print_G_OBJECT_TYPE_NAME
print (g_type_name ((((((GTypeClass*) (((GTypeInstance*) ($arg0))->g_class))->g_type)))))
end
# document G_OBJECT_TYPE_NAME
# QT
define preload-qt5
set environment LD_PRELOAD=./build/lib/libtetradactyl-qt5.so
add-symbol-file ./build/lib/libtetradactyl-qt5.so -readnow
dont-repeat
end
define preload-qt6
set environment LD_PRELOAD=./build/lib/libtetradactyl-qt6.so
add-symbol-file ./build/lib/libtetradactyl-qt6.so -readnow
dont-repeat
end
define preload-dynamic
set environment LD_PRELOAD=./build/lib/libtetradactyl-dynamic-probe.so
add-symbol-file ./build/lib/libtetradactyl-dynamic-probe.so -readnow
dont-repeat
end
define offscreen-qt
set environment QT_QPA_PLATFORM=offscreen
dont-repeat
end
define printMeta
print $arg0->metaObject()
end