R
Raman
Hi All,
We have an old code base which (unfortunatelty) has some C files that
include other C files:e.g
File.c
=====
#include<stdio.h>
..
void someFunc(){
..
..
}
#include<culprit.c>
void someOtherFunc(){
callAFunctionDefinedinCluprit()
}
=====
Here, File.c includesa C file called culprit.c.
Problem:
We are porting this code base to Mainframes. The debugger there
( iSeries system debugger) does not support inclusion of the files.
When control of the execution reaches in culprit.c, debugger is unable
to highlight the statement being executed currently.
Possible Solution;
We could copy-paste the culprit.c in the File.c, However there are
some other files like Second.c that also include culprit.c. So the
code of culprit will be redundant.
Please help, if any other solution exists.
I understand this group is not about debugger/ Mainframes, However I
posted this query in this group because after all this is a bad
programming design as per the C language.
Also, If any one can suggest some place/group that discuss Mainframes.
Thanks and Regards,
Raman Chalotra
We have an old code base which (unfortunatelty) has some C files that
include other C files:e.g
File.c
=====
#include<stdio.h>
..
void someFunc(){
..
..
}
#include<culprit.c>
void someOtherFunc(){
callAFunctionDefinedinCluprit()
}
=====
Here, File.c includesa C file called culprit.c.
Problem:
We are porting this code base to Mainframes. The debugger there
( iSeries system debugger) does not support inclusion of the files.
When control of the execution reaches in culprit.c, debugger is unable
to highlight the statement being executed currently.
Possible Solution;
We could copy-paste the culprit.c in the File.c, However there are
some other files like Second.c that also include culprit.c. So the
code of culprit will be redundant.
Please help, if any other solution exists.
I understand this group is not about debugger/ Mainframes, However I
posted this query in this group because after all this is a bad
programming design as per the C language.
Also, If any one can suggest some place/group that discuss Mainframes.
Thanks and Regards,
Raman Chalotra