Bug 6553

Summary: unw_init_remote doesn't fully init the cursor
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3076    

Description Andrew Cagney 2008-05-23 18:06:24 UTC
vis:

+  logf(fine, this, "createCursor from address-space %lxf", (long) unwAddrSpace)
+  unw_cursor_t* unwCursor = (unw_cursor_t*) JvMalloc(sizeof(::unw_cursor_t));
+  // XXX: Need to zero out the cursor, as unw_init_remote doesn't seem
+  // to do it.
+  memset(unwCursor, 0, sizeof(*unwCursor));
+  unw_init_remote(unwCursor, (unw_addr_space_t) unwAddrSpace,
                  (void *) addressSpace);