public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: "Matteucci, Cheryl A (N-B&M Assoicates)" <cheryl.a.matteucci@lmco.com>
Cc: "'insight@sources.redhat.com'" <insight@sources.redhat.com>
Subject: Re: User Defined Types and the Debugger
Date: Tue, 15 Oct 2002 09:12:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0210150908250.9498-100000@valrhona.uglyboxes.com> (raw)
In-Reply-To: <E65052A28282D4119D9100508BE3286C08973055@emss07m07.lmtas.lmco.com>

On Mon, 14 Oct 2002, Matteucci, Cheryl A (N-B&M Assoicates) wrote:

> Support,

Please do not call me "support": I am not a support engineer, you don't 
have a support contract with me, no one has a support contract with me, no 
one pays me to work on Insight, and I get very, very little help from 
others.

> A = B / C     where A = floating point class attribute (not static or const,
> class scope)
>                             B = locally defined floating point variable (not
> static or const)
>                             C = user defined floating point type that is
> static and const (class scope).
> 
> All of the above is in the same class.

It would be much better to have an actual testcase or some lines of code 
to inspect. There has been some churn on c++ inside GDB over the past few 
months, and it is difficult to determine exactly what is going on without 
something more concrete.

> The debugger shows me a value of 0 for C, but it is statically initialized
> to 70.0.  I set a breakpoint at this line of code and when I step through
> this line of code, the debugger gives me a segmentation violation (I assume
> because it thinks I am dividing by zero).  But if I set a breakpoint at some
> point after this line of code, the debugger successfully executes it.  When
> I run the program outside of the debugger, it is successfully executed.

The debugger does not generate segmentation faults in programs: the 
programs do that all by themselves. There could be many reasons why your 
statically initialized variable does not appear initialized.

The best thing to do right now is to post a short testcase demonstrating 
the problem. What version of GDB/Insight are you using? What version of 
gcc? If you suppress Insight and use command-line GDB (gdb -nw/insight 
-nw), does the problem also exist?

Keith

      reply	other threads:[~2002-10-15 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-14 19:49 Matteucci, Cheryl A (N-B&M Assoicates)
2002-10-15  9:12 ` Keith Seitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0210150908250.9498-100000@valrhona.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=cheryl.a.matteucci@lmco.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).