Book a Demo

Author Topic: reverse engineering problem  (Read 2563 times)

Mato

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
reverse engineering problem
« on: October 16, 2006, 06:03:16 am »
Hi,

I am just starting to use EA - (this is not an excuse, I know) and I face a problem with reverse engineering of a code like:

...
class  __attribute__ ((packed)) Abc
{
public:
  int a;
  int b;
};
...

I have tried to define C++ languge macros (the __attribute__ is accepted as such, bat the ((packed)) afterwards fails).
Pls. note this construct is included in customer code and should remain.

Thanks for any help.
br.
Mato

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: reverse engineering problem
« Reply #1 on: October 16, 2006, 03:29:08 pm »
Try using __attribute__() as the language macro instead.  This skips everything in the brackets.

Mato

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: reverse engineering problem
« Reply #2 on: October 16, 2006, 10:47:53 pm »
Hi Simon!

Thanks for your answer - it was exactly what I was looking for.

A great help!

br
Mato

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: reverse engineering problem
« Reply #3 on: October 17, 2006, 01:10:45 am »
Now all one needs to do is distil all the advice in these forums into an Expert System database ;-)