question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add "cortex-debug.objdumpPath" option to settings.json

See original GitHub issue

Context

I am working on a project that uses the xPack package system to install the arm-gcc-none-eabi toolchain. xPack creates shims to the executable files (see https://xpack.github.io/).

Current functionality

For vscode on Windows, I have to specify the extensions .cmd for any vscode extension to correctly use the arm binary tools (e.g. ms-vscode.makefile-tools and marus25.cortex-debug).

In coretex-debug, the gdb path can be set using the option:

"cortex-debug.gdbPath.windows": "${workspaceFolder}/xpacks/.bin/arm-none-eabi-gdb.cmd"

This option works as expected.

Current problem

Without the ability to set the arm-none-eabi-objdump path, the coretex-debug extension is unable to populate the static and global variables in a debug session.

Manual fix

Copying arm-none-eabi-objdump.exe into the path specified in cortex-debug.armToolchainPath resolved the issue. This is not ideal as the project installation will no longer be automated.

Requested functionality

Would it be possible to add the option cortex-debug.objdumpPath to settings.json (and launch.json)? This would serve as a companion to the already existing cortex-debug.gdbPath option.

For my project, the option would take the value:

"cortex-debug.objdumpPath.windows": "${workspaceFolder}/xpacks/.bin/arm-none-eabi-objdump.cmd",

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
PhilippHaefelecommented, Jan 12, 2022

According to latetst changelog (prerelease version V1.1.8) this is fixed

Feature: you can now customize the objdumpPath like you can the gdbPath you your settings or in launch.json

0reactions
haneefdmcommented, Jan 16, 2022

Welcome. Keep up the good work. I see a few people using xPack (when they submit issues with their launch.json).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code for C/C++ with ARM Cortex-M: Part 4
In this article I show how to debug an ARM Cortex (M4F, NXP K22FN512) microcontroller with the Microsoft Visual Studio Code.
Read more >
EmSys:VSCode Cortex-Debug Launch Configurations - EdWiki
VSCode Cortex-Debug Launch Configurations · Open the VSCode user settings file settings.json: File → Preferences → Settings · Select User ...
Read more >
objdump (GNU Binary Utilities) - sourceware.org
Display debugging information. This attempts to parse STABS debugging format information stored in the file and print it out using a C like...
Read more >
onBackendConnect: gdb-server program client error Error ...
Added GDB from MSys2 to PATH; Set up Visual Studio Code like described in getting-started-with-pico (launch.json & settings.json); Modified the ...
Read more >
Debug not working in Visual Studio Code - Nordic Q&A
But that did not work. I also tried creating .vscode/settings.json with the following contents: {. "cortex-debug ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found