public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "k4lizen at proton dot me" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/31599] [gdb] setting breakpoint prevents value being from written to address via read
Date: Fri, 05 Apr 2024 16:17:27 +0000	[thread overview]
Message-ID: <bug-31599-4717-3ixsB7R0oD@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31599-4717@http.sourceware.org/bugzilla/>

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

--- Comment #3 from k4lizen <k4lizen at proton dot me> ---
(In reply to Tom Tromey from comment #2)
> > When a break point for 0x0804a060 is set (and enabled), the `read` call doesn't actually read the first byte of the input
> 
> I wonder what it returns and if it sets errno.

It sets eax to the number of bytes it read (and as if it actually read the
first byte, if the breakpoint is set, even though it didnt). It doesn't set
errno (although errno itself is set for me from the printf call (which does
actually print, so I don't know what thats about)).

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

      parent reply	other threads:[~2024-04-05 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-03  4:58 [Bug breakpoints/31599] New: " k4lizen at proton dot me
2024-04-03  5:38 ` [Bug breakpoints/31599] " k4lizen at proton dot me
2024-04-03 18:44 ` tromey at sourceware dot org
2024-04-05 16:17 ` k4lizen at proton dot me [this message]

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-31599-4717-3ixsB7R0oD@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).