| I've run in to this as well.
Problem is, it sometimes works.
works: Use the program at the bottom. Putting a monitor on
((a_scope_ptr) <memory address)->variables
will yield a correct memory address
doesn't work: Use /usr/proj/decc2/mainline/exxalphaosf/bl36/exe/exx, stop in
lower_scope, and do the same. The monitor's "value" will read "a_variable_ptr".
Attempting to print the same value will give a correct memory address.
- Matt
struct a_variable;
struct a_scope;
typedef a_variable* a_variable_ptr;
typedef a_scope* a_scope_ptr;
struct a_variable {
a_variable_ptr next;
};
struct a_scope {
a_variable_ptr variables;
};
main()
{
a_scope_ptr scope = new a_scope;
scope->variables = new a_variable;
scope->variables->next = 0;
return 0;
}
|