diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad7b993..3993491 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-04-16 Simon Marchi <simon.marchi@ericsson.com> + + * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data + instead of nullptr. + 2018-04-16 Pedro Alves <palves@redhat.com> * MAINTAINERS (sh): Remove. diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 552a2a4..24bfd74 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1426,7 +1426,7 @@ linux_spu_make_corefile_notes (bfd *obfd, char *note_data, int *note_size) spu_ids = target_read_alloc (¤t_target, TARGET_OBJECT_SPU, NULL); if (!spu_ids) - return nullptr; + return note_data; /* Generate corefile notes for each SPU file. */ for (size_t i = 0; i < spu_ids->size (); i += 4) |