Dissertation > Excellent graduate degree dissertation topics show

Instruction Level Debugging Research Based on Dalvik Virtual Machine

Author: ZhangPeng
Tutor: GaoHui
School: University of Electronic Science and Technology
Course: Computer Software and Theory
Keywords: Android Dalvik virtual machine Java instruction Eclipse debugging
CLC: TP302
Type: Master's thesis
Year: 2013
Downloads: 23
Quote: 0
Read: Download Dissertation


With the promotion of Google’s Andorid platform on the phone, tablet and othermobile terminals, the development and research of Dalvik virtual machine as theruntime core of ther Android operating system also comes to a flourishing. However,limiting factors like sepcial demand, narrow scope of usage, and non-open source, haveleft the demond for debugging tools for Java Virtual Machine including the Dalvikvirtual machine still not perfect enough, especially for Java instruction level debugging.Though enough tools can be found to do a Java sourcecode level debugging work, butno one mature tools appropriate to burden the duty of Java Instruction level debugggingwork.To make this problem history, this paper designed and implemented a Javaprogram instruction-level debugging module for Dalvik virtual machine, and integratedit to stardard Eclipse Java debug plugin, the research work mainly includes thefollowing4aspects:Firstly, we proposed a asynchronous working mechanism in the Dalvik VM,different with the debug commands that can self-complete on the debugger thread suchas get version number, single-step command requires the debugger thread and the userthread to cooperate to complete. The instruction-level single-step debugging and debugresults returnning is achieved by following steps: When single-step command isreceived, debugger thread set the corresponding single request mark on debugged thread,and the debugger side receive a confirm message,but not debug results immediately.The debugged thread then compares the request with current produced events until thecontrast established, and sent a single-setp event to debugger thread. debugger threadthen sends real single-step debug results to the debugger side.Secondly, in order to achieve single-step to instruction level, an instruction-levelsingle-step event is definded and added in the JPDA(Java Platform Debug Architecture)framework in Dalvik VM, and correspoinding debugging event processing module isadded in the user thread. Within this mechanism the debuggee thread can correctlyindentify our request in each proofreading requests and events, then trigger right single-step event and stop at the correct position.Thirdly, for the purpose of monitoring instruction-level debugging, we need todisplay related program data and instrcution stream. So we added two importantfunctions in the Dalvikvm, namely request for instruction stream and registers’ values,by which we can have a intuitive understanding of virtual machine state.lastly, on the Eclipse side, the function of standard Eclipse Java debug plug-in wasextended, including debug target, single instruction stepping, breakpoints, source locator,register view and instruction stream view,and made a test on a real application.The experimental results showed that the design and implementation of this tool iscorrect and feasible for Dalvik VM instruction debugging. So we now have ameaningful tool in Java VM’s assisting development.

Related Dissertations

  1. The Design and Research of Health Management Based on Smartphone Environment,TN929.53
  2. Ecological Function of Cassava-Peanut Intercropping in Small Red Soil Watershed,S533
  3. The Research and Realization of H.264 Based Onandroid,TN919.81
  4. Design and Implementation of a Small VoIP System Based on Android Platform,TN916.2
  5. The Design and Implementation of Android-Based Video Calling System,TN929.53
  6. The Research and Implement of Chinese Input System Based on Dynamic Self-adaptation Language Model,TP391.14
  7. Embedded collaborative research and design debugging environment,TP311.52
  8. GPS Development Based on Android Smart Phone Platform,TP311.52
  9. Application and Research of UML for Smartphone Development,TP311.52
  10. Design and Implement of the Restaurant Ordering Service System Based on 3G Platform,TP311.52
  11. Based on the Deep Web of Books Information Integration and Inquires the System,TP311.52
  12. The Research Design and Implementation of Yipay Mobile Client of Telecommunications Company in Inner Mongolia,TP311.52
  13. The Study of A Large Retail Enterprise Mobile Office System,F721
  14. Design and Implementation of Agricultural Expert System Based on Android Operating System,TP182
  15. Design of Supervisory and Control System for Xiao Piao 66kV Substation,TM769
  16. Sensor Technology and Application Research Based on Android Platform,TP212
  17. Design and Implementation of Image Effects Based on Android,TP391.41
  18. The embedded software supports USB remote debugger Design and Implementation,TP368.1
  19. SaaS Application on the phone,TN929.53
  20. SpringMVC based enterprise office management system design and implementation,TP311.52
  21. Design and development of \,TP312.1-4

CLC: > Industrial Technology > Automation technology,computer technology > Computing technology,computer technology > General issues > Design and Performance Analysis
© 2012 www.DissertationTopic.Net  Mobile