X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fpython%2Fpy-inferior.c;h=8acf87b187eca79648a4e5f3d825ecb5b938059a;hb=f5656eadf4383cc733b96ff49ba8efbea6922ad3;hp=211a643ddaed1d4ecf3b3a31a4934941bcc7bc37;hpb=0420f52b9441ae498323d1656d5d2af66a1e13c7;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 211a643dda..8acf87b187 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -101,7 +101,7 @@ python_on_resume (ptid_t ptid) { struct cleanup *cleanup; - cleanup = ensure_python_env (target_gdbarch, current_language); + cleanup = ensure_python_env (target_gdbarch (), current_language); if (emit_continue_event (ptid) < 0) gdbpy_print_stack (); @@ -115,7 +115,7 @@ python_inferior_exit (struct inferior *inf) struct cleanup *cleanup; const LONGEST *exit_code = NULL; - cleanup = ensure_python_env (target_gdbarch, current_language); + cleanup = ensure_python_env (target_gdbarch (), current_language); if (inf->has_exit_code) exit_code = &inf->exit_code;