public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "asn at samba dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug dap/31217] dap throws exception when trying to rerun session
Date: Tue, 09 Jan 2024 21:20:03 +0000	[thread overview]
Message-ID: <bug-31217-4717-jwY45eFXR2@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31217-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31217

--- Comment #6 from Andreas Schneider <asn at samba dot org> ---
Created attachment 15292
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15292&action=edit
dap.tar.gz reproducer

Unpack the dap.tar.gz

There is a a.out in .repro/ for x86_64, but you can compile the test.c if you
want with: gcc -ggdb test.c

Open the file:
nvim -u repro.lua .repro/test.c

* Once in neovim
* Go to line 6
* Press F2 (sets breakpoint, you will get a 'B' before the line)
* Press F3 (opens dap UI)
* Press F5
* Select 2
* Path to executable: Point to .repro/a.out
* Argruments: wurst brot

Now you see the a '->' instead of a 'B' in line 6. The debugger started and
stopped at the line. lAso the UI should show the scope and the stack etc.

Now press F10 to restart the session. The repl window will show the python
backtrace. Logs are going to /tmp/gdb-dap.log.

F12 terminates the debugging session.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-01-09 21:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-06 16:02 [Bug dap/31217] New: " asn at samba dot org
2024-01-08 23:23 ` [Bug dap/31217] " tromey at sourceware dot org
2024-01-09  8:07 ` asn at samba dot org
2024-01-09  8:08 ` asn at samba dot org
2024-01-09 17:02 ` tromey at sourceware dot org
2024-01-09 20:36 ` asn at samba dot org
2024-01-09 21:20 ` asn at samba dot org [this message]
2024-01-10 19:01 ` tromey at sourceware dot org
2024-01-10 20:09 ` tromey at sourceware dot org
2024-01-22 16:00 ` cvs-commit at gcc dot gnu.org
2024-01-22 16:00 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31217-4717-jwY45eFXR2@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).