lkml.org 
[lkml]   [1996]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: 'Mega patch 2.1.14#6'
Date
From

In message <199612091603.RAA28753@vega.unive.it>, you wrote:

>I tri to compile the kernel on mca machine (libc.so-5.4.13), but I have the
>followed error:

>kernel/kernel.o: In function `sys_reboot':
>kernel/kernel.o(.text+0x34cd): undefined reference to `breakpoint'
>kernel/kernel.o: In function `ctrl_alt_del':
>kernel/kernel.o(.text+0x3509): undefined reference to `breakpoint'
>make: *** [vmlinux] Error 1

Try the following patch:

--- linux/include/linux/kgdb.h.orig Mon Dec 9 16:12:14 1996
+++ linux/include/linux/kgdb.h Mon Dec 9 16:12:40 1996
@@ -6,6 +6,4 @@
extern unsigned char dbg_uart_get_char(void);
extern void dbg_uart_init(void);

-#else
-#define breakpoint()
#endif
--- linux/kernel/sys.c.orig Mon Dec 9 16:14:23 1996
+++ linux/kernel/sys.c Mon Dec 9 16:13:42 1996
@@ -211,7 +211,9 @@
apm_set_power_state(APM_STATE_OFF);
#endif
notifier_call_chain(&boot_notifier_list, SYS_HALT, NULL);
+#ifdef CONFIG_GDB_REMOTE
breakpoint();
+#endif
do_exit(0);
} else
return -EINVAL;
@@ -228,7 +230,9 @@
if (C_A_D)
{
notifier_call_chain(&boot_notifier_list, SYS_DOWN, NULL);
+#ifdef CONFIG_GDB_REMOTE
breakpoint();
+#endif
hard_reset_now();
}
else
--- linux/arch/i386/kernel/traps.c.orig Mon Dec 9 16:38:19 1996
+++ linux/arch/i386/kernel/traps.c Mon Dec 9 16:37:57 1996
@@ -162,7 +162,9 @@
for(i=0;i<20;i++)
printk("%02x ",0xff & get_seg_byte(regs->xcs & 0xffff,(i+(char *)regs->eip)));
printk("\n");
+#ifdef CONFIG_GDB_REMOTE
breakpoint();
+#endif
do_exit(SIGSEGV);
}

--
John GOTTS <jgotts@engin.umich.edu> http://www-personal.engin.umich.edu/~jgotts
Senior, EE/Motif Programmer/SysAdmin/Linux Hacker/Amateur Radio Callsign N8QDW
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.042 / U:3.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site