summaryrefslogtreecommitdiff
path: root/scripts/.gdbinit
diff options
context:
space:
mode:
authorWatson Wheeler <git@tazy.dev>2026-06-30 21:14:48 +1000
committerWatson Wheeler <git@tazy.dev>2026-07-02 19:39:07 +1000
commitab77ba9035a4f513cf0126a09e8e0a0042ef7e42 (patch)
treebbd79baac8fe94f5fcbbe3473bcac804e8de36b2 /scripts/.gdbinit
parent02b34119911e3ee3725a43b5d40754351d31b582 (diff)
refactor(gdb): move .gdbinit to scripts
Diffstat (limited to 'scripts/.gdbinit')
-rw-r--r--scripts/.gdbinit37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/.gdbinit b/scripts/.gdbinit
new file mode 100644
index 0000000..345b33e
--- /dev/null
+++ b/scripts/.gdbinit
@@ -0,0 +1,37 @@
+set pagination off
+set confirm off
+set print pretty on
+set print array on
+
+set breakpoint pending on
+
+break ff_open_png
+break ff_png_isvalid
+break ff_png_dispatch
+break ff_png_header_handler
+break ff_png_data_handler
+break ff_png_end_handler
+
+define ff
+ run
+end
+
+define st
+ info locals
+ info args
+end
+
+define ihdr
+ print png_ctx->width
+ print png_ctx->height
+ print png_ctx->bit_depth
+ print png_ctx->color_type
+end
+
+define ctx
+ print *ctx
+end
+
+define png
+ print *png_ctx
+end