[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Debugger with Linux (Michael D. Setzer II)
From: |
Simon Sobisch |
Subject: |
Re: [open-cobol-list] Debugger with Linux (Michael D. Setzer II) |
Date: |
Tue, 23 Feb 2016 20:51:55 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
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" <address@hidden>
> Subject: [open-cobol-list] Debugger with Linux
> To: address@hidden
> Message-ID: <address@hidden>
> 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.
- Re: [open-cobol-list] Debugger with Linux (Michael D. Setzer II),
Simon Sobisch <=