Subject: Re: gdb help.. this is just a help question..
To: None <tooleym@douglas.bc.ca>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: port-amiga
Date: 03/05/1998 21:04:23
> 
> I'm running gdb and I want to step through a program I've compiled..
> However when I try to set breakpoints it refuses, giving me the following
> error:
> 
> (gdb) break 72
> Breakpoint 3 at 0xda: file test.c, line 72.
> (gdb) run
> Starting program: /usr3/home/sudog/test
> Cannot insert breakpoint 1:
> Error accessing memory address 0xc0: Operation not permitted.
> 
> What's this all about?
> I've compiled with these flags:
> 
> gcc -c test.c -D(some defines) -ggdb -o test

If you specify -c, you dont link.

(Translated to my advice: use gcc -g -o test -Dsomedefines test.c)

Regards,
	-is