Joshua Branson <jbra...@dismail.de> writes:

> Janneke Nieuwenhuizen <jann...@gnu.org> writes:
>
>> Sergey Bugaev writes:
>>
>> Hello Sergey,
>>
>>> On Wed, May 17, 2023 at 9:25 PM Janneke Nieuwenhuizen
>>> <jann...@gnu.org> wrote:
>>
>>> I've recently been doing this kind of debugging early boot-up process
>>> *a lot*, so maybe I could provide some tips indeed. For getting more
>>> lines of output, try console=com0 on gnumach cmdline, and run qemu
>>> with -nographic -serial stdio or something like that.
>>

>>> Other than that, just attach gdb and see what it crashes on? Like this:
>>>
>>> $ gdb /path/to/gnumach
>>> (gdb) tar rem :1234
>>> (gdb) b i386_exception
>>> (gdb) b task_terminate
>>> (gdb) b Panic
>>> (gdb) add-symbol-file /path/to/rumpdisk.static
>>> blah-blah (y/n?) y
>>> (gdb) c
>>
>> [..]
>>
>> Ah, I had no idea; this is so helpful.  Maybe a good idea to have this
>> on the website/wiki, right?
>
> Yes it will be.  I will send a patch for it soon.  Adding it for my todo
> list.

Actually where should I add this on the wiki?   I think Samuel put some

Possibly here:

open_issues/debugging_gnumach_startup_qemu_gdb.html


>
>>
>> Greetings,
>> Janneke

-- 

Joshua Branson
Sent from the Hurd

Reply via email to