This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb towork!!!


http://sourceware.org/bugzilla/show_bug.cgi?id=15257

             Bug #: 15257
           Summary: !!!Bug gdb needed to change to intel64 idb to work!!!
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: aleksandar.jelic30@gmail.com
    Classification: Unclassified


This bug is existing at least since 2003.

The Bug is next:

Here is one super simple program but it dont work:
--------Start-------------
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;

int main (int argc, char* argv[])
{
// convert the text argv[1] to double using atof:
double r = atof(argv[1]);
double s = sin(r);
cout << "Hello, World! sin(" << r << ")=" << s << endl;
// success
return 0;
}
---------END------------

BUILD is OK like you can see:

---------Start(build report)----------
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
gmake[1]: Entering directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk
dist/Debug/GNU_Compiler_Collection-Linux-x86/cppapplication_2
gmake[2]: Entering directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
mkdir -p build/Debug/GNU_Compiler_Collection-Linux-x86
rm -f build/Debug/GNU_Compiler_Collection-Linux-x86/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/GNU_Compiler_Collection-Linux-x86/main.o.d
-o build/Debug/GNU_Compiler_Collection-Linux-x86/main.o main.cpp
mkdir -p dist/Debug/GNU_Compiler_Collection-Linux-x86
g++ -o dist/Debug/GNU_Compiler_Collection-Linux-x86/cppapplication_2
build/Debug/GNU_Compiler_Collection-Linux-x86/main.o
gmake[2]: Leaving directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
gmake[1]: Leaving directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'

BUILD SUCCESSFUL (total time: 613ms)
---------End(build report)------------

But run fail

---------Start(Run report)------------
RUN FAILED (exit value 1, total time: 78ms)
----------End(Run report)-------------

---------Start(Terminal report)------------
/usr/local/netbeans-7.2.1/ide/bin/nativeexecution/dorun.sh: line 33: 7673
Segmentation fault sh "${SHFILE}"

Press [Enter] to close the terminal ...

---------End(Terminal report)------------

I've tried everything different compilers and programs to run them(Netbeans,
Eclipse, Qt Creator.....)
>>>>>>>>>>>-<<<<<<<<<<<
When I changed: gdb->idb
>>>>>>>>>>>-<<<<<<<<<<<
IT WORKED!!!


I'm theoretical physicist so I dont know how to fix it or help any more.
But I would be grateful it you could fix it.
I know 1000+ students that had same problem 
and were recommended to do C++ programing in Windows. 
I just dont understand why it wasnt fixed before??
Maybe no one sow it before?
Cause we use C++ for numerical calculations...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]