archi package

i386 module

mcgdb.toolbox.target.archi.i386.get_sp_above()[source]

(internal) :returns: the stack pointer of the frame above :rtype: gdb.Value

mcgdb.toolbox.target.archi.i386.init(my_gdb_pkg)[source]
mcgdb.toolbox.target.archi.i386.nth_arg(n, ttype)[source]

Gets the casted value of the nth argument of the selected frame.

Parameters:
  • n -- index of the parameter to return.
  • ttype -- type to which we cast the value read. Default: void *
Returns:

the value of the nth argument of the currently selected frame.

Return type:

gdb.Value

mcgdb.toolbox.target.archi.i386.recognize(str_archi)[source]
mcgdb.toolbox.target.archi.i386.return_value(ttype)[source]

Gets the cased value returned by the last function call.

Parameters:ttype -- type to which we cast the value read.
Returns:the value returned by the last function call.

x86_64 module

mcgdb.toolbox.target.archi.x86_64.get_sp_above(ttype=None)[source]

(internal) :returns: the stack pointer of the frame above :rtype: gdb.Value

mcgdb.toolbox.target.archi.x86_64.init(my_gdb_pkg)[source]
mcgdb.toolbox.target.archi.x86_64.nth_arg(n, ttype)[source]

Gets the casted value of the nth argument of the selected frame.

Parameters:
  • n -- index of the parameter to return.
  • ttype -- type to which we cast the value read. Default: void *
Returns:

the value of the nth argument of the currently selected frame.

Return type:

gdb.Value

mcgdb.toolbox.target.archi.x86_64.recognize(str_archi)[source]
mcgdb.toolbox.target.archi.x86_64.return_value(ttype)[source]

Gets the cased value returned by the last function call.

Parameters:ttype -- type to which we cast the value read.
Returns:the value returned by the last function call.
mcgdb.toolbox.target.archi.x86_64.stack_nth_arg(n, ttype)[source]