Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] GDB might send additional message on -stack-info-depth MI command

Hi Torbjörn,

Cool - thanks for getting your ST improvements back into GDB.

What does the MI trace look like in this case? In the case of a warning, I think we should avoid a pop-up. For an unrecoverable error pop-up is probably fine.

Here is my brainstorm idea:

In the warning case, perhaps a warning triangle in the ruler? Like when there is a problem with the breakpoint. The warning triangle can be on the "Debug Current Instruction Pointer" and/or "Debug Call Stack" markers? The advantage of putting it there is that it can have a hover with more information. Maybe having the warning on the call stack itself in the Debug view would be good too.

Does the warning give enough info to know which registers are (possibly?) incorrect? If so, maybe a warning overlay on the registers themselves?

Does the warning/error still come out to CLI when doing the MI command? That means that the Debugger Console view should show it too.

Sounds like a fun one!

Jonah


~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Fri, 7 Oct 2022 at 13:34, Torbjorn SVENSSON via cdt-dev <cdt-dev@xxxxxxxxxxx> wrote:
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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top