Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH: rename and move message buffer
Date: Wed, 02 Jun 2004 18:17:00 -0000	[thread overview]
Message-ID: <vt2pt8hygfd.fsf@zenia.home> (raw)


Committed as obvious.

2004-06-02  Jim Blandy  <jimb@redhat.com>

	* ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
	to 'message', and make it local to the lone block that uses it.

Index: gdb/ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.40
diff -c -p -r1.40 ppc-linux-nat.c
*** gdb/ppc-linux-nat.c	21 May 2004 23:30:47 -0000	1.40
--- gdb/ppc-linux-nat.c	2 Jun 2004 18:13:54 -0000
*************** fetch_register (int tid, int regno)
*** 209,215 ****
    struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
    /* This isn't really an address.  But ptrace thinks of it as one.  */
    CORE_ADDR regaddr = ppc_register_u_addr (regno);
-   char mess[128];              /* For messages */
    int i;
    unsigned int offset;         /* Offset of registers within the u area. */
    char buf[MAX_REGISTER_SIZE];
--- 209,214 ----
*************** fetch_register (int tid, int regno)
*** 253,261 ****
        regaddr += sizeof (PTRACE_XFER_TYPE);
        if (errno != 0)
  	{
! 	  sprintf (mess, "reading register %s (#%d)", 
  		   REGISTER_NAME (regno), regno);
! 	  perror_with_name (mess);
  	}
      }
  
--- 252,261 ----
        regaddr += sizeof (PTRACE_XFER_TYPE);
        if (errno != 0)
  	{
!           char message[128];
! 	  sprintf (message, "reading register %s (#%d)", 
  		   REGISTER_NAME (regno), regno);
! 	  perror_with_name (message);
  	}
      }
  
*************** store_register (int tid, int regno)
*** 406,412 ****
    struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
    /* This isn't really an address.  But ptrace thinks of it as one.  */
    CORE_ADDR regaddr = ppc_register_u_addr (regno);
-   char mess[128];              /* For messages */
    int i;
    unsigned int offset;         /* Offset of registers within the u area.  */
    char buf[MAX_REGISTER_SIZE];
--- 406,411 ----
*************** store_register (int tid, int regno)
*** 457,465 ****
  
        if (errno != 0)
  	{
! 	  sprintf (mess, "writing register %s (#%d)", 
  		   REGISTER_NAME (regno), regno);
! 	  perror_with_name (mess);
  	}
      }
  }
--- 456,465 ----
  
        if (errno != 0)
  	{
!           char message[128];
! 	  sprintf (message, "writing register %s (#%d)", 
  		   REGISTER_NAME (regno), regno);
! 	  perror_with_name (message);
  	}
      }
  }


                 reply	other threads:[~2004-06-02 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=vt2pt8hygfd.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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