Hi! In the case of Windows, from what I noticed, with GnuCOBOL installed, the necessary programs to generate the COBGDB executable are already available: gcc.exe and mingw32-make.exe. To generate cobgdb.exe in this case is very simple: a) Download the project (via zip or git) git clone https://github.com/marcsosduma/cobgdb.git b) Enter the directory: cd cobgdb c) Execute the command make: mingw32-make
Prof. Eugenio and Simon. OK! Thank you very much.
Hello! I understood that this function was implemented in version 3.2: https://sourceforge.net/p/gnucobol/code/HEAD/tree/tags/gnucobol-3.2/NEWS New system functions CBL_GC_SET_SCR_SIZE option to resize extended screen
Hello! I would like to know if there is any documentation or example on how to use this new function: * New system functions CBL_GC_SET_SCR_SIZE option to resize extended screen
Hi Simon! Thanks for your suggestion. I made the change: STRING "echo " FUNCTION TRIM (mail-body TRAILING) " | mailx -r " FUNCTION TRIM (mail-from-address TRAILING) " -s " FUNCTION TRIM (mail-subject TRAILING) " -a " FUNCTION TRIM (mail-attachment-filename TRAILING) " " FUNCTION TRIM (mail-to-address TRAILING) x"00" DELIMITED BY SIZE INTO mail-command.
Hello! I was testing the "send-some-mail.cbl" program on Orable Linux. Worked perfectly. I just had to add an x"00" at the end. string "echo " delimited by size mail-body delimited by size " | mailx -r " delimited by size mail-from-address delimited by size "-s " delimited by size mail-subject delimited by size " -a " delimited by size mail-attachment-filename delimited by size " " delimited by size mail-to-address delimited by size x"00" into mail-command. Thank you very much!
Hey! I'm working on a menu per profile and the screen is saved (scr_dump) at each choice and restored when returning to the previous item (scr_restore). However, after returning (when a restore is performed) and after choosing a new item, there is a problem rendering the screen. This problem only happens on windows (-lpdcurses), on linux using ncurses (-lncursesw) the problem does not happen. Any suggestion? Sorry for the bad english (code based on Prof. Eugenio's TUI) The texts on the screens are...
Hi Simon! Trying to follow your suggestion (on another forum), I managed to get this script that I'm using on Linux: /debug/external_debug.py import os from pathlib import Path import subprocess, signal import time import platform import gdb def read_num_terminal(): home = Path.home() fileName = os.path.join(home, ".numterm") if not os.path.isfile(fileName): return None file1 = open(fileName, "r") termName = file1.readlines()[0].strip() file1.close() return termName def isTermOn(): bTermIsOn = False...
Hi Simon! Trying to follow your suggestion (on another forum), I managed to get this script that I'm using on Linux: /debug/external_debug.py import os from pathlib import Path import subprocess, signal import time import platform import gdb def read_num_terminal(): home = Path.home() fileName = os.path.join(home, ".numterm") if not os.path.isfile(fileName): return None file1 = open(fileName, "r") termName = file1.readlines()[0].strip() file1.close() return termName def isTermOn(): bTermIsOn = False...
Hi Simon! Trying to follow your suggestion (on another forum), I managed to get this script that I'm using on Linux: /debug/external_debug.py import os from pathlib import Path import subprocess, signal import time import platform import gdb def read_num_terminal(): home = Path.home() fileName = os.path.join(home, ".numterm") if not os.path.isfile(fileName): return None file1 = open(fileName, "r") termName = file1.readlines()[0].strip() file1.close() return termName def isTermOn(): bTermIsOn = False...
Good night Simon! In my case, Oracle Linux GCC is generating the "FORTIFY_SORCE" directive in a way not foreseen in cobcd: gcc -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs= /usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fstack-clash-protection -fcf-protection -fstack-protector-strong -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/include -Wno-unused -fsigned-char...
Good night Simon! In my case, Oracle Linux GCC is generating the "FORTIFY_SORCE" directive in a way not foreseen in cobcd.py: gcc -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs= /usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fstack-clash-protection -fcf-protection -fstack-protector-strong -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/include -Wno-unused...
Good night Simon! In my case, Oracle Linux GCC is generating the "FORTIFY_SORCE" directive in a way not foreseen in cobcd.py: gcc -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs= /usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fstack-clash-protection -fcf-protection -fstack-protector-strong -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/include -Wno-unused...
Good night Simon! I updated the version but it didn't work: [duma@cristal tests3.1]$ make test make -C test001 test make[1]: Entering directory '/home/duma/debug/cbl-gdb/tests3.1/test001' COBCDEVEL=1 COBCDFMODE=0 /usr/bin/python3 ../../cobcd -x test.cbl test.s: Assembler messages: test.s:11324: Error: leb128 operand is an undefined symbol: .LVU824 test.s:11325: Error: leb128 operand is an undefined symbol: .LVU824 Thank you anyway.
Cobolworkx: Version 4.28.4. Source: https://gitlab.cobolworx.com/COBOLworx/cbl-gdb Linux: Oracle Linux Server release 8.7 Cobol: GnuCOBOL 3.1.2 Compiler: gcc 8.5.0
Hi! I'm trying to use cobcd (cobolworkx) to debug a program. The command is returning the following error on Oracle Linux: cobcd -x program.cob program.s: Assembler messages: program.s:13870: Error: leb128 operand is an undefined symbol: .LVU139 program.s:13871: Error: leb128 operand is an undefined symbol: .LVU139
Share project "MobileNote" into "https://svn.code.sf.net/p/supertruco/MobileNote"
Share project "NLSExample" into "https://svn.code.sf.net/p/supertruco/NLSExample"
Share project "Duck" into "https://svn.code.sf.net/p/supertruco/duck"
jTruco