mwrap (Perl version) user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] rproxy: strip '+' for addr2line on bare addresses
@ 2022-12-27 21:39 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-12-27 21:39 UTC (permalink / raw)
  To: mwrap-perl

addr2line doesn't understand `+$ADDRESS' always, but `$ADDRESS'
is fine.
---
 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 2b9ccc7..19fff59 100644
--- a/lib/Devel/Mwrap/Rproxy.pm
+++ b/lib/Devel/Mwrap/Rproxy.pm
@@ -150,6 +150,7 @@ sub new {
 
 sub lookup {
 	my ($self, $addr) = @_;
+	$addr =~ s/\A\+//;
 	say { $self->{wr} } $addr;
 	readline($self->{rd});
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-27 21:39 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:39 [PATCH] rproxy: strip '+' for addr2line on bare addresses 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).