<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I want to know if two pointer point to the same variable, so I want to get the location of each variable and the value of the pointer. In the API doc, I found three functions that seem to do the work, they are:<br>
<br>
- SBValue::GetLocation -> const char*<br>
- SBValue::AddressOf -> SBValue<br>
- SBValue::GetLoadLocation -> addr_t (uint64_t)<br>
<br>
I did a simple experiment, and find out that they contain the same address (only in different format). So I wonder what's the difference between them, are they just return address in different format? If not, which one should I use? thank in advance. </div></body>
</html>