This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 4/4 take 2] Improved linker-debugger interface
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 19 Sep 2012 13:14:22 +0200
- Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface
- References: <20120719110518.GE16185@redhat.com> <20120815172346.GA5696@host2.jankratochvil.net> <20120919094933.GA3023@redhat.com>
Hi Gary,
On Wed, 19 Sep 2012 11:49:34 +0200, Gary Benson wrote:
> How do I configure/build/test gdb so that it is using linux-low.c?
> I've updated the tests to work with gdbserver, but with my current
> setup solib-svr4.c is being used, so all the tests are passing.
it is enough to use gdbserver:
http://sourceware.org/gdb/wiki/TestingGDB#Testing_gdbserver_in_a_native_configuration
I have put there a debug dump and for example for gdb.base/return.exp it
really prints several SVR4:PASS and no SVR4:FAIL.
There are some corner cases where solib-svr4.c logic may be used but those are
only rare and discussed in some past gdb-patches mails.
Could you be more specific how do you run the test and how have you found
gdb/gdbserver/linux-low.c is not used?
Thanks,
Jan
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 3d60aa1..4a431f3 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1277,8 +1277,10 @@ svr4_current_sos (void)
info->main_lm_addr = library_list.main_lm;
}
+puts("SVR4:PASS");
return library_list.head ? library_list.head : svr4_default_sos ();
}
+puts("SVR4:FAIL");
info = get_svr4_info ();