Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] GDB might send additional message on -stack-info-depth MI command
  • From: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
  • Date: Fri, 7 Oct 2022 17:34:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ICXyqCxacEr4+HVTS4NLUycbJQQ2iTQUzoHfyYJKCio=; b=hqtjGpmU5GRcYt0p6C4/U6nq8DyEq6ulNYH73R/9WEXacakT8c19hhc6vRDDVpQYjHtY7h5gOSO4YJn7Oge50rpVW8thxgTF8b02Oc25+BNfmXIBzSOHI7I8LPcp2irauNfbkqj2VsLdo1DWmck4lOatRsMP3052s5oIbJa6ZrLP+nsVq+Z4cRRGZX+E7Xne/WGbT43tgfcNWT43t5RbzLI+sEcKgxdRFeJBMCLUJ9XHy5i4Wz0FqlAtxIVHR33489nLSMMsIi81ywm6hc4obe/5MMlFbYuylM8UoAqAkJsNawKfX1ZCdLcMuhN0dKUCpg3Gf6PlcNw8GMXcHEybAg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cURq9lT7SFiKq5tUE68j4NLhrSP9b1B4GMjWf/S/XwAaF02ttAFUYgWwfxl8m1yOXIlNZVz5J7OG0QgYeDZJDb7NymJCzZw1Ac3RflubM+m3On6r5d4POhQ7eaAnW1px7PbB+r90OQvO0S+F8eB8V9p6tRyaLcpnXHXFPM1q4xy/cs5Dqz0yMBUM0DDkGqNsJr+WG/Qce4ZfywBNFRtubtSToOMShMV3fPdgbQgiqe6rWfeU3YYr4gafm1Z12+JK1Kgga6qOfZFMo7SNpSJqoc4pF+M/VJph1v05Tt9N8BlGXtjY//qyg44OHZawSbzrW74k4z0jJJqTMX07sqrSHA==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Enabled=true; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SetDate=2022-10-07T16:35:23Z; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Method=Privileged; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Name=cf8c7287-838c-46dd-b281-b1140229e67a; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SiteId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ActionId=380e6b7b-d7d2-4428-b357-f7bf4c66f3d2; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ContentBits=0
  • Thread-index: AdjabDvvIjGidQWERk+WE6L26xYQdQ==
  • Thread-topic: GDB might send additional message on -stack-info-depth MI command

Hello,

In recent version of GDB (https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60c90d8c6d4b8345b41ab6a0b4d5169d5f78edb3), it's now possible for the stack unwinding to give additional information about the state of the unwind. In some situations, the unwind will be successful, but part of the registers that has been unwinded will have unreliable content.
In CDT, there is a check if the stack unwind was successful or not and if the '-stack-info-depth' command fails, we would simply try again with the '-stack-list-frames' command.

When running the GDB client in command line mode, the warning/error message would be printed to stdout (or stderr). How should we do it in CDT? Open a message box? Any better suggestions?

Here is the code that currently falls back to the '-stack-list-frames' command: https://github.com/eclipse-cdt/cdt/blob/main/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java#L1106


Any pointers is much appreciated.

Kind regards,
Torbjörn


Back to the top