Re: GDB problems
Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br> writes:
> baptista@jaca: /home/IA/baptista$ gcc -g -o teste teste.c
> baptista@jaca: /home/IA/baptista$ gdb teste
[...]
> (gdb) l
> warning: Source file is more recent than executable.
This suggests that there is a 'teste' executable somewhere in
your path that gdb finds before it looks for the one you just
built.
Try starting gdb with './teste' as the argument and see if it
works better that way.
--
Henning Makholm
http://www.diku.dk/students/makholm
Reply to:
- Follow-Ups:
- Re: GDB problems
- From: Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br>
- References:
- GDB problems
- From: Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br>