This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] xtensa: Properly strdup string when building reggroup
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 15 Aug 2017 17:46:40 -0400
- Subject: [binutils-gdb] xtensa: Properly strdup string when building reggroup
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 9c3cc99930a08934e16b630e92a0d285a434f228 ***
Author: Stafford Horne <shorne@gmail.com>
Branch: master
Commit: 9c3cc99930a08934e16b630e92a0d285a434f228
xtensa: Properly strdup string when building reggroup
I noticed this while looking at the reggroup intializations. It seems
for xtensa the "cpN" reggroup->name is getting assigned to the same text
pointer for each iteration of XTENSA_MAX_COPROCESSOR.
Note, internally reggroup_new() does not do any xstrdup().
gdb/ChangeLog:
2017-08-15 Stafford Horne <shorne@gmail.com>
* xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.