Update KDB to 2.6.19-rc2

Keith Owens <[email protected]>
Newsgroups gmane.linux.kernel.debugging
Message-ID <[email protected]>
ftp://oss.sgi.com/projects/kdb/download/v4.4/
ftp://ftp.ocs.com.au/pub/mirrors/oss.sgi.com/projects/kdb/download/v4.4/

Kernel 2.6.19-rc2 removed a redundant regs parameters from thousands of
functions.  The kdb-v4.4-2.6.19-rc2-*-1 patches had just enough changes
to compile against that kernel, the kdb-v4.4-2.6.19-rc2-*-2 patches
delete the redundant regs parameter from the KDB code.  I also took the
opportunity to delete the redundant envp parameter from the KDB code.

If you merely use the KDB patches, use kdb-v4.4-2.6.19-rc2-*-2.

If you add your own KDB commands on top of the KDB patches, you can use
kdb-v4.4-2.6.19-rc2-*-1 with your existing code or
kdb-v4.4-2.6.19-rc2-*-2 if you update your code, as described below.
You will have to update your code when 2.6.19-rc3 comes out anyway.

To switch from kdb-v4.4-2.6.19-rc2-*-1 to kdb-v4.4-2.6.19-rc2-*-2,
delete the envp and regs parameters from any KDB commands that you
register.  For example,

  OLD	kdb_bt(int argc, const char **argv, const char **envp, struct pt_regs *regs)
  NEW	kdb_bt(int argc, const char **argv)

Delete the last (regs) parameter on calls to kdbgetaddrarg().

  OLD	diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, &symname, regs);
  NEW	diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, &symname);

Delete the last (regs) parameter on calls to kdb_parse().

  OLD	kdb_parse(buf, regs);
  NEW	kdb_parse(buf);

Review your KDB code for any remaining use of struct pt_regs, they are
almost certainly redundant.

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.