Created
July 26, 2016 07:33
-
-
Save ykubota/ee0e84c860e9bc8364d560bb032f3dc3 to your computer and use it in GitHub Desktop.
check address of counter and its member
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set logging on | |
set logging file /path/to/file | |
f 7 | |
p/x counter | |
p/x counter->objData | |
p/x (TObjectData *)counter->objData | |
p/x counter->objData->klassOop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(gdb) set logging file /tmp/gdb.log
(gdb) set logging on
Copying output to /tmp/gdb.log.
(gdb) f 7
#7 0x00007fdfebd0d3bd in findChildClass (this=0x7fdfee9e8d80) at snapShotContainer.hpp:277
277 while (counter->objData->klassOop != klassOop) {
(gdb) p/x counter
$1 = 0x7fde58b92a00
(gdb) p/x counter->objData
$2 = 0x7fdbcbfc1680
(gdb) p/x (TObjectData *)counter->objData
$3 = 0x7fdbcbfc1680
(gdb) p/x counter->objData->klassOop
Cannot access memory at address 0x7fdbcbfc1698
(gdb) q
$ cat /tmp/gdb.log
#7 0x00007fdfebd0d3bd in findChildClass (this=0x7fdfee9e8d80) at snapShotContainer.hpp:277
277 while (counter->objData->klassOop != klassOop) {
$1 = 0x7fde58b92a00
$2 = 0x7fdbcbfc1680
$3 = 0x7fdbcbfc1680
Cannot access memory at address 0x7fdbcbfc1698