From: Tom Tromey Date: Thu, 19 May 2011 18:41:23 +0000 (+0000) Subject: * python/py-inferior.c (python_inferior_exit): Use X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=310afc7652840720425db2d76613db9b2baf47f6;p=binutils-gdb.git * python/py-inferior.c (python_inferior_exit): Use target_gdbarch. (python_on_resume): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d822f3b1732..ea50c1a2395 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-05-19 Tom Tromey + + * python/py-inferior.c (python_inferior_exit): Use + target_gdbarch. + (python_on_resume): Likewise. + 2011-05-19 Matt Rice * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index b9df394cc9c..45f5f04c07e 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);