From a83ea33265c1b3d75c927bb3c542ca4a1ba96b22 Mon Sep 17 00:00:00 2001
From: Fujiwara <83638372+AZRAELSANTI@users.noreply.github.com>
Date: Fri, 27 Sep 2024 20:00:23 +0300
Subject: [PATCH] Add files via upload
---
misc/debuggers/imgui.gdb | 12 +++++++
misc/debuggers/imgui.natstepfilter | 31 ++++++++++++++++
misc/debuggers/imgui.natvis | 58 ++++++++++++++++++++++++++++++
3 files changed, 101 insertions(+)
create mode 100644 misc/debuggers/imgui.gdb
create mode 100644 misc/debuggers/imgui.natstepfilter
create mode 100644 misc/debuggers/imgui.natvis
diff --git a/misc/debuggers/imgui.gdb b/misc/debuggers/imgui.gdb
new file mode 100644
index 0000000..000ff6e
--- /dev/null
+++ b/misc/debuggers/imgui.gdb
@@ -0,0 +1,12 @@
+# GDB configuration to aid debugging experience
+
+# To enable these customizations edit $HOME/.gdbinit (or ./.gdbinit if local gdbinit is enabled) and add:
+# add-auto-load-safe-path /path/to/imgui.gdb
+# source /path/to/imgui.gdb
+#
+# More Information at:
+# * https://sourceware.org/gdb/current/onlinedocs/gdb/gdbinit-man.html
+# * https://sourceware.org/gdb/current/onlinedocs/gdb/Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory
+
+# Disable stepping into trivial functions
+skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+
diff --git a/misc/debuggers/imgui.natstepfilter b/misc/debuggers/imgui.natstepfilter
new file mode 100644
index 0000000..6825c93
--- /dev/null
+++ b/misc/debuggers/imgui.natstepfilter
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+ (ImVec2|ImVec4|ImStrv)::.+
+ NoStepInto
+
+
+ (ImVector|ImSpan).*::operator.+
+ NoStepInto
+
+
+
diff --git a/misc/debuggers/imgui.natvis b/misc/debuggers/imgui.natvis
new file mode 100644
index 0000000..ba9680b
--- /dev/null
+++ b/misc/debuggers/imgui.natvis
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ {{Size={Size} Capacity={Capacity}}}
+
+
+ Size
+ Data
+
+
+
+
+
+ {{Size={DataEnd-Data} }}
+
+
+ DataEnd-Data
+ Data
+
+
+
+
+
+ {{x={x,g} y={y,g}}}
+
+
+
+ {{x={x,g} y={y,g} z={z,g} w={w,g}}}
+
+
+
+ {{Min=({Min.x,g} {Min.y,g}) Max=({Max.x,g} {Max.y,g}) Size=({Max.x-Min.x,g} {Max.y-Min.y,g})}}
+
+ - Min
+ - Max
+ - Max.x - Min.x
+ - Max.y - Min.y
+
+
+
+
+ {{Name {Name,s} Active {(Active||WasActive)?1:0,d} Child {(Flags & 0x01000000)?1:0,d} Popup {(Flags & 0x04000000)?1:0,d} Hidden {(Hidden)?1:0,d}}
+
+
+