Monday, February 19th 2018, 2:31am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

MichaelK

Beginner

Date of registration: Mar 5th 2013

Posts: 4

1

Tuesday, March 5th 2013, 12:21pm

JLink GDBServer async mode

Hello,

we are using several JLink PRO, JFlasher and JTrace in our company and I have a question:

Is there a way to use the JLink GDBServer in async mode OR a way to non-intrusively read from memory while a debug target is running?

I would like to realize a live watch feature in eclipse IDE, but I see no way to request memories or evaluate expressions without suspending the target. As far as I know the feature of non-intrusively accessing the target is called ARM CoreSight. Does the JLink-Debugger support this (over GDBServer) by any means?

Using eclipse + gcc has many advantages for us, e.g.:
- gcc runs on our linux buildserver -> 20 times faster compilation
- plugin-Integration into eclipse for Software design and Testing
- editor with content-assist

Missing is only a live-watch feature, which would be very handy.

Possible solutions would be:
1) GDBServer supports asynchronous mode and reading memory without suspending target -> I implement a small plugin for eclipse which uses that to read the desired memory locations. Is that possible?

2) If I can user Segger SDK to read memory from my debugger while the debugger is used by GDBServer without suspending the target, I could implement a small tool which allows us to live watch memory locations. (GDBServer is running on windows, only compiling is done on linux).

Thank you very much for your help! Michael

PS: further information on GDB Background-Execution and non-stop mode:
http://sourceware.org/gdb/onlinedocs/gdb…round-Execution
http://sourceware.org/gdb/onlinedocs/gdb…stop-modes.html

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

2

Tuesday, March 5th 2013, 4:28pm

Hi,

Non-stop mode support for GDBServer is on our ToDo list, but I can not give you an exact schedule for implementation yet,
due to a lot of other projects we have currently in the pipe.
It is planned for some time this year.


Best regards
Alex

MichaelK

Beginner

Date of registration: Mar 5th 2013

Posts: 4

3

Wednesday, March 6th 2013, 12:38pm

Hi,

will the support for async, once it is there, allow us to read memory while the target is running?

Greetings, Michael

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

4

Wednesday, March 6th 2013, 1:17pm

Hi Michael,

I think that is the idea behind the ansyc mode the GDB protocol defines.
From the J-Link side, reading/writing memory while the target is running is already supported and even from the GDBServer side it is not a problem.
The main issue is to support async mode, so GDB will allow the IDE to send commands even if the target is running which is not possible in non-async / non-continuous mode.


Best regards
Alex

MichaelK

Beginner

Date of registration: Mar 5th 2013

Posts: 4

5

Friday, April 12th 2013, 10:18am

Hi Alex,

are there any news? We really need this feature, because we want to use Eclipse and Build a live watch feature for it. The other toolchains like IAR workbench have many other disadvantages in our situation.

Is the Source Code of the GDBserver open such that I could see how difficult it is to add the support for async mode?

Thank you very much, Michael

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

6

Friday, April 19th 2013, 8:44am

Hi Michael,

Quoted

are there any news?

As I previously wrote...:
It is planned for some time later this year. No specific schedule yet.

Quoted

Is the Source Code of the GDBserver open such that I could see how difficult it is to add the support for async mode?

No, the source code of J-Link GDBServer is not open.


Best regards
Alex

Erich

Beginner

Date of registration: Jun 26th 2015

Posts: 1

7

Friday, June 26th 2015, 12:54pm

Segger J-Link GDB Server Asynchronous Mode

I'm facing the same problem as in JLink GDBServer async mode
that the J-Link GDB Server currently does not support asynchronous mode.
I understand that you get a lot of feature requests, but actually this one would be a really, really great and cool one.

I'm mainly using Freescale Kinetis devices, but all devices you support would benefit from that, as that way it should be possible to read/write memory while the target is running.
So if this is not already planned, would it be possible to increase the priority of that feature ;-).

Thanks,
Erich