Looks like you forgot to set the 'flags 080' on the sio device of the
machine being debugged.  This is a logical OR with what was set before.  So,
for me, I changed the line in my kernel config

    device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
to
    device          sio0    at isa? port IO_COM1 flags 0x90 irq 4

and attach my serial cable to the first serial port of the machine being
debugged.

Also, you want to use

    target remote /dev/cuaa0    (the dialout serial port)

assuming you've attached your serial cable to the first serial port of the
debugging host.

Finally, you won't have any sioX devices in /dev, so stop looking for them.
:-)

Juan Fco Rodriguez Hervella wrote:

> When I type 'gdb', this happens:
>
> gdb> gdb
> gdb> No gdb port enable. Set flag 0x80 on desired port
> gdb> in your configuration file (currently sio only)
>
> Other question related:
>
> Which is the difference between /dev/cuaaX and /dev/ttydX ?
> I have to type in REMOTE machine 'target remote /dev/cuaaX or
> /dev/ttydX' ?
> and also, I dont find the sioX devices in /dev.
>
> Thansk very much.
>
> Marvin McNett escribi�:
> >
> > I'm not sure if you're already doing this but, on the machine being
> > debugged, you must switch to gdb mode by typing 'gdb' at the DDB
> > prompt.  Then, after running gdb -k on your debugging box, go back to
> > the machine being debugged and type 's'.  If you're already doing this,
> > then it looks like you've got a communication problem.  Let me know and
> > I'll send you more information about my setup.
> >
> > -Marvin
>
> --
> *********************************
> Juan F. Rodriguez Hervella
> Universidad Carlos III de Madrid
> ********************************


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to