* solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 25 Jun 2010 22:00:59 +0000 (22:00 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 25 Jun 2010 22:00:59 +0000 (22:00 +0000)
hosts where CORE_ADDR is long long.

gdb/ChangeLog
gdb/solib-spu.c

index 56fd929664d79cad72baaee8784640bfc9c4b4c4..5291bf0781a00dcdf628a10e52ab338cd77d51de 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
+       hosts where CORE_ADDR is long long.
+
 2010-06-25  Tom Tromey  <tromey@redhat.com>
 
        PR python/10808:
index f8073dcc6f016a35fad2c92ff0847d7a359a4b36..91b6a182384d2f50d519c51955826a003cc9363e 100644 (file)
@@ -126,8 +126,9 @@ append_ocl_sos (struct so_list **link_ptr)
                  new = XZALLOC (struct so_list);
 
                  /* Encode FD and object ID in path name.  */
-                 xsnprintf (new->so_name, sizeof new->so_name, "@0x%lx <%d>",
-                            data, SPUADDR_SPU (*ocl_program_addr_base));
+                 xsnprintf (new->so_name, sizeof new->so_name, "@%s <%d>",
+                            hex_string (data),
+                            SPUADDR_SPU (*ocl_program_addr_base));
                  strcpy (new->so_original_name, new->so_name);
 
                  *link_ptr = new;