gcc (GCC) 4.1.2 c89 Red Hat Enterprise Linux Server release 5.4 2.6.18-164.el5 GNU gdb Fedora (6.8-37.el5)
Compiling with the following debug flag
I am looking at a way to debug on a remote server.
Currently I am debugging using gdb.
However, I want to print the contents of a structure to see what values the element have been assigned to.
I can do this:
p media_description $2 = (sdp_media_description_t *) 0xb7a80318
However, that just give me the memory address of the structure.
Is there anywhere to print the elements of a structure?
Many thanks for any advice,
===== Edit ======
sdp_media_description_t *media_description = NULL; media_description = get_item(sdp_media_des_list, outer);
The above code should return a pointer to an instance of a structure.