Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Problem with "watch" on a new port.
@ 2009-07-01  9:10 Florent DEFAY
  2009-07-01  9:51 ` Vladimir Prus
  0 siblings, 1 reply; 7+ messages in thread
From: Florent DEFAY @ 2009-07-01  9:10 UTC (permalink / raw)
  To: gdb

Hi,

I am working on a new port for a 16 bit machine.

step, stepi, next, nexti, breakpoints work well.
The problems come with "watch", it does not work :

(gdb) watch i
Hardware watchpoint 2: i
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000174 in main () at main.c:67
67        for (i = 0; i < 10; i++)
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000019c in main () at main.c:67
67        for (i = 0; i < 10; i++)
(gdb)


or


(gdb) watch results_16[0]
(gdb) c
Continuing.

and assignment of results_16[0] not detected.

I do not know where to begin to solve this problem.

Please, have you any clue?

Regards.

Florent


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Problem with "watch" on a new port.
@ 2009-07-02 15:11 Florent DEFAY
  2009-07-02 15:42 ` Vladimir Prus
  2009-07-02 15:55 ` Jeremy Bennett
  0 siblings, 2 replies; 7+ messages in thread
From: Florent DEFAY @ 2009-07-02 15:11 UTC (permalink / raw)
  To: vladimir, gdb

Thank you.

>This suggest you did not define, or improperly defined, the
>to_stopped_by_watchpoint or to_stopped_data_address or
>to_watchpoint_address_withing_range target methods.

I take inspiration from or1k and I do not find these target methods implemented.
I found them nowhere but in i386 arch, in i386-nat.c.
I do not understand the link between i386-nat.c and the t-dep file.
For my arch, I implemented a t-dep only. How to add a nat? Is it
really necessary?

>> and assignment of results_16[0] not detected.
>
>Is this variable actually modified *before* the execution leaves
>the current scope?

Yes it is.

Regards.

Florent


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-07 15:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-01  9:10 Problem with "watch" on a new port Florent DEFAY
2009-07-01  9:51 ` Vladimir Prus
2009-07-02 15:11 Florent DEFAY
2009-07-02 15:42 ` Vladimir Prus
2009-07-02 15:55 ` Jeremy Bennett
2009-07-07 12:29   ` Florent Defay
2009-07-07 15:19     ` Jeremy Bennett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox