Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bdb65ec authored by Jason Wessel's avatar Jason Wessel
Browse files

kdb: cleanup unused variables missed in the original kdb merge



The BTARGS and BTSYMARG variables do not have any function in the
mainline version of kdb.

Reported-by: default avatarTim Bird <tim.bird@am.sony.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 02f8c6ae
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -112,9 +112,8 @@ kdb_bt(int argc, const char **argv)
	unsigned long addr;
	unsigned long addr;
	long offset;
	long offset;


	kdbgetintenv("BTARGS", &argcount);	/* Arguments to print */
	/* Prompt after each proc in bta */
	kdbgetintenv("BTAPROMPT", &btaprompt);	/* Prompt after each
	kdbgetintenv("BTAPROMPT", &btaprompt);
						 * proc in bta */


	if (strcmp(argv[0], "bta") == 0) {
	if (strcmp(argv[0], "bta") == 0) {
		struct task_struct *g, *p;
		struct task_struct *g, *p;
+0 −4
Original line number Original line Diff line number Diff line
@@ -18,16 +18,12 @@ defcmd dumpcommon "" "Common kdb debugging"
endefcmd
endefcmd


defcmd dumpall "" "First line debugging"
defcmd dumpall "" "First line debugging"
  set BTSYMARG 1
  set BTARGS 9
  pid R
  pid R
  -dumpcommon
  -dumpcommon
  -bta
  -bta
endefcmd
endefcmd


defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
  set BTSYMARG 1
  set BTARGS 9
  pid R
  pid R
  -dumpcommon
  -dumpcommon
  -btc
  -btc
+1 −1
Original line number Original line Diff line number Diff line
@@ -145,7 +145,6 @@ static char *__env[] = {
#endif
#endif
 "RADIX=16",
 "RADIX=16",
 "MDCOUNT=8",			/* lines of md output */
 "MDCOUNT=8",			/* lines of md output */
 "BTARGS=9",			/* 9 possible args in bt */
 KDB_PLATFORM_ENV,
 KDB_PLATFORM_ENV,
 "DTABCOUNT=30",
 "DTABCOUNT=30",
 "NOSECT=1",
 "NOSECT=1",
@@ -172,6 +171,7 @@ static char *__env[] = {
 (char *)0,
 (char *)0,
 (char *)0,
 (char *)0,
 (char *)0,
 (char *)0,
 (char *)0,
};
};


static const int __nenv = (sizeof(__env) / sizeof(char *));
static const int __nenv = (sizeof(__env) / sizeof(char *));