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 <[EMAIL PROTECTED]>, 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message