mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-07 12:30:32 +00:00
* python/py-progspace.c (py_free_pspace): Obtain arch another
way to avoid dereferencing a null pointer.
This commit is contained in:
parent
5f2302abf8
commit
b3422a0d89
@ -1,3 +1,8 @@
|
||||
2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
|
||||
|
||||
* python/py-progspace.c (py_free_pspace): Obtain arch another
|
||||
way to avoid dereferencing a null pointer.
|
||||
|
||||
2010-12-17 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* utils.c (do_my_cleanups): Comment fix-up.
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "progspace.h"
|
||||
#include "objfiles.h"
|
||||
#include "language.h"
|
||||
#include "arch-utils.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -134,9 +135,7 @@ py_free_pspace (struct program_space *pspace, void *datum)
|
||||
{
|
||||
struct cleanup *cleanup;
|
||||
pspace_object *object = datum;
|
||||
/* FIXME: What's the right way to get a program space's arch?
|
||||
There may be multiple. */
|
||||
struct gdbarch *arch = get_objfile_arch (pspace->symfile_object_file);
|
||||
struct gdbarch *arch = get_current_arch ();
|
||||
|
||||
cleanup = ensure_python_env (arch, current_language);
|
||||
object->pspace = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user