Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ken Werner <ken@linux.vnet.ibm.com>
To: Doug Evans <dje@google.com>, gdb-patches@sourceware.org
Subject: Re: [unladen-swallow] Re: [RFA] Add interface for registering JITed  	code
Date: Fri, 21 Aug 2009 15:17:00 -0000	[thread overview]
Message-ID: <200908211236.n7LCZuxn016229@d06av01.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <e394668d0908201103s60e4564fp77904732ef32abc5@mail.gmail.com>

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

Doug Evans wrote:

> On Mon, Aug 17, 2009 at 8:29 AM, Tom Tromey<tromey@redhat.com> wrote:
>>>>>>> "Reid" == Reid Kleckner <rnk@google.com> writes:
>>
>> Tom> I read it a few more times and nothing popped out at me.
>>
>> Reid> Is it OK if Doug commits it then?
>>
>> Yes.
>>
>> Tom
>>
> 
> Committed.  Thanks.

Hi,
I noticed the gdb build fails on ppc64 if -Werror is used:
  gdb/jit.c: In function 'jit_event_handler':
  gdb/jit.c:417: warning: cast to pointer from integer of different size 
The attached patch uses paddress for printing the address.

-ken

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gdb-jit.patch --]
[-- Type: text/x-patch; name="gdb-jit.patch", Size: 709 bytes --]

Index: gdb/jit.c
===================================================================
RCS file: /cvs/src/src/gdb/jit.c,v
retrieving revision 1.1
diff -u -r1.1 jit.c
--- gdb/jit.c	20 Aug 2009 18:02:47 -0000	1.1
+++ gdb/jit.c	21 Aug 2009 12:27:13 -0000
@@ -413,8 +413,8 @@
     case JIT_UNREGISTER:
       objf = jit_find_objf_with_entry_addr (entry_addr);
       if (objf == NULL)
-        printf_unfiltered ("Unable to find JITed code entry at address: %p\n",
-                           (void *) entry_addr);
+        printf_unfiltered ("Unable to find JITed code entry at address: %s\n",
+                           paddress (target_gdbarch, entry_addr));
       else
         jit_unregister_code (objf);
 


  reply	other threads:[~2009-08-21 12:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23  1:58 Reid Kleckner
2009-07-23 12:08 ` Reid Kleckner
2009-07-23 23:21 ` Tom Tromey
2009-07-24 13:25   ` Ulrich Weigand
2009-07-24 16:52     ` Doug Evans
2009-07-25  0:40     ` [unladen-swallow] " Reid Kleckner
2009-07-24 16:55   ` Reid Kleckner
2009-07-24 20:42     ` Eli Zaretskii
2009-07-24 20:55       ` Tom Tromey
2009-07-25 15:29         ` Eli Zaretskii
2009-07-27 23:20           ` Reid Kleckner
2009-07-28 20:20             ` Eli Zaretskii
2009-07-28 22:23               ` Reid Kleckner
2009-07-29 15:20                 ` Eli Zaretskii
2009-07-24 21:06     ` Tom Tromey
2009-07-25  0:23       ` Reid Kleckner
2009-07-30 16:30         ` Tom Tromey
2009-07-30 16:54           ` Tom Tromey
2009-08-05 21:05             ` [unladen-swallow] " Reid Kleckner
2009-07-30 21:10           ` Thiago Jung Bauermann
2009-07-31 18:18             ` Thiago Jung Bauermann
2009-07-31 20:31               ` [unladen-swallow] " Reid Kleckner
2009-08-01 14:43                 ` Thiago Jung Bauermann
2009-08-14 19:29                 ` Tom Tromey
2009-08-14 23:37                   ` Reid Kleckner
2009-08-17 15:31                     ` Tom Tromey
2009-08-20 18:22                       ` Doug Evans
2009-08-21 15:17                         ` Ken Werner [this message]
2009-08-21 16:31                           ` Doug Evans
2009-08-21 18:59                             ` Ken Werner
2009-08-21 19:53                               ` Doug Evans
2009-07-31 20:55               ` Paul Pluzhnikov

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=200908211236.n7LCZuxn016229@d06av01.portsmouth.uk.ibm.com \
    --to=ken@linux.vnet.ibm.com \
    --cc=dje@google.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