OSDev.org https://forum.osdev.org/ |
|
Anyone here using eclipse? https://forum.osdev.org/viewtopic.php?f=13&t=29746 |
Page 1 of 1 |
Author: | max [ Wed Oct 28, 2015 1:04 pm ] |
Post subject: | Re: Anyone here using eclipse? |
Hi Awe2K, I'm using Eclipse for OS development. I have a set of shell scripts that do the entire build process. I'm using Mercurial (hg) as my main version control. Yes, you can debug: build a GDB for your target platform and connect to QEMU. Configure it as a "C/C++ Remote Application". You can then launch QEMU in debug mode, and then start debugging in Eclipse and it will connect. I'll try to collect some tips on how I set it up so that indexing/code completion/error checking work flawlessly, so maybe you and others can make use of it. It took quite some time to figure out how to get Eclipse to detect the custom toolchain properly, but I wouldn't want to use anything else. This is what mine looks like
I think there were some more things that I don't remember right now, but these are the most important I think. I'll add them once they come back to my mind Greets, Max |
Author: | Awe2K [ Wed Oct 28, 2015 1:58 pm ] |
Post subject: | Re: Anyone here using eclipse? |
Hi, Max. As I've said, I'm currently using make (I don't trust CDT much), and it's very useful. Maybe I wound make some shell scripts, but I don't know shell lang , and make file, like a shell script, may be configured (but my make still doesn't see my cross-compiler). Also, is there any way in eclipse to use make with gdb? As far as I know, both qemu and gdb "lock" execution until they stop. Can they somehow be run parallel? |
Author: | max [ Wed Oct 28, 2015 2:17 pm ] |
Post subject: | Re: Anyone here using eclipse? |
Makefiles are fine. I just decided for shell scripts myself because I find them easier comprehensible. For GDB: Alas I can't try it out at the moment, but doesn't it work as described above? Running QEMU in debug mode makes it block until GDB connects. Running the debug mode in Eclipse with a "C/C++ Remote Application" should then make it connect to QEMU. |
Author: | Awe2K [ Thu Oct 29, 2015 1:23 am ] |
Post subject: | Re: Anyone here using eclipse? |
max wrote: Makefiles are fine. I just decided for shell scripts myself because I find them easier comprehensible. For GDB: Alas I can't try it out at the moment, but doesn't it work as described above? Running QEMU in debug mode makes it block until GDB connects. Running the debug mode in Eclipse with a "C/C++ Remote Application" should then make it connect to QEMU. Okay, thanks, I'll definitely try that way. |
Author: | DeezRamChips [ Sat Apr 29, 2017 6:05 pm ] |
Post subject: | Re: Anyone here using eclipse? |
Hi max, I was wondering why you were using scripts and makefiles ? I managed to get it working only using a linker file xD and how you can see, it works well ! I've even added a lauch prophile that creates a bootable iso with grub-mkrecue and that lauches it into QEMU |
Author: | max [ Sun Apr 30, 2017 1:19 am ] |
Post subject: | Re: Anyone here using eclipse? |
DeezRamChips wrote: Hi max, I was wondering why you were using scripts and makefiles ? I managed to get it working only using a linker file xD and how you can see, it works well ! I've even added a lauch prophile that creates a bootable iso with grub-mkrecue and that lauches it into QEMU Hey DeezRamChips, sure that will work when you put all your stuff in a structure so that the Eclipse builder can make sense of it. But you will not always want to build with Eclipse, what if you want to build on a system where you don't have Eclipse? Like, maybe your own OS later on, when you want to get self-hosting? I don't use Make btw, I just use plain shell scripts. Greets |
Author: | matt11235 [ Sun Apr 30, 2017 2:17 am ] |
Post subject: | Re: Anyone here using eclipse? |
max wrote: I don't use Make btw, I just use plain shell scripts. What happened to your custom build tool? |
Author: | max [ Sun Apr 30, 2017 9:25 am ] |
Post subject: | Re: Anyone here using eclipse? |
matt11235 wrote: What happened to your custom build tool? Both projects would take too much time, bash is available out of the box wherever I build it. I might up it to GitHub though so maybe anyone else can make use of it. |
Author: | stevewoods1986 [ Wed Aug 09, 2017 12:51 pm ] |
Post subject: | Re: Anyone here using eclipse? |
I use Eclipse but not for OS development. It is great for Java. I use a normal text editor and my Terminal |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |