>From an operational perspective, you want to prevent GDB from fetching the value of semTypeMsg as a machine word. You might try: print ((char **) &semTypeMsg)[1]