summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2023-04-02 15:20:16 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2023-04-02 15:20:16 +0200
commit28d9ca8eae01a44e7f8c398f44f2f0a577c3d336 (patch)
tree345f4a7ef80c04b5735d7eaac58157cd7d78575b
parenta9d3e06a57b4a77012efd6e38d67063c914b71b4 (diff)
downloadroux-28d9ca8eae01a44e7f8c398f44f2f0a577c3d336.tar.gz
print prefix for thread-local symbols
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 649451f..c54448f 100644
--- a/parse.c
+++ b/parse.c
@@ -1203,6 +1203,8 @@ printcon(Con *c, FILE *f)
 	case CUndef:
 		break;
 	case CAddr:
+		if (c->sym.type == SThr)
+			fprintf(f, "thread ");
 		fprintf(f, "$%s", str(c->sym.id));
 		if (c->bits.i)
 			fprintf(f, "%+"PRIi64, c->bits.i);