DocumentCode
2840278
Title
Debugging of assembly library functions without target debugging tools
Author
Kang, Jin-Gu ; Yang, Seung-Won ; Lee, Jong-Yeol
Author_Institution
Div. of Electron. & Inf. Eng., Chonbuk Nat. Univ., Jeonju
fYear
2008
fDate
4-6 Aug. 2008
Firstpage
1
Lastpage
8
Abstract
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.
Keywords
assembly language; program compilers; program debugging; software libraries; C function; OS kernels; assembly language; assembly library functions; compiler-generated code; debugging method; hand-written assembly code; host debugger; libgcc; Arithmetic; Assembly; Data analysis; Debugging; Digital systems; Flow graphs; Kernel; Processor scheduling; Software libraries; Time to market;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Systems Architecture Conference, 2008. ACSAC 2008. 13th Asia-Pacific
Conference_Location
Hsinchu
Print_ISBN
978-1-4244-2682-9
Electronic_ISBN
978-1-4244-2683-6
Type
conf
DOI
10.1109/APCSAC.2008.4625467
Filename
4625467
Link To Document