- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: cobol and c debuger
Operating System - Linux
1753971
Members
8685
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 02:19 AM
тАО02-28-2007 02:19 AM
cobol and c debuger
Hi everybody:
Do you guys know any debugging application that lets you debug c and cobol programs in the same code.
I mean, debuging cobol applications that call c rutines and viceversa.
Thanks a lot
- Tags:
- COBOL
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 02:26 AM
тАО02-28-2007 02:26 AM
Re: cobol and c debuger
It greatly depends upon the flavor of COBOL. Many COBOL's are compiled to p-code rather than native code so that general purpose debuggers such as gdb aren't all that useful. In those cases, the COBOL development system almost always includes its own debugger. If your flavor of COBOL compiles to native code then gdb will handle it as well as the C routines.
If it ain't broke, I can fix that.
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 02:33 AM
тАО02-28-2007 02:33 AM
Re: cobol and c debuger
Ignacio,
whenever we have to debug programs like that, we create stubs.
These stubs replace the external routines and return known data.
Once we have proven that the main code works, we then flip the whole thing and test the fuctions with stubs of known input.
You could try to use the attach feature of gdb for the C code. From "man gdb"
gdb program 1234 would attach GDB to process 1234
whenever we have to debug programs like that, we create stubs.
These stubs replace the external routines and return known data.
Once we have proven that the main code works, we then flip the whole thing and test the fuctions with stubs of known input.
You could try to use the attach feature of gdb for the C code. From "man gdb"
gdb program 1234 would attach GDB to process 1234
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 02:50 AM
тАО02-28-2007 02:50 AM
Re: cobol and c debuger
Hi:
Thanks all.
The flavor is Microfocus Cobol, and i do not know what type of compilation does.
Making those stubs it is a way, but i am not sure if the developers would like that.
It has to exist something, cobol its really old !!, and C.. this problem must be present before the univac came to us !!
Regards
Thanks all.
The flavor is Microfocus Cobol, and i do not know what type of compilation does.
Making those stubs it is a way, but i am not sure if the developers would like that.
It has to exist something, cobol its really old !!, and C.. this problem must be present before the univac came to us !!
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP