This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: linux native async mode support
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: Pedro Alves <pedro at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 1 Apr 2008 09:37:11 -0400
- Subject: Re: linux native async mode support
- References: <200803140810.22883.pedro@codesourcery.com> <20080314211646.GK31663@caradoc.them.org> <200803171605.24276.pedro@codesourcery.com> <18399.1872.669733.441391@kahikatea.snap.net.nz> <20080321154856.GM25307@caradoc.them.org> <18404.15944.939015.419140@kahikatea.snap.net.nz> <20080322012535.GA9255@caradoc.them.org> <20080322220542.4DF038FC6D@kahikatea.snap.net.nz>
On Sun, Mar 23, 2008 at 10:05:42AM +1200, Nick Roberts wrote:
> Attached below. I've added [board_info gdb_protocol] == "async" since
> "target async" works after Vladimir's changes.
> # This currently only works with native linux and the async remote protocol.
> if { !([isnative] && [istarget *-linux*]) \
> && [board_info gdb_protocol] != "async" } then {
> return
> }
It has to be [board_info target gdb_protocol] or [target_info
gdb_protocol]. Actually, this:
if { !([isnative] && [istarget *-linux*]) \
&& (![target_info exists gdb_protocol] \
|| [target_info gdb_protocol] != "async") } then {
> # The plan is for async mode to become the default but toggle for now.
> set saved_gdbflags $GDBFLAGS
> set GDBFLAGS "-ex \"maint set linux-async on\""
Please append to GDBFLAGS instead of setting it; otherwise you'll lose
-nx and it will read $HOME/.gdbinit.
> #if [istarget "i386-*-linux-gnu"] then {
> linux_async_tests
> #}
Remove the commented out lines.
Otherwise OK. Thanks for posting this.
--
Daniel Jacobowitz
CodeSourcery