From af077034e014290f5ec2e6d1aef332f5934ae73c Mon Sep 17 00:00:00 2001 From: Martin Karsten <mkarsten@uwaterloo.ca> Date: Sun, 24 Jun 2018 20:52:17 -0400 Subject: [PATCH] - more formatting of gdb 'info fibres' output --- src/libfibre/libfibre.so-gdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libfibre/libfibre.so-gdb.py b/src/libfibre/libfibre.so-gdb.py index 91500c7..ec8f237 100644 --- a/src/libfibre/libfibre.so-gdb.py +++ b/src/libfibre/libfibre.so-gdb.py @@ -146,13 +146,13 @@ class InfoFibres(gdb.Command): def invoke(self, arg, from_tty): curr = gdb.parse_and_eval("Context::currStack") - print(" Idx \t Target Ptr \t Frame") + print(" Idx \tTarget\tPtr \t\t Frame") for i in range(len(FibreSupport.list)): if (FibreSupport.list[i] == curr): print("* ", end='') else: print(" ", end='') - print(str(i), "\tFibre", str(FibreSupport.list[i]), end='') + print(str(i), "\tFibre\t", str(FibreSupport.list[i]), sep='', end='') with FibreSupport.get_frame(FibreSupport.list[i]) as frame: if frame is not None: # Print instruction pointer -- GitLab