aboutsummaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorbobv <none@none>2010-08-03 08:13:38 -0400
committerbobv <none@none>2010-08-03 08:13:38 -0400
commitbdabaa2f80947252e9a8bea284ddfc529c4d4ce2 (patch)
tree8f49097b5faea170476a5f5222ac00fc4ba40995 /agent
parent7091355cea37e4893d8490c33ddfd14e84713ccc (diff)
6953477: Increase portability and flexibility of building Hotspot
Summary: A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail. Reviewed-by: phh, never, coleenp, dholmes
Diffstat (limited to 'agent')
-rw-r--r--agent/src/os/linux/ps_proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/src/os/linux/ps_proc.c b/agent/src/os/linux/ps_proc.c
index ef3ab89e6..5ad3ff7f3 100644
--- a/agent/src/os/linux/ps_proc.c
+++ b/agent/src/os/linux/ps_proc.c
@@ -253,7 +253,11 @@ static bool read_lib_info(struct ps_prochandle* ph) {
if (nwords > 5 && find_lib(ph, word[5]) == false) {
intptr_t base;
lib_info* lib;
+#ifdef _LP64
sscanf(word[0], "%lx", &base);
+#else
+ sscanf(word[0], "%x", &base);
+#endif
if ((lib = add_lib_info(ph, word[5], (uintptr_t)base)) == NULL)
continue; // ignore, add_lib_info prints error