This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/58: next not stopping, Red Hat 7.1


The following reply was made to PR gdb/58; it has been noted by GNATS.

From: Andrew Schultz <ajschult@eos.ncsu.edu>
To: andrej@funcom.com, nobody@sources.redhat.com, gdb-gnats@sources.redhat.com,
        gdb-prs@sources.redhat.com
Cc:  
Subject: Re: gdb/58: next not stopping, Red Hat 7.1
Date: Sun, 20 Jan 2002 18:34:32 -0500

 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=58
 
 I am still seeing this in the 20020120 source.  I am trying to debug 
 Mozilla with gdb, but if the code is like this:
 
 1    int i, j;
 2    i=1;
 3    j=0/i;
 4    i=1;  // the code beyond line 3 does not really matter
 
 when I do "nexti" commands starting at line 2, I get:
 
  > 2         i=1;
  > (gdb) nexti
  > 0x200040adc18   2         i=1;
  > (gdb) nexti
  > 3         j=0/i;
  > (gdb) nexti
  > 0x200040adc20   3         j=0/i;
  > (gdb) nexti
  > 0x200040adc24   3         j=0/i;
  > (gdb) nexti
  > 0x200040adc28   3         j=0/i;
  > (gdb) nexti
  > 0x200040adc2c   3         j=0/i;
  > (gdb) nexti
  > [New Thread 6151 (LWP 12670)]
  > [New Thread 7176 (LWP 12671)]
  > warning: Cannot insert breakpoint -57:
  > Cannot access memory at address 0x0
 
 I tried a simpler program with just the lines of code that seemed to 
 matter, but that worked ok (possible a pthread issue)
 
 The system I am running on is an Alpha, RedHat Linux 7.1, 
 kernel-2.4.9-12, gcc-2.96-87 (and gcc-c++), glibc-2.2.4-19.3 (and 
 glibc-devel)
 
 I see this with gdb-5.0rh-9, gdb-5.1-3(rawhide) and today's source.
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]