Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 1999 14:31:05 -0500 (EST)
From:      Marc Tardif <intmktg@CAM.ORG>
To:        "Ronald F. Guilmette" <rfg@monkeys.com>
Cc:        freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: disassembling syscalls 
Message-ID:  <Pine.LNX.4.10.9911261422280.13516-100000@Gloria.CAM.ORG>
In-Reply-To: <66701.943643912@monkeys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Pine.LNX.4.10.9911261346300.13332-100000@Gloria.CAM.ORG>, 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-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9911261422280.13516-100000>