cannot execute functions from dbx
I tried calling these functions from dbx but nothing seems to work.
print strlen("hello");
dbx: can't find a system call entry point -- program not linked with libc?
loadobject shows that libc.so is mapped.
(dbx) loadobject -list | grep libc
m/lib/libc.so.1
any particular reason?
[324 byte] By [
slashgmga] at [2007-11-27 10:16:57]

# 1
This can happen if, for example, some libc functions have been overridden by the application. What is your arch, OS, version of the OS and dbx itself?
# 2
uname -a
SunOS whitestar2-0 5.11 i86pc i386 i86pc snv_66 X86
dbx -V
Sun Dbx Debugger 7.1 Patch 112759-02 2003/11/11
Infact I am not able to call functions in my own library also. I get the same error. Those functions are definitely not overloaded. They are unique and are in my library.
Thanks for looking at this. Appreciate your help
Message was edited by:
slashgmg
Message was edited by:
slashgmg
# 3
dbx 7.1 is extremely old with regards to OpenSolaris; debugger has to rely on a bunch of internal interfaces provided by the OS and those interfaces change over time.
In fact, at least one bug won't let it work properly and can lead to crash on Solaris 11 x86/x64 systems -- 6477975 -- and no patch is available for dbx 7.1.
Please upgrade to dbx 7.6, which is part of Sun Studio 12 and has undergone a number of improvements. Sun Studio 12 is free and can be downloaded here:
http://developers.sun.com/sunstudio/downloads/