head 1.3; access; symbols pkgsrc-2026Q3:1.3.0.2 pkgsrc-2026Q3-base:1.3 pkgsrc-2026Q2:1.2.0.50 pkgsrc-2026Q2-base:1.2 pkgsrc-2026Q1:1.2.0.48 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.46 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.44 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.42 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.40 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.38 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.36 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.34 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.32 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.30 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.28 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.26 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.24 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.22 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.20 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.18 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.16 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.14 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.12 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.10 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.8 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.6 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.4 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.2 pkgsrc-2020Q2-base:1.2; locks; strict; comment @// @; 1.3 date 2026.09.15.08.59.37; author wiz; state Exp; branches; next 1.2; commitid 8IGNXaFZ4xsZfHVG; 1.2 date 2020.05.31.14.11.42; author mef; state Exp; branches; next 1.1; commitid 1z8LPsZ984ZUQoaC; 1.1 date 2020.05.26.11.28.50; author joerg; state Exp; branches; next ; commitid A8mu2nUQUgCY6K9C; desc @@ 1.3 log @simulavr: fix build with compilers defaulting to c++17 They have std::byte in the namespace (due to 'using namespace std), which conflicts with the local byte typedef. Bump PKGREVISION. @ text @$NetBSD: patch-src_cmd_gdbserver.cpp,v 1.2 2020/05/31 14:11:42 mef Exp $ Avoid 'using namespace std'. This introduces a conflict between std::byte and the local typedef. Use BSD bind, not STL bind. --- src/cmd/gdbserver.cpp.orig 2012-02-12 15:26:38.000000000 +0000 +++ src/cmd/gdbserver.cpp @@@@ -24,7 +24,6 @@@@ */ #include -using namespace std; #include #include @@@@ -183,7 +182,7 @@@@ GdbServerSocketUnix::GdbServerSocketUnix(int port) { address->sin_port = htons(port); memset(&address->sin_addr, 0, sizeof(address->sin_addr)); - if(bind(sock, (struct sockaddr *)address, sizeof(address))) + if(::bind(sock, (struct sockaddr *)address, sizeof(address))) avr_error("Can not bind socket: %s", strerror(errno)); if(listen(sock, 1) < 0) @@@@ -310,7 +309,7 @@@@ GdbServer::GdbServer(AvrDevice *c, int _port, int debu } //make the instance of static list of all gdb servers here -vector GdbServer::allGdbServers; +std::vector GdbServer::allGdbServers; GdbServer::~GdbServer() { server->Close(); @@@@ -1439,7 +1438,7 @@@@ void GdbServer::IdleStep() { void GdbServer::IdleStep() { int gdbRet=gdb_receive_and_process_packet(GDB_BLOCKING_OFF); - cout << "IdleStep Instance" << this << " RunMode:" << dec << runMode << endl; + std::cout << "IdleStep Instance" << this << " RunMode:" << std::dec << runMode << std::endl; if (lastCoreStepFinished) { switch(gdbRet) { @@@@ -1459,7 +1458,7 @@@@ void GdbServer::IdleStep() { break; default: - cout << "wondering" << endl; + std::cout << "wondering" << std::endl; } } } @@@@ -1516,7 +1515,7 @@@@ int GdbServer::InternalStep(bool &untilCoreStepFinishe if(!leave) { //we can�t leave the loop so we have to request the other gdb instances now! // step through all gdblist members WITHOUT my self! //cout << "we do not leave and check for gdb events" << endl; - vector::iterator ii; + std::vector::iterator ii; for (ii=allGdbServers.begin(); ii!=allGdbServers.end(); ii++) { if (*ii!=this) { //run other instances but not me (*ii)->IdleStep(); @ 1.2 log @(emulators/simulavr) long standing no regen on patch, and resulting SUBST issue. Fix them (I hope) @ text @d1 4 a4 1 $NetBSD: patch-src_cmd_gdbserver.cpp,v 1.1 2020/05/26 11:28:50 joerg Exp $ d8 1 a8 1 --- src/cmd/gdbserver.cpp.orig 2020-05-26 01:36:49.070961229 +0000 d10 9 a18 1 @@@@ -183,7 +183,7 @@@@ GdbServerSocketUnix::GdbServerSocketUnix d27 36 @ 1.1 log @Use BSD bind, not STL bind. @ text @d1 3 a3 1 $NetBSD$ @