Skip to content

Not all GDB errors are shown in the debug console? #239

Closed
@GitMensch

Description

@GitMensch

I've wondered why a launch configuration did not work, and only after "openGdbConsole": true, was enabled I've seen it there: "symbol lookup error: undefined symbol" (there was a bad .so in LD_LIBRARY_PATH).

Any idea why this was not reported by the debug adapter to the ui?`

To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":true}
From client: setFunctionBreakpoints({"breakpoints":[]})
GDB command: 5 -break-list
GDB result: 5 done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
To client: {"seq":0,"type":"response","request_seq":3,"command":"setFunctionBreakpoints","success":true,"body":{"breakpoints":[]}}
From client: setExceptionBreakpoints({"filters":[]})
To client: {"seq":0,"type":"response","request_seq":4,"command":"setExceptionBreakpoints","success":true}
From client: configurationDone({})
GDB command: 6 -exec-run
GDB notify async: thread-group-started,id="i1",pid="23213"
GDB notify async: thread-created,id="1",group-id="i1"
GDB notify async: library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7fd3090",to="0x00007ffff7ff22a0"}]
GDB result: 6 running
GDB exec async: running,thread-id="all"
To client: {"seq":0,"type":"response","request_seq":5,"command":"configurationDone","success":true}
From client: threads({})
To client: {"seq":0,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[{"id":1,"name":"1","running":true}]}}
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"[Inferior 1 (process 23213) exited with code 0177]\n"}}
[Inferior 1 (process 23213) exited with code 0177]
GDB notify async: thread-exited,id="1",group-id="i1"
GDB notify async: thread-group-exited,id="i1",exit-code="0177"
GDB exec async: stopped,reason="exited",exit-code="0177"
From client: stackTrace({"startFrame":0,"levels":20,"threadId":1})
GDB command: 7 -stack-info-depth --thread 1 100
GDB result: 7 error,msg="Thread id: 1 has terminated"
To client: {"seq":0,"type":"response","request_seq":7,"command":"stackTrace","success":false,"message":"Thread id: 1 has terminated","body":{"error":{"id":1,"format":"Thread id: 1 has terminated","showUser":true}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions