This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GDB Scripting


Hi all,

is it possible, to store the result of a gdb command like 'frame' in a variable?
I like to write someting like

  define hook-stop
    set $FRAME=frame
    if $FRAME=="main"
      ...
    else
      ...
    end
  end

How to do that?

Robert


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]