diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-04-16 16:47:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-04-16 16:47:06 -0400 |
commit | 07d28c777757148d13e429c4463da52cbb50d297 (patch) | |
tree | 760314f777b27ecaf7a08c419bfd98a5ed43012a /include | |
parent | e3a91079b5e5669567424d3b2f31b48b7b89ef72 (diff) | |
download | binutils-07d28c777757148d13e429c4463da52cbb50d297.zip binutils-07d28c777757148d13e429c4463da52cbb50d297.tar.gz binutils-07d28c777757148d13e429c4463da52cbb50d297.tar.bz2 |
linux_spu_make_corefile_notes: return note_data instead of nullptr
Since commit
9018be2 ("Make target_read_alloc & al return vectors")
the test gdb.threads/gcore-stale-thread.exp test results in UNSUPPORTED:
UNSUPPORTED: gdb.threads/gcore-stale-thread.exp: save a corefile
The problem is that the linux_spu_make_corefile_notes started returning
nullptr when reading TARGET_OBJECT_SPU fails. The previous (and proper)
behaviour is to return the note_data received as a parameter, so that
other functions may continue to append to this buffer.
With this patch, the test goes back to PASS.
gdb/ChangeLog:
* linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
instead of nullptr.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions