Sunday, February 25th 2018, 6:34pm 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.

duane

Beginner

Date of registration: Dec 18th 2007

Posts: 4

1

Thursday, December 20th 2007, 4:16am

jlink-gdb-server - data rd/wr hardware breakpoint how to question.

JLINK-GDB - has support for hardware instruction breakpoints, the CI, BI, commands.

What about a DATA WRITE breakpoint?
What about a DATA READ breakpoint?

In my case, I have a nasty NULL pointer bug somewhere in my code. It trashes my interrupt vector table located at zero.

When that happens, well - bad things happen.

It would be *GREAT* to be able to set a write breakpoint at address ZERO and see what is trashing my vector table.

How do I do that with Jlink-GDB-SERVER?

Thanks.
-Duane.

SEGGER - Tobias

Super Moderator

Date of registration: Nov 27th 2007

Posts: 21

2

Thursday, December 20th 2007, 1:43pm

Hi Duane,

You are right, the GDB Server should allow to set watchpoints
We will implement this.

Best regards,
Tobias

SEGGER - Tobias

Super Moderator

Date of registration: Nov 27th 2007

Posts: 21

3

Friday, December 21st 2007, 8:25pm

Hi Duane,

I have built a new beta version which includes support
for data watchpoints.

The new version is available on our website:
http://www.segger.com/download_jlink_beta.html

You can set watchpoints using the GDB Insight
or via new remote commands:

BD [R|W] <Addr> [<Data>] [<DataMask>]
BDH [R|W] <Addr> [<Data>] [<DataMask>]
BDB [R|W] <Addr> [<Data>] [<DataMask>]


For a list of available remote commands please type in the GDB console:
monitor help

For more detailed information about a remote command please type:
monitor help <command>

Best regards,
Tobias