Discussion:
[9fans] rb kernel vs acid
(too old to reply)
erik quanstrom
2013-08-05 01:07:15 UTC
Permalink
if i type src(main) when debugging a routerboard
kernel, i get rather puzzling output

; acid 9rb
9rb:mips ELF32 executable
/sys/lib/acid/port
/sys/lib/acid/mips
acid; src(main)
no source for ?file? # fileline (see symbol(2))

this is especially odd since ktrace does work, acid
does appear to disassemble correctly, map() appears
to be reasonable and e.g., /bin/cat works as expected.

does anyone else see this, too?

by the way there is a patch for the type skew
in symbol(2): /n/sources/patch/mach-man-type

- erik
David du Colombier
2013-08-05 04:59:59 UTC
Permalink
Post by erik quanstrom
if i type src(main) when debugging a routerboard
kernel, i get rather puzzling output
; acid 9rb
9rb:mips ELF32 executable
/sys/lib/acid/port
/sys/lib/acid/mips
acid; src(main)
no source for ?file? # fileline (see symbol(2))
this is especially odd since ktrace does work, acid
does appear to disassemble correctly, map() appears
to be reasonable and e.g., /bin/cat works as expected.
does anyone else see this, too?
Yes, I have the same issue here.
--
David du Colombier
erik quanstrom
2013-08-05 05:04:05 UTC
Permalink
Post by David du Colombier
Post by erik quanstrom
does anyone else see this, too?
Yes, I have the same issue here.
i've found part of the problem is machbytype doesn't get the joke
with the type is 0x7f E L F. supposing machbytype did the right thing
when faced with an elf header (with richer arguments), it's an open
question for me if libmach could then figure it out.

- erik

Loading...