aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-25 22:00:59 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-25 22:00:59 +0000
commit070c802839c00ca8f8ab3ef512abc2726a389146 (patch)
treeed8b8aa02c0b44aa2be986979354a5895dbb213e /gdb
parent4656f5c643397db4cad85a7a2d2da43d7e71a828 (diff)
downloadgdb-070c802839c00ca8f8ab3ef512abc2726a389146.zip
gdb-070c802839c00ca8f8ab3ef512abc2726a389146.tar.gz
gdb-070c802839c00ca8f8ab3ef512abc2726a389146.tar.bz2
* solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
hosts where CORE_ADDR is long long.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-spu.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 56fd929..5291bf0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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:
diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c
index f8073dc..91b6a18 100644
--- a/gdb/solib-spu.c
+++ b/gdb/solib-spu.c
@@ -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;