From owner-freebsd-questions Fri Nov 26 11:31:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from Gloria.CAM.ORG (Gloria.CAM.ORG [205.151.116.34]) by hub.freebsd.org (Postfix) with ESMTP id 6AF4B1592F; Fri, 26 Nov 1999 11:31:40 -0800 (PST) (envelope-from intmktg@CAM.ORG) Received: from localhost (intmktg@localhost) by Gloria.CAM.ORG (8.9.3/8.9.3) with ESMTP id OAA13634; Fri, 26 Nov 1999 14:31:05 -0500 Date: Fri, 26 Nov 1999 14:31:05 -0500 (EST) From: Marc Tardif To: "Ronald F. Guilmette" Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: disassembling syscalls In-Reply-To: <66701.943643912@monkeys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On FreeBSD 2.2.5 (I know I should change, but it works), gcc 2.7.2.1, gdb 4.16, typing 'disassemble syscall_as_seen_in_main' I get: No function contains specified address. Using the same procedure on FreeBSD 3.3-RELEASE, gcc 2.7.2.3, gdb 4.18, I get some output which is shorter than I expected, but I'll probably have to trace through more calls and branches. By the way, how can I trace names which start with a period? they sometime appear when I type 'disassemble' followed by a tab, but typing the name with and without the period doesn't work either. On Fri, 26 Nov 1999, Ronald F. Guilmette wrote: > > In message , you wrote > : > > >How can syscalls be disassembled on BSD? > > > >So far, I tried using ktrace -tc on compiled code using the syscall I > >wanted, but the output from kdump doesn't look like asm. I also tried > >using gdb directly, compiling the source with the -g and -static flags, > >but I couldn't use the disassemble command on the syscall which appeared > >in the output of 'disassemble main'. > > GDB disassembles stuff. > > As far as I know, that functionality works. > > What do you mean when you say that you ``couldn't use the disassemble > command''. Why couldn't you? (Carpal tunnel finally getting to you > perhaps? :-) > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message