Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Michael Snyder <msnyder@vmware.com>,
	  "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] comment looks wrong...
Date: Sun, 01 Nov 2009 20:37:00 -0000	[thread overview]
Message-ID: <4AEDF1AE.9040402@vmware.com> (raw)
In-Reply-To: <20091101193312.GA31647@caradoc.them.org>

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

Daniel Jacobowitz wrote:
> On Sun, Nov 01, 2009 at 10:19:56AM -0800, Michael Snyder wrote:
>> Does that mean you don't favor changing it?
> 
> Your new formulation uses the opposite meaning of extract to the one
> presently there.  If the old one was unclear, the new one is unclear
> also...
> 

Fair enough -- how's this?



[-- Attachment #2: findvar.txt --]
[-- Type: text/plain, Size: 1126 bytes --]

2009-10-28  Michael Snyder  <msnyder@vmware.com>

        * findvar.c (top level): Fix and add comments.

Index: gdb/findvar.c
===================================================================
--- gdb.orig/findvar.c	2009-10-28 12:33:28.000000000 -0700
+++ gdb/findvar.c	2009-11-01 12:37:26.000000000 -0800
@@ -36,8 +36,9 @@
 #include "block.h"
 #include "objfiles.h"
 
-/* Basic byte-swapping routines.  GDB has needed these for a long time...
-   All extract a target-format integer at ADDR which is LEN bytes long.  */
+/* Basic byte-swapping routines.  GDB has needed these for a long
+   time...  All 'extract' functions return a host-format integer
+   from a target-format integer ADDR which is LEN bytes long.  */
 
 #if TARGET_CHAR_BIT != 8 || HOST_CHAR_BIT != 8
   /* 8 bit characters are a pretty safe assumption these days, so we
@@ -179,6 +180,8 @@
   return gdbarch_pointer_to_address (get_type_arch (type), type, buf);
 }
 
+/* All 'store' functions accept a host-format integer and store a
+   target-format integer at ADDR which is LEN bytes long.  */
 
 void
 store_signed_integer (gdb_byte *addr, int len,

  reply	other threads:[~2009-11-01 20:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 19:31 Michael Snyder
2009-10-28 20:04 ` Daniel Jacobowitz
2009-11-01 18:28   ` Michael Snyder
2009-11-01 19:33     ` Daniel Jacobowitz
2009-11-01 20:37       ` Michael Snyder [this message]
2009-11-02  0:57         ` Daniel Jacobowitz
2009-11-11 19:27           ` Michael Snyder

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=4AEDF1AE.9040402@vmware.com \
    --to=msnyder@vmware.com \
    --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