The m/c I use is Solaris running: 
SunOS hirst 5.10 Generic_118822-26 sun4u sparc SUNW,Sun-Blade-2500

I have gcc version 3.4.3 installed:

Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

and gcc version 4.1.1 installed:

Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.1.1a/configure --prefix=/opt/gcc-4.4.1
--with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 4.1.1

I have two problems when I enter GDB debugger via DDD (I get the problem even
without DDD) I get the following:

1) (gdb) run deptsv li ~/lsa/src/web/inp.file
warning: Lowest section in /usr/lib/libthread.so.1 is .dynamic at 00000074
warning: Lowest section in /usr/lib/libdl.so.1 is .dynamic at 00000094

Breakpoint 1, w_listDepts () at /export/home/lisa100/lsa/src/web/web_depts.c:63
/export/home/lisa100/lsa/src/web/web_depts.c:63:1519:beg:0x12064

Why am I getting the 'Lowest section...' message ? How can I avoid it ?

2) When  I step through line by line through the code using 'n' for next, when
it hits a particular while loop I get the following:

(gdb) n
Single stepping until exit from function w_dept_populate, 
which has no line number information.
w_listDepts () at /export/home/lisa100/lsa/src/web/web_depts.c:73

I have built all the C modules with -g flag and I get this with both versions
of gcc. I cannot seem to step through the code in my while loop. Please help. I
need to know what I am doing wrong or what is causing this. As the module has
been compiled with -g I would have expected every line to be stepped through.
Please note that I can set breaks to one of the lines in the while loop buut
the moment I say 'n' I get the above message.....

Please help...

Cheers,
Alex


-- 
           Summary: Single stepping until exit ...
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alex dot jacob at logicacmg dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28518

Reply via email to