]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* python/py-inferior.c (python_inferior_exit): Use
authorTom Tromey <tromey@redhat.com>
Thu, 19 May 2011 18:41:23 +0000 (18:41 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 19 May 2011 18:41:23 +0000 (18:41 +0000)
target_gdbarch.
(python_on_resume): Likewise.

gdb/ChangeLog
gdb/python/py-inferior.c

index d822f3b17329f74645d40281b8949da4d5e63e98..ea50c1a23952c8063210193cfd69875a8be98878 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-19  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-inferior.c (python_inferior_exit): Use
+       target_gdbarch.
+       (python_on_resume): Likewise.
+
 2011-05-19  Matt Rice  <ratmice@gmail.com>
 
         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
index b9df394cc9c26eea71c36a7fd49a56ab88787c2a..45f5f04c07e365ecc694aa08640a559a25f50856 100644 (file)
@@ -100,7 +100,7 @@ python_on_resume (ptid_t ptid)
 {
   struct cleanup *cleanup;
 
-  cleanup = ensure_python_env (get_current_arch (), current_language);
+  cleanup = ensure_python_env (target_gdbarch, current_language);
 
   if (emit_continue_event (ptid) < 0)
     gdbpy_print_stack ();
@@ -116,7 +116,7 @@ python_inferior_exit (struct inferior *inf)
   ptid_t ptidp;
   struct target_waitstatus status;
 
-  cleanup = ensure_python_env (get_current_arch (), current_language);
+  cleanup = ensure_python_env (target_gdbarch, current_language);
 
   get_last_target_status (&ptidp, &status);