Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Tom Tromey'" <tromey@redhat.com>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [RFA 2/5] New patches to support --enable-targets=all for mingw64
Date: Fri, 10 Sep 2010 19:02:00 -0000	[thread overview]
Message-ID: <004f01cb5102$8dfe0350$a9fa09f0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <m3vd6dob9d.fsf@fleche.redhat.com>

> I think it is better to use SYMBOL_VALUE_BYTES here.
> See how this field is set in mdebugread.c:
> 
> 	  e = ((struct mdebug_extra_func_info *)
> 	       obstack_alloc (&current_objfile->objfile_obstack,
> 			      sizeof (struct mdebug_extra_func_info)));
> 	  memset (e, 0, sizeof (struct mdebug_extra_func_info));
> 	  SYMBOL_VALUE_BYTES (s) = (gdb_byte *) e;
> 
> This is ok with that change.

OK, this way, no need for unitptr_t, as gdb_byte * 
is already a host pointer.

This is what I checked in,
thanks for the approval,

Pierre

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.12167
diff -u -p -r1.12167 ChangeLog
--- ChangeLog   9 Sep 2010 23:04:46 -0000       1.12167
+++ ChangeLog   10 Sep 2010 16:03:15 -0000
@@ -1,3 +1,8 @@
+2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
+       before cast to pointer to avoid warning.
+
 2010-09-09  Kevin Buettner  <kevinb@redhat.com>

        * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
Index: alpha-mdebug-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-mdebug-tdep.c,v
retrieving revision 1.25
diff -u -p -r1.25 alpha-mdebug-tdep.c
--- alpha-mdebug-tdep.c 23 Apr 2010 15:14:22 -0000      1.25
+++ alpha-mdebug-tdep.c 10 Sep 2010 16:03:15 -0000
@@ -115,7 +115,7 @@ find_proc_desc (CORE_ADDR pc)

   if (sym)
     {
-      proc_desc = (struct mdebug_extra_func_info *) SYMBOL_VALUE (sym);
+      proc_desc = (struct mdebug_extra_func_info *) SYMBOL_VALUE_BYTES (sym);

       /* Correct incorrect setjmp procedure descriptor from the library
          to make backtrace through setjmp work.  */


  reply	other threads:[~2010-09-10 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21924.6809640483$1284127133@news.gmane.org>
2010-09-10 16:09 ` Tom Tromey
2010-09-10 19:02   ` Pierre Muller [this message]
2010-09-13 18:34     ` Joel Brobecker
2010-09-10 14:11 Pierre Muller

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='004f01cb5102$8dfe0350$a9fa09f0$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@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