The HyperNews Linux KHG Discussion Pages

Need help for debugging

Forum: The Linux Kernel Hackers' Guide
Re: Idea Linux kernel debugging
Re: News GDB for Linux (David Grothe)
Re: News Another kernel debugging tool (David Hinds)
Re: News Kernel debugging with breakpoints (Keith Owens)
Keywords: Linux kernel debugging
Date: Thu, 23 Oct 1997 11:05:51 GMT
From: C.H.Gopinath <gopich@cse.iitb.ernet.in>

hi,
     I have downloaded the xkdebug_for_2.1.55. I tried to install it. It has generated the Makefile.rej.
I am new to linux. So can u please suggest me how to deal with that file.
By the by I am using redhat-4.2 kernel 2.0.30. Can I use this 
debugger or not?

Here i am giveing the rej file.

***************
*** 88,97 ****
  # standard CFLAGS
  #

- CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer

  ifdef CONFIG_CPP
  CFLAGS := $(CFLAGS) -x c++
  endif

  ifdef SMP
--- 88,103 ----
  # standard CFLAGS
  #

+ CFLAGS = -Wall -Wstrict-prototypes -O2

  ifdef CONFIG_CPP
  CFLAGS := $(CFLAGS) -x c++
+ endif
+
+ ifdef CONFIG_XKDEBUG
+ CFLAGS := $(CFLAGS) -g
+ else
+ CFLAGS := $(CFLAGS) -fomit-frame-pointer
  endif

  ifdef SMP
_XKDEBUG