IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

debugging macros in assembler


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankitsharma

New User


Joined: 17 Feb 2009
Posts: 2
Location: Noida

PostPosted: Thu Feb 26, 2009 2:33 pm
Reply with quote

Hi

I am trying to debug an online assembler program. This assembler program has different Macros called.

Is there any way that I can debug the Macro code as well because the Macro code is making some changes to field values due to which my program is not giving desired results and I want to check how values are being set in Macros code.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Feb 26, 2009 3:58 pm
Reply with quote

Look at the macro source and how it expanded in your assembly.
Back to top
View user's profile Send private message
ankitsharma

New User


Joined: 17 Feb 2009
Posts: 2
Location: Noida

PostPosted: Thu Feb 26, 2009 4:22 pm
Reply with quote

Please check my program logic given below.

AA0010 is executed until it reaches a point where "MCNAME" macro is called and BA is passed to the macro, the macro does some calculation by executing lines that are coded in the same program under label BA, but while debugging I am not able to debug code logic under BA label as BA is not directly called by branching but it is called using a Macro.

AA0010
........
........
........

MCNAME PERFORM,BA
+ L R11,BABASE
+ BASR R14,R11
B AA999
......
BA
........
BA00101

MCNAME RETURN
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Feb 26, 2009 5:36 pm
Reply with quote

ankitsharma wrote:
I am not able to debug code logic under BA label as BA is not directly called by branching but it is called using a Macro.
What is the problem?
My guess is that the macro loads the base register/entry point and branches there with a return address of the next instruction after the macro.
What is the macro's name and what the heck did you do the the code sample to screw it up so much?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Debugging not getting triggered throu... CICS 3
Search our Forums:

Back to Top