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

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to