From 06c94ccac31d524eb2fdc865df1f0e27c2bf98d2 Mon Sep 17 00:00:00 2001 From: see Date: Tue, 6 Feb 2024 15:33:40 +0800 Subject: [PATCH] bug fix for --regs option --- user/event/event_context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/event/event_context.go b/user/event/event_context.go index 93571ea..1145994 100644 --- a/user/event/event_context.go +++ b/user/event/event_context.go @@ -262,11 +262,11 @@ func (this *ContextEvent) GetStackTrace(s string) string { } s += fmt.Sprintf(", RegsInfo:\n%s", strings.Join(reg_info, "\n")) } - if this.rec.ExtraOptions.ShowRegs { + if this.mconf.ShowRegs { s += ", Regs:\n" + this.GetRegsString() } if this.Stackinfo != "" { - if this.rec.ExtraOptions.ShowRegs { + if this.mconf.ShowRegs { s += fmt.Sprintf("\nBacktrace:\n%s", this.Stackinfo) } else { s += fmt.Sprintf(", Backtrace:\n%s", this.Stackinfo)