cuda-gdb threw make

Hello
I am trying to compile an example project(matrixMul) from the sdk using the make file
If i buld with " make dbg=1" cuda-gdb runs well but wont stop on kernels
if i do a regular build with nvcc -g -G it works fine and i am able to get into kernels
i tried to modify the common.mk file to add the relevant flags but no success there
when i compiled using :
ifeq ($(dbg),1)
COMMONFLAGS += -g -G
NVCCFLAGS += -D_DEBUG
BINSUBDIR := debug
LIBSUFFIX := D
i get an error
g++: unrecognized option ‘-G’

when i use
ifeq ($(dbg),1)
COMMONFLAGS += -g
NVCCFLAGS += -G
BINSUBDIR := debug
LIBSUFFIX := D
i get
:
roy@akgpu1:~/NVIDIA_CUDA_SDK/projects/matrixMul> make dbg=1
obj/debug/matrixMul.cu.o: In function $$SymbolTable': (.nv11Segment+0x1c8): undefined reference to $gpu_registers’
obj/debug/matrixMul.cu.o: In function $$SymbolTable': (.nv11Segment+0x3a8): undefined reference to blockDim’
obj/debug/matrixMul.cu.o: In function $$SymbolTable': (.nv11Segment+0x3c0): undefined reference to gridDim’
obj/debug/matrixMul.cu.o: In function $$SymbolTable': (.nv11Segment+0x3d8): undefined reference to blockIdx’
obj/debug/matrixMul.cu.o: In function $$SymbolTable': (.nv11Segment+0x3f0): undefined reference to threadIdx’
collect2: ld returned 1 exit status
make: *** […//…/bin/linux/debug/matrixMul] Error 1

Sorry for the long post hope someone could help
Thanks allot