This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] s390*: watchpoints regression [Re: [obv] s390*: Fix build regression]
On Sat, 17 Dec 2011 20:40:13 +0100, Pedro Alves wrote:
> In the loop that runs through the shell, fork-child.c:startup_inferior,
> nothing inserts breakpoints/watchpoints. So nothing ends up
> setting lwp->arch_private->debug_registers_changed, and so we should
> not be setting DR_CONTROL to 0 for the wrapper shell. Do you
> actually see it happen?
I see it happenning. [attached]
./gdb -nx ./gdb -ex 'watch gdb_stdin' -ex r
Reading symbols from /home/jkratoch/redhat/gdb-clean/gdb/gdb...done.
Hardware watchpoint 1: gdb_stdin
Starting program: /home/jkratoch/redhat/gdb-clean/gdb/gdb
DR_CONTROL set 0x0
lrwxrwxrwx 1 jkratoch jkratoch 0 Dec 17 19:41 /proc/12542/exe -> /bin/bash
DR_CONTROL set 0x90101
lrwxrwxrwx 1 jkratoch jkratoch 0 Dec 17 19:41 /proc/12542/exe -> /home/jkratoch/redhat/gdb-clean/gdb/gdb
DR_CONTROL set 0x90100
...
Thanks,
Jan