Update KDB to 2.6.19-rc2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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.

[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux