If you want to try using the stack visualizer and don't want to run gdb, you can just use this sample output: (gdb) print &a $19 = (int *) 0xbfd44efc (gdb) print &b $20 = (int *) 0xbfd44eec (gdb) print $esp $21 = (void *) 0xbfd44ee4 (gdb) print $ebp $22 = (void *) 0xbfd44ef4 (gdb) x/48w $esp 0xbfd44ee4: 0xb7f125f0 0xbfd44ef8 0x000000ff 0x00000000 0xbfd44ef4: 0xbfd44f28 0x080483b1 0x000000ff 0x00000001 0xbfd44f04: 0xbfd44fa4 0xbfd44f28 0x080483da 0xb7f13ff4 0xbfd44f14: 0x08048430 0x00000000 0x00000001 0x00000002 0xbfd44f24: 0x00000003 0xbfd44f78 0xb7df5ed0 0x00000001 0xbfd44f34: 0xbfd44fa4 0xbfd44fac 0x00000001 0xb7f13ff4 0xbfd44f44: 0x00000000 0xb7f46cc0 0xbfd44f78 0xbfd44f30 0xbfd44f54: 0xb7df5e95 0x00000000 0x00000000 0x00000000 0xbfd44f64: 0xb7f3baa0 0xb7df5e0b 0xb7f46ff4 0x00000001 0xbfd44f74: 0x080482b0 0x00000000 0x080482d1 0x08048376 0xbfd44f84: 0x00000001 0xbfd44fa4 0x080483c0 0x08048430 0xbfd44f94: 0xb7f3c5a0 0xbfd44f9c 0xb7f474f0 0x00000001