Re: Kernel editing tools.
Robert Watson wrote: On Wed, 7 Feb 2001, Kevin Brunelle wrote: Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. Well, thanks in advance for any help you can offer. Heh. Mostly I use vi and more, along with liberal use of grep and occasionally (fear) sed. In the past, I've used glimpse for faster searching of the source tree. And cvs commands such as log, diff, annotate, and commit (!) are invaluable. When browsing less familiar source trees, such as the Linux kernel source, I like using web-based source cross-referencing. As Mike Smith points out, an excessive number of open xterm windows makes life a lot easier--the larger the screen, the more productive I am. Right now I have about 15 source files open in various vi sessions, and I'm coveting the Apple 22" display... Snort. Emacs and etags. C-X-2 and C-X-3 are your friends. We've also implemented a nightly LXR index at work for web browsing of the source. I've only played with it a little bit, but the indexed searches are sure fast. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC [EMAIL PROTECTED] http://softweyr.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
Wes Peters [EMAIL PROTECTED] writes: We've also implemented a nightly LXR index at work for web browsing of the source. I've only played with it a little bit, but the indexed searches are sure fast. I also have one of these up and available for public use at http://lxr.pdl.cs.cmu.edu/. It currently indexes RELENG_4 and current nightly, and has static indexes of a bunch of previous versions (2.0.5, 2.1.7, 2.2.8, 3.0-3.5). It's on a reasonably wimpy machine at the moment, but I'll be sticking it on a faster box next week or so. As far as actual kernel source editing tools, I'll echo the emacs+etags suggestion. --nat -- nat lanza - research programmer, parallel data lab, cmu scs [EMAIL PROTECTED] http://www.cs.cmu.edu/~magus/ there are no whole truths; all truths are half-truths -- alfred north whitehead To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
On Wed, Feb 07, 2001 at 07:25:42PM -0500, Kevin Brunelle wrote: Hey everyone, Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. Well, thanks in advance for any help you can offer. Look at FreeBSD Source Tour at http://current.jp.freebsd.org/. I think it's great for browsing the source code. -- Players win and Winners play Have a lucky day PGP signature
Re: Kernel editing tools.
I just want to say thanks for all your help. I really like cscope and it was almost exactly what I was looking for. I got several other great ideas from some people. I like using a web browser for code browsing when I just want to poke around and kill time. Just so you all know, vi has an overwhelming majority of support on this list -- which is a great thing because it is my favorite editor. And, several open terminal windows seem to be the most popular way to go about kernel hacking; which, is almost exactly what I was doing before. cscope really helps to get things organized and find weird symbols. Well, thanks again -- and happy hacking. -Kevin Brunelle -- Use the Source Luke! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
It's bad form to use "reply" when starting a new thread, people with normal mailers see your message as part of a thread that it's not related to. * Kevin Brunelle [EMAIL PROTECTED] [010207 16:25] wrote: Hey everyone, Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. vim actually. Well, thanks in advance for any help you can offer. hmm, some use ctags or cscope, I don't. -- -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
VI FOR LIFE On Wed, 7 Feb 2001, Kevin Brunelle wrote: Hey everyone, Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. Well, thanks in advance for any help you can offer. -Kevin Brunelle -- "Do not meddle in the affairs of sysadmins, for they are subtle and quick to anger." To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. Typically I either just use less and a stack of terminal windows, or cscope (the latter is in the ports collection, and invaluable). -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Hey everyone, Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? Sure - vi. Among other things, the movement keys are on your touch typing homerow, it plays nice with ctags(1), /^function_name works great, and the regex based search and replace is real useful. Surely you aren't all hacking away on vi or the *other* editor. Reasonable arguments can be made for emacs too. -- a href="http://www.poohsticks.org/drew/"Home Page/a For those who do, no explanation is necessary. For those who don't, no explanation is possible. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Kernel editing tools.
On Wed, 7 Feb 2001, Kevin Brunelle wrote: Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and programs of that nature. It suddenly occured to me that there might be a better way to go about this. So I ask you, are there any programs that make reading and editing the kernel sources any easier? I was thinking about possibly writing a utility to do something like this, if one cannot be found. I don't pretend to be super skilled; I just want some honest advice. Surely you aren't all hacking away on vi or the *other* editor. Well, thanks in advance for any help you can offer. Heh. Mostly I use vi and more, along with liberal use of grep and occasionally (fear) sed. In the past, I've used glimpse for faster searching of the source tree. And cvs commands such as log, diff, annotate, and commit (!) are invaluable. When browsing less familiar source trees, such as the Linux kernel source, I like using web-based source cross-referencing. As Mike Smith points out, an excessive number of open xterm windows makes life a lot easier--the larger the screen, the more productive I am. Right now I have about 15 source files open in various vi sessions, and I'm coveting the Apple 22" display... Robert N M Watson FreeBSD Core Team, TrustedBSD Project [EMAIL PROTECTED] NAI Labs, Safeport Network Services To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message