diff options
author | Tom Tromey <tromey@redhat.com> | 2011-05-19 18:41:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-05-19 18:41:23 +0000 |
commit | 310afc7652840720425db2d76613db9b2baf47f6 (patch) | |
tree | d1829c727dcf4e29dcb1223434edb3202f058e2d /gdb/python/py-inferior.c | |
parent | cf6c5ffb4c56af6137a19a494b1a4f0cfb9b4258 (diff) | |
download | gdb-310afc7652840720425db2d76613db9b2baf47f6.zip gdb-310afc7652840720425db2d76613db9b2baf47f6.tar.gz gdb-310afc7652840720425db2d76613db9b2baf47f6.tar.bz2 |
* python/py-inferior.c (python_inferior_exit): Use
target_gdbarch.
(python_on_resume): Likewise.
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index b9df394..45f5f04 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -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); |