Technical article 109347

sdb(CP) can't find some functions or symbols in my program.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

I have compiled all the modules of my program with cc(CP)
or icc(CP) using the "-g" flag.  When I try to debug the
program using sdb(CP), I get this error:
$ sdb <program>
Warning: `<function>' not found
*

where <program> is my program name and <function> is a function in the program.

If I continue to try to debug the program, this and other functions and/or symbols in the program can't be found.

In general, I may see this and other problems referencing symbols, when using sdb(CP) (for example, when setting a breakpoint) on COFF format code compiled with these compilers.

Cause

The debug COFF binary format generated by cc(CP) and icc(CP) can't be debugged using sdb(CP).

Solution

To work around this problem:
1. Use dbxtra(CP) as an alternative to sdb(CP)
OR:

2. Install the SCO XENIX/DOS Cross Development Supplement Release 5.0.0 on the system; use xcc(CP) to compile your code. The debug COFF binary generated by xcc(CP) can be successfully debugged using sdb(CP).

See also

sdb(CP), dbx(CP), dbxtra(CP)

From the Xinuos technical article database, record 109347. Reproduced with permission. The original is at www.sco.com/ta/109347, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.