DragonFly BSD
DragonFly kernel List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: weird remote debug problem


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Oct 2004 12:40:42 -0700 (PDT)

:I'm trying to track down what I think is a bug in bus_dmamem_alloc()
:using kgdb over a serial line and am having problems with break
:points.
:...
:
:After loading my driver, sending a BREAK over the comconsole drops me
:into gdb. I set a break point on bus_dmamem_alloc and continue. Then,
:I send an ioctl to the driver to trigger memory allocation and think
:that the break point has triggered because the below shows in the
:comconsole
:
:CPU1 stopping CPUs: 0x00000001
: stopped
:
:but gdb hasn't triggered. Has anyone seen this before? Any ideas? Tnx!
:
:-- 
:Chuck Tuffli
:Agilent Technologies

    It's quite possible that gdb's breakpoint feature is broken in 
    current kernels.  There have been a lot of changes and I don't think
    anyone has actually tried to use the feature in the last year except
    you, just now.

    What I suggest is that you just throw a lot of printf()'s into the
    code.  That's what I do, mostly.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]