This is the mail archive of the gdb-prs@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]

[Bug breakpoints/15180] Agent style dprintf does not respect conditions


http://sourceware.org/bugzilla/show_bug.cgi?id=15180

--- Comment #3 from teawater <teawater at gmail dot com> 2013-04-24 01:21:59 UTC ---
(In reply to comment #2)
> http://sourceware.org/ml/gdb-patches/2013-04/msg00690.html

After patch the patch, still have bug with 2 dprintf:
(gdb) !cat 1
dprintf /home/teawater/gdb/bgdbno/gdb/2.c:8,"1:i is %d\n",i
  condition $bpnum i>5
dprintf /home/teawater/gdb/bgdbno/gdb/2.c:8,"2:i is %d\n",i
  condition $bpnum i>6

gdbserver/gdbserver :1234 ./a.out 
Process ./a.out created; pid = 6571
Listening on port 1234
Remote debugging from host 127.0.0.1
hellofriend
2:i is 0
1:i is 0
2:i is 0
home
hellofriend
2:i is 1
1:i is 1
2:i is 1
home
hellofriend
2:i is 2
1:i is 2
2:i is 2
home
hellofriend
2:i is 3
1:i is 3
2:i is 3
home
hellofriend
2:i is 4
1:i is 4
2:i is 4
home
hellofriend
2:i is 5
1:i is 5
2:i is 5
home
hellofriend
2:i is 6
1:i is 6
2:i is 6
home
hellofriend
2:i is 7
1:i is 7
2:i is 7

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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