Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:eclipse [2020/04/06 15:06] – noblepepper | inbox:eclipse [2021/10/15 08:21] – ↷ Links adapted because of a move operation bobafetthotmail | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| 1. Get a functioning build system. | 1. Get a functioning build system. | ||
| - | You can use the [[docs/ | + | You can use the [[docs/ |
| and [[docs/ | and [[docs/ | ||
| Line 34: | Line 34: | ||
| - | 3. Find your toolchain location and prefix. | + | 3. Find your toolchain location and prefix |
| Toolchain location is < | Toolchain location is < | ||
| Toolchain prefix is the part of the filenames in the toolchain directory before the tool name. For example, if you see a file named mips-openwrt-linux-musl-gcc, | Toolchain prefix is the part of the filenames in the toolchain directory before the tool name. For example, if you see a file named mips-openwrt-linux-musl-gcc, | ||
| + | |||
| + | The gdb executable is in the toolchain location. | ||
| You can find these by using these commands from the buildsystem root: | You can find these by using these commands from the buildsystem root: | ||
| Line 50: | Line 52: | ||
| find $(pwd)/ | find $(pwd)/ | ||
| </ | </ | ||
| + | gdb executable: | ||
| + | < | ||
| + | find $(pwd)/ | ||
| 4. Cross compile hello world | 4. Cross compile hello world | ||
| Line 63: | Line 67: | ||
| If you are still on the Welcome Screen, click the Workbench icon in the upper right. Select the project you just created and on the main menubar use Project-> | If you are still on the Welcome Screen, click the Workbench icon in the upper right. Select the project you just created and on the main menubar use Project-> | ||
| - | 5. Set up remote | + | 5. Set up remote |
| - | Select Window->Perspective->Open Perspective-> | + | Select Window->Show View->Others |
| - | + | ||
| - | | + | Expand |
| - | + | ||
| - | Select File-> | + | Select File-> |
| - | + | ||
| - | Expand Remote System Explorer in the dialog, select Connection and click Next | + | Expand Remote System Explorer in the dialog, select Connection and click Next |
| - | + | ||
| - | Select Linux and click next | + | Select Linux and click next |
| - | + | ||
| - | Enter your routers ipaddress in the Host name text box, click Next, | + | Enter your routers ipaddress in the Host name text box, click Next, |
| - | + | ||
| - | Check the ssh.files checkbox, select | + | Check the ssh.files checkbox, select |
| - | + | ||
| - | Check the processes.shell.linux checkbox, select Shell Process Service, click Next, | + | Check the processes.shell.linux checkbox, click Next, |
| - | + | ||
| - | Check the ssh.shells checkbox, select SSH Connector Service, and finally click Finish | + | Check the ssh.shells checkbox, and finally click Finish |
| - | + | ||
| 6. Access files on remote system | 6. Access files on remote system | ||
| Line 96: | Line 100: | ||
| In the main tab: | In the main tab: | ||
| - | | + | Click the New button next to the Connection Dropdown, use the dropdown to select ssh, Click OK |
| - | | + | Enter your router' |
| - | | + | Check password based checkbox, enter password in Password text box. Click Finish. |
| - | + | Select Remote Host in Connection Dropdown | |
| - | Enter the program name in the Remote Absolute Path textbox | + | |
| + | Enter the program name in the Remote Absolute Path textbox, it must include a path (I use either /hellocpp or / | ||
| In the debugger tab: | In the debugger tab: | ||
| - | | + | In the GDB debugger text box enter the gdb executable |
| - | On the test system this is | + | |
| - | / | + | |
| - | + | ||
| Click Apply, Click Debug | Click Apply, Click Debug | ||
| - | Allow the IDE to switch to the Debug perspective. The program will launch on the router and stop at the first line in main, you can step, continue, etc with the icons on the toolbar | + | Allow the IDE to switch to the Debug perspective. The program will launch on the router and stop at the first line in main, you can step, continue, etc with the icons on the toolbar, the ide will follow in the source file tab and output will be shown in the Console tab. |
| | | ||
| 8. Using existing makefile programs | 8. Using existing makefile programs | ||