Home | History | Annotate | only in /src/sys/gdbscripts
History log of /src/sys/gdbscripts
RevisionDateAuthorComments
 1.8 17-Jul-2019  skrll Add devs
 1.7 17-Jul-2019  skrll kdump was remove some time ago
 1.6 11-May-2016  skrll branches: 1.6.18;
Add kernhist to SYS_GDBINIT
 1.5 02-Nov-2011  yamt branches: 1.5.12; 1.5.30;
a macro to dump kernel modules
 1.4 20-Feb-2008  ad +cpus
 1.3 20-Feb-2008  ad - Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
 1.2 20-Feb-2008  ad stats is gone
 1.1 01-Sep-2002  thorpej branches: 1.1.2; 1.1.4; 1.1.6; 1.1.28; 1.1.86;
Build a .gdbinit in the kernel build directory. The new .gdbinit
will source all of the system-provided gdb scrips in sys/gdbscripts,
as well as any files specified by the user in the GDBINIT make var.
 1.1.86.1 23-Mar-2008  matt sync with HEAD
 1.1.28.1 27-Feb-2008  yamt sync with head.
 1.1.6.2 30-Nov-2002  he Pull up revision 1.1 (new, requested by thorpej in ticket #756):
Build a .gdbinit in the kernel build directory. The new
.gdbinit will source all of the system-provided gdb scripts
in sys/gdbscripts, as well as any files specified by the
user in the GDBINIT make variable.
 1.1.6.1 01-Sep-2002  he file Makefile.inc was added on branch netbsd-1-6 on 2002-11-30 13:06:15 +0000
 1.1.4.2 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.1 01-Sep-2002  nathanw file Makefile.inc was added on branch nathanw_sa on 2002-09-17 21:21:52 +0000
 1.1.2.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.1 01-Sep-2002  jdolecek file Makefile.inc was added on branch kqueue on 2002-09-06 08:47:35 +0000
 1.5.30.1 29-May-2016  skrll Sync with HEAD
 1.5.12.1 03-Dec-2017  jdolecek update from HEAD
 1.6.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2 12-Feb-1997  gwr Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.3 05-Jun-2017  skrll Typo in previous
 1.2 05-Jun-2017  skrll Make cpus MI
 1.1 20-Feb-2008  ad branches: 1.1.8; 1.1.10; 1.1.58; 1.1.76; 1.1.78; 1.1.94;
+cpus
 1.1.94.1 06-Jun-2017  martin Pull up following revision(s) (requested by skrll in ticket #11):
sys/gdbscripts/cpus: revision 1.2
sys/gdbscripts/cpus: revision 1.3
Make cpus MI
Typo in previous
 1.1.78.1 28-Aug-2017  skrll Sync with HEAD
 1.1.76.1 08-Jul-2017  snj Pull up following revision(s) (requested by skrll in ticket #1428):
sys/gdbscripts/cpus: 1.2, 1.3
Make cpus MI
--
Typo in previous
 1.1.58.1 03-Dec-2017  jdolecek update from HEAD
 1.1.10.2 23-Mar-2008  matt sync with HEAD
 1.1.10.1 20-Feb-2008  matt file cpus was added on branch matt-armv6 on 2008-03-23 02:04:57 +0000
 1.1.8.2 27-Feb-2008  yamt sync with head.
 1.1.8.1 20-Feb-2008  yamt file cpus was added on branch yamt-lazymbuf on 2008-02-27 08:36:54 +0000
 1.2 09-May-2019  mrg branches: 1.2.2;
document 'devs' and 'procs' commands.
 1.1 06-May-2019  mrg add a 'devs' script to display a list of all devices by device_t,
name, parent, private data.

for procs, put the printf \n into the same line. non trivial
speed up with large process table.
 1.2.2.2 10-Jun-2019  christos Sync with HEAD
 1.2.2.1 09-May-2019  christos file devs was added on branch phil-wifi on 2019-06-10 22:09:02 +0000
 1.1 14-Apr-2020  christos branches: 1.1.2; 1.1.4;
Add dmesg functionality.
 1.1.4.2 21-Apr-2020  martin Sync with HEAD
 1.1.4.1 14-Apr-2020  martin file dmesg was added on branch phil-wifi on 2020-04-21 18:42:42 +0000
 1.1.2.2 20-Apr-2020  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2020  bouyer file dmesg was added on branch bouyer-xenpvh on 2020-04-20 11:29:10 +0000
 1.3 19-Aug-2016  maxv Remove the last references to KMEMSTATS.
 1.2 12-Feb-1997  gwr branches: 1.2.204; 1.2.224;
Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.2.224.1 05-Oct-2016  skrll Sync with HEAD
 1.2.204.1 03-Dec-2017  jdolecek update from HEAD
 1.2 12-May-2016  mrg branches: 1.2.2; 1.2.18;
make '$e' in here the whole structure instead of a pointer, to combine
several pointer derefs into one speaking this up significantly.
 1.1 11-May-2016  mrg add a gdb script to dump kernel histories. based upon a script by skrll,
updated by myself to run faster and more stupidly (but more workingly.)

normal gdb scripts don't seem to be able to call printf with the format
string as a variable, so we simply print the format itself as a string
and the (upto 4) arguments as unsigned long (how they're strored.)
 1.2.18.2 03-Dec-2017  jdolecek update from HEAD
 1.2.18.1 12-May-2016  jdolecek file kernhist was added on branch tls-maxphys on 2017-12-03 11:38:44 +0000
 1.2.2.2 29-May-2016  skrll Sync with HEAD
 1.2.2.1 12-May-2016  skrll file kernhist was added on branch nick-nhusb on 2016-05-29 08:44:37 +0000
 1.6 17-Jul-2019  skrll Remove the 'procs' from lwps and use the one from procs.

OK mrg@
 1.5 30-May-2019  mrg fix some minor issues in these user functions, and add more to
investigate lwps/processes:

- fix header formatting
- separate proc and thread info
- add per-thread and per-proc functions, use them as building
blocks for the existing functions;
- 'threadinfo' to display just one thread,
- 'procthreadsaddr' to display one process by struct proc *
- 'procthreadspid' to find process by pid
- add 'procs' as a ps(1) a-like
 1.4 05-Feb-2011  yamt branches: 1.4.56;
fix format
 1.3 18-Nov-2009  eeh branches: 1.3.4; 1.3.6; 1.3.8;
Add a command to dump all thread stacks in the system and a command to dump
lockdebug state.
 1.2 28-Jul-2009  skrll Use the right pointer to traverse the proc's lwp list.

From PR 41788.
 1.1 20-Feb-2008  ad branches: 1.1.8; 1.1.10; 1.1.14; 1.1.24; 1.1.32;
- Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
 1.1.32.1 20-May-2011  matt bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).
 1.1.24.1 07-Aug-2009  snj Pull up following revision(s) (requested by skrll in ticket #893):
sys/gdbscripts/lwps: revision 1.2
Use the right pointer to traverse the proc's lwp list.
From PR 41788.
 1.1.14.2 11-Mar-2010  yamt sync with head
 1.1.14.1 19-Aug-2009  yamt sync with head.
 1.1.10.2 23-Mar-2008  matt sync with HEAD
 1.1.10.1 20-Feb-2008  matt file lwps was added on branch matt-armv6 on 2008-03-23 02:04:57 +0000
 1.1.8.2 27-Feb-2008  yamt sync with head.
 1.1.8.1 20-Feb-2008  yamt file lwps was added on branch yamt-lazymbuf on 2008-02-27 08:36:54 +0000
 1.3.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.4.56.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4.56.1 10-Jun-2019  christos Sync with HEAD
 1.3 02-May-2020  christos gdb has been fixed, so no need to reload the symbol file.
 1.2 01-May-2020  christos mention the need to reload the kernel symbols
 1.1 28-Apr-2020  christos add a script to load the symbol files of all the modules in the kernel
 1.3 27-Apr-2020  christos make this work again
 1.2 06-Mar-2013  yamt update script
comment and example
 1.1 02-Nov-2011  yamt branches: 1.1.2; 1.1.12;
a macro to dump kernel modules
 1.1.12.1 23-Jun-2013  tls resync from head
 1.1.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.5 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.4 11-Dec-2005  christos branches: 1.4.70; 1.4.72; 1.4.74;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry nuke trailing whitespace
 1.2 11-Jan-2001  deberg branches: 1.2.24; 1.2.32; 1.2.34;
fix pointer arithmetic
 1.1 08-Jun-2000  jhawk branches: 1.1.4; 1.1.6;
gdb macro to print the kernel message buffer
 1.1.6.3 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.1.6.1 08-Jun-2000  bouyer file msgbuf was added on branch thorpej_scsipi on 2000-11-20 18:08:51 +0000
 1.1.4.2 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.4.1 08-Jun-2000  minoura file msgbuf was added on branch minoura-xpg4dl on 2000-06-22 17:08:57 +0000
 1.2.34.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.32.1 29-Apr-2005  kent sync with -current
 1.2.24.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.74.1 16-May-2008  yamt sync with head.
 1.4.72.1 18-May-2008  yamt sync with head.
 1.4.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.2 12-Feb-1997  gwr Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.4 09-May-2019  mrg document 'devs' and 'procs' commands.
 1.3 06-May-2019  mrg add a 'devs' script to display a list of all devices by device_t,
name, parent, private data.

for procs, put the printf \n into the same line. non trivial
speed up with large process table.
 1.2 18-Nov-2009  eeh branches: 1.2.64;
Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's
stack.
 1.1 20-Feb-2008  ad branches: 1.1.8; 1.1.10; 1.1.14;
- Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
 1.1.14.1 11-Mar-2010  yamt sync with head
 1.1.10.2 23-Mar-2008  matt sync with HEAD
 1.1.10.1 20-Feb-2008  matt file procs was added on branch matt-armv6 on 2008-03-23 02:04:57 +0000
 1.1.8.2 27-Feb-2008  yamt sync with head.
 1.1.8.1 20-Feb-2008  yamt file procs was added on branch yamt-lazymbuf on 2008-02-27 08:36:54 +0000
 1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.5 20-Feb-2008  ad This is useless!
 1.4 11-Dec-2005  christos branches: 1.4.46;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry branches: 1.3.4;
nuke trailing whitespace
 1.2 12-Feb-1997  gwr branches: 1.2.56; 1.2.64; 1.2.66;
Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.2.66.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.64.1 29-Apr-2005  kent sync with -current
 1.2.56.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.3.4.1 27-Feb-2008  yamt sync with head.
 1.4.46.1 23-Mar-2008  matt sync with HEAD
 1.11 06-Dec-2019  mrg more updates for the vnode and mount list iterator changes
that happened a while back. also, port to 64 bit properly.
now these all appear to work again.
 1.10 06-Dec-2019  mrg it's mountlist not mount_list. now 'mountdump' works again.
 1.9 13-Apr-2017  hannken branches: 1.9.12;
Change command mountdump to evaluate mountlist_entry.
 1.8 14-Dec-2016  hannken branches: 1.8.2;
Move vnode members "v_freelisthd" and "v_freelist" from "struct vnode"
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist".

No functional change intended.

Welcome to 7.99.48
 1.7 23-Nov-2013  riz branches: 1.7.6; 1.7.10;
Since mountlist is now a TAILQ, convert some missed usages
so things build again.
 1.6 18-Nov-2009  eeh branches: 1.6.12; 1.6.22; 1.6.26;
Print out all 64-bits of 64-bit values on 64-bit machines and add documentation
of these commands to gdb.
 1.5 04-Nov-2006  pooka branches: 1.5.52;
adapt to mnt_vnodelist being TAILQ
 1.4 04-Nov-2006  pooka add mountdump, prints mount point information a little like mount(8)
 1.3 29-Sep-2006  pooka Make these work again. I know, I'm a bit impatient, since they've
only been broken for 12 years, but some things are better done
sooner than later.

While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
 1.2 12-Feb-1997  gwr branches: 1.2.72; 1.2.102; 1.2.104;
Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.2.104.2 10-Dec-2006  yamt sync with head.
 1.2.104.1 22-Oct-2006  yamt sync with head
 1.2.102.1 18-Nov-2006  ad Sync with head.
 1.2.72.1 30-Dec-2006  yamt sync with head.
 1.5.52.1 11-Mar-2010  yamt sync with head
 1.6.26.1 18-May-2014  rmind sync with head
 1.6.22.2 03-Dec-2017  jdolecek update from HEAD
 1.6.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.12.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.10.2 26-Apr-2017  pgoyette Sync with HEAD
 1.7.10.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.7.6.2 28-Aug-2017  skrll Sync with HEAD
 1.7.6.1 05-Feb-2017  skrll Sync with HEAD
 1.8.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.9.12.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7 14-Apr-2020  christos catch up with field move
 1.6 14-Dec-2016  hannken branches: 1.6.16; 1.6.26;
Move vnode members "v_freelisthd" and "v_freelist" from "struct vnode"
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist".

No functional change intended.

Welcome to 7.99.48
 1.5 18-Nov-2009  eeh branches: 1.5.22; 1.5.40; 1.5.44;
Get gdb to document the command.
 1.4 04-Nov-2006  pooka branches: 1.4.52;
adapt to mnt_vnodelist being TAILQ
 1.3 29-Sep-2006  pooka Make these work again. I know, I'm a bit impatient, since they've
only been broken for 12 years, but some things are better done
sooner than later.

While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
 1.2 12-Feb-1997  gwr branches: 1.2.72; 1.2.102; 1.2.104;
Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.2.104.2 10-Dec-2006  yamt sync with head.
 1.2.104.1 22-Oct-2006  yamt sync with head
 1.2.102.1 18-Nov-2006  ad Sync with head.
 1.2.72.1 30-Dec-2006  yamt sync with head.
 1.4.52.1 11-Mar-2010  yamt sync with head
 1.5.44.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.5.40.1 05-Feb-2017  skrll Sync with HEAD
 1.5.22.1 03-Dec-2017  jdolecek update from HEAD
 1.6.26.1 20-Apr-2020  bouyer Sync with HEAD
 1.6.16.1 21-Apr-2020  martin Sync with HEAD
 1.6 20-Feb-2008  ad - Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
 1.5 28-Apr-2003  briggs branches: 1.5.18; 1.5.76;
Clean up the output a little and print the lwp pointer.
 1.4 26-Feb-2003  lha adapt to lwp-world
 1.3 16-Apr-1997  cgd widen proc pointer and wchan pointer fields from 10 to 18 characters, so
that pointers on 64-bit systems are printed properly. This means that
there'll be a lot of extra space on 32-bit systems, but gdb's printf doesn't
support * for width or precision specifiers, so it can't really be done much
better.
 1.2 12-Feb-1997  gwr Add NetBSD cvs id lines.
 1.1 12-Feb-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1 12-Feb-1997  gwr Macros for gdb when debugging the kernel (from 4.4-Lite2).
 1.5.76.1 23-Mar-2008  matt sync with HEAD
 1.5.18.1 27-Feb-2008  yamt sync with head.

RSS XML Feed