Why gdb casting is not working?

前端 未结 4 1244
遥遥无期
遥遥无期 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条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 22:16

    You didn't say on which platform, which version of GDB, or what CEthPacket is.

    My first guess is that you should try print (struct CEthPacket *) 0xeb609a0 instead.

提交回复
热议问题