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

GDB problems



	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:

baptista@jaca: /home/IA/baptista$ more teste.c
#include<stdio.h>
void main()
{
        int i=1;
        printf("%d", i);
}
baptista@jaca: /home/IA/baptista$ gcc -g -o teste teste.c
baptista@jaca: /home/IA/baptista$ gdb teste
GNU gdb 4.17.19981224.m68k.objc.threads.hwwp.fpu.gnat
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) l
warning: Source file is more recent than executable.

1       #include<stdio.h>
2       void main()
3       {
4               int i=1;
5               printf("%d", i);
6       }
(gdb) b 5
Breakpoint 1 at 0xbffffab4: file teste.c, line 5.
(gdb) r
Starting program: /home/IA/baptista/teste 
Breakpoint 1 at 0x81f6c30: file teste.c, line 5.
Cannot insert breakpoint 1:
Cannot access memory at address 0x81f6c30.
(gdb) 

	What is wrong?
	The version of my gdb is of 4.17.199812.
	Have a nice day,		Paulo Henrique


Reply to: