Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • New: Single stepping until exit ...

    5 answers - 1808 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    The m/c I use is Solaris running:
    SS hirst 5.10 Generic_118822-26 sun4u sparc SUNW,Sun-Blade-2500
    I have gcc version 3.4.3 installed:
    Reading specs from /
    Configured with:
    /
    /usr/sfw /usr/sfw/bin/gas
    /usr/ccs/bin/ld ,c++
    Thread model: posix
    gcc version 3.4.3 ()
    and gcc version 4.1.1 installed:
    Using built-in specs.
    Target: sparc-sun-solaris2.10
    Configured with: /gcc-4.1.1a/configure /opt/gcc-4.4.1
    /usr/sfw/bin/gas /usr/ccs/bin/ld
    ,c++
    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 /
    /
    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 /
    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
  • No.1 | | 125 bytes | |

    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?
  • No.2 | | 121 bytes | |

    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.
  • No.3 | | 1210 bytes | |

    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 alsoI 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
  • No.4 | | 346 bytes | |

    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?
  • No.5 | | 142 bytes | |

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

Re: New: Single stepping until exit ...


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 6 =
QUESTION ON "Development"

EMSDN.COM