TY - GEN
T1 - Debugging of assembly library functions without target debugging tools
AU - Kang, Jin Gu
AU - Yang, Seung Won
AU - Lee, Jong Yeol
PY - 2008
Y1 - 2008
N2 - This paper describes a debugging method for library functions written in assembly language without a target debugging tool. The proposed method can reduce the time required to port codes written in assembly language such as library functions and OS kernels. In the proposed method, an assembly library function is translated into a C function with debugging information which can be used in a host debugging tool. Since a hand-written assembly code is different from a compiler-generated code in the point of translation, a new analysis method is proposed. When translating an assembly code, the debugging information that links the assembly code with the generated C code is inserted as directives in the generated C code. By executing the host executable compiled from the generated C code on a host debugger which exploits the debugging information directives, we can debug the input assembly code. To verify the proposed method, we translate the assembly library functions in libgcc into C codes and execute the generated C code on a host debugger, GDB.
AB - This paper describes a debugging method for library functions written in assembly language without a target debugging tool. The proposed method can reduce the time required to port codes written in assembly language such as library functions and OS kernels. In the proposed method, an assembly library function is translated into a C function with debugging information which can be used in a host debugging tool. Since a hand-written assembly code is different from a compiler-generated code in the point of translation, a new analysis method is proposed. When translating an assembly code, the debugging information that links the assembly code with the generated C code is inserted as directives in the generated C code. By executing the host executable compiled from the generated C code on a host debugger which exploits the debugging information directives, we can debug the input assembly code. To verify the proposed method, we translate the assembly library functions in libgcc into C codes and execute the generated C code on a host debugger, GDB.
UR - https://www.scopus.com/pages/publications/55849100351
U2 - 10.1109/APCSAC.2008.4625467
DO - 10.1109/APCSAC.2008.4625467
M3 - Conference paper
AN - SCOPUS:55849100351
SN - 9781424426836
T3 - 13th IEEE Asia-Pacific Computer Systems Architecture Conference, ACSAC 2008
BT - 13th IEEE Asia-Pacific Computer Systems Architecture Conference, ACSAC 2008
T2 - 13th IEEE Asia-Pacific Computer Systems Architecture Conference, ACSAC 2008
Y2 - 4 August 2008 through 6 August 2008
ER -