I have recently been expriencing problems with GDB.
I will compiling a program with the -g symbol and
run it in gdb. After setting a break point(typically
line one worked in the past) and running the program I
get this:
Cannot insert breakpoint 1:
Cannot access memory at address: some memory
Hi Debian users,
I have some problems with gdb. Bellow I put the error that occurs when I
try to insert a breakpoint using gdb:
[EMAIL PROTECTED]: /home/IA/baptista$ more teste.c
#includestdio.h
void main()
{
int i=1;
printf(%d, i);
}
[EMAIL PROTECTED]:
Paulo Henrique Baptista de Oliveira [EMAIL PROTECTED] writes:
[EMAIL PROTECTED]: /home/IA/baptista$ gcc -g -o teste teste.c
[EMAIL PROTECTED]: /home/IA/baptista$ gdb teste
[...]
(gdb) l
warning: Source file is more recent than executable.
This suggests that there is a 'teste' executable
Hi Henning,
thank you for you help. But it didnt work. See bellow.
[EMAIL PROTECTED]: ~$ more program.c
#includestdio.h
void main()
{
int i=1;
printf(%d, i);
}
[EMAIL PROTECTED]: ~$ gcc -o program -g program.c
[EMAIL PROTECTED]: ~$ gdb ./program
GNU gdb
Breakpoint 1 at 0xbab4: file program.c, line 4.
(gdb) r
Starting program: /home/IA/baptista/./program
Breakpoint 1 at 0x81f6c80: file program.c, line 4.
Cannot insert breakpoint 1:
Cannot access memory at address 0x81f6c80.
Regards,Paulo Henrique
I started
Hi,
my gdb seems to be having problems lately. I need to make SIGSEGV a
nostop and noprint for gdb, but it's refusing to do it, lately.
Take a look:
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome
6 matches
Mail list logo