aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2024-08-20 09:38:16 +0200
committerFelix Willgerodt <felix.willgerodt@intel.com>2024-08-26 09:06:42 +0200
commit387f97a1b24e968e06dd62f91a26eb0a883fff58 (patch)
treeea5848b00e4877045e232d8e9b5331dd0c4a6e48 /bfd
parentdb856d41004301b3a56438efd957ef5cabb91530 (diff)
downloadgdb-387f97a1b24e968e06dd62f91a26eb0a883fff58.zip
gdb-387f97a1b24e968e06dd62f91a26eb0a883fff58.tar.gz
gdb-387f97a1b24e968e06dd62f91a26eb0a883fff58.tar.bz2
gdb, btrace: Fix clang build
Simon pointed out to me that there are some failures when building with clang, that were caused by my commit commit d894edfcc40e63be9b6efa0950c1752f249f16e5 Author: Felix Willgerodt <felix.willgerodt@intel.com> Date: Mon Feb 18 13:49:25 2019 +0100 btrace: Introduce auxiliary instructions. The errors are: CXX btrace.o gdb/btrace.c:1203:11: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 1203 | return {(CORE_ADDR) insn.ip, (gdb_byte) insn.size, | ^~~~~~~~~~~~~~~~~~~ | { } gdb/btrace.c:1218:21: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 1218 | btrace_insn insn {btinfo->aux_data.size () - 1, 0, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } gdb/btrace.c:1323:34: error: variable 'bfun' is uninitialized when used here [-Werror,-Wuninitialized] 1323 | handle_pt_aux_insn (btinfo, bfun, *ptw_string, pc); | ^~~~ gdb/btrace.c:1236:35: note: initialize the variable 'bfun' to silence this warning 1236 | struct btrace_function *bfun; | ^ | = nullptr 3 errors generated. make[1]: *** [Makefile:1961: btrace.o] Error 1 This fixes those errors and switches two casts to C++ casts while we are at it. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions