Book a Demo

Author Topic: Bug in c++ reverse engineering!!  (Read 3968 times)

Mikael

  • Guest
Bug in c++ reverse engineering!!
« on: October 08, 2009, 04:41:22 pm »
parser for c++ reverse engineering bombs out on using statement

using System.Control;
---------------^

Unknown token at line x: .

This mucks up my use of EA real bad, since the new standard and most compilers (VC and GCC most notably) use C++0X version of using statements as shown above and contrary to the old:

using namespace System.Control;

Should not be so hard to fix in your parser as well.

Thanks for the fix in advance!

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Bug in c++ reverse engineering!!
« Reply #1 on: October 08, 2009, 10:42:45 pm »
Hi Mikael,

As far I can see that's not valid C++ syntax, should be

using System::Control;

Was your sample just a typo, or are you trying to reverse engineer C# code with EAs C++ engine ?
I dunno, if particularly the :: separator syntax was changed or extended with C++0X, omitting 'namespace' may be.

HTH
Günther

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Bug in c++ reverse engineering!!
« Reply #2 on: October 09, 2009, 03:39:35 am »
Hi Mikael,

You just made me curious. I've been searching for the new C++(0X) features you're mentioning here, but couldn't find anything about what you're claiming. I've been
checking here:
http://en.wikipedia.org/wiki/C%2B%2B0x

and here for the namespace features in particular:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf

Anyway the C++0X standard isn't stable and committed yet, despite some features are supported by certain compilers. I don't think that EA ought to 'fix' something for not yet released and official language standards.
You can find what's currently supported by particular compilers here:
http://wiki.apache.org/stdcxx/C++0xCompilerSupport

I guess you really 'confused' s.th. here with either C# or some proprietary M$VC standard.

WBR
Günther