public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrey Butirsky <butirsky@gmail.com>
To: gdb@sourceware.org
Subject: can't 'continue' after 'next' in breakpoint's commands/end block
Date: Thu, 10 Jun 2021 19:44:44 +0300	[thread overview]
Message-ID: <d985ac4b-40c3-6c5c-a253-d0e2a9144967@gmail.com> (raw)

Hello, I'm trying to debug KWin window manager,
to not halt the session it can't be paused so I created such script to
trace function calls:

$ cat ~/kde/gdb-x
set pagination off

break KGlobalAccelImpl::x11KeyPress(xcb_key_press_event_t*) 
break TabBox::keyPress(int )
break /home/bam/kde/src/kde/workspace/kwin/src/tabbox/tabbox.cpp:555

commands 1-20
# FIXME: for some reason KWin halts on any stepping command here, ideas?
#next
continue
end

continue &

I'm attaching to a KWin process such way:

gdb attach $(pidof kwin_wayland) -x ~/kde/gdb-x

The problem is I can't insert next/step and such commands in the
breakpoint's 'commands' block - the process halts just after the 'next'
there despite the presence of 'continue' command afterward.

So I need to switch to another VT and kill gdb process to bring my
session back.

I'm not quite understand why it happens and what I can do with it. Any
ideas?

             reply	other threads:[~2021-06-10 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10 16:44 Andrey Butirsky [this message]
2021-06-11  8:07 ` Aktemur, Tankut Baris

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=d985ac4b-40c3-6c5c-a253-d0e2a9144967@gmail.com \
    --to=butirsky@gmail.com \
    --cc=gdb@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).