diff options
author | Tom de Vries <tdevries@suse.de> | 2022-08-07 16:03:00 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-08-07 16:03:00 +0200 |
commit | 411c7e044fa99089d3030f2c61525c4d415f7b45 (patch) | |
tree | 00a07d232628a0bed533e1d87dfc2ce7bdf15eb2 /gdb/f-lang.c | |
parent | c7cd10637c40a72564bc813f3f16a4ba4b13d21b (diff) | |
download | gdb-411c7e044fa99089d3030f2c61525c4d415f7b45.zip gdb-411c7e044fa99089d3030f2c61525c4d415f7b45.tar.gz gdb-411c7e044fa99089d3030f2c61525c4d415f7b45.tar.bz2 |
[gdb/build] Fix build with gcc 4.8.5
When building with gcc 4.8.5, I run into:
...
user-regs.c:85:1: error: could not convert \
‘{0l, (& builtin_user_regs.gdb_user_regs::first)}’ from \
‘<brace-enclosed initializer list>’ to ‘gdb_user_regs’
};
^
...
Fix this by removing the initialization and handling regs.last == nullptr in
append_user_reg.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/f-lang.c')
0 files changed, 0 insertions, 0 deletions