summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/lldbutil.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/test/lldbutil.py b/lldb/test/lldbutil.py
index 04f98be6b2d..be026ef29b0 100644
--- a/lldb/test/lldbutil.py
+++ b/lldb/test/lldbutil.py
@@ -438,7 +438,13 @@ def get_args_as_string(frame):
args.append("(%s)%s=%s" % (var.GetTypeName(),
var.GetName(),
var.GetValue(frame)))
- return "%s(%s)" % (frame.GetFunction().GetName(), ", ".join(args))
+ if frame.GetFunction().IsValid():
+ name = frame.GetFunction().GetName()
+ elif frame.GetSymbol().IsValid():
+ name = frame.GetSymbol().GetName()
+ else:
+ name = ""
+ return "%s(%s)" % (name, ", ".join(args))
def print_registers(frame, string_buffer = False):
"""Prints all the register sets of the frame."""
OpenPOWER on IntegriCloud