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

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

 



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/

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.


------------------------------------------------------------------------------
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