bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checking frame info in if statement


From: Robert Graulich
Subject: checking frame info in if statement
Date: Tue, 16 Oct 2001 15:17:08 +0200

Hi,

I'd like to write a 'hook-stop' routine, which has an if statement like that:

define hook-stop
  if (frame == "main")
    echo "stopped in main"
  else
    echo "stopped somewhere else"
  end
end

How can I store the result of a command to do something with it?
So far, it seems that I can only access elements on the print stack.
Is there a way to push such results onto that stack?

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]