From 3df9312c050249cb5eef2aed8afc3abadbba981d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 28 Dec 2022 12:16:21 +0000 Subject: rproxy: quiet down addr2line output on FreeBSD No point in showing "?? at ??:0" to prefix everything. --- lib/Devel/Mwrap/Rproxy.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Devel/Mwrap/Rproxy.pm b/lib/Devel/Mwrap/Rproxy.pm index 8dc78a2..c831a36 100644 --- a/lib/Devel/Mwrap/Rproxy.pm +++ b/lib/Devel/Mwrap/Rproxy.pm @@ -101,6 +101,7 @@ sub a2l { $a2l ? do { chomp(my $line = $a2l->lookup($addr)); + $line =~ s/\Q?? at ??:0\E//; # FreeBSD $line = Plack::Util::encode_html($line); $line =~ /\?\?/ ? "$line $exe($addr)" : ($line =~ /\S/ ? $line : "$exe($addr)"); -- cgit v1.2.3-24-ge0c7