From f8076dd069fd25aa47e8a3f71a2fae48513e56d2 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 16 Mar 2023 18:11:05 +0800 Subject: [PATCH] - fix: None initialized std::vector is not correctly displayed in the gdb of the gcc distributed with redpanda-c++ (Windows 64bit). --- NEWS.md | 1 + RedPandaIDE/mainwindow.cpp | 2 +- packages/msys/build-x64.sh | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index c62d08da..63b4635f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -17,6 +17,7 @@ Red Panda C++ Version 2.18 - fix: The comboxbox to input address expression in the debug panel's memory view is case insensitive. - fix: The comboxbox to input evaluation expression in the debug panel is case insensitive. - fix: The comboxbox to input replace text in the search panel is case insensitive. + - fix: None initialized std::vector is not correctly displayed in the gdb of the gcc distributed with redpanda-c++ (Windows 64bit). Red Panda C++ Version 2.17 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 198da6ed..1d2521db 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2395,7 +2395,7 @@ void MainWindow::debug() mDebugger->sendCommand("-gdb-set", "width 0"); // don't wrap output, very annoying mDebugger->sendCommand("-gdb-set", "confirm off"); mDebugger->sendCommand("-gdb-set", "print repeats 0"); // don't repeat elements - mDebugger->sendCommand("-gdb-set", "print elements 0"); // don't limit elements + mDebugger->sendCommand("-gdb-set", "print elements 500"); // limit array elements to 500 mDebugger->sendCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(filePath))); // restore working directory if (pSettings->debugger().useGDBServer()) { mDebugger->sendCommand("-target-select",QString("remote localhost:%1").arg(pSettings->debugger().GDBServerPort())); diff --git a/packages/msys/build-x64.sh b/packages/msys/build-x64.sh index b4bc0fea..8fdb7db1 100644 --- a/packages/msys/build-x64.sh +++ b/packages/msys/build-x64.sh @@ -59,7 +59,9 @@ echo "Making installer..." pushd . cd "${PACKAGE_DIR}" -ln -s "${MINGW}" $MinGW_NAME +cp -a "${MINGW}" . +rm -rf "${MINGW_NAME}/share/gcc-11.2.0" +cp -a "${SOURCE_DIR}/tools/gdb-scripts/gcc-11.2.0" "${MINGW_NAME}/share" cp "${SOURCE_DIR}/platform/windows/installer-scripts/lang.nsh" . cp "${SOURCE_DIR}/platform/windows/installer-scripts/redpanda-x64.nsi" .