- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
My debugging version always goes into the "Disassembly" when it reaches the
include file which I put in the middle of code.
It always shows the assembly language part of the include with
"--- No source file ------"
mov ..
test..
je..
call...
"
It even disabled the "Go to source code" option of the popup window.
I did not happen VS6 version. I am using VS2005 standard.
Could you tell me what to do?
I want to see the code I wrote not the assembly.
FYI: my code sample
call sub1
include "aaa.h"
call sub2
If I commented the include line, my debugging goes as usual showing the
exact code I wrote.
Below are my "aaa.h" and the project settting.
"aaa.h" :
if(n.eq.0) then
if(cfnc1().ne.cfc2()) then
write(*,100)
call exit(1)
endif
else
call check()
endif
100 format('......')
Fortran cmd lin:
/nologo /Zi /Od /include:".include"
/define:WIN /define:WOGL /f77rtl /intconstant /module:"$(INTDIR)/"
/object:"$(INTDIR)/" /traceback /libs:static /threads /dbglibs /winapp /c
-BO
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I haven't got the response from you about debugging.
Below is the simple example .I set break points at the line 1 and 3. I can not go from line 1 to line 3 without going through 2.
Is it a bug? I think I did something wrong to my project setting.
line 1: call sub1
line 2: include "aaa.h"
line 3: call sub2
It behaves the same even with much simpler "aaa.h" which has only one line like:
nnn=1.
Any advice will be very much appreciated.
-BO
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Itseemsthat it related to the way how the inline(or macro) is handled.
In my previous example, it behaved the same even the line 1 and 3 are just assignments not calls.
n1=1
include 'aaa.h'
n2=2
-BO
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I don't know what to say. I still has the same problem showing assembly code.
What do you meanby "it worked fine"?
I guess you also see the assembly code as soon as you step in the .h portion.
I think .h file has been preprocessed and hiding ASCII as it supposed to do.
But as I said, I did see the code I wrote with CVF/VC6.
If you do not see what I see, it's really weird.
-BO
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am using compiler version 10.1.021. What are you using?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am using 9.1. I think that's the only difference between you and me.
-BO
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
You said "a lot".
Does that imply the symptom could be a bug in the version 9.1?
Could you take my zipped example and run it on 9.1 and check if it has the same problem, if possible.
If not, I will try to use trial varsion 10.
How difficult is it to convert from 9.1 to 10?
Before I take the effort for the transition,
I would like for you to confirm that you took my zipped sample, ran the debugger and
did not see any assembly code with version 10.
-BO
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
It is not at all difficult to convert. You uninstall 9.1, install 10.1 and it should be fine. Make sure that your support license is current otherwise you won't be able to run a newer compiler.