Bug 6553 - unw_init_remote doesn't fully init the cursor
Summary: unw_init_remote doesn't fully init the cursor
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 3076
  Show dependency treegraph
 
Reported: 2008-05-23 18:06 UTC by Andrew Cagney
Modified: 2008-05-23 18:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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);