Looking at the Data

After you have seen the call stack (show_stack_command), selected the call frame containing the variables you wish to examine (change_stack_frame_command), and looked at the source this function is executing (looking at the source), you usually want to examine some of the variables or even evaluate some expressions. You can use the print command and the call command to do this. You can also use the following commands to help you determine what to look at and what you are seeing:

GDB Mode

look_around_command

: print_command

| call_command

| whatis_command

DBX Mode

look_around_command

: various_print_command

| c++_look_around_command

| call_command

| whatis_command

| whereis_command

| which_command

various_print_command

: print_command

| printf_command

| printi_command

| print_registers_command

| printt_command

| dump_command