How to get the symbol name for a memory address in GDB?

后端 未结 5 1939
一整个雨季
一整个雨季 2020-12-12 19:38

For instance, I know that 0x46767f0 belongs to an NSString*, is there any way I can find out what NSString it is to help me find some bugs I\'m after?

5条回答
  •  时光说笑
    2020-12-12 19:48

    po 0x46767f0

    will send a -description message to the object. That will print out the contents of your NSString but I suggest using Brian's answer to check the contents of your address before you send random messages to random addresses.

提交回复
热议问题