- Bug 24457 can now be tested for inferiors compiled by clang compiler also.
- Clang and GCC produces different assembly for the same inferior. Hence, Clang case has been handled separately.
Signed-off-by: Abhishek Aggarwal <abhishek.a.aggarwal@intel.com>
First I would like to applaud for writing a test case for such a delicate issue. I know it's not easy given the current test infrastructure.
However, this change seems very fragile and likely to break due to random changes in clang implementation and/or command line flags. Even the gcc path can break if the gcc happens to produce slightly different output. I would like to avoid relying on hardcoded instruction counts.
How about we try something like this:
what do you think?