linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gdb support for kgdb [Re: Help for kgdb]
       [not found]   ` <20041018150216.GF26624@smtp.west.cox.net>
@ 2004-10-19 12:34     ` Amit S. Kale
  0 siblings, 0 replies; only message in thread
From: Amit S. Kale @ 2004-10-19 12:34 UTC (permalink / raw)
  To: Tom Rini, Linux Kernel

Hi All,

GDB gurus have suggested number of changes. I have checked in the major change 
today which is to remove the target "i386-lk". Instead I have added an osabi 
"Linux-kernel". I am pasting a part of the checked in README file here for 
your quick reference.

I can see a good info threads listing with the context frames as pointed out 
by me in earlier emails.
-Amit

--------
2. Building gdb
Compile the gdb with a configure followed by a make.

3. Using gdb
Supply vmlinux to gdb on command line and specify osabi to be "Linux-kernel"
_before_ "target remote" command.

Example:

[amitkale@pythagoras gdb-build]$ gdb/gdb  ~/build/2.6.9-rc2-i386/vmlinux
GNU gdb 6.2.50_2004-10-15-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) set osabi Linux-kernel
(gdb) tar re /dev/ttyS0
Remote debugging using /dev/ttyS0
breakpoint () at /home/amitkale/work/linux-2.6.9-rc2/kernel/kgdb.c:1285
1285            atomic_set(&kgdb_setting_breakpoint, 0);
warning: no shared library support for this OS / ABI
(gdb) bt
#0  breakpoint () at /home/amitkale/work/linux-2.6.9-rc2/kernel/kgdb.c:1285
--------------

On Monday 18 Oct 2004 8:32 pm, Tom Rini wrote:
> On Thu, Sep 30, 2004 at 08:33:49PM +0530, Amit S. Kale wrote:
> > On Thursday 30 Sep 2004 7:47 pm, Tom Rini wrote:
> > > On Wed, Sep 29, 2004 at 10:56:21AM -0700, George Anzinger wrote:
> > > > IMHO, any and ALL documentation of that sort should be in the
> > > > Documentation branch of the kernel tree once the patch is applied.
> > > > Likewise a
> > >
> > > It's a good thing we've been doing that, then.  :)  Right now we've got
> > > a mini-HOWTO and code documentation done in DocBook.
> > >
> > > > recommended .gdbinit file, which would do the required set up.  Mine
> > > > also
> > >
> > > What required setup?  'target remote /dev/ttyS0' (or udp:ip:port) and
> > > go.
> > >
> > > Having said that, I wouldn't mind some sample GDB macros.  Patches to
> > > the DocBook file are welcome.  ... and once it is in the kernel, it's
> > > just another part of 'make *docs' of course.
> > >
> > > [snip]
> > >
> > > > As to the gdb changes, the key issue in my mind is acceptance by the
> > > > gdb folks.
> > >
> > > Yes.  Amit, any news on this front (such as you've submitted it or will
> > > in a few days) ?
> >
> > I have checked in some gdb code today. I'll need to do a few more
> > changes. I'll submit it to gdb folks by end of next week.
>
> So, what's the status of this?  Thanks.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-19 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4136A9BA.9050802@us.ibm.com>
     [not found] ` <200409302033.49104.amitkale@linsyssoft.com>
     [not found]   ` <20041018150216.GF26624@smtp.west.cox.net>
2004-10-19 12:34     ` gdb support for kgdb [Re: Help for kgdb] Amit S. Kale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).