Closed
Bug 16554
Opened 25 years ago
Closed 25 years ago
PR_FindSymbol(null, "symbolname") does search loaded symbols
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alecf, Assigned: srinivas)
Details
According to the header: /* ** Given the name of a procedure, return the address of the function that ** implements the procedure, or NULL if no such function can be ** found. This does not find symbols in the main program (the ".exe"); ** use PR_LoadStaticLibrary to register symbols in the main program. If ** "lib" is NULL then all currently loaded libraries and the main program ** are searched However, if you pass NULL as the first argument, then it ASSERTS instead of searching the loaded symbols. Either the header needs to be fixed, or it needs to work as advertised....
The NSPR documentation also says the same thing as the header. PR_FindSymbol was always looked up the symbol only in the specified library. PR_FindSymbolAndLibrary should be used to look up a symbol among all the loaded libraries. The documentation should be fixed.
Reporter | ||
Comment 2•25 years ago
|
||
thanks.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated the description of PR_FindSymbol in the header file and NSPR documentation at mozilla.org. Files modified: /cvsroot/mozilla/nsprpub/pr/include/prlink.h, rev 3.4 /cvsroot/mozilla-org/html/docs/refList/refNSPR/prlink.html new revision: 1.2; previous revision: 1.1
You need to log in
before you can comment on or make changes to this bug.
Description
•