From: Nick Roberts <nickrob@snap.net.nz>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Daniel Jacobowitz <drow@false.org>,
vladimir@codesourcery.com, gdb-patches@sources.redhat.com
Subject: Re: delete_breakpoint: don't try to insert other breakpoints
Date: Fri, 16 Nov 2007 21:44:00 -0000 [thread overview]
Message-ID: <18238.3787.459206.333769@kahikatea.snap.net.nz> (raw)
In-Reply-To: <ulk8ycjmy.fsf@gnu.org>
> > Eli, how is code which will never be reached a feature?
>
> The code is never reached only as long as breakpoints are deleted
> synchronously (because we remove the breakpoint instruction as soon as
> the inferior stops).
I've run the testsuite using my asynchronous version of GDB, with and
without Vladimir's change and, in fact, there was one less failure and
seven more passes with it. Notably, the extra passes with print-threads.exp
involved breakpoints.
Of course, this doesn't prove anything, and there may be a test that
shows the contrary, but it might provide some context.
--
Nick http://www.inet.net.nz/~nickrob
diff -cp /extra/src-async/build/gdb/testsuite/gdb1.sum /extra/src-async/build/gdb/testsuite/gdb.sum
*** /extra/src-async/build/gdb/testsuite/gdb1.sum 2007-11-17 01:22:14.000000000 +1300
--- /extra/src-async/build/gdb/testsuite/gdb.sum 2007-11-17 10:32:41.000000000 +1300
***************
*** 1,4 ****
! Test Run By nickrob on Sat Nov 17 00:48:47 2007
Native configuration is i686-pc-linux-gnu
=== gdb tests ===
--- 1,4 ----
! Test Run By nickrob on Sat Nov 17 09:59:26 2007
Native configuration is i686-pc-linux-gnu
=== gdb tests ===
*************** PASS: gdb.mi/mi2-simplerun.exp: next at
*** 10993,10999 ****
PASS: gdb.mi/mi2-simplerun.exp: step at main
PASS: gdb.mi/mi2-simplerun.exp: step to callee4
PASS: gdb.mi/mi2-simplerun.exp: exec-finish
! FAIL: gdb.mi/mi2-simplerun.exp: continue to end (1)
Running ../../../gdb/testsuite/gdb.mi/mi2-stack.exp ...
PASS: gdb.mi/mi2-stack.exp: breakpoint at callee4
PASS: gdb.mi/mi2-stack.exp: mi runto callee4
--- 10993,10999 ----
PASS: gdb.mi/mi2-simplerun.exp: step at main
PASS: gdb.mi/mi2-simplerun.exp: step to callee4
PASS: gdb.mi/mi2-simplerun.exp: exec-finish
! PASS: gdb.mi/mi2-simplerun.exp: continue to end
Running ../../../gdb/testsuite/gdb.mi/mi2-stack.exp ...
PASS: gdb.mi/mi2-stack.exp: breakpoint at callee4
PASS: gdb.mi/mi2-stack.exp: mi runto callee4
*************** PASS: gdb.threads/print-threads.exp: pro
*** 11835,11841 ****
PASS: gdb.threads/print-threads.exp: all threads ran once (slow)
PASS: gdb.threads/print-threads.exp: break thread_function (3)
PASS: gdb.threads/print-threads.exp: set var slow = 1 (2)
! FAIL: gdb.threads/print-threads.exp: Running threads (slow with kill breakpoint) (timeout)
Running ../../../gdb/testsuite/gdb.threads/pthread_cond_wait.exp ...
PASS: gdb.threads/pthread_cond_wait.exp: successfully compiled posix threads test case
PASS: gdb.threads/pthread_cond_wait.exp: breakpoint on break_me
--- 11835,11847 ----
PASS: gdb.threads/print-threads.exp: all threads ran once (slow)
PASS: gdb.threads/print-threads.exp: break thread_function (3)
PASS: gdb.threads/print-threads.exp: set var slow = 1 (2)
! PASS: gdb.threads/print-threads.exp: Hit thread_function breakpoint, 1 (slow with kill breakpoint)
! PASS: gdb.threads/print-threads.exp: Hit thread_function breakpoint, 2 (slow with kill breakpoint)
! PASS: gdb.threads/print-threads.exp: Hit thread_function breakpoint, 3 (slow with kill breakpoint)
! PASS: gdb.threads/print-threads.exp: Hit thread_function breakpoint, 4 (slow with kill breakpoint)
! PASS: gdb.threads/print-threads.exp: Hit thread_function breakpoint, 5 (slow with kill breakpoint)
! PASS: gdb.threads/print-threads.exp: program exited normally
! PASS: gdb.threads/print-threads.exp: all threads ran once (slow with kill breakpoint)
Running ../../../gdb/testsuite/gdb.threads/pthread_cond_wait.exp ...
PASS: gdb.threads/pthread_cond_wait.exp: successfully compiled posix threads test case
PASS: gdb.threads/pthread_cond_wait.exp: breakpoint on break_me
*************** PASS: gdb.threads/pthreads.exp: disable
*** 11873,11879 ****
PASS: gdb.threads/pthreads.exp: tbreak common_routine if hits >= 15
PASS: gdb.threads/pthreads.exp: stopped before calling common_routine 15 times
PASS: gdb.threads/pthreads.exp: All threads running after continuing from ^C stop
! PASS: gdb.threads/pthreads.exp: check backtrace from main thread
PASS: gdb.threads/pthreads.exp: check backtrace from thread 1
PASS: gdb.threads/pthreads.exp: check backtrace from thread 2
PASS: gdb.threads/pthreads.exp: apply backtrace command to all three threads
--- 11879,11885 ----
PASS: gdb.threads/pthreads.exp: tbreak common_routine if hits >= 15
PASS: gdb.threads/pthreads.exp: stopped before calling common_routine 15 times
PASS: gdb.threads/pthreads.exp: All threads running after continuing from ^C stop
! FAIL: gdb.threads/pthreads.exp: check backtrace from main thread
PASS: gdb.threads/pthreads.exp: check backtrace from thread 1
PASS: gdb.threads/pthreads.exp: check backtrace from thread 2
PASS: gdb.threads/pthreads.exp: apply backtrace command to all three threads
*************** PASS: gdb.xml/tdesc-xinclude.exp: set td
*** 12226,12233 ****
=== gdb Summary ===
! # of expected passes 11639
! # of unexpected failures 52
# of unexpected successes 3
# of expected failures 41
# of unknown successes 6
--- 12232,12239 ----
=== gdb Summary ===
! # of expected passes 11646
! # of unexpected failures 51
# of unexpected successes 3
# of expected failures 41
# of unknown successes 6
Diff finished. Sat Nov 17 10:35:47 2007
next prev parent reply other threads:[~2007-11-16 21:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 20:24 Vladimir Prus
2007-11-15 4:04 ` Eli Zaretskii
2007-11-15 5:59 ` Vladimir Prus
2007-11-16 10:13 ` Eli Zaretskii
2007-11-16 10:34 ` Vladimir Prus
2007-11-16 11:15 ` Eli Zaretskii
2007-11-16 13:02 ` Daniel Jacobowitz
2007-11-16 14:14 ` Vladimir Prus
2007-11-16 15:09 ` Eli Zaretskii
2007-11-16 21:44 ` Nick Roberts [this message]
2007-11-16 22:24 ` Vladimir Prus
2007-11-17 9:13 ` Eli Zaretskii
2007-11-18 1:25 ` Nick Roberts
2007-12-16 21:13 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18238.3787.459206.333769@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox