From 6f62c61bb427525c05396b475eea3b424a68bf6f Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Wed, 2 Feb 2022 09:45:14 -0800 Subject: [PATCH 1/4] Update changelog. (#8754) * Update changelog. --- Extension/CHANGELOG.md | 6 +++++- Extension/package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index 03b9fd5647..2a6e6199f3 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -2,6 +2,7 @@ ## Version 1.8.2: January 31, 2022 ### New Features +* Add data breakpoints (memory read/write interrupts) with `gdb` debugging. [#1410](https://github.com/microsoft/vscode-cpptools/issues/1410) * Add "All Exceptions" Breakpoint for cppdbg [#1800](https://github.com/microsoft/vscode-cpptools/issues/1800) * Add multi-threaded code analysis (using `clang-tidy`) based on the IntelliSense configuration. It defaults to using up to half the cores, but it can be changed via the `C_Cpp.codeAnalysis.maxConcurrentThreads` setting. [#2908](https://github.com/microsoft/vscode-cpptools/issues/2908). * Add support for Alpine Linux [#4827](https://github.com/microsoft/vscode-cpptools/issues/4827) @@ -19,6 +20,7 @@ ### Bug Fixes * Fix several IntelliSense bugs. [#5704](https://github.com/microsoft/vscode-cpptools/issues/5704), [#6759](https://github.com/microsoft/vscode-cpptools/issues/6759), [#8412](https://github.com/microsoft/vscode-cpptools/issues/8412), [#8434](https://github.com/microsoft/vscode-cpptools/issues/8434) * Fix newlines not being handled in comments with a Doxygen tag. [#5741](https://github.com/microsoft/vscode-cpptools/issues/5741) +* Fix Doxygen comments with `\0` being truncated. [#6084](https://github.com/microsoft/vscode-cpptools/issues/6084) * Fix `files.exclude` not working for directories external to the active workspace folder. [#6877](https://github.com/microsoft/vscode-cpptools/issues/6877) * Fix [MSYS2 GDB 10.2] gdb: ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process [#7706](https://github.com/microsoft/vscode-cpptools/issues/7706) * Fix a bug with vcFormat inserting additional spaces between `}` and `else`. [#7731](https://github.com/microsoft/vscode-cpptools/issues/7731) @@ -34,6 +36,7 @@ * Fix the tag parser getting stuck on certain code. [#8459](https://github.com/microsoft/vscode-cpptools/issues/8459) * Fix an invalid success message when a build task fails. [#8467](https://github.com/microsoft/vscode-cpptools/issues/8467) * Fix compiler querying with certain Cygwin/MSYS2 compilers on Windows. [#8496](https://github.com/microsoft/vscode-cpptools/issues/8496) +* Fix a bug with conditional breakpoints. [#8515](https://github.com/microsoft/vscode-cpptools/issues/8515) * Fix non-ASCII output with `cppbuild` tasks. [#8518](https://github.com/microsoft/vscode-cpptools/issues/8518) * Fix 3 settings not getting environment variables resolved after a settings change. [#8531](https://github.com/microsoft/vscode-cpptools/issues/8531) * Don't block running a task if it doesn't use the active file. [#8586](https://github.com/microsoft/vscode-cpptools/issues/8586) @@ -42,7 +45,8 @@ * Fix workspace rescanning (tag parsing) not automatically happening after c/cpp associations are added to `files.associations`. [#8687](https://github.com/microsoft/vscode-cpptools/issues/8687) * Fix debugging when Windows binaries are linked with /PDBPageSize > 4k. [#8690](https://github.com/microsoft/vscode-cpptools/issues/8690) * Switch usage of `-dD` to `-dM` when compiler querying. [#8692](https://github.com/microsoft/vscode-cpptools/issues/8692) -* Fix no document symbols appearing in certain cases. [#8276](https://github.com/microsoft/vscode-cpptools/issues/8726) +* Fix breakpoints with msys2 gcc. [#8696](https://github.com/microsoft/vscode-cpptools/issues/8696) +* Fix no document symbols appearing in certain cases. [#8726](https://github.com/microsoft/vscode-cpptools/issues/8726) * Fix an issue in which multiple (potentially different) diagnostics were delivered for headers shared by multiple TUs. * Fix some translations. diff --git a/Extension/package.json b/Extension/package.json index d3253b0ef3..255ab32e88 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -2,7 +2,7 @@ "name": "cpptools", "displayName": "C/C++", "description": "C/C++ IntelliSense, debugging, and code browsing.", - "version": "1.7.1-main", + "version": "1.8.2-main", "publisher": "ms-vscode", "icon": "LanguageCCPP_color_128x.png", "readme": "README.md", From bcd6c9ef50622f07524224b84057a78ddae93a0b Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Tue, 1 Feb 2022 16:58:31 -0800 Subject: [PATCH 2/4] Suppress incorrect warnings on Mac M1 (#8757) --- Extension/src/main.ts | 15 ++++++++++----- Extension/src/platform.ts | 7 +------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Extension/src/main.ts b/Extension/src/main.ts index 499f34c3a7..414c146771 100644 --- a/Extension/src/main.ts +++ b/Extension/src/main.ts @@ -107,13 +107,18 @@ async function makeBinariesExecutable(): Promise { commonBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); if (process.platform === "darwin") { const macBinaries: string[] = [ - "./debugAdapters/lldb-mi/bin/lldb-mi", - "./debugAdapters/lldb/bin/debugserver", - "./debugAdapters/lldb/bin/lldb-mi", - "./debugAdapters/lldb/bin/lldb-argdumper", - "./debugAdapters/lldb/bin/lldb-launcher" + "./debugAdapters/lldb-mi/bin/lldb-mi" ]; macBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); + if (os.arch() === "x64") { + const oldMacBinaries: string[] = [ + "./debugAdapters/lldb/bin/debugserver", + "./debugAdapters/lldb/bin/lldb-mi", + "./debugAdapters/lldb/bin/lldb-argdumper", + "./debugAdapters/lldb/bin/lldb-launcher" + ]; + oldMacBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); + } } } await Promise.all(promises); diff --git a/Extension/src/platform.ts b/Extension/src/platform.ts index 48915c0ca1..b72ebfe2be 100644 --- a/Extension/src/platform.ts +++ b/Extension/src/platform.ts @@ -49,7 +49,6 @@ export class PlatformInformation { public static GetArchitecture(): string { const arch: string = os.arch(); switch (arch) { - case "x64": case "arm64": case "arm": return arch; @@ -57,11 +56,7 @@ export class PlatformInformation { case "ia32": return "x86"; default: - if (os.platform() === "win32") { - return "x86"; - } else { - return "x64"; - } + return "x64"; } } From 1613298710d4826e17e73315038d7c1c408f28fc Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Thu, 3 Feb 2022 12:00:07 -0800 Subject: [PATCH 3/4] Remove offline installation from ReadMes. (#8769) --- Extension/README.md | 19 ++----------------- README.md | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/Extension/README.md b/Extension/README.md index 68daffca83..9cc9aeb5bc 100644 --- a/Extension/README.md +++ b/Extension/README.md @@ -1,6 +1,6 @@ # C/C++ for Visual Studio Code -#### [Repository](https://github.com/microsoft/vscode-cpptools)  |  [Issues](https://github.com/microsoft/vscode-cpptools/issues)  |  [Documentation](https://code.visualstudio.com/docs/languages/cpp)  |  [Code Samples](https://github.com/microsoft/vscode-cpptools/tree/main/Code%20Samples)  |  [Offline Installers](https://github.com/microsoft/vscode-cpptools/releases) +#### [Repository](https://github.com/microsoft/vscode-cpptools)  |  [Issues](https://github.com/microsoft/vscode-cpptools/issues)  |  [Documentation](https://code.visualstudio.com/docs/languages/cpp)  |  [Code Samples](https://github.com/microsoft/vscode-cpptools/tree/main/Code%20Samples) [![Badge](https://aka.ms/vsls-badge)](https://aka.ms/vsls) @@ -45,21 +45,6 @@ If someone has already filed an issue that encompasses your feedback, please lea
Let us know what you think of the extension by taking the quick survey. -## Offline installation - -The extension has platform-specific binary dependencies, therefore installation via the Marketplace requires an Internet connection in order to download additional dependencies. If you are working on a computer that does not have access to the Internet or is behind a strict firewall, you may need to use our platform-specific packages and install them by running VS Code's `"Install from VSIX..."` command. These "offline' packages are available at: https://github.com/Microsoft/vscode-cpptools/releases. - - Package | Platform -:--- | :--- -`cpptools-linux.vsix` | Linux 64-bit -`cpptools-linux-armhf.vsix` | Linux ARM 32-bit -`cpptools-linux-aarch64.vsix` | Linux ARM 64-bit -`cpptools-osx.vsix` | macOS 64-bit -`cpptools-osx-arm64.vsix` | macOS ARM64 -`cpptools-win32.vsix` | Windows 64-bit & 32-bit -`cpptools-win-arm64.vsix` | Windows ARM64 -`cpptools-linux32.vsix` | Linux 32-bit ([available up to version 0.27.0](https://github.com/microsoft/vscode-cpptools/issues/5346)) - ## Contribution Contributions are always welcome. Please see our [contributing guide](CONTRIBUTING.md) for more details. @@ -70,4 +55,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope ## Data and telemetry -This extension collects usage data and sends it to Microsoft to help improve our products and services. Collection of telemetry is controlled via the same setting provided by Visual Studio Code: `"telemetry.enableTelemetry"`. Read our [privacy statement](https://privacy.microsoft.com/en-us/privacystatement) to learn more. \ No newline at end of file +This extension collects usage data and sends it to Microsoft to help improve our products and services. Collection of telemetry is controlled via the same setting provided by Visual Studio Code: `"telemetry.enableTelemetry"`. Read our [privacy statement](https://privacy.microsoft.com/en-us/privacystatement) to learn more. diff --git a/README.md b/README.md index 431ce7770d..9cc9aeb5bc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # C/C++ for Visual Studio Code -#### [Repository](https://github.com/microsoft/vscode-cpptools)  |  [Issues](https://github.com/microsoft/vscode-cpptools/issues)  |  [Documentation](https://code.visualstudio.com/docs/languages/cpp)  |  [Code Samples](https://github.com/microsoft/vscode-cpptools/tree/main/Code%20Samples)  |  [Offline Installers](https://github.com/microsoft/vscode-cpptools/releases) +#### [Repository](https://github.com/microsoft/vscode-cpptools)  |  [Issues](https://github.com/microsoft/vscode-cpptools/issues)  |  [Documentation](https://code.visualstudio.com/docs/languages/cpp)  |  [Code Samples](https://github.com/microsoft/vscode-cpptools/tree/main/Code%20Samples) [![Badge](https://aka.ms/vsls-badge)](https://aka.ms/vsls) From 025ab76ca60fdf16cafb2895fc4a8df2af18cd09 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Fri, 4 Feb 2022 16:28:57 -0800 Subject: [PATCH 4/4] Update changelog for 1.8.4 (#8778) --- Extension/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index 2a6e6199f3..3f99973ae2 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -1,5 +1,12 @@ # C/C++ for Visual Studio Code Change Log +## Version 1.8.4: February 7, 2022 +### Bug Fixes +* Suppress incorrect warnings on ARM64 macOS. [#8756](https://github.com/microsoft/vscode-cpptools/issues/8756) +* Fix debugger regressions. [#8760](https://github.com/microsoft/vscode-cpptools/issues/8760) +* Remove `Offline Installation` section from README.md. [#8769](https://github.com/microsoft/vscode-cpptools/pull/8769) +* Fix performance issue with loading large PDBs. [#8775](https://github.com/microsoft/vscode-cpptools/issues/8775) + ## Version 1.8.2: January 31, 2022 ### New Features * Add data breakpoints (memory read/write interrupts) with `gdb` debugging. [#1410](https://github.com/microsoft/vscode-cpptools/issues/1410)