I got an address such as 0x7fc9e401a02a in my log file, and I know that this address is a pointer of type Connection.
Then I start GDB, what I wanna know is: how to convert this address to a temporary variable of type Connection*, and display relevant information of Connection*?
How to do this, any hints?
print *(Connection*)0x7fc9e401a02a. This assumes that your address is from a core file that your looking at in gdb. If that address is from a run of your code, it will certainly not exist without re-running the code inside gdb.