]> Git Repo - binutils.git/blobdiff - gdb/python/python.c
2008-10-16 Thiago Jung Bauermann <[email protected]>
[binutils.git] / gdb / python / python.c
index 8bc24c275ef64a4e4f1d23edc95e24b5b5856edd..77d8774ed6f94a63620da17e9893019a82247cd6 100644 (file)
@@ -52,6 +52,8 @@ static PyObject *gdbpy_flush (PyObject *, PyObject *);
 
 static PyMethodDef GdbMethods[] =
 {
+  { "get_value_from_history", gdbpy_get_value_from_history, METH_VARARGS,
+    "Get a value from history" },
   { "execute", execute_gdb_command, METH_VARARGS,
     "Execute a gdb command" },
   { "get_parameter", get_parameter, METH_VARARGS,
@@ -398,6 +400,8 @@ Enables or disables printing of Python stack traces."),
   PyModule_AddStringConstant (gdb_module, "HOST_CONFIG", (char*) host_name);
   PyModule_AddStringConstant (gdb_module, "TARGET_CONFIG", (char*) target_name);
 
+  gdbpy_initialize_values ();
+
   PyRun_SimpleString ("import gdb");
 
   /* Create a couple objects which are used for Python's stdout and
This page took 0.025486 seconds and 4 git commands to generate.