开发者

How can I get the stack trace in Specman?

开发者 https://www.devze.com 2022-12-08 04:26 出处:网络
Is there any way to get the stack trace in Specman?I patched the functions that force signals to tell me when signals are forced.I want to b开发者_高级运维e able to tell where the forcing originated.p

Is there any way to get the stack trace in Specman? I patched the functions that force signals to tell me when signals are forced. I want to b开发者_高级运维e able to tell where the forcing originated.


print_stack_trace()

It is beautiful. I only wish I could extend the 'assert' construct so it always prints out a stack-trace like python...

btw, this method can take multiple seconds to evaluate. You don't want to do print_stack_trace() unless you need to or you've hit an assertion.

0

精彩评论

暂无评论...
验证码 换一张
取 消