diff options
author | Roland McGrath <roland@redhat.com> | 2005-12-05 22:46:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2005-12-05 22:46:21 +0000 |
commit | 994b4899278199fc4d307780dac0ea50b238bc74 (patch) | |
tree | 319952538a8556fa7f4d1ffcb4ae258fc6c47a5b /libebl/libebl.h | |
parent | 038129b11ac71a13ccaf9029122be86d6c532990 (diff) | |
download | android_external_elfutils-994b4899278199fc4d307780dac0ea50b238bc74.tar.gz android_external_elfutils-994b4899278199fc4d307780dac0ea50b238bc74.tar.bz2 android_external_elfutils-994b4899278199fc4d307780dac0ea50b238bc74.zip |
merge of 2cc527e6d8c8ff19dab478f7d12e58f1cfa6d6f5
and 7b542932f3e2947183b45bdbf39d448f457da9fd
Diffstat (limited to 'libebl/libebl.h')
-rw-r--r-- | libebl/libebl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libebl/libebl.h b/libebl/libebl.h index 7e91b308..c3c96612 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -170,6 +170,20 @@ extern int ebl_return_value_location (Ebl *ebl, Dwarf_Die *functypedie, const Dwarf_Op **locops); +/* Fill in register name information given DWARF register numbers. + If NAME is null, return the maximum REGNO + 1 that has a name. + Otherwise, store in NAME the name for DWARF register number REGNO + and return the number of bytes written (including '\0' terminator). + Return -1 if NAMELEN is too short or REGNO is negative or too large. + Return 0 if REGNO is unused (a gap in the DWARF number assignment). + On success, set *SETNAME to a description like "integer" or "FPU" + fit for "%s registers" title display, and *PREFIX to the string + that precedes NAME in canonical assembler syntax (e.g. "%" or "$"). + The NAME string contains identifier characters only (maybe just digits). */ +extern ssize_t ebl_register_name (Ebl *ebl, + int regno, char *name, size_t namelen, + const char **prefix, const char **setname); + /* ELF string table handling. */ struct Ebl_Strtab; |