title: module debugging through KGDB
body: <p>I want to debug my kernel module. For that I am trying to put a breakpoint at <code>do_one_initcall</code> in <code>kernel</code>/<code>module.c</code> just before my <code>init_module</code> gets called but it's displaying </p>
  
  <blockquote>
    <p>Cannot access memory at address
    0x802010a0</p>
  </blockquote>
  
  <p>Below is the <code>Makefile</code> which I am using:</p>
  
  <pre><code>obj-m := hello.o
  
  KDIR=/lib/modules/$(shell uname -r)/build
  PWD=$(shell pwd)
  
  EXTRA_CFLAGS += -g
  
  all:
          make -C $(KDIR) M=$(PWD) modules
  
  clean:
          make -C $(KDIR) M=$(PWD) clean
  </code></pre>
  
  <p>Please suggest me what could be the problem.</p>