Subversion Repositories HelenOS-historic

Rev

Rev 1248 | Rev 1705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1248 Rev 1264
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
/**
-
 
30
 * @file    symtab.c
-
 
31
 * @brief   Kernel symbol resolver.
-
 
32
 */
29
 
33
 
30
#include <symtab.h>
34
#include <symtab.h>
31
#include <typedefs.h>
35
#include <typedefs.h>
32
#include <arch/byteorder.h>
36
#include <arch/byteorder.h>
33
#include <func.h>
37
#include <func.h>
34
#include <print.h>
38
#include <print.h>
35
 
39
 
36
/** Return entry that seems most likely to correspond to address
40
/** Return entry that seems most likely to correspond to argument.
37
 *
41
 *
38
 * Return entry that seems most likely to correspond
42
 * Return entry that seems most likely to correspond
39
 * to address passed in the argument.
43
 * to address passed in the argument.
40
 *
44
 *
41
 * @param addr Address.
45
 * @param addr Address.
Line 53... Line 57...
53
    if (addr >= __u64_le2host(symbol_table[i-1].address_le))
57
    if (addr >= __u64_le2host(symbol_table[i-1].address_le))
54
        return symbol_table[i-1].symbol_name;
58
        return symbol_table[i-1].symbol_name;
55
    return NULL;
59
    return NULL;
56
}
60
}
57
 
61
 
58
/** Find symbols that match the parameter forward and print them
62
/** Find symbols that match the parameter forward and print them.
59
 *
63
 *
60
 * @param name - search string
64
 * @param name - search string
61
 * @param startpos - starting position, changes to found position
65
 * @param startpos - starting position, changes to found position
62
 * @return Pointer to the part of string that should be completed or NULL
66
 * @return Pointer to the part of string that should be completed or NULL
63
 */
67
 */