Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #86728

Re: attempt to dereference a singular iterator

From Muttley@dastardlyhq.com
Newsgroups comp.lang.c++
Subject Re: attempt to dereference a singular iterator
Date 2022-09-30 15:03 +0000
Organization Aioe.org NNTP Server
Message-ID <th70g5$1af1$1@gioia.aioe.org> (permalink)
References (5 earlier) <th48qk$m12e$1@dont-email.me> <th4js6$11b7v$1@portraits.wsisiz.edu.pl> <th4r39$nnl1$1@dont-email.me> <th6s6k$12bm$1@gioia.aioe.org> <th6t0n$1149q$1@dont-email.me>

Show all headers | View raw


On Fri, 30 Sep 2022 17:04:07 +0300
Paavo Helde <eesnimi@osa.pri.ee> wrote:
>30.09.2022 16:50 Muttley@dastardlyhq.com kirjutas:
>> On Thu, 29 Sep 2022 22:19:05 +0300
>> Paavo Helde <eesnimi@osa.pri.ee> wrote:
>>> 29.09.2022 20:15 Jivanmukta kirjutas:
>>>> W dniu 29.09.2022 o 16:07, Paavo Helde pisze:
>>>>>> It is interesting that problem occurs only when debugging. Program
>>>>>> run from prompt works fine, without the problem.
>>>>>
>>>>> Ah, you mean there is no bug, just the debugger is displaying some
>>>>> misleading messages? In that case, welcome to the club!
>>>>>
>>>>>
>>>> But I need to debug my program to fix other errors.
>>>> The error described by me makes debugging problematic.
>>>
>>> Well, use a better debugger then. My debugger (Visual Studio) does not
>>> display such error messages.
>> 
>> It just randomly skips lines during stepping depending on the optimisation
>> level. Very helpful.
>
>If the line has been optimized away or moved to another place, it cannot 
>be really stepped into.

Thats fair enough, but since it knows the code isn't there it should flag up
in the code window that its been optimised away rather than just jumping
ahead. 

>Debugging optimized code is a dark art anyway. Hopefully the compiler 
>vendors will not listen to the advocates for applying some optimizations 
>always, regardless of the optimization level.
>
>With gdb I have the opposite problem, it dutifully steps into std code 
>like string contstructors. It's basically impossible to step into my own 
>function if there are any non-trivial arguments in the function call.

There is a way to avoid that but I can't remember how off the top of my head.
You'll have to google.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-28 13:53 +0200
  Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-28 14:18 +0200
    Re: attempt to dereference a singular iterator JiiPee <kerrttuPoistaTama11@gmail.com> - 2022-09-28 18:53 +0300
  Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-09-28 12:19 +0000
    Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-28 17:08 +0200
      Re: attempt to dereference a singular iterator JiiPee <kerrttuPoistaTama11@gmail.com> - 2022-09-28 18:52 +0300
        Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-29 09:42 +0200
        Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-29 11:58 +0200
          Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-09-29 11:04 +0000
      Re: attempt to dereference a singular iterator Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2022-09-29 13:23 -0600
      Re: attempt to dereference a singular iterator Sam <sam@email-scan.com> - 2022-09-29 15:39 -0400
  Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-28 19:21 +0300
    Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-29 09:58 +0200
      Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-29 15:00 +0300
        Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-29 15:59 +0200
          Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-29 17:07 +0300
            Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-29 19:15 +0200
              Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-29 22:19 +0300
                Re: attempt to dereference a singular iterator Muttley@dastardlyhq.com - 2022-09-30 13:50 +0000
                Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-30 17:04 +0300
                Re: attempt to dereference a singular iterator Muttley@dastardlyhq.com - 2022-09-30 15:03 +0000
                Re: attempt to dereference a singular iterator Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2022-09-30 11:01 -0600
                Re: attempt to dereference a singular iterator Muttley@dastardlyhq.com - 2022-10-01 09:01 +0000
                Re: attempt to dereference a singular iterator scott@slp53.sl.home (Scott Lurndal) - 2022-09-30 15:19 +0000
            Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-09-30 07:13 +0000
              Re: attempt to dereference a singular iterator Paavo Helde <eesnimi@osa.pri.ee> - 2022-09-30 15:56 +0300
                Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-30 16:21 +0200
                Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-09-30 16:09 +0000
          Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-09-30 07:12 +0000
            Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-09-30 21:05 +0200
  Re: attempt to dereference a singular iterator "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2022-09-30 10:36 +0200
  Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-10-03 16:53 +0200
    Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-10-04 06:02 +0000
      Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-10-05 09:42 +0200
        Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-10-06 06:55 +0000
          Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-10-07 07:34 +0200
            Re: attempt to dereference a singular iterator Jivanmukta <jivanmukta@poczta.onet.pl> - 2022-10-07 15:20 +0200
              Re: attempt to dereference a singular iterator Juha Nieminen <nospam@thanks.invalid> - 2022-10-10 06:21 +0000
              Re: attempt to dereference a singular iterator Öö Tiib <ootiib@hot.ee> - 2022-10-10 01:03 -0700

csiph-web