Sunday, February 18th 2018, 5:50am UTC+1

You are not logged in.

  • Login
  • Register

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