bitkeeper revision 1.63 (3e50dd47zivcHgDUqVO9595wIQE2yQ)

traps.c:
  Even better debug tracing.
This commit is contained in:
kaf24@labyrinth.cl.cam.ac.uk committed 2003-02-17 13:01:59 +00:00
1 parent 7a4ebfbb40
commit bc9ed93fa5
1 file changed
+10 -3
+10 -3
View File
@@ -69,11 +69,15 @@ asmlinkage void alignment_check(void);
asmlinkage void spurious_interrupt_bug(void);
asmlinkage void machine_check(void);
int kstack_depth_to_print = 24;
int kstack_depth_to_print = 8*20;
static inline int kernel_text_address(unsigned long addr)
{
return ( 1 );
if (addr >= (unsigned long) &_stext &&
addr <= (unsigned long) &_etext)
return 1;
return 0;
}
void show_trace(unsigned long * stack)
@@ -127,7 +131,10 @@ void show_stack(unsigned long * esp)
break;
if (i && ((i % 8) == 0))
printk("\n ");
printk("%08lx ", *stack++);
if ( kernel_text_address(*stack) )
printk("[%08lx] ", *stack++);
else
printk("%08lx ", *stack++);
}
printk("\n");
//show_trace(esp);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.