public inbox for
 help / color / mirror / Atom feed
From: "Denio, Mike" <>
To: Luis Machado <>,
	"" <>
Subject: Re: Step causes GDB to spin in infinite loop when PC doesn't change
Date: Fri, 18 Mar 2022 17:33:42 +0000	[thread overview]
Message-ID: <> (raw)

That's what the step/next commands are designed to do. GDB will keep 
stepping until it sees a line change. I suppose a "continue" command 
here would be more appropriate, as GDB will send it once and keep 
waiting for the outcome. stepi/nexti would be undesirable given they 
will stop after a single instruction.

Thanks that makes some level of sense. Stepi also works fine. It just seemed a little odd that the desired behavior would be to lock up GDB if a user accidentally did a "step" on a jump to $ instruction. You can't even get out with ^C. I had to kill the debug server to regain control of GDB.

             reply	other threads:[~2022-03-18 17:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-18 17:33 Denio, Mike [this message]
2022-03-18 17:46 ` Luis Machado
  -- strict thread matches above, loose matches on Subject: below --
2022-03-18 17:57 Denio, Mike
2022-03-18 18:39 ` Pedro Alves
     [not found] ` <>
2022-03-18 20:57   ` Denio, Mike
2022-03-18 16:33 Denio, Mike
2022-03-18 17:28 ` Luis Machado

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:

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

  git send-email \ \ \ \ \

* 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).