[master] f2947248a gc references to panicstr and fix gdb help

Nils Goroll nils.goroll at uplex.de
Thu Nov 7 11:50:06 UTC 2019


commit f2947248a5d64f3e7cc70a0774e424d81fe836a2
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Nov 7 12:49:10 2019 +0100

    gc references to panicstr and fix gdb help

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 26be29cf7..8fae5c619 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -52,12 +52,13 @@
 #include "vcs.h"
 
 /*
- * The panic string is constructed in memory, then copied to the
+ * The panic string is constructed in a VSB, then copied to the
  * shared memory.
  *
  * It can be extracted post-mortem from a core dump using gdb:
  *
- * (gdb) printf "%s", panicstr
+ * (gdb) p *(char **)((char *)pan_vsb+8)
+ *
  */
 
 static struct vsb pan_vsb_storage, *pan_vsb;
diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index 20166d91b..74fb46180 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -131,8 +131,6 @@
 -esym(759, vcc_ProcAction) // could be moved to module
 -esym(714, vcc_ProcAction) // not ref.
 
--esym(765, panicstr)	// Could be static
-
 -emacro(506, isnan, isfinite)	// constant value boolean
 -emacro(736, isfinite)	// loss of precision
 -emacro(774, HTTPH)	// always false


More information about the varnish-commit mailing list