public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28518]  New: Single stepping until exit ...
@ 2006-07-27 21:22 alex dot jacob at logicacmg dot com
  2006-07-27 21:32 ` [Bug debug/28518] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: alex dot jacob at logicacmg dot com @ 2006-07-27 21:22 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
  2006-07-27 21:32 ` [Bug debug/28518] " pinskia at gcc dot gnu dot org
@ 2006-07-27 21:32 ` pinskia at gcc dot gnu dot org
  2006-07-28 19:00 ` alex dot jacob at logicacmg dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-27 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-07-27 21:32 -------
And why do you think this is a GCC bug and not a GDB bug?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |debug


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
@ 2006-07-27 21:32 ` pinskia at gcc dot gnu dot org
  2006-07-27 21:32 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-27 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-07-27 21:32 -------
Also we need a testcase to be able to reproduce this.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
  2006-07-27 21:32 ` [Bug debug/28518] " pinskia at gcc dot gnu dot org
  2006-07-27 21:32 ` pinskia at gcc dot gnu dot org
@ 2006-07-28 19:00 ` alex dot jacob at logicacmg dot com
  2006-07-29  5:28 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: alex dot jacob at logicacmg dot com @ 2006-07-28 19:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from alex dot jacob at logicacmg dot com  2006-07-28 19:00 -------
Hello,
Thanks for the prompt reply.
Sadly, I am not able to generate a test case for this. All the while loops I
write to try and duplicate this seems to work fine. The specific case where
this is a problem is deep inside code which is a link of many objects and
shared objects. The strange thing is I can see all the line numbers, can set
break to line numbers etc. but when stepping across these lines I get the
'Single...' error. The code itself works fine... Even if I comment out some
bits of code still this happens - only in this section of the code !!! I'll
have to look at this again later if I come across another occurrence of the
same problem (in a different area).

I assumed it might be gcc as the message seems to say 'no line number
information' and this info is generated by the compiler. I agree that the fault
could be in the GDB also...I currently have gdb 6.4 should I try with some
earlier version ? What do you think ?

Any ideas on the 'warning: Lowest section in /usr/lib/libthread.so.1 is
.dynamic' messages ?

Cheers,
Alex


-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
                   ` (2 preceding siblings ...)
  2006-07-28 19:00 ` alex dot jacob at logicacmg dot com
@ 2006-07-29  5:28 ` pinskia at gcc dot gnu dot org
  2006-07-31  9:27 ` alex dot jacob at logicacmg dot com
  2006-11-12  0:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-29  5:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-07-29 05:28 -------
(In reply to comment #3)
> Any ideas on the 'warning: Lowest section in /usr/lib/libthread.so.1 is
> .dynamic' messages ?

That is a gdb question and I don't know how to answer it.

Also are you compiling with just -g or you using optimization also?


-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
                   ` (3 preceding siblings ...)
  2006-07-29  5:28 ` pinskia at gcc dot gnu dot org
@ 2006-07-31  9:27 ` alex dot jacob at logicacmg dot com
  2006-11-12  0:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: alex dot jacob at logicacmg dot com @ 2006-07-31  9:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from alex dot jacob at logicacmg dot com  2006-07-31 09:27 -------
Hi,
I'm just using -g....no optimisations.

Cheers,
Alex


-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug debug/28518] Single stepping until exit ...
  2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
                   ` (4 preceding siblings ...)
  2006-07-31  9:27 ` alex dot jacob at logicacmg dot com
@ 2006-11-12  0:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-12  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-11-12 00:23 -------
No testcase in 3 months so closing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-11-12  0:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 21:22 [Bug c/28518] New: Single stepping until exit alex dot jacob at logicacmg dot com
2006-07-27 21:32 ` [Bug debug/28518] " pinskia at gcc dot gnu dot org
2006-07-27 21:32 ` pinskia at gcc dot gnu dot org
2006-07-28 19:00 ` alex dot jacob at logicacmg dot com
2006-07-29  5:28 ` pinskia at gcc dot gnu dot org
2006-07-31  9:27 ` alex dot jacob at logicacmg dot com
2006-11-12  0:23 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).