This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] s390*: watchpoints regression [repost]


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

Attachment: wrapper-debug.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]