This is the mail archive of the gdb-testers@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] windows-nat.c: Fix bad initialization of ptid


*** TEST RESULTS FOR COMMIT 8473b4472dce9ce87aaad35ff8e975e1487f914e ***

Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: 8473b4472dce9ce87aaad35ff8e975e1487f914e

windows-nat.c: Fix bad initialization of ptid

When trying to build for x86_64-w64-mingw32:

/home/simark/src/binutils-gdb/gdb/windows-nat.c: In function void windows_detach(target_ops*, const char*, int):
/home/simark/src/binutils-gdb/gdb/windows-nat.c:1915:20: error: converting to ptid_t from initializer list would use explicit constructor constexpr ptid_t::ptid_t(int, long int, long int)
   ptid_t ptid = {-1};
                    ^
Fixed by initializing ptid with the minus_one_ptid variable.

gdb/ChangeLog:

	* windows-nat.c (windows_detach): Initialize ptid with
	minus_one_ptid.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]