kgdb 'next' command crashes kernel during inter-VM kernel debugging

2013-09-02 Thread Yuri
I am trying to debug kernel in one VBox VM from another VBox VM using this howto: http://census-labs.com/news/2009/01/19/freebsd-kernel-debugging with the exception that on the target VM hint.uart.0.flags=0x90 is set instead. It works, stops at breakpoints, etc. However, kgdb command n (next

Remote kernel debugging in FreeBSD using serial communication

2009-01-17 Thread Kamlesh Patel
Hi All, I am trying remote kernel debugging in FreeBSD using serial communication. I got the following link. http://www.ibm.com/developerworks/aix/library/au-debugfreebsd.html#list1 My problem is my developing and target system does not have DS25 female port. Anyone have any idea about Remote

Re: Remote kernel debugging in FreeBSD using serial communication

2009-01-17 Thread Bakul Shah
On Sat, 17 Jan 2009 17:57:10 PST Kamlesh Patel shilp.ka...@yahoo.com wrote: Hi All, I am trying remote kernel debugging in FreeBSD using serial communication. I got the following link. http://www.ibm.com/developerworks/aix/library/au-debugfreebsd.html#list1 My problem is my developing

Re: Remote kernel debugging in FreeBSD using serial communication

2009-01-17 Thread RW
On Sat, 17 Jan 2009 17:57:10 -0800 (PST) Kamlesh Patel shilp.ka...@yahoo.com wrote: Hi All, I am trying remote kernel debugging in FreeBSD using serial communication. I got the following link. http://www.ibm.com/developerworks/aix/library/au-debugfreebsd.html#list1 My problem is my

Re: Remote kernel debugging in FreeBSD using serial communication

2009-01-17 Thread Greg 'groggy' Lehey
On Saturday, 17 January 2009 at 17:57:10 -0800, Kamlesh Patel wrote: Hi All, I am trying remote kernel debugging in FreeBSD using serial communication. I got the following link. http://www.ibm.com/developerworks/aix/library/au-debugfreebsd.html#list1 This article is inaccurate in a number

Re: FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-05 Thread Dag-Erling Smørgrav
Eugene Grosbein eu...@kuzbass.ru writes: First, you need to recompile source you change for sure :-) But you have not rebuild all other files all the time. You need to add to your /etc/src.conf (or /etc/make.conf for 6.x and earlier): MODULES_WITH_WORLD=yes This will skip rebuilding of all

Re: FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-02 Thread Bakul Shah
ddb and kgdb are two useful and often indispensable tools for kernel debugging on FBSD. ddb won't allow you source level debugging, kgdb will, but you'll need an extra machine. If the code you are debugging doesn't depend on specific hardware, one option is to run FreeBSD (with the kernel

Re: FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-02 Thread Eugene Grosbein
. Could anyone please inform me kernel Debugging tools for FreeBSD OS? First, you need to recompile source you change for sure :-) But you have not rebuild all other files all the time. You need to add to your /etc/src.conf (or /etc/make.conf for 6.x and earlier): MODULES_WITH_WORLD=yes This will skip

FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-01 Thread Kamlesh Patel
Hi Friends, Happy New Year, I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever i modify little code of vmpage.c file i need to build the whole kernel to check the modification and i even am not able to debug the kernel code. Could anyone please inform me kernel

Re: FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-01 Thread Mehul Chadha
anyone please inform me kernel Debugging tools for FreeBSD OS? Kamlesh MS CS, CSUS ___ freebsd-questi...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions

Re: FreeBSD kernel Debugging tools for Virtual Memory Module

2009-01-01 Thread Pranav Peshwe
not able to debug the kernel code. Could anyone please inform me kernel Debugging tools for FreeBSD OS? Hi, ddb and kgdb are two useful and often indispensable tools for kernel debugging on FBSD. ddb won't allow you source level debugging, kgdb will, but you'll need an extra machine. Dtrace

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Andrey V. Elsukov
08.03.08, 22:45, Yoshihiro Ota [EMAIL PROTECTED]: Has anyone tried to remote-debugging of a system running on Qemu? I thought if I could attach kgdb from Qemu host to a guest FreeBSD running on Qemu, it would be very helpful for many reasons, i.e. no hardware requirements, avoid fscking all

Remote Kernel Debugging over QEMU?

2008-03-08 Thread Yoshihiro Ota
Hello, folks, Has anyone tried to remote-debugging of a system running on Qemu? I thought if I could attach kgdb from Qemu host to a guest FreeBSD running on Qemu, it would be very helpful for many reasons, i.e. no hardware requirements, avoid fscking all disks, and so on. Has anyone ever

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Kostik Belousov
On Sat, Mar 08, 2008 at 02:45:05PM -0500, Yoshihiro Ota wrote: Hello, folks, Has anyone tried to remote-debugging of a system running on Qemu? I thought if I could attach kgdb from Qemu host to a guest FreeBSD running on Qemu, it would be very helpful for many reasons, i.e. no hardware

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Robert Watson
On Sat, 8 Mar 2008, Yoshihiro Ota wrote: Has anyone tried to remote-debugging of a system running on Qemu? I thought if I could attach kgdb from Qemu host to a guest FreeBSD running on Qemu, it would be very helpful for many reasons, i.e. no hardware requirements, avoid fscking all disks,

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Yoshihiro Ota
On Sat, 8 Mar 2008 22:18:32 +0200 Kostik Belousov [EMAIL PROTECTED] wrote: On Sat, Mar 08, 2008 at 02:45:05PM -0500, Yoshihiro Ota wrote: Hello, folks, Has anyone tried to remote-debugging of a system running on Qemu? I thought if I could attach kgdb from Qemu host to a guest FreeBSD

Help Wanted! [Re: Does anybody use gdb for kernel debugging any more?]

2005-04-13 Thread Scott Long
[Resending to get wider coverage] All, While there are ways to work around some of the problems that Greg describes, the simple fact is that kernel debugging has gone downhill quite badly in the past year. Much of this decay appears to be due to the rush to get GDB 6.x imported in time

Remote kernel debugging using GDB

2005-03-02 Thread Leubner, Achim
Hello all, I want to do some remote kernel debugging using GDB on FreeBSD 5.3. I connected host and target with a null-modem cable on COM1 and made a debug kernel with options GDB, options DDB, options KDB and makeoptions DEBUG=-g and I set the port flags of sio0 to 0x80. But if I start

kernel debugging, console and GDB_REMOTE_CHAT option

2004-08-19 Thread Marco Molteni
Hi, kernel option GDB_REMOTE_CHAT allowed to share the same serial line for console and remote gdb. Looking at the following commit message for src/sys/conf/NOTES, it says that GDB_REMOTE_CHAT has been removed, but it is not clear to me how to obain the equivalent of that option. Could somebody

Re: kernel debugging, console and GDB_REMOTE_CHAT option

2004-08-19 Thread Marco Molteni
Replying to myself: On Thu, 19 Aug 2004 Marco Molteni [EMAIL PROTECTED] wrote: kernel option GDB_REMOTE_CHAT allowed to share the same serial line for console and remote gdb. Looking at the following commit message for src/sys/conf/NOTES, it says that GDB_REMOTE_CHAT has been removed, but

Kernel Debugging

2004-08-18 Thread Dennis George
Hi, I am studying the kernel source of FreeBSD. I like to know the flow of packets from NIC to different modules of Kernel and then to the user-level. I studied the code and identified some of the functions through which the kernel handles network packets. But I want to check from where

Re: Kernel Debugging

2004-08-18 Thread Daniel O'Connor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 18 Aug 2004 15:41, Dennis George wrote: I am studying the kernel source of FreeBSD. I like to know the flow of packets from NIC to different modules of Kernel and then to the user-level. I studied the code and identified some of the

Re: Kernel Debugging

2004-08-18 Thread Julian Elischer
Daniel O'Connor wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 18 Aug 2004 15:41, Dennis George wrote: I am studying the kernel source of FreeBSD. I like to know the flow of packets from NIC to different modules of Kernel and then to the user-level. I studied the code and identified

Re: Kernel Debugging

2004-08-18 Thread Dennis George
Hi, Thanks for quick response... My Vmware is running on Windows XP machine In this installed two FreeBSD5.2 vritual machines Now can you tell me how do I enable serial communication between them ? And can you tell me any funtion which is called after the call to sysinit (after

Re: [PATCH/RFC] *BSD kernel debugging

2004-05-18 Thread Andrew Cagney
+void +_initialize_bsd_kvm (void) +{ + bsd_kvm_ops.to_shortname = kvm; + bsd_kvm_ops.to_longname = Kernel memory interface; + bsd_kvm_ops.to_doc = XXX; + bsd_kvm_ops.to_open = bsd_kvm_open; + bsd_kvm_ops.to_close = bsd_kvm_close; + bsd_kvm_ops.to_fetch_registers = bsd_kvm_fetch_registers; +

Re: [PATCH/RFC] *BSD kernel debugging

2004-05-18 Thread Mark Kettenis
Date: Mon, 17 May 2004 13:04:17 -0700 From: Marcel Moolenaar [EMAIL PROTECTED] All that's needed is a bit of new code (bsd-kvm.[ch]) and a support function in the appropriate *-nat.c file; because it is built on top of kvm(3) this is native-only. I've added a preliminary patch

[PATCH/RFC] *BSD kernel debugging

2004-05-17 Thread Mark Kettenis
FreeBSD, NetBSD and OpenBSD all provide the kvm(3) interface for debugging kernel virtual memory images: kernel crash dumps and live kernels. All three include support for this interface in the version of GDB bundled with the OS, but this code was never contributed back. I've recently

Re: [PATCH/RFC] *BSD kernel debugging

2004-05-17 Thread Marcel Moolenaar
On Mon, May 17, 2004 at 01:32:00PM +0200, Mark Kettenis wrote: I've recently implemented support for kvm(3)-based debugging that works for all three BSD's. The interface is fairly simple, just start GDB on a kernel binary, i.e. *snip* All that's needed is a bit of new code (bsd-kvm.[ch])

Re: [PATCH/RFC] *BSD kernel debugging

2004-05-17 Thread Marcel Moolenaar
On Mon, May 17, 2004 at 10:45:39PM +0200, Mark Kettenis wrote: I cannot prevent you from committing this, but if it doesn't address the items mentioned above, it may not be used on FreeBSD. Unless I'm being relieved of gdb duties of course :-) Let's see. My kvm stuff would still

Re: [PATCH/RFC] *BSD kernel debugging

2004-05-17 Thread Kris Kennaway
On Mon, May 17, 2004 at 03:17:03PM -0700, Marcel Moolenaar wrote: On Mon, May 17, 2004 at 10:45:39PM +0200, Mark Kettenis wrote: I cannot prevent you from committing this, but if it doesn't address the items mentioned above, it may not be used on FreeBSD. Unless I'm being

Kernel debugging with a multiport serial card

2004-04-07 Thread Craig Rodrigues
Hi, I have a few FreeBSD machines with an RJ-45 serial connector on the motherboard. I would like to hook these machines up to a single FreeBSD PC with a multiport serial card and set it up to do kernel debugging. Can anyone recommend any multiport serial cards? Are there any cards with known

Re: Kernel debugging with a multiport serial card

2004-04-07 Thread Roman Kurakin
Craig Rodrigues wrote: Hi, I have a few FreeBSD machines with an RJ-45 serial connector on the motherboard. I would like to hook these machines up to a single FreeBSD PC with a multiport serial card and set it up to do kernel debugging. Can anyone recommend any multiport serial cards

Re: Kernel Debugging

2004-02-10 Thread Greg 'groggy' Lehey
On Tuesday, 3 February 2004 at 11:55:42 -0800, Julian Elischer wrote: On Tue, 3 Feb 2004, Sridhar Chellappa wrote: How do we debug a freeBSD kernel ? Do we have something similar to KGDB that linux offers ? there is a whole chapter in the handbook about this.. Unfortunately, it's a little

Re: Kernel Debugging

2004-02-04 Thread Nikita Danilov
M. Warner Losh writes: In message: [EMAIL PROTECTED] Sridhar Chellappa [EMAIL PROTECTED] writes: : How do we debug a freeBSD kernel ? Do we have something similar to : KGDB that linux offers ? Ironically, we've had kgdb for a number of years longer than Linux. Actually,

Kernel Debugging

2004-02-03 Thread Sridhar Chellappa
How do we debug a freeBSD kernel ? Do we have something similar to KGDB that linux offers ? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Kernel Debugging

2004-02-03 Thread Brooks Davis
On Tue, Feb 03, 2004 at 11:48:06AM -0500, Sridhar Chellappa wrote: How do we debug a freeBSD kernel ? Do we have something similar to KGDB that linux offers ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html -- Brooks -- Any statement of the form X is

Re: Kernel Debugging

2004-02-03 Thread Julian Elischer
On Tue, 3 Feb 2004, Sridhar Chellappa wrote: How do we debug a freeBSD kernel ? Do we have something similar to KGDB that linux offers ? there is a whole chapter in the handbook about this.. (you can read the handbook from teh freebsd website, and it shuold already be on your system

Re: Kernel Debugging

2004-02-03 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Sridhar Chellappa [EMAIL PROTECTED] writes: : How do we debug a freeBSD kernel ? Do we have something similar to : KGDB that linux offers ? Ironically, we've had kgdb for a number of years longer than Linux. Actually, it is ironic that linux has a

Soekris online kernel debugging via gdb

2004-01-19 Thread Michael C. Cambria
Hi, On a Soekris box, is it possible to debug a FreeBSD kernel online using remote gdb? I already have the 2ed system to build the image for the soekris anyway, and thus the directory with the sources and symbols. To debug when the target is a traditional PC, I've followed the developers

Re: Looking for FreeBSD kernel debugging help

2003-06-11 Thread Soren Kristensen
Hi Everybody, First, thanks to everybody offering tips and help. The good news is that the problem is solved. I couldn't wait, so I finally decided to learn a little FreeBSD kernel debugging. After reading lots of not very comprehensive man pages and other guides, I got a 4.4 kernel compiled

Re: Looking for FreeBSD kernel debugging help

2003-06-11 Thread Daniel O'Connor
On Wed, 11 Jun 2003 18:22, Soren Kristensen wrote: Lesson learned: Advanced FreeBSD documentation sucks if you're not a kernel hacker, but remote kernel debugging works great and are actually kinda fun Procedural things are more likely to be usefully documented in the handbook or FAQ

Re: Looking for FreeBSD kernel debugging help

2003-06-11 Thread Terry Lambert
Daniel O'Connor wrote: Serial GDB is very nice.. You can even do firewire debugging, but I guess you guys can't really use that :) (Firewire mini-PCI board? 8-) Someone should port the network debugging from Darwin using the tiny IP stack from NetBSD. -- Terry

Re: Looking for FreeBSD kernel debugging help

2003-06-11 Thread Nat Lanza
On Wed, 2003-06-11 at 06:22, Terry Lambert wrote: Someone should port the network debugging from Darwin using the tiny IP stack from NetBSD. Well, there's this: http://ipgdb.sourceforge.net/ IPGDB is a collection of extensions to GDB and FreeBSD-4.3 to allow two-machine kernel debugging

Re: Looking for FreeBSD kernel debugging help

2003-06-11 Thread Richard Sharpe
and FreeBSD-4.3 to allow two-machine kernel debugging over UDP. It behaves much like two-machine kernel debugging over serial ports. These extensions can easily be applied to other releases of FreeBSD. With a little bit of modification, these extension can be applied to other BSD variants

Looking for FreeBSD kernel debugging help

2003-06-10 Thread Soren Kristensen
Hi Everybody, I've been working like a madman on bringing up a new Geode SC1100 based embedded board, but are stalled right now, and need help for debugging with FreeBSD The hardware basically seems to be working just fine, and I can boot both MS-DOS and OpenBSD 2.9 from a CompactFlash.

Re: Remote kernel debugging over Ethernet (was: interrupting the remote kernel)

2002-09-09 Thread Christian Zander
On Sun, Sep 08, 2002 at 09:54:47PM -0700, Tim Gilman wrote: Sorry about this, Christian; your patches are buried in my bottomless inbox. It appears real-life has swept me off my feet. I fully don't expect to come down for a month or so (getting married in 2 weeks, honeymoon, etc), so please

Remote kernel debugging over Ethernet (was: interrupting the remote kernel)

2002-09-08 Thread Greg 'groggy' Lehey
On Saturday, 7 September 2002 at 10:28:27 +0200, Christian Zander wrote: On Sat, Sep 07, 2002 at 12:56:12AM -0700, Julian Elischer wrote: What I found to work well is remote GDB debugging with the UDP wrapper (ip-gdb), it responds to CTRL-C as expected. huh? do we have that? (rushes of to

Re: Remote kernel debugging over Ethernet (was: interrupting the remote kernel)

2002-09-08 Thread Christian Zander
On Sun, Sep 08, 2002 at 05:54:56PM +0930, Greg 'groggy' Lehey wrote: Just by coincidence, I heard of this today from Richard Sharpe of Panasas. It seems that Tim has moved on, which is possibly why you haven't heard back from him. I was aware of that, I had been in touch with Tim over

Re: Remote kernel debugging over Ethernet (was: interrupting the remote kernel)

2002-09-08 Thread Tim Gilman
Christian Zander at 9/8/02 (maybe): On Sun, Sep 08, 2002 at 05:54:56PM +0930, Greg 'groggy' Lehey wrote: Just by coincidence, I heard of this today from Richard Sharpe of Panasas. It seems that Tim has moved on, which is possibly why you haven't heard back from him. I was aware of that, I had

UDP based kernel debugging

2002-05-28 Thread Tim Gilman
Panasas, Inc., (http://www.panasas.com) is releasing modifications to FreeBSD 4.3's gdb stubs to allow UDP-based two machine debugging. The source for these changes is available on SourceForge: http://ipgdb.sourceforge.net A snippet from the docs: The remote debugger functions much like

Re: Kernel Debugging over the Ethernet?

2002-02-25 Thread Bakul Shah
The value of network debugging to me is not that I can avoid buying a serial cable (big deal), it's that I can do the debugging remotely. Agreed. If I'm going to ssh into a local machine and debug from there, then I can use a serial cable. The serial cable solution does not scale too well

Re: Kernel Debugging over the Ethernet?

2002-02-25 Thread Julian Elischer
On Mon, 25 Feb 2002, Bakul Shah wrote: The value of network debugging to me is not that I can avoid buying a serial cable (big deal), it's that I can do the debugging remotely. Agreed. If I'm going to ssh into a local machine and debug from there, then I can use a serial cable.

Re: Kernel Debugging over the Ethernet?

2002-02-25 Thread Brad Huntting
stack, no? While this is easier than tcp, it's still expensive in that you have to cooperate with applications which use IP. However, such a mechanism (kernel debugging integrated into the UDP/IP code) could also support things like SNMP directly to the kernel. Without involving user process

Re: Kernel Debugging over the Ethernet?

2002-02-23 Thread Bakul Shah
Without TCP, you have to implement your own version of retry and ack (equivalent to negotiating a window size of 1), and so you have to redo what's already there. Would be nice to have a reliable channel but in our experience not having this was not a big deal. The gdb serial protocol is

Re: Kernel Debugging over the Ethernet?

2002-02-23 Thread Julian Elischer
On Sat, 23 Feb 2002, Bakul Shah wrote: Without TCP, you have to implement your own version of retry and ack (equivalent to negotiating a window size of 1), and so you have to redo what's already there. Would be nice to have a reliable channel but in our experience not having this was

Re: Kernel Debugging over the Ethernet?

2002-02-23 Thread Terry Lambert
Julian Elischer wrote: The other issue with TCP is that you can set up specific flows in the company firewall, and also permit SSLeay based tunnel encapsulation from outside via an intermediate machine. This isn't really required for off-site debugging, but it gives another

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Michael Smith
1) Easy to write a very minimal, outside the stack, IP/UDP layer. One (very nasty) already exists in libstand. There was a very small TCP/IP stack mentioned on /. the other day; it looked close to ideal for this application. -- To announce that there must be no criticism of the president,

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Andrew Gallatin
Justin C.Walker writes: On Wednesday, February 20, 2002, at 04:52 PM, Julian Elischer wrote: yes but we might as well be protocol compatible if possible :-) If only to re-use what they did in gdb :-) The Darwin/Mac OS X scheme only deals with IOKit because that's where the

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Julian Elischer
This is cool. As people talk about this it seems that more and more of the needed parts are already available from one source or another.. On Thu, 21 Feb 2002, Michael Smith wrote: 1) Easy to write a very minimal, outside the stack, IP/UDP layer. One (very nasty) already exists in

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Terry Lambert
Julian Elischer wrote: On Thu, 21 Feb 2002, Michael Smith wrote: There was a very small TCP/IP stack mentioned on /. the other day; it looked close to ideal for this application. though I think it is probably better to use a UDP transport rther than TCP it would be worth checking it out

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Benedikt Schmidt
Terry Lambert [EMAIL PROTECTED] wrote: Julian Elischer wrote: On Thu, 21 Feb 2002, Michael Smith wrote: There was a very small TCP/IP stack mentioned on /. the other day; it looked close to ideal for this application. though I think it is probably better to use a UDP transport rther

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Julian Elischer
Ok, so now George has so many choices to choose from that I'm expecting 3 different implementations from him, with no common components :-) On Thu, 21 Feb 2002, Benedikt Schmidt wrote: Terry Lambert [EMAIL PROTECTED] wrote: Julian Elischer wrote: On Thu, 21 Feb 2002, Michael Smith wrote:

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Terry Lambert
Benedikt Schmidt wrote: Look at http://slashdot.org/article.pl?sid=02/01/29/2115210mode=thread. The TCP/IP stack mentioned in this article can be found at http://dunkels.com/adam/uip/ and is licensed under the 4-clause BSD license. Thank you. -- Terry To Unsubscribe: send mail to [EMAIL

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread Justin C. Walker
The Apple darwin site is: http://www.opensource.apple.com I've not looked through the source for this, so you may have to inquire on the darwin-development mailing list for pointers into the source repository. Regards, Justin On Thursday, February 21, 2002, at 07:48 AM, Andrew Gallatin

Re: Kernel Debugging over the Ethernet?

2002-02-21 Thread George V. Neville-Neil
Ok, so now George has so many choices to choose from that I'm expecting 3 different implementations from him, with no common components :-) That's my exact plan, how did you know? Actually this has all been pretty helpful, and I'll be considering the options and playing as soon as I get that

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Terry Lambert
George V. Neville-Neil wrote: Now that Luigi has put in polling support for some ethernet drivers I was wondering how much work it would be to make the remote kernel debugging run over the ethernet. I have worked on systems like this before (it's the reason I did polling network

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Luigi Rizzo
support for some ethernet drivers I was wondering how much work it would be to make the remote kernel debugging run over the ethernet. I have worked on systems like this before (it's the reason I did polling network device drivers in Wind River's VxWorks) but it depends on a debugging system

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Bakul Shah
On Tue, 19 Feb 2002, Julian Elischer wrote: Hi George. There was someone recently that posted that they had some sort of remote debuging working over an ethernet (or at least that they ALMOST had it working.). I remember thinking Cool. I have however had good success with the

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Julian Elischer
the remote kernel debugging run over the ethernet. I have worked on systems like this before (it's the reason I did polling network device drivers in Wind River's VxWorks) but it depends on a debugging system that has the ability to have its back end swapped out. Who would I talk

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread George V. Neville-Neil
Folks, Thanks for all the helpful hints. Depending on what I find when I look at how DDB/GDB work now I will probably do the following: A) Use UDP/IP as the transport. Reasons: 1) Easy to write a very minimal, outside the stack, IP/UDP layer. 2) Allows debugging through routers,

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Julian Elischer
On Wed, 20 Feb 2002, Bakul Shah wrote: I may have forgotten a few things but this is the gist of how it worked. Credit for all this work goes to someone else. We had meant to give this back to the FreeBSD community but didn't get around to it in time and now it is not possible. Why

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Bakul Shah
We had meant to give this back to the FreeBSD community but didn't get around to it in time and now it is not possible. Why not? (curiosity, not disbelief) The company got sold before we could sort all this out and a bunch of the original people no longer work there. Actually anything is

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Bakul Shah
Forgot to add: this is a pretty straight forward thing to do and anyone can hack it together in a few days especially when you have a functional spec of a sort! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Greg Lehey
On Tuesday, 19 February 2002 at 21:36:25 -0800, George V. Neville-Neil wrote: Hi Folks, Now that Luigi has put in polling support for some ethernet drivers I was wondering how much work it would be to make the remote kernel debugging run over the ethernet. I have worked on systems

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread George V. Neville-Neil
I was talking to Louis Gerbarg about this topic at the BSDCon last week. Apparently Darwin already has this functionality, so I suppose you'd like to take a look at it. That depends on where they put it. If it depends on I/OKit then we won't be able to use it easily I figure. Thanks for

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Julian Elischer
yes but we might as well be protocol compatible if possible :-) If only to re-use what they did in gdb :-) On Wed, 20 Feb 2002, George V. Neville-Neil wrote: I was talking to Louis Gerbarg about this topic at the BSDCon last week. Apparently Darwin already has this functionality, so I

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Greg Lehey
On Wednesday, 20 February 2002 at 16:52:48 -0800, Julian Elischer wrote: On Wed, 20 Feb 2002, George V. Neville-Neil wrote: I was talking to Louis Gerbarg about this topic at the BSDCon last week. Apparently Darwin already has this functionality, so I suppose you'd like to take a look at

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Julian Elischer
you mean they use the same protocol? On Thu, 21 Feb 2002, Greg Lehey wrote: On Wednesday, 20 February 2002 at 16:52:48 -0800, Julian Elischer wrote: On Wed, 20 Feb 2002, George V. Neville-Neil wrote: I was talking to Louis Gerbarg about this topic at the BSDCon last week. Apparently

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Greg Lehey
On Wednesday, 20 February 2002 at 17:03:38 -0800, Julian Elischer wrote: On Thu, 21 Feb 2002, Greg Lehey wrote: On Wednesday, 20 February 2002 at 16:52:48 -0800, Julian Elischer wrote: On Wed, 20 Feb 2002, George V. Neville-Neil wrote: I was talking to Louis Gerbarg about this topic at the

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Umesh Vaishampayan
On Wednesday, February 20, 2002, at 04:14 PM, George V. Neville-Neil wrote: I was talking to Louis Gerbarg about this topic at the BSDCon last week. Apparently Darwin already has this functionality, so I suppose you'd like to take a look at it. That depends on where they put it. If it

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread Justin C . Walker
On Wednesday, February 20, 2002, at 04:52 PM, Julian Elischer wrote: yes but we might as well be protocol compatible if possible :-) If only to re-use what they did in gdb :-) The Darwin/Mac OS X scheme only deals with IOKit because that's where the drivers live. The protocol

Re: Kernel Debugging over the Ethernet?

2002-02-20 Thread George V. Neville-Neil
This all look great. I've got a Darwin 1.4 CD at home, I'll check it out tonight or some time this week. Later, George To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Kernel Debugging over the Ethernet?

2002-02-19 Thread George V. Neville-Neil
Hi Folks, Now that Luigi has put in polling support for some ethernet drivers I was wondering how much work it would be to make the remote kernel debugging run over the ethernet. I have worked on systems like this before (it's the reason I did polling network device drivers in Wind

Re: Kernel Debugging over the Ethernet?

2002-02-19 Thread Julian Elischer
Folks, Now that Luigi has put in polling support for some ethernet drivers I was wondering how much work it would be to make the remote kernel debugging run over the ethernet. I have worked on systems like this before (it's the reason I did polling network device drivers in Wind

Re: Kernel Debugging over the Ethernet?

2002-02-19 Thread George V. Neville-Neil
Hi George. There was someone recently that posted that they had some sort of remote debuging working over an ethernet (or at least that they ALMOST had it working.). I remember thinking Cool. I have however had good success with the serial crossover cables needed for the curren serial

Re: Kernel Debugging over the Ethernet?

2002-02-19 Thread Julian Elischer
On Tue, 19 Feb 2002, Julian Elischer wrote: Hi George. There was someone recently that posted that they had some sort of remote debuging working over an ethernet (or at least that they ALMOST had it working.). I remember thinking Cool. I have however had good success with the serial

On-Line Kernel Debugging Using Remote GDB

2001-06-06 Thread Juan Fco Rodriguez Hervella
Hi: I am trying to debug a kernel using the steps specified in the Handbook. I follow the steps to compile the kernel, reboot with -d option, and in the other machine, I run gdb -k kernel and so... I have both machines joined with a serial null-modem cable, but when I try: (kgdb) target remote

Re: On-Line Kernel Debugging Using Remote GDB

2001-06-06 Thread Marvin McNett
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

Kernel debugging woes (was Re: Quotas crashing, 4.2-RELEASE, incomplete backtrace ...)

2001-02-19 Thread David Kirchner
Hi, First, apologies if this is not the appropriate place to post this. I'm trying to hack around the kernel, but I'm running in to roadblocks with gdb. Also, I'm not on this mailing list, so please Cc: me on any replies. I was having a problem with a 4.2-RELEASE box's quotas. I compiled up a

kernel debugging help

2001-01-22 Thread Zhiui Zhang
I am debugging a kernel. Since a kernel is consisted of many files, how can I load a specific file into gdb, browse it, and set a break point at some line within that file? Right now, I can only view the file whose statements are being executed. Thanks. -Zhihui To Unsubscribe: send mail to

Re: kernel debugging!!!

2001-01-11 Thread Alfred Perlstein
* Mohana Krishna Penumetcha [EMAIL PROTECTED] [010111 02:26] wrote: we are testing our driver for 4.0 freeBSD. kernel is panicing in the attach routine with the message "double fault". the longest sequence of function calls from the attach routine use 180 bytes of kernel stack(this

Re: kernel debugging!!!

2001-01-11 Thread Mohana Krishna Penumetcha
Afaik, on i386 you have ~4k of kernel stack, however you have to realize that driver entry can come from an interrupt generated when the stack is already nearly exhausted. I'm not really that much of a driver programmer, but I've heard of people facing this problem before, solutions

Re: kernel debugging!!!

2001-01-11 Thread Alfred Perlstein
* Mohana Krishna Penumetcha [EMAIL PROTECTED] [010111 03:08] wrote: Afaik, on i386 you have ~4k of kernel stack, however you have to realize that driver entry can come from an interrupt generated when the stack is already nearly exhausted. I'm not really that much of a driver

Re: kernel debugging!!!

2001-01-11 Thread Mohana Krishna Penumetcha
* Mohana Krishna Penumetcha [EMAIL PROTECTED] [010111 03:08] wrote: Afaik, on i386 you have ~4k of kernel stack, however you have to realize that driver entry can come from an interrupt generated when the stack is already nearly exhausted. I'm not really that much of a driver

Re: kernel debugging!!!

2001-01-11 Thread Julian Elischer
Mohana Krishna Penumetcha wrote: * Mohana Krishna Penumetcha [EMAIL PROTECTED] [010111 03:08] wrote: Afaik, on i386 you have ~4k of kernel stack, however you have to realize that driver entry can come from an interrupt generated when the stack is already nearly exhausted.

Re: kernel debugging!!!

2001-01-11 Thread Mohana Krishna Penumetcha
On Thu, 11 Jan 2001, Julian Elischer wrote: Mohana Krishna Penumetcha wrote: * Mohana Krishna Penumetcha [EMAIL PROTECTED] [010111 03:08] wrote: Afaik, on i386 you have ~4k of kernel stack, however you have to realize that driver entry can come from an interrupt

Re: kernel debugging suggestion needed

2001-01-05 Thread Doug Rabson
On Tue, 2 Jan 2001, Doug White wrote: On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is

kernel debugging suggestion needed

2001-01-02 Thread Zhiui Zhang
I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is executing (with remote debugging or ddb)? Thanks for your help. -Zhihui To

Re: kernel debugging suggestion needed

2001-01-02 Thread Doug White
On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is executing (with remote debugging or ddb)?

Re: kernel debugging suggestion needed

2001-01-02 Thread Andrew R. Reiter
[Sorry for lack of message in this reply but I accidently rm'd the original emails to reply to :-) ] One thing I've done in the past is if it's convenient in a section of code to hijack a function pointer in the kernel, then hijack it so that it will call your code... Silly, and not always

  1   2   >