How to set the result of "x/1xw 0x<address>" to a gdb variable ??
James Yu <[email protected]>
| Newsgroups | gmane.comp.gdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I am stuck at the middle of no where, please help me out. This is the problem: I can get the content of certain memory address with the command "x/nfu <address>", but I am having trouble of saving the return value to a gdb variable (say $returnVal). eg. (gdb) x/1xw $pde_ptr 0x37c000: 0x003b1027 (gdb) set $tmp = x/1xw $pde_ptr Invalid number "1xw" Is it even possible of doing that ?? Thanks in advance, -- James Yu (游家慶) +886-932-353-055 [email protected]