summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-07-03 23:54:02 +0000
committerjdp <jdp@FreeBSD.org>1999-07-03 23:54:02 +0000
commit5360158df22b13c88c6aab8bdf7bceeb0a55c9a8 (patch)
tree61f8827a45c4551f02718eb52e1d0bde4913dfec
parent59faa57fcaefd9fe175ee7cabf551090b86eb08f (diff)
downloadFreeBSD-src-5360158df22b13c88c6aab8bdf7bceeb0a55c9a8.zip
FreeBSD-src-5360158df22b13c88c6aab8bdf7bceeb0a55c9a8.tar.gz
Shake hands with GDB a little bit earlier so that it is possible to
debug the init functions. Submitted by: dfr
-rw-r--r--libexec/rtld-elf/rtld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 72ecab1..1ff518e 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -22,7 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.c,v 1.24 1999/06/25 02:53:48 jdp Exp $
+ * $Id: rtld.c,v 1.25 1999/06/25 04:50:06 jdp Exp $
*/
/*
@@ -289,13 +289,13 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp)
set_program_var("__progname", argv[0] != NULL ? basename(argv[0]) : "");
set_program_var("environ", env);
+ r_debug_state(); /* say hello to gdb! */
+
dbg("calling _init functions");
call_init_functions(obj_main->next);
dbg("transferring control to program entry point = %p", obj_main->entry);
- r_debug_state(); /* say hello to gdb! */
-
/* Return the exit procedure and the program entry point. */
*exit_proc = rtld_exit;
*objp = obj_main;
OpenPOWER on IntegriCloud