Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
student:stu:gdb [2022/09/14 17:25] – created lam2mo | student:stu:gdb [2022/09/28 11:14] – [GDB + VS Code configuration] Add more details lam2mo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== GDB on stu ====== | ||
+ | |||
+ | ===== Version issue ===== | ||
+ | |||
Unfortunately, | Unfortunately, | ||
- | To gain access to a newer, fixed version of GDB (10.0) for your account, please run the following command verbatim while logged into stu: | + | To gain access to a newer, |
- | echo "source | + | echo "export PATH=/opt/gdb/bin:$PATH" >> |
| | ||
**PLEASE COPY AND PASTE THE COMMAND -- DO NOT ATTEMPT TO RE-TYPE IT!!** Every character must be exactly correct for it to work. You will need to log out and back in to get the correct version of GDB. You will know it is working by looking at the version number at the top of the text printed by GDB; it should start with " | **PLEASE COPY AND PASTE THE COMMAND -- DO NOT ATTEMPT TO RE-TYPE IT!!** Every character must be exactly correct for it to work. You will need to log out and back in to get the correct version of GDB. You will know it is working by looking at the version number at the top of the text printed by GDB; it should start with " | ||
+ | |||
+ | If you are in CS 261, you should use this command instead, because it will fix GDB and go ahead and set up a few other things we'll need later in the semester as well: | ||
+ | |||
+ | echo " | ||
+ | |||
+ | ===== GDB + VS Code configuration ===== | ||
+ | |||
+ | Here is a sample '' | ||
+ | |||
+ | < | ||
+ | { | ||
+ | // Use IntelliSense to learn about possible attributes. | ||
+ | // Hover to view descriptions of existing attributes. | ||
+ | // For more information, | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </ |