From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 27 18:07:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEC1516A4CE for ; Mon, 27 Sep 2004 18:07:50 +0000 (GMT) Received: from pony2pub.arc.nasa.gov (pony2pub.arc.nasa.gov [128.102.31.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64A0243D5C for ; Mon, 27 Sep 2004 18:07:48 +0000 (GMT) (envelope-from jtoung@arc.nasa.gov) Received: from mrcrab.nas.nasa.gov ([129.99.139.47] verified) by pony2pub.arc.nasa.gov (CommuniGate Pro SMTP 4.1.8) with ESMTP id 13907550; Mon, 27 Sep 2004 11:07:45 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Jerry Toung To: Mark Teel Date: Mon, 27 Sep 2004 11:07:21 -0700 User-Agent: KMail/1.4.3 References: <200409241628.43022.jtoung@earthlink.net> <200409241648.10308.jtoung@earthlink.net> <4154B97B.7050902@teel.ws> In-Reply-To: <4154B97B.7050902@teel.ws> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200409271107.21241.jtoung@arc.nasa.gov> cc: freebsd-hackers@freebsd.org Subject: remote debugging question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jtoung@arc.nasa.gov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 18:07:50 -0000 Good morning list, I CAN connect to the target but the 'bt" command return #0 0x00000000 in= ??=20 () at the remote. So this is what I am doing, hopefully somebody can tell me what I am miss= ing. I have 2 laptops same brand and model, both running 6.0current and same k= ernel=20 config. laptop A panics because of kld I am writing and I want to debug A with la= ptop=20 B. I reboot A and login and enter CTRL-ATL-ESC to get db> prompt, then enter= =20 'gdb', then enter 's'. At this point I don't get the db> prompt anymore a= nd A=20 seems to be in a loop, is that normal? on laptop B, the only thing I did is get the copy of kernel.debug.A in=20 /usr/obj/usr/src/sys/MYKERNEL I 'cd' to that location an run kgdb file kernel.debug.A set remotebaud 1 set remotebreak 1 set debug remote 1 target remote /dev/cuaa0 it connects, on B screen (not using X) I see Warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. warning: shared library handler failed to enable breakpoint Sending packet: $qSymbol ::#5...Ack Packet Received: Packet qSymbol (symbol-lookup) is NOT supported (kgdb) when I type 'bt', that's where I get #0 0x00000000 in ?? () Please somebody advise since I can't do anything with that. And laptop A = is=20 still hanging/loop, and no prompt. Thanks a lot, Jerry