View previous topic :: View next topic
|
Author |
Message |
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Hello,
I want to patch the value of CC at run time. Is there any command to do it? Please help.
Thank you,
VIjay |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Patch ??? please explain, or does it have a hole in it that needs patching ? |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Let me rephrase my statement.
While debugging code with Debug tool, if current CC is 2 and I want to forcefully make it to 0. What is the command to do it?
Thank you,
Vijay |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
DT allows you to enter MOVE statements on the command line. Did you try: MOVE ZEROS TO RETURN-CODE ? |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
I tried it but not working. I am debugging assembler code. I also wants to change the value of CC to 1, 2, or 3. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
I am expert in neither HLASM not Debug Tool, but it doesn't seem intuitive that MOVE ZEROES TO RETURN-CODE would be efficacious. Have you tried modifying register 15 just before returning from the routine? |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Thank you Akatsukami. But I don't want to change the return code(RC) in R15. Rather I want to change the condition code(CC) that set in CLC instruction. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
After a week you get to tell us what you really want?
Can't it be as simple as changing the values of what you are comparing to get the different CCs? |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Condition code is the part of PSW. %CC is a debug tool variable.
We can modify PSW in Xpeditor. But how can we achieve it with IBM Debug tool? |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Thank you Bill for your reply.
But I want to change the value of CC as we can do it in Xpeditor not the values of the comparison fields. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, I've not used Debug Tool, but looking at the manual just now..
Quote: |
8.0 Debug Tool variables
Debug Tool reserves several variables for its own information. These Debug Tool variable names begin with a percent sign (%), to distinguish them from program variables. You can access Debug Tool variables while testing programs in any supported language.
You can use all Debug Tool variables in expressions. Additionally, the variables %EPRn., %FPRn., %GPRn., and %LPRn. (representing the types of registers) can be modified [...]
|
%CC and %PSW exist and can be 2in expressions". Maybe they can't be modified, seems to be the implication from the list that can be.
Sorry I can't be more help. |
|
Back to top |
|
|
vijay korde
New User
Joined: 19 Feb 2010 Posts: 27 Location: India
|
|
|
|
Thank you Bill. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But I want to change the value of CC as we can do it in Xpeditor not the values of the comparison fields. |
Then you need to convince your management that they need to pay for Xpeditor. . .
Suggest you concentrate on the way the tools you have work and not on how some other tools do something similar. This will be quite frustrating |
|
Back to top |
|
|
|