* [PATCH] rproxy: support FreeBSD addr2line unresolved (??) output
@ 2022-12-27 21:56 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-12-27 21:56 UTC (permalink / raw)
To: mwrap-perl
FreeBSD addr2line uses `?? at ??:0' for unresolved addresses, so
relax the regexp we use for handling unresolved output.
---
lib/Devel/Mwrap/Rproxy.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Devel/Mwrap/Rproxy.pm b/lib/Devel/Mwrap/Rproxy.pm
index b2bee8c..c96a947 100644
--- a/lib/Devel/Mwrap/Rproxy.pm
+++ b/lib/Devel/Mwrap/Rproxy.pm
@@ -66,7 +66,7 @@ sub a2l {
my $a2l = $addr2line{$exe} //= Devel::Mwrap::Rproxy::A2L->new($exe);
chomp(my $line = $a2l->lookup($addr));
$line = Plack::Util::encode_html($line);
- $line =~ /\A\?\?:/ ? "$line $exe $addr" : $line;
+ $line =~ /\?\?/ ? "$line $exe $addr" : $line;
}
sub call { # PSGI entry point
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-27 21:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 21:56 [PATCH] rproxy: support FreeBSD addr2line unresolved (??) output Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/mwrap-perl.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).