I am running gdb on a C++ executable. The code that I wrote looks like
this:
itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
// Console.WriteLine("Field name: {0}", field.GetName());
// printf("Field name: %s\n", (char *)field.GetName());
printf("Hola %d\n", i);
itr.Next();
i++;
}
However, gdb shows some very different code:
new_allocator() throw() { }
int i = 1;
inline Iterator() : mp_impl(0) {}
new_allocator() throw() { }
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
inline PDFDoc::PDFDoc (const char* filepath) {
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
{ return strlen(__s); }
Is there any way I can have gdb display higher level code?
TIA,
-RFH 11 3354
On Mar 6, 4:01 pm, Ramon F Herrera <ra...@conexus.netwrote:
I am running gdb on a C++ executable. The code that I wrote looks like
this:
itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
// Console.WriteLine("Field name: {0}", field.GetName());
// printf("Field name: %s\n", (char *)field.GetName());
printf("Hola %d\n", i);
itr.Next();
i++;
}
However, gdb shows some very different code:
new_allocator() throw() { }
int i = 1;
inline Iterator() : mp_impl(0) {}
new_allocator() throw() { }
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
inline PDFDoc::PDFDoc (const char* filepath) {
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
{ return strlen(__s); }
Is there any way I can have gdb display higher level code?
TIA,
-RFH
Consult a GDB newsgroup, forum, after first consulting the manual. The
question is off topic here.
On Mar 6, 6:07 pm, Christopher <cp...@austin.rr.comwrote:
On Mar 6, 4:01 pm, Ramon F Herrera <ra...@conexus.netwrote:
I am running gdb on a C++ executable. The code that I wrote looks like
this:
itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
// Console.WriteLine("Field name: {0}", field.GetName());
// printf("Field name: %s\n", (char *)field.GetName());
printf("Hola %d\n", i);
itr.Next();
i++;
}
However, gdb shows some very different code:
new_allocator() throw() { }
int i = 1;
inline Iterator() : mp_impl(0) {}
new_allocator() throw() { }
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
inline PDFDoc::PDFDoc (const char* filepath) {
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
{ return strlen(__s); }
Is there any way I can have gdb display higher level code?
TIA,
-RFH
Consult a GDB newsgroup, forum, after first consulting the manual. The
question is off topic here.
There is no such thing as a gdb newsgroup.
Are you saying that C++ developers do not know anything about gdb and
its applicability to C++ code?
I am sure a lot of people would like to disagree.
-RFH
Ramon F Herrera wrote:
On Mar 6, 6:07 pm, Christopher <cp...@austin.rr.comwrote:
Consult a GDB newsgroup, forum, after first consulting the manual.
The question is off topic here.
There is no such thing as a gdb newsgroup.
There are gcc newsgroups. You'd also probably be ok in
comp.unix.programmer, although I couldn't say for certain. I'd review
their FAQ if available.
Are you saying that C++ developers do not know anything about gdb and
its applicability to C++ code?
No, he's saying it's off-topic here. Please review the FAQ for
topicality guidelines.
I am sure a lot of people would like to disagree.
Some would. That's irrelevant. The group consensus is that
platform-specific topics, including tools such as compilers and
debuggers, are off-topic here.
Brian
On Mar 6, 7:23 pm, Christopher <cp...@austin.rr.comwrote:
Consult a GDB newsgroup, forum, after first consulting the manual. The
question is off topic here.
There is no such thing as a gdb newsgroup.
Not my problem. Learn how to research for information.
And your opinions are not my problem, either.
YOU ARE the one off topic, here. You have obvious control issues. Any
psychiatrist will tell you that.
Haven't you heard of a newsgroup called comp.lang.c++.MODERATED? Apply
for a moderator position there, and stop barking.
Oh, now I realize: You have the *need* to bark. See shrink advice
above.
-RFH
Ramon F Herrera wrote:
On Mar 6, 7:23 pm, Christopher <cp...@austin.rr.comwrote:
>>>Consult a GDB newsgroup, forum, after first consulting the manual. The question is off topic here. There is no such thing as a gdb newsgroup.
>Not my problem. Learn how to research for information.
And your opinions are not my problem, either.
YOU ARE the one off topic, here. You have obvious control issues. Any
psychiatrist will tell you that.
Haven't you heard of a newsgroup called comp.lang.c++.MODERATED? Apply
for a moderator position there, and stop barking.
Oh, now I realize: You have the *need* to bark. See shrink advice
above.
No, the FAQ for the group says you're off-topic. See http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Also, if there weren't a bunch of off-topic grouches, the signal to
noise ratio for this group would be awful, and it would devolve into yet
another Windows programming group.
There is a lesson for you to learn, Chris:
Just because you don't know the answer to something, it doesn't mean
it is off topic.
-RFH
On Mar 6, 5:59 pm, Ramon F Herrera <ra...@conexus.netwrote:
There is a lesson for you to learn, Chris:
Just because you don't know the answer to something, it doesn't mean
it is off topic.
-RFH
It took me 5 seconds to Google the answer before I made my first
reply. I also happen to have a GDB cheat sheet in front of me
containing the answer as well, which was written after reading the
manual for GDB online at their website. That is something you should
be doing instead of trolling here. Again, learn how to research before
you learn how to program.
You are correct, there are lots of things I do not know that _are_ on
topic. I might even ask about some of those in this group *gasp*.
However, the use of your choice in debuggers is not one of them.
On Mar 6, 2:01*pm, Ramon F Herrera <ra...@conexus.netwrote:
I am running gdb on a C++ executable. The code that I wrote looks like
this:
itr = doc.GetFieldIterator();
while (itr.HasNext()) {
* * Field field = itr.Current();
* * // Console.WriteLine("Field name: {0}", field.GetName());
* * // printf("Field name: %s\n", (char *)field.GetName());
* * printf("Hola %d\n", i);
* * itr.Next();
* * i++;
* * }
However, gdb shows some very different code:
new_allocator() throw() { }
int * * * * * * i = 1;
inline Iterator() : mp_impl(0) {}
new_allocator() throw() { }
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
inline PDFDoc::PDFDoc (const char* filepath) {
basic_string<_CharT, _Traits, _Alloc__str(__lhs);
{ return strlen(__s); }
Is there any way I can have gdb display higher level code?
TIA,
-RFH
If you are using gcc, try "g++ -g file.cpp" I think that does what
you are looking for
In article <ac789454-f21b-4537-9e4d-5522c23596b0
@m3g2000hsc.googlegroups.com>, ra***@conexus.net says...
[ ... ]
YOU ARE the one off topic, here. You have obvious control issues. Any
psychiatrist will tell you that.
Haven't you heard of a newsgroup called comp.lang.c++.MODERATED? Apply
for a moderator position there, and stop barking.
....and Mr. Herrera's posts suffer the death of a thousand plonks!
--
Later,
Jerry.
The universe is a figment of its own imagination. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike |
last post by:
I am sure that I am making a simple boneheaded mistake and I would
appreciate your help in spotting in. I have just installed
apache_2.0.53-win32-x86-no_ssl.exe
php-5.0.3-Win32.zip...
|
by: bayram guzer |
last post by:
hi everybody,
i have very strange error.
i can not see some of the asp pages on my browser. when i
look from view source, all the source is there but browser
does not show anything, just an empty...
|
by: Jim |
last post by:
Hi
I am a newbie to asp and i built this test program:
<HTML>
<HEAD><TITLE>Test</TITLE></HEAD>
<BODY>
the time is <% = Time %>
</BODY>
</HTML>
|
by: Luis Esteban Valencia |
last post by:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source...
|
by: Craig831 |
last post by:
First off, I apologize if this gets long. I'm simply trying to give you all
enough information to help me out. I'm writing (almost finished, actually),
my first VB.Net application. It's a forms...
|
by: Nalaka |
last post by:
Hi,
I suddenly started getting a lot of errors from html validation (some CSS)
so I followed the following instructions to disable it.
If you'd rather not have these types of HTML validation...
|
by: amit.man |
last post by:
Hi, i have newbie qestion,
when i write
#include <somthing.h>
the precompiler subtitue that line with the lines from "somthing.h"
header file.
when, where and how the compiler insert the...
|
by: Bob Jones |
last post by:
Here is my situation:
I have an aspx file stored in a resource file. All of the C# code is
written inline via <script runat="server"tags. Let's call this page
B. I also have page A that contains...
|
by: Seb |
last post by:
With php I can simply append a s to the file extension, eg. .phps and
if the user request the file the source will be shown in the browser.
Is there a semilar functionality for aspx pages?
...
|
by: pmw |
last post by:
Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |