From: "Matteucci, Cheryl A (N-B&M Assoicates)" <cheryl.a.matteucci@lmco.com>
To: "'insight@sources.redhat.com'" <insight@sources.redhat.com>
Subject: User Defined Types and the Debugger
Date: Mon, 14 Oct 2002 19:49:00 -0000 [thread overview]
Message-ID: <E65052A28282D4119D9100508BE3286C08973055@emss07m07.lmtas.lmco.com> (raw)
Support,
I am using the cygwin C++ debugger (Insight GNU Debugger) to look at some
code. I have an expression:
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.
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.
Why do I get a segmentation violation when I step through this line? The
value is initialized. Why can't the debugger see it? Do I need to set
something or do something in addition? HHHHEEEELLLPPPP!!! This is really
frustrating!!!!!!!!!!!!
Thank you,
Cheryl (Very Annoyed!)
==============================================
Cheryl Matteucci
UAE Test Station Software
Lockheed Martin Aeronautics
Ft. Worth, TX
(817) 777-2350
cheryl.a.matteucci@lmco.com
next reply other threads:[~2002-10-15 2:49 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) [this message]
2002-10-15 9:12 ` Keith Seitz
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=E65052A28282D4119D9100508BE3286C08973055@emss07m07.lmtas.lmco.com \
--to=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).