Print variable with gdb??

From: JS (
Date: 03/30/05

Date: Wed, 30 Mar 2005 00:23:03 +0200

I have:

int p = 5;

when I debug my code I would like to get a print of p's value therefore I
start gdb and type:

print p

but then I get an error that the variable does not exists!

Hope someone can help!