Re: Debugger with Linux (Michael D. Setzer II)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 Feb 2016 at 13:03, Michael D. Setzer II wrote:

From:           	"Michael D. Setzer II" <mikes@xxxxxxxxxxxxxxxx>
To:             	Simon Sobisch <simonsobisch@xxxxxx>,
             	open-cobol-list@xxxxxxxxxxxxxxxxxxxxx,
             	"Michael D. Setzer II" <mikes@xxxxxxxxxxxxxxxx>
Date sent:      	Wed, 24 Feb 2016 13:03:32 +1000
Subject:        	Re:  Debugger with Linux (Michael D. 
Setzer II)
Copies to:      	mikes@xxxxxxxx
Priority:       	normal

> On 23 Feb 2016 at 20:51, Simon Sobisch wrote:
> 
> Subject:        	Re:  Debugger with Linux (Michael D. 
> Setzer II)
> To:             	open-cobol-list@xxxxxxxxxxxxxxxxxxxxx,
> 	"Michael D. Setzer II" <mikes@xxxxxxxxxxxxxxxx>
> From:           	Simon Sobisch <simonsobisch@xxxxxx>
> Date sent:      	Tue, 23 Feb 2016 20:51:55 +0100
> 
> > Hi Michael,
> > 
> > I did not tested this yet and you may find someone on this list that
> > will do this, but in general you *may* could be more lucky when at least
> > co-posting it to the TP-Debugger project ;-)
> > 
> > In general:
> > * the different output looks like a clear bug
> > --> https://sourceforge.net/p/tp-cobol-debugg/bugs (including output of
> > cobc --info could be useful here, too)
> > * if you convert the file names I'd highly suggest to run dos2unix on
> > them, too
> > * for the "everything has to be in the current path"-issue: this should
> > work with
> > export cbl_library_path=/path/to/animator/sources
> > export animate_inf=/path/to/animator/inf_files
> > export animator_inf=$animate_inf
> > export COB_ENV_MANGLE=1 # change all identifiers in `ACCEPT var FROM
> > ENVIRONMENT identifier` to use _ for parts not in isalnum() [which
> > includes the dot]
> > * for possible other questions about the animator:
> > --> https://sourceforge.net/p/tp-cobol-debugg/discussion/
> 
> Thanks for the info. Programs compiled fine without the dos2unix, but agree 
> that sometime for many issues that can cause problems but doesn't in this 
> case. Will checkout your other info. Putting animator in /usr/bin works fine, 
> and then with the so files in /usr/local/lib/gnu-cobol makes them work with no 
> issue. Currently have my menu front-end copy the *.inf files and two of the 
> *.cpy files to the students directory, but will see. 
> 
> Not sure why it makes all the so files instead of compiling it all together? 
> 
> Did a test on some of the programs I have students do, and output seems 
> 100% the same if run directly or thru the animator, will have to run the trace, 
> and see if I can see why the test program output from the tp isn't printing 
> those last lines.
> 
> Haven't yet seen it it works under the cygwin environment in a simialar way? 
> Did use the TP program long ago, and some things seem a lot different than I 
> recall. Also, had used the MicroFocus Cobol Animator. 
> 
> Thanks again. Will also look at the TP forum. I have a disk imaging project on 
> Sourceforge G4L.
> 
> 

Have done more testing with the cygwin64 on windows 7, and the little script 
I wrote seems to work with the addition on copying the dll files like the so files 
of linux, and copying the animator.exe. Just put in both lines since the files 
wouldn't exist in the other environment.

Did finally see the error that was happening on the test program when run 
under the animator. It was in test.ani: 189: libcob: 'InRec' not numeric: 
'\012\000\000\000\000\000\004\014'
Had looked at the test.cbl, and that line is beyond the end of program, but 
using the -k switch, I was able to and it is Move InRec to Time-Out
Not clear why it is numeric when compiled directly. 

Only other issue I found was the cobxref gave an error about duplicate 
currency definition?? Just commented out the line, and put a . on the 
previous line, and the it compiled and ran fine.


> > 
> > Simon
> > 
> > > ----------------------------------------------------------------------
> > > 
> > > Date: Tue, 23 Feb 2016 08:35:33 +1000
> > > From: "Michael D. Setzer II" <mikes@xxxxxxxxxxxxxxxx>
> > > Subject:  Debugger with Linux
> > > To: open-cobol-list@xxxxxxxxxxxxxxxxxxxxx
> > > Message-ID: <56CB8D35.12785.1CF57@xxxxxxxxxxxxxxxxxxxxxx>
> > > Content-Type: text/plain; charset="us-ascii"
> > > 
> > > Issues with tp-cobol-debugger-2.00-15-03-2015.zip on Linux?
> > > 
> > > Extracted files and have done the following to get it to work basically.
> > > 
> > > Used following script
> > > 
> > > Filenames from zip file are mix of upper and lower case, so use this script lcf 
> > > to convert filenames to all lower case.
> > > 
> > > #!/bin/sh
> > > # lowercase any filenames with uppercase chars
> > > for file in $*
> > >  do
> > >  if [ -f $file ]
> > >  then
> > >    lcfile=`echo $file | tr [:upper:] [:lower:]`
> > >    if [ $file != $lcfile ]
> > >    then
> > >      mv -i $file $lcfile
> > >    fi     
> > >  fi
> > > done
> > > 
> > > Modified compall.bat file to compall.sh
> > > ./lcf *
> > > cobc -x animator.cbl
> > > cobc animate.cbl
> > > cobc animdata.cbl
> > > cobc analyzer.cbl
> > > cobc animfind.cbl
> > > cobc animview.cbl
> > > cobc animloca.cbl
> > > cobc animload.cbl
> > > 
> > > cp animator /usr/bin
> > > cp *.so /usr/local/lib/gnu-cobol
> > > 
> > > #Not sure how these should be set for Linux, but seems to work for most part 
> > > with them commented out.
> > > #set cbl_library_path=c:\animate
> > > #set animate.inf c:\animate
> > > #set animator.inf c:\animate
> > > 
> > > #:fine
> > > animator test.cbl -x
> > > ./test
> > > cat TELCO.TXT
> > > 
> > > Results don't seem to match when checking TELCO.TXT file run from 
> > > animator and regular compile
> > > animator run gives
> > >   Time  Rate |        Price         Btax         Dtax |       Output
> > > -------------+----------------------------------------+-------------
> > >    308    L  |         0.40         0.02              |         0.42
> > >     76    L  |         0.10         0.00              |         0.10
> > >     68    L  |         0.09         0.00              |         0.09
> > >    323    D  |         2.89         0.19         0.09 |         3.17
> > >     82    L  |         0.11         0.00              |         0.11
> > >    329    D  |         2.94         0.19         0.10 |         3.23
> > >     14    L  |         0.02         0.00              |         0.02
> > >    101    D  |         0.90         0.06         0.03 |         0.99
> > >    522    L  |         0.68         0.04              |         0.72
> > >     50    L  |         0.07         0.00              |         0.07
> > > 
> > > While result from a cobc -x test.cbl run provides
> > >   Time  Rate |        Price         Btax         Dtax |       Output
> > > -------------+----------------------------------------+-------------
> > >    308    L  |         0.40         0.02              |         0.42
> > >     76    L  |         0.10         0.00              |         0.10
> > >     68    L  |         0.09         0.00              |         0.09
> > >    323    D  |         2.89         0.19         0.09 |         3.17
> > >     82    L  |         0.11         0.00              |         0.11
> > >    329    D  |         2.94         0.19         0.10 |         3.23
> > >     14    L  |         0.02         0.00              |         0.02
> > >    101    D  |         0.90         0.06         0.03 |         0.99
> > >    522    L  |         0.68         0.04              |         0.72
> > >     50    L  |         0.07         0.00              |         0.07
> > >     50    L  |         0.07         0.00              |         0.07
> > > -------------+----------------------------------------+-------------
> > >    Totals:   |         8.27         0.50         0.22 |         8.99
> > >   Start-Time:08:13:02.85
> > >     End-Time:08:13:02.85
> > > 
> > > Other issue is that console output of message at begining isn't clearly shown, 
> > > and entering the console accept had to be figured out?
> > > 
> > > In very limited testing, the cpy and inf files need to be in current directory to 
> > > have animator work, but that might be issues with the set values not being 
> > > made.
> > 
> 
> 
> +----------------------------------------------------------+
>   Michael D. Setzer II -  Computer Science Instructor      
>   Guam Community College  Computer Center                  
>   mailto:mikes@xxxxxxxxxxxxxxxx                            
>   mailto:msetzerii@xxxxxxxxx
>   Guam - Where America's Day Begins                        
>   G4L Disk Imaging Project maintainer 
>   http://sourceforge.net/projects/g4l/
> +----------------------------------------------------------+
> 
> http://setiathome.berkeley.edu (Original)
> Number of Seti Units Returned:  19,471
> Processing time:  32 years, 290 days, 12 hours, 58 minutes
> (Total Hours: 287,489)
> 
> BOINC@HOME CREDITS
> ABC         16613838.513356   |   EINSTEIN    88650200.285695
> ROSETTA     40612200.678824   |   SETI        75411180.292144
> 


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes@xxxxxxxxxxxxxxxx                            
  mailto:msetzerii@xxxxxxxxx
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS
ABC         16613838.513356   |   EINSTEIN    88650200.285695
ROSETTA     40612200.678824   |   SETI        75411180.292144


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
open-cobol-list mailing list
open-cobol-list@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/open-cobol-list



[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux