Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gdb help.. this is just a help question..



> 
> 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



Home | Main Index | Thread Index | Old Index