Why gdb casting is not working?

前端 未结 4 1238
遥遥无期
遥遥无期 2020-12-23 21:24

I use print (CEthPacket*) 0xeb609a0 to examine an object at the given address and get A syntax error in expression, near \') 0xeb609a0\'.

W

4条回答
  •  Happy的楠姐
    2020-12-23 22:16

    I just ran into a very similar error. It was caused because I was trying to reference an object that is not defined in the scope of the current stack frame. Try changing to a stack frame where the CEthrPacket object is defined.

提交回复
热议问题