GDB Problems

1999-02-13 Thread Philip Thiem
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 address

I have been getting this error since I reinstalled linux.
Is this a bad setting I've encountered or something else?
Perhaps I've overlooked something. Any help in fixing this 
would be appreciated.

Philip Thiem
-- 
PENQUIN-LOVER-CODER ALERT:  [EMAIL PROTECTED]
   All windows user please exvacuate the building
 (So I can install a better OS on the comps)
Pass on the GAS get NASM instead.


Re: GDB problems

1999-01-25 Thread Scott J. Geertgens

> 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 getting this error as well right after upgrading a number of
packages to potato from slink. Glad to know it isn't me losing my mind,
but a solution would be wonderful. I have yet to find one :(

SJG



Re: GDB problems

1999-01-25 Thread Paulo Henrique Baptista de Oliveira
Hi Henning,
thank you for you help. But it didnt work. See bellow.

[EMAIL PROTECTED]: ~$ more program.c 
#include
void main()
{
int i=1;
printf("%d", i);
}
[EMAIL PROTECTED]: ~$ gcc -o program -g program.c
[EMAIL PROTECTED]: ~$ gdb ./program
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
1   #include
2   void main()
3   {
4   int i=1;
5   printf("%d", i);
6   }
(gdb) b 4
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

Quoting Henning Makholm ([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 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
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 


Re: GDB problems

1999-01-25 Thread Henning Makholm
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 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


GDB problems

1999-01-25 Thread Paulo Henrique Baptista de Oliveira
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
#include
void main()
{
int i=1;
printf("%d", i);
}
[EMAIL PROTECTED]: /home/IA/baptista$ gcc -g -o teste teste.c
[EMAIL PROTECTED]: /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
2   void main()
3   {
4   int i=1;
5   printf("%d", i);
6   }
(gdb) b 5
Breakpoint 1 at 0xbab4: 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


gdb problems

1998-07-27 Thread Luiz Otavio L. Zorzella

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 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 "i586-pc-linux-gnu".
(gdb) handle nostop SIGSEGV
SignalStop  Print   Pass to program Description
SIGSEGV   Yes   Yes Yes Segmentation fault
(gdb) handle noprint SIGSEGV
SignalStop  Print   Pass to program Description
SIGSEGV   Yes   Yes Yes Segmentation fault

Is there anything I'm missing, or a gdb bug?

Thanks!

-- 
Luiz Otavio L. Zorzella Product Engineer
[EMAIL PROTECTED]  http://www.conexware.com


--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null