Andrew Gallatin writes:
1) How do I see the contents of the message buffer from a remote
gdb session?. The scenario is that the host has crashed, my
driver has spewed a few IOLogs, but I have no way to run
"dmesg" to see them.
Is my only option to log in as ">console" and hook up a
monitor to the video card?
To answer my own question, after following the twisty maze of _doprnt() callers, I finally figured out that its a more or less standard BSD msgbuf. This seems to work: (gdb) x/s msgbufp->msg_bufc 0x34c00c <temp_msgbuf+12>: "standard timeslicing quantum is 10000 us\nvm_page_bootstrap: 124567 free pages\nmig_table_max_displ = 68\nIOKit Component Version 7.0:\nWed Sep 24 15:43:30 PDT 2003; root(rcbuilder):RELEASE_PPC/iokit/RELE"... (gdb) 0x34c0d4 <temp_msgbuf+212>: "ASE\n90 prelinked modules\nCopyright (c) 1982, 1986, 1989, 1991, 1993\n\tThe Regents of the University of California. All rights reserved.\n\nusing 1310 buffer headers and 1310 cluster IO buffer headers\nDAR"... <...> Drew _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Andrew Gallatin