aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorR3x <siddharth.muralee@gmail.com>2019-06-26 07:23:22 +0000
committerDmitry Vyukov <dvyukov@google.com>2019-06-26 11:19:18 +0200
commit4d3422405ed6c68b57f24f80dcfd0abd3a2c6c1a (patch)
tree39ffcc0975af008d2540e06e748f70f49810284f /pkg
parent9b3b970634bbb2b950ea1a99b66e8decb7a6f769 (diff)
pkg/report: fix error in report symbolization
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/netbsd.go2
-rw-r--r--pkg/report/netbsd_test.go14
2 files changed, 8 insertions, 8 deletions
diff --git a/pkg/report/netbsd.go b/pkg/report/netbsd.go
index 7177a0146..345c48bf5 100644
--- a/pkg/report/netbsd.go
+++ b/pkg/report/netbsd.go
@@ -27,7 +27,7 @@ type netbsd struct {
var (
netbsdSymbolizeRe = []*regexp.Regexp{
// stack
- regexp.MustCompile(` at ([A-Za-z0-9_]+)\+0x([0-9a-f]+)`),
+ regexp.MustCompile(` at netbsd:([A-Za-z0-9_]+)\+0x([0-9a-f]+)`),
// witness
regexp.MustCompile(`#[0-9]+ +([A-Za-z0-9_]+)\+0x([0-9a-f]+)`),
}
diff --git a/pkg/report/netbsd_test.go b/pkg/report/netbsd_test.go
index 1934e6453..1fec41ab0 100644
--- a/pkg/report/netbsd_test.go
+++ b/pkg/report/netbsd_test.go
@@ -17,19 +17,19 @@ func TestNetbsdSymbolizeLine(t *testing.T) {
}{
// Normal symbolization.
{
- "closef(ffffffff,ffffffff) at closef+0xaf\n",
- "closef(ffffffff,ffffffff) at closef+0xaf kern_descrip.c:1241\n",
+ "closef(ffffffff,ffffffff) at netbsd:closef+0xaf\n",
+ "closef(ffffffff,ffffffff) at netbsd:closef+0xaf kern_descrip.c:1241\n",
},
// Inlined frames.
{
- "sleep_finish_all(ffffffff,32) at sleep_finish_all+0x22\n",
- "sleep_finish_all(ffffffff,32) at sleep_finish_all+0x22 sleep_finish_timeout kern_synch.c:336 [inline]\n" +
- "sleep_finish_all(ffffffff,32) at sleep_finish_all+0x22 kern_synch.c:157\n",
+ "sleep_finish_all(ffffffff,32) at netbsd:sleep_finish_all+0x22\n",
+ "sleep_finish_all(ffffffff,32) at netbsd:sleep_finish_all+0x22 sleep_finish_timeout kern_synch.c:336 [inline]\n" +
+ "sleep_finish_all(ffffffff,32) at netbsd:sleep_finish_all+0x22 kern_synch.c:157\n",
},
// Missing symbol.
{
- "foo(ffffffff,ffffffff) at foo+0x1e",
- "foo(ffffffff,ffffffff) at foo+0x1e",
+ "foo(ffffffff,ffffffff) at netbsd:foo+0x1e",
+ "foo(ffffffff,ffffffff) at netbsd:foo+0x1e",
},
// Witness symbolization.
{