1 int foo() 2 { 3 return func(); 4 }
finish
在第三行之后,返回值将在EAX中,因此您可以
print $eax
我在这里回答了一个类似的问题。,使用info frame是一种平台无关的方法来实现这个功能。