cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
amit.k
Newbie
Newbie
2,690 Views
Registered: ‎06-28-2017

XSDB equivalent to XMD's mrd_var

Jump to solution

When using XMD I can do this:

mrd_var My_Pointer Temp.elf

and get the address of variable My_Pointer on the program Temp.elf .

But now I'm using XSDB and I can't find an equivalent function to get the variable address.

I need the address to change the variable value on the run.

Any suggestions?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
sadanan
Xilinx Employee
Xilinx Employee
4,514 Views
Registered: ‎10-21-2010

Hi,

Look at the print and locals commands in XSDB. print can be used to display global/local variables, expressions involving variables, etc. You need to supply a variable name to the print command.

 

locals command returns all the local variables in the current stack frame. locals <var_name> displays the value of <var_name> in current frame.

 

Both these commands support -defs option, which returns details like type, address, etc. See help for more details

View solution in original post

0 Kudos
1 Reply
sadanan
Xilinx Employee
Xilinx Employee
4,515 Views
Registered: ‎10-21-2010

Hi,

Look at the print and locals commands in XSDB. print can be used to display global/local variables, expressions involving variables, etc. You need to supply a variable name to the print command.

 

locals command returns all the local variables in the current stack frame. locals <var_name> displays the value of <var_name> in current frame.

 

Both these commands support -defs option, which returns details like type, address, etc. See help for more details

View solution in original post

0 Kudos