public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: Reuben Thomas via Gdb-patches <gdb-patches@sourceware.org>
Subject: [PATCH] Fix a comment typo in sim-load.c
Date: Wed, 23 Mar 2022 11:05:23 +0000	[thread overview]
Message-ID: <CAOnWdohs9i168a+=bq=QjKHtWvjbxwWHGBLuZdyS9zOUdXdsLw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

Patch attached to fix a typo where the documentation refers to a function
parameter by the wrong name.

-- 
https://rrt.sc3d.org

[-- Attachment #2: 0001-sim-fix-a-comment-typo.patch --]
[-- Type: text/x-patch, Size: 1069 bytes --]

From 0f64d4e6402ae2312fb38b6baf45466ebe46930b Mon Sep 17 00:00:00 2001
From: Reuben Thomas <rrt@sc3d.org>
Date: Wed, 23 Mar 2022 11:03:16 +0000
Subject: [PATCH] sim: fix a comment typo

	* sim/common/sim-load.c: the documentation for sim_load_file refers
        to DO_LOAD where it should refer to DO_WRITE. Fix this.
---
 sim/common/sim-load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c
index 58a39134ae6..020165a0dce 100644
--- a/sim/common/sim-load.c
+++ b/sim/common/sim-load.c
@@ -38,7 +38,7 @@ static void xprintf (host_callback *, const char *, ...);
 static void report_transfer_performance
   (host_callback *, unsigned long, time_t, time_t);
 
-/* Load program PROG into the simulator using the function DO_LOAD.
+/* Load program PROG into the simulator using the function DO_WRITE.
    If PROG_BFD is non-NULL, the file has already been opened.
    If VERBOSE_P is non-zero statistics are printed of each loaded section
    and the transfer rate (for consistency with gdb).
-- 
2.25.1


             reply	other threads:[~2022-03-23 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-23 11:05 Reuben Thomas [this message]
2022-03-24 17:28 ` Simon Marchi
2022-03-24 18:15   ` Reuben Thomas

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='CAOnWdohs9i168a+=bq=QjKHtWvjbxwWHGBLuZdyS9zOUdXdsLw@mail.gmail.com' \
    --to=rrt@sc3d.org \
    --cc=gdb-patches@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).