IDE with Eclipse with Jantje's plugin

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
stevestrong
Posts: 1601
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: IDE with Eclipse with Jantje's plugin

Post by stevestrong » Fri Apr 07, 2017 4:13 pm

Guys, just a short question: how do you "step"? With F5 in the assembler window?
In my case, the pointer always jumps two instructions at once instead of one...

User avatar
Pito
Posts: 1522
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: IDE with Eclipse with Jantje's plugin

Post by Pito » Fri Apr 07, 2017 5:43 pm

Stepping.JPG
Stepping.JPG (9.79 KiB) Viewed 278 times
From left:
Run till breakpoint, or continuous run
Stop (when running)
Terminate process
Disconnect
Step into F5 - jumps into the function (C source window)
Step over F6 - jumps over the function (C source window)
Step return F7 - return when you are stepping somewhere deep in a function (C source window)
Instruction stepping mode - when active (click on it) - you steps with F5 through assembler instructions (disassembler window)
From right:
Reset and run (stops at main)

FYI - a lot of interesting stuff for hobby users of Eclipse IDE and arm (and much more):
https://mcuoneclipse.com/compendium/#Eclipse%20IDE
Pukao Hats Cleaning Services Ltd.

stevestrong
Posts: 1601
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: IDE with Eclipse with Jantje's plugin

Post by stevestrong » Fri Apr 07, 2017 7:04 pm

As I wrote, in the disassembly window with F5 the instruction pointer always jumps 2 lines/instructions instead of one instruction line.
What can be the problem?

ag123
Posts: 740
Joined: Thu Jul 21, 2016 4:24 pm

Re: IDE with Eclipse with Jantje's plugin

Post by ag123 » Fri Apr 07, 2017 8:12 pm

i did an experiment, it seemed gdb is following the c expression rather than stepping assembly (this debug is done in qemu - emulated)
in this case the instruction hops from the previous movs to the next

there are other cases it seemed gcc is too 'smart' and optimise away some codes and debug skips the c instructions altogether if it isn't referenced

found a web about gdb it seemed stepi command may do that, but i'm not sure how to do that in eclipse
http://mohit.io/blog/gdb-assembly-langu ... gging-101/
Attachments
ec.png
ec.png (40.92 KiB) Viewed 256 times
Last edited by ag123 on Fri Apr 07, 2017 8:52 pm, edited 1 time in total.

ag123
Posts: 740
Joined: Thu Jul 21, 2016 4:24 pm

Re: IDE with Eclipse with Jantje's plugin

Post by ag123 » Fri Apr 07, 2017 8:29 pm

found it, click that icon shown and after that clicking step or F5 goes into instruction stepping mode
Attachments
ec.png
ec.png (77.6 KiB) Viewed 252 times

stevestrong
Posts: 1601
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: IDE with Eclipse with Jantje's plugin

Post by stevestrong » Fri Apr 07, 2017 10:07 pm

Ok, thanks, i will try it.

stevestrong
Posts: 1601
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: IDE with Eclipse with Jantje's plugin

Post by stevestrong » Sat Apr 08, 2017 8:44 am

Yepp, I confirm: it works.

zmemw16
Posts: 1410
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: IDE with Eclipse with Jantje's plugin

Post by zmemw16 » Sat Apr 08, 2017 9:05 pm

@Pito wrote
FYI - a lot of interesting stuff for hobby users of Eclipse IDE and arm (and much more):
https://mcuoneclipse.com/compendium/#Eclipse%20IDE
for me at least that has to be the understatement of 2017 so far :lol:
can you overdose on eclipse?

stephen

ag123
Posts: 740
Joined: Thu Jul 21, 2016 4:24 pm

Re: IDE with Eclipse with Jantje's plugin

Post by ag123 » Sun Apr 09, 2017 9:32 am

oh btw i succeeded in compling Arduino_STM32 - STM32F1 branch with gnu arm eclipse, but my blinky sketch is a whopping 54k in size, need to figure out what accounts for all that bloat. it runs though :lol:

User avatar
Pito
Posts: 1522
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: IDE with Eclipse with Jantje's plugin

Post by Pito » Sun Apr 09, 2017 12:07 pm

Blink example here in Sloeber is 12kB bin:

Code: Select all

C:/Users/pito/MyCode/Sloeber/Blink/Release/Blink.elf  :
section             size        addr
.text               8648   134217728
.ARM.exidx             8   134226376
.data               1896   536870912
.rodata             1516   134228280
.bss                 264   536872808
.debug_aranges      2896           0
.debug_info        88779           0
.debug_abbrev      17731           0
.debug_line        29199           0
.debug_frame        6720           0
.debug_str         23839           0
.debug_loc         26250           0
.ARM.attributes       41           0
.debug_ranges       4680           0
.comment             112           0
Total             212579


'Finished building target: Blink'
Pukao Hats Cleaning Services Ltd.

Post Reply