| 161 | | XVECTOR is a macro, and therefore GDB does not know about it. |
|---|
| 162 | | GDB cannot evaluate "p XVECTOR (this_command_keys)". |
|---|
| 163 | | |
|---|
| 164 | | However, you can use the xvector command in GDB to get the same |
|---|
| 165 | | result. Here is how: |
|---|
| | 161 | XVECTOR is a macro, so GDB only knows about it if Emacs has been compiled with |
|---|
| | 162 | preprocessor macro information. GCC provides this if you specify the options |
|---|
| | 163 | `-gdwarf-2' and `-g3'. In this case, GDB can evaluate expressions like |
|---|
| | 164 | "p XVECTOR (this_command_keys)". |
|---|
| | 165 | |
|---|
| | 166 | When this information isn't available, you can use the xvector command in GDB |
|---|
| | 167 | to get the same result. Here is how: |
|---|