Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 1997 20:54:59 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        current@freebsd.org, j@uriah.heep.sax.de
Subject:   Re: Problems using remote gdb
Message-ID:  <199705091054.UAA01919@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >   strip -x, and boot it using the -d boot option. Connect the first
>>                                                             ^^^^^^^^^
>> >   serial line of the target machine to any serial line of the debugging
>>     ^^^^^^^^^^^ Now any sio port can be used.  Previously only sio0 with
>>                 the default configuration (with i/o address 0x3f8, etc.)
>> 		could be used.
>
>What are the knobs for this?

See LINT.

>> >(kgdb) target remote /dev/cuaa0                                       
>>                       ^^^^^^^^^^^
>> 
>> This is the first sio port on a FreeBSD debugger-host.  Any serial port on
>> any debugger-host can be used.
>
>Sure.  That's why a wrote ``assuming the first serial port''.  From a
>kernel hacker, i expect he knows that the second port will be cuaa1
>etc. ;-)

It's only the first sio serial port under FreeBSD.

>> >   Now, on the target host (that entered DDB right before even starting
>>                 ^^^^^^^^^^^ some confusion about `host'.
>> 			    I used it for the machine running gdb.
>> >   the device probe), type:                                          
>
>Target host is the machine running the kernel to test.  That's also

Targets aren't usually referred to as hosts.  See gdb.info.

>the machine that now (apparently) requires some flags to sio0 (or
>whatever has been chosen), so my question: which flags?  According to
>Justin, 0x40.

Nope.  0x10.  See LINT.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705091054.UAA01919>