This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Displaced stepping just enable in non-stop mode
- From: Joel Brobecker <brobecker at adacore dot com>
- To: teawater <teawater at gmail dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Michael Snyder <msnyder at vmware dot com>, Pedro Alves <pedro at codesourcery dot com>
- Date: Tue, 7 Oct 2008 08:17:45 -0400
- Subject: Re: [RFA] Displaced stepping just enable in non-stop mode
- References: <daef60380810062326u442f166em1b1d2c1120a2c80b@mail.gmail.com>
> 2008-10-07 Hui Zhu <teawater@gmail.com>
>
> * infrun.c (use_displaced_stepping): Displaced stepping just
> enable in non-stop mode.
There is still a piece missing. Namely, allow the user to force
displaced-stepping in a mode that is not non-stop. Pedro suggested that
we either change the maint command, or add a new one. How about changing
the maint command into a mainstream command that's a tri-state:
set use-displaced-stepping (auto|on|off)
By default, it's "auto" which means that the debugger tries to determine
from the situation whether it's necessary or not (basically if non-stop).
But the user can then override the decision either way.
--
Joel