Re: Remote GDB *still* buggy...

2000-06-18 Thread Bernd Walter

On Wed, Jun 14, 2000 at 12:27:27PM -0600, Justin T. Gibbs wrote:
 On Wednesday, 14 June 2000 at 11:05:41 -0600, Justin T. Gibbs wrote:
  I still can't get remote GDB to work correctly in a 5.0-current
  environment at speeds greater than 9600bps.  Is anyone else
  experiencing similar results?  I thought that grog had fixed this...
 
 So did I.  Are you just getting hangs?  What kind of UART?
 
 On which side of the connection?  I'm using my Thinkpad 770X
 as the GDB host and it says:
 
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 
 On the machine I'm trying to debug, a Dell Precision 410, I have:
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A

Isn't it needed anymore to set flags 0x80 on the debug port?

-- 
B.Walter  COSMO-Project http://www.cosmo-project.de
[EMAIL PROTECTED] Usergroup   [EMAIL PROTECTED]



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



Re: Remote GDB *still* buggy...

2000-06-18 Thread Matthew Dillon

:  On the machine I'm trying to debug, a Dell Precision 410, I have:
:  sio1 at port 0x2f8-0x2ff irq 3 on isa0
:  sio1: type 16550A
: 
: Isn't it needed anymore to set flags 0x80 on the debug port?
:
:Yes.  That was the output from a generic kernel.  My debug kernel
:was crashing the machine.  8-)  I'm using flags 0xC0 for the debug
:kernel.
:
:__
:Justin

Bruce's patch didn't hurt, but it didn't help my -Os crashes
either.  I have to fallback to -O kernels, which sucks.  I
have no clue where the problem is.

I am able to turn DDB and INVARIANT* on again.  I haven't
tried remote GDB debugging.

-Matt
Matthew Dillon 
[EMAIL PROTECTED]


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



Remote GDB *still* buggy...

2000-06-14 Thread Justin T. Gibbs

I still can't get remote GDB to work correctly in a 5.0-current
environment at speeds greater than 9600bps.  Is anyone else
experiencing similar results?  I thought that grog had fixed this...

--
Justin



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



Re: Remote GDB *still* buggy...

2000-06-14 Thread Justin T. Gibbs

On Wednesday, 14 June 2000 at 11:05:41 -0600, Justin T. Gibbs wrote:
 I still can't get remote GDB to work correctly in a 5.0-current
 environment at speeds greater than 9600bps.  Is anyone else
 experiencing similar results?  I thought that grog had fixed this...

So did I.  Are you just getting hangs?  What kind of UART?

On which side of the connection?  I'm using my Thinkpad 770X
as the GDB host and it says:

sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A

On the machine I'm trying to debug, a Dell Precision 410, I have:
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A

I suppose I could rip open the case to try and find what part they
put on the motherboard for the 16550 support, but I'm had similar
results with other machines.

In GDB, you see some message about "malformed messages" and you
can't seem to do anything.  The other odd part is that speeds up
to even 115200 work just fine up until the point that interrupt services
are enabled.  Then your hosed.

--
Justin



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



Re: Remote GDB *still* buggy...

2000-06-14 Thread Greg Lehey

On Wednesday, 14 June 2000 at 12:27:27 -0600, Justin T. Gibbs wrote:
 On Wednesday, 14 June 2000 at 11:05:41 -0600, Justin T. Gibbs wrote:
 I still can't get remote GDB to work correctly in a 5.0-current
 environment at speeds greater than 9600bps.  Is anyone else
 experiencing similar results?  I thought that grog had fixed this...

 So did I.  Are you just getting hangs?  What kind of UART?

 On which side of the connection?

Debug machine.

 I'm using my Thinkpad 770X as the GDB host and it says:

 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A

 On the machine I'm trying to debug, a Dell Precision 410, I have:
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A

 I suppose I could rip open the case to try and find what part they
 put on the motherboard for the 16550 support, but I'm had similar
 results with other machines.

Hmm.

 In GDB, you see some message about "malformed messages" and you
 can't seem to do anything.  The other odd part is that speeds up to
 even 115200 work just fine up until the point that interrupt
 services are enabled.  Then your hosed.

That's pretty much the symptoms I had been seeing until the fix.  I
don't understand why you're still seeing them; they were gone in a
flash on my system.  Are you sure you're using this revision?

/* $FreeBSD: src/sys/i386/i386/i386-gdbstub.c,v 1.15 2000/05/18 02:29:23 grog Exp $ */

If so, try changing the two spltty()s to splhigh() and see if that
makes the problem go away.

Greg
--
Finger [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers


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



Re: Remote GDB *still* buggy...

2000-06-14 Thread Greg Lehey

On Wednesday, 14 June 2000 at 11:05:41 -0600, Justin T. Gibbs wrote:
 I still can't get remote GDB to work correctly in a 5.0-current
 environment at speeds greater than 9600bps.  Is anyone else
 experiencing similar results?  I thought that grog had fixed this...

So did I.  Are you just getting hangs?  What kind of UART?

Greg
--
Finger [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers


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