CN101183330A - Online debugging system of embedded system and debug method thereof - Google Patents

Online debugging system of embedded system and debug method thereof Download PDF

Info

Publication number
CN101183330A
CN101183330A CNA2007100326218A CN200710032621A CN101183330A CN 101183330 A CN101183330 A CN 101183330A CN A2007100326218 A CNA2007100326218 A CN A2007100326218A CN 200710032621 A CN200710032621 A CN 200710032621A CN 101183330 A CN101183330 A CN 101183330A
Authority
CN
China
Prior art keywords
debugged program
information
module
embedded system
processing module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100326218A
Other languages
Chinese (zh)
Other versions
CN101183330B (en
Inventor
郭伟
徐云锋
张斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Eastcompeace Technology Co Ltd
Original Assignee
Eastcompeace Smart Card Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Eastcompeace Smart Card Co Ltd filed Critical Eastcompeace Smart Card Co Ltd
Priority to CN200710032621A priority Critical patent/CN101183330B/en
Publication of CN101183330A publication Critical patent/CN101183330A/en
Application granted granted Critical
Publication of CN101183330B publication Critical patent/CN101183330B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an online debugging system and the debugging method for an embedded system, which is connected with a debugging terminal through a connecting equipment; wherein, the debugging terminal comprises a user interface module, a signal processing module for information sent out from the user interface module and a target processing module; wherein, the target processing module comprises an execution module of instructions sent out by the user interface module; the instructions from the execution module is transmitted to a communication module of the connecting equipment; the embedded system comprises a debugged program and a debugging module. The method comprises the following procedures: a default break point is added in the debugged program which is downloaded into the embedded system by the debugged program and runs; the debugged program runs to the break point and stops running temporarily; the terminal is debugged to check the running information of the debugged program and judge whether new break point is added or not; new break point is added if needed; otherwise the debugging procedure continues. The invention has the advantages of dynamically setting break point during debugging process for the debugged program and conveniently debugging for debugging personnel.

Description

The on-line debugging system and the adjustment method thereof of embedded system
Technical field
The present invention relates to a kind of embedded system on-line debugging system, especially embedded system dynamic on-line debugging system and use the adjustment method of this on-line debugging system.
Background technology
Along with development of electronic technology, embedded system has been widely used in fields such as electronic communication, automatic control.Along with the development of embedded system, its arithmetic speed is more and more faster, and memory capacity is also increasing, and the program of moving in embedded system is also more and more huger and complicated more, and it almost is inevitable occurring mistake or defective during program run.Therefore, after the programming that moves in the embedded system finishes, need debug, so that find and eliminate defective.
Publication number is that the Chinese invention patent application of CN1752946A discloses the innovation and creation of " a kind of adjustment method of embedded system and system thereof " by name.The debug system of the disclosed embedded system of this patented claim comprises interconnective debug terminal and embedded system, comprises debugged program in the embedded system, and adds debugging module in debugged program.During debugging, at first in debugged program, preset several breakpoints, and debugged program is downloaded in the embedded system, then, the debugged program of operation in embedded system.Just operation suspension when running into pre-breaking in the debugged program operation process is waited for receiving the order that debug terminal sends.Debug terminal reads the data of debugged program run environment, and judges whether debugged program has problems, and judges whether to need to continue the debugged program of operation with this.Need not to continue operation as debugged program, then interrupt debugging and end; If need to continue operation, then send the continuation action command to debugged program by debugging module, debugged program continues operation until running into new breakpoint.Debugged program is so moved until finishing.
Though above-mentioned adjustment method can be debugged debugged program effectively, but because breakpoint is to be preset in the debugged program, therefore, the position that the number of breakpoint and breakpoint are provided with when debugged program is carried out is all fixing, can not revise in operational process again.During debugging, debugged program can only be stopped at pre-breaking place, can't add new breakpoint in debug process.If need to add new breakpoint, can only withdraw from debugging after, in debugged program, add new breakpoint again, make debugging work very dumb like this, and make troubles to debugging.Simultaneously, because breakpoint is preset in the debugged program, can't dynamically realize the single step run function.
In addition, the debugged program to comparatively complicated often need be provided with a large amount of breakpoints in debugged program.Because being provided with of each breakpoint all takies certain storage space, if it is too much that the quantity of breakpoint is set in debugged program, then need to take storage spaces a large amount of in the embedded system, and breakpoint is in debugged program operation process and cut little ice, and this just causes the waste of a large amount of storage spaces.
Summary of the invention
Fundamental purpose of the present invention provides a kind of on-line debugging system that can dynamically arrange the embedded system of breakpoint in debug process;
Another object of the present invention provides the on-line debugging method that a kind of on-line debugging system that uses above-mentioned embedded system debugs embedded system.
For realizing above-mentioned fundamental purpose, embedded system on-line debugging provided by the invention system comprises embedded system and debug terminal, and this embedded system is connected by connection device with debug terminal.Wherein, this debug terminal comprises Subscriber Interface Module SIM, symbol processing module and target processing module.Subscriber Interface Module SIM receives and explains debug command, and the relevant information of debug command is sent to the symbol processing module, and the symbol processing module is found out the information such as address of relevant variable in the debug command or function according to these information, and is sent to target processing module.
Target processing module comprises execution module and communication module, wherein execution module is carried out the order that Subscriber Interface Module SIM sends, and send the specific instructions information that embedded system is debugged to communication module according to the address information that the symbol processing module provides, communication module sends to connection device with this command information.
Embedded system comprises debugged program and debugging module, and wherein debugged program is to download to before debugging on the embedded device, and debugging module comprises communication module, command processing module and context processing module.Communication module is used to receive the command information that connection device sends, and this command information is sent to command processing module, and command processing module is carried out corresponding operation according to this command information.The context processing module is preserved the current operation information of debugged program when debugged program interrupt, as value of each register etc.
Certainly, stack frame analysis module can also be set in the target processing module of debug terminal, the appropriate address information that information that stack frame analysis module sends according to Subscriber Interface Module SIM and symbol processing module provide, the a certain function calls relation of information analyses such as the address by checking respective function in the embedded system, stack frame pointer, function return value, and pass this call relation back Subscriber Interface Module SIM, Subscriber Interface Module SIM shows call relation.
Because the symbol processing module can be obtained the information such as address of each variable, function, target processing module can be made amendment to debugged program by the debugging module of embedded system in real time, so just can in debugged program, add new breakpoint dynamically, make things convenient for commissioning staff's debugging work greatly.And owing to can dynamically add breakpoint, therefore dynamic single step run also just can realize.
Simultaneously,, therefore an acquiescence breakpoint only need be set in debugged program get final product, reduce the storage space that debugged program takies, avoid causing the waste of storage space because breakpoint dynamically adds when debugging.
In order to realize another above-mentioned purpose, embedded system on-line debugging method provided by the invention is applied in the aforesaid embedded system on-line debugging system, and this adjustment method may further comprise the steps:
Step 1: in debugged program, add the acquiescence breakpoint, and debugged program is downloaded in the embedded system.
Step 2: the debugged program of operation in embedded system, debugged program run operation suspension during to breakpoint, the context processing module is preserved the current operation information of debugged program, the information stores such as value, the value in each register and PC (Program Counter, programmable counter) pointer relative position that are about to each parameter are in appointed positions.
Step 3: the operation information of debugged program is checked and/or revised to debug terminal, judges whether to add new breakpoint in debugged program, if need, then adds new breakpoint in debugged program, otherwise, carry out next step.
Step 4: command processing module sends the order that continues operation to debugged program, and the operation information when the context processing module is recovered debugged program interrupt is about to stored information reverting in the step 2, and debugged program continues operation.
Step 5: if debugged program runs into breakpoint, then return execution in step two, otherwise, continue the debugged program of operation.
When adding new breakpoint, at first the information that needs to add breakpoint is set by Subscriber Interface Module SIM, comprise the position of adding breakpoint, the type of breakpoint etc., and these information are sent to the symbol processing module, the symbol processing module is found out the address that needs to add breakpoint, add address in the embedded system etc. as breakpoint at needs to, then address information is sent to execution module.Execution module receives the information that Subscriber Interface Module SIM sends needs to add breakpoint, and the address information that provides according to the symbol processing module, analysis need be read and is stored in the data in which address in the embedded system, and sends to embedded system by communication module and connection device and to read the command information that is stored in data in this address.Debugging module is back to debug terminal after reading corresponding data according to this command information, and debug terminal is preserved these data.Execution module sends and rewrites the command information be stored in data in this address then, be rewritten as one can exception throw debug command.
By said method as seen, run into the breakpoint operation suspension during debugged program run, and wait for that debug terminal sends debug command.If judging when needing to add new breakpoint, debug terminal can add new breakpoint dynamically.Like this, do not need in debugged program, to be provided with in advance a large amount of breakpoints, make things convenient for the commissioning staff to carry out debugging work greatly.Simultaneously, if need carry out dynamic single step run the time, as long as the instruction of single step run is set in the place that needs single step run.
Description of drawings
Fig. 1 is the schematic block diagram of embedded system on-line debugging system embodiment of the present invention;
Fig. 2 is the process flow diagram of embedded system on-line debugging method embodiment of the present invention;
Fig. 3 is a process flow diagram of checking debugged program run information among the embedded system on-line debugging method embodiment of the present invention;
Fig. 4 is the process flow diagram that adds new breakpoint among the embedded system on-line debugging method embodiment of the present invention.
The invention will be further described below in conjunction with drawings and Examples.
Embodiment
Referring to Fig. 1, Fig. 1 is the schematic block diagram of embedded system on-line debugging system embodiment of the present invention.Debug system is made up of debug terminal 1, connection device 2 and embedded system 3, and wherein debug terminal 1 is connected with embedded system 3 by connection device 2.
Debug terminal 1 comprises Subscriber Interface Module SIM 11, symbol processing module 12 and target processing module 13.Subscriber Interface Module SIM 11 is connection interfaces of debug terminal 1 and commissioning staff, be used to receive and explain the debug command that the commissioning staff is provided with, comprise the value of adding new breakpoint, checking a certain parameter, check a certain function call relation in debugged program or the like.Simultaneously, Subscriber Interface Module SIM 11 also shows the state of the current operation of debugged program, as program source code, PC pointer information such as be expert at.
Debugging message such as the symbol table that symbol processing module 12 generates when resolving debugged program compilation, row number table, obtain as information such as start of line addresses in types of variables, address of variable, function address scope, the source code, and provide corresponding information to target processing module 13 according to the information that Subscriber Interface Module SIM 11 sends.
Target processing module 13 comprises execution module 15, stack frame analysis module 16 and communication module 17.Execution module 15 can receive Subscriber Interface Module SIM 11 and send information about debug command, and the information such as address of variables corresponding, function in this debug command that provides of receiving symbol processing module, and send corresponding command information to communication module 17 according to these address informations, communication module 17 is sent to connection device 2 with this command information.
Stack frame analysis module 16 is mainly used in information such as analyzing in the debugged program each function calls relation and function parameters, local variable.When stack frame analysis module 16 needs to analyze a certain function calls and concern, need to use the initial address message (IAM), function parameters address etc. of this function that symbol processing module 12 provides from embedded system 3, to obtain the call relation that information such as the relative position of stack frame pointer and stack pointer, function parameters rreturn value are come analytic function.Simultaneously, the Subscriber Interface Module SIM 11 that stack frame analysis module 16 sends analysis result, Subscriber Interface Module SIM 11 are about to this result and show.
Embedded system 3 comprises debugged program 31 and debugging module 32, and wherein debugged program 31 downloads to before debugging in the embedded system 3, and debugging module 32 is debugged debugged program 31 according to the command information that debug terminal 1 sends.
Debugging module 32 comprises communication module 36, command processing module 35 and context processing module 34.Communication module 36 receives the command information that connection device 2 transmits, and these command informations are sent to command processing module 35, command processing module 35 is carried out corresponding operation according to these command informations, as read the value of a certain variable in the debugged program 31, in debugged program 31, add new breakpoint etc., and behind end of operation, return corresponding information to debug terminal 1 by communication module 36, connection device 2, as read variable value, the operation whether successfully wait.
Context processing module 34 is used for preserving the current operation information of debugged program 31 when debugged program 31 is interrupted.Running into breakpoint in debugged program 31 operational processs is operation suspension, and at this moment, context processing module 34 is about to the current operation information of debugged module 31, as data in each register etc., stores appointed positions into.When debugged program 31 needed to continue operation, context processing module 34 was these information revertings, the running status when promptly recovering debugged program 31 and interrupting.
Use process that embedded on-line debugging of the present invention system debugs embedded system as shown in Figure 2, Fig. 2 also is the process flow diagram of embedded system on-line debugging method embodiment of the present invention.When debugging, at first in debugged program, add an acquiescence breakpoint, then debugged program is compiled, and the program after will compiling downloads to (step S1) in the embedded system.The Debugging message that generates when debug terminal is with debugged program compilation then reads in, and communicates by letter with embedded system foundation.
Then, in embedded system, move debugged program (step S2), and the running state information of debugged program is shown on the Subscriber Interface Module SIM of debug terminal.Whether embedded system runs into breakpoint (step S3) when judging debugged program run, if do not run into breakpoint, judge further then whether debugging finishes (step S4), as embedded system outage etc., if debugging finishes, then finish debugging, if debugging does not finish, then return step S2, continue the debugged program of operation.
Owing to be provided with the acquiescence breakpoint in the debugged program, debugged program run when giving tacit consent to breakpoint with operation suspension.At this moment, the context processing module is preserved the current operation information of debugged program (step S5), and value that is about to each register in the debugged program etc. stores an assigned address into.
Then, debug terminal is checked the operation information (step S6) of debugged program, these operation informations comprise the value of each register etc., the commissioning staff judges by judging these information whether debugged program run is normal, thereby judging whether needs to add new breakpoint (step S7), if need to add new breakpoint, debug terminal will send the order (step S8) of adding new breakpoint to debugging module, as not needing to add new breakpoint, then direct execution in step S9.
Debug terminal is provided with breakpoint in debugged program after, debugging module sends the order that continues operation to debugged program.At this moment, the operation information (step S9) when the context processing module is recovered debugged program interrupt, the information such as value of each register write back original position during just with debugged program interrupt, and the operation information that makes debugged program is consistent when interrupting.Like this, debugged program just can be at original running environment relaying reforwarding row.Certainly, if the commissioning staff time changes the running environment of debugged program in debugging, as change the value etc. of a certain parameter, then after the End of Interrupt, debugged program is moved in new running environment.
Debugged program is when operation, and embedded system will continue to judge whether debugged program runs into breakpoint (returning step S3), and circulate until end with this.
Because the breakpoint in the debugged program can dynamically be provided with, the commissioning staff does not just need in advance a large amount of breakpoints to be arranged in the debugged program.The commissioning staff can the ruuning situation according to debugged program judge whether that needs add new breakpoint in debug process, and judges the position of adding new breakpoint, has increased the dirigibility of debugging work so greatly, brings great convenience to the commissioning staff.
Simultaneously, if the commissioning staff need allow debugged program realize dynamic single step run, can send the single step run order of assembly level by debug terminal to embedded system, when the command processing module in the embedded system is handled this order, calculate the next machine instruction address that needs execution of PC pointer, and a breakpoint is set on this address, allow debugged program continue operation then.When debugged program run is interrupted during to this address, and in have no progeny and recover original program, simultaneously PC pointer current location is returned debug terminal, debug terminal judges whether source code moves to next line, if then do not continue to send the single step run order of assembly level.Like this, operation suspension once more after the instruction of next bar of debugged program run, the commissioning staff can check embedded system whether correct execution this instruction.
And because the commissioning staff need not at the default a large amount of breakpoints of debugged program, the storage space that debugged program is taken significantly reduces, and has avoided the waste of storage space.
After the debugging flow process of introducing embedded system on-line debugging method of the present invention, introduce debug terminal in the debug process below and be status information when how to check debugged program interrupt.
Referring to Fig. 3, Fig. 3 is a process flow diagram of checking debugged program run information among the embedded system on-line debugging method embodiment of the present invention.The value of a certain variable when usually, the commissioning staff need check debugged program interrupt.After debugged program runs into breakpoint stop operation, the variable name information (step S11) that the commissioning staff need check variable by the Subscriber Interface Module SIM setting of debug terminal, and the information of this variable name is sent to symbol processing module and execution module.
After the symbol processing module received the information that Subscriber Interface Module SIM sends, the Debugging message that generates during according to debugged program compilation was found out the address (step S12) of this variable in embedded system, and this address information is sent to execution module.Execution module is according to the address information of symbol processing module, know and to read the data that are stored in the embedded system in which address, promptly send and read the command information (step S13) that is stored in data in this address, and this command information sent to the communication module of debug terminal, and this command information is sent in the communication module of embedded system by connection device.
After the communication module of embedded system receives command information, command information is sent to command processing module, command processing module promptly reads the data that are stored in this address according to this command information, and with data back Subscriber Interface Module SIM (step S14), Subscriber Interface Module SIM receives after these data and data presentation come out (step S15).Like this, the commissioning staff can view the value of this variable, thereby judges whether debugged program has problems.
Revise a certain variable value process and above-mentionedly check that the process of a certain variate-value is similar.When the commissioning staff need revise the value of a certain variable, also be the information that needs to revise variable to be set by Subscriber Interface Module SIM, after the symbol processing module finds the address of this variable, execution module can send rewrites the command information that is stored in data in this address, embedded system is carried out corresponding operation after receiving this command information, and returns the information of revising successfully or failing to Subscriber Interface Module SIM.
When the commissioning staff checked or revises the value that is stored in a certain register, as long as information such as this register name is set by Subscriber Interface Module SIM, execution module promptly sent the order of checking or revising this register value by communication module.After embedded system is carried out associative operation, return the value of this register or revise whether successful information to Subscriber Interface Module SIM.
In the on-line debugging method of embedded system, after debug terminal is checked the operation information of embedded system, often need in debugged program, add new breakpoint.Referring to Fig. 4, Fig. 4 is the process flow diagram of the new breakpoint of interpolation of the on-line debugging method of embedded system of the present invention.
When adding new breakpoint, the commissioning staff is provided with the information (step S21) that needs to add new breakpoint by Subscriber Interface Module SIM, comprises position that breakpoint adds, breakpoint type etc.For example, Subscriber Interface Module SIM setting need be added a new breakpoint at the 32nd row of debugged program, then, this information is sent to symbol processing module and execution module.
After the symbol processing module receives this information, the Debugging message that generates during by debugged program compilation is found out the address (step S22) that needs to add breakpoint, as find out memory address in the pairing embedded system of debugged program the 32nd row, for example this address is 0X1844, and the symbol processing module is about to this address and sends to execution module.
Then, execution module is according to the address that the symbol processing module provides, and sends to read to be stored in that the address is the command information (step S23) of the data of 0X1844 in the embedded system, and by communication module and connection device this command information is sent to embedded system.
The communication module of embedded system is sent to command processing module after receiving this command information, and command processing module promptly reads the data that are stored in the 0X1844 of address, and these data are sent back Subscriber Interface Module SIM.After Subscriber Interface Module SIM receives these data, these data are saved to appointed positions (step S24).
Then, execution module sends the command information (step S25) in the readdressing 0X1844 again, a debug command is written in this address, and this command information is sent to embedded system.After embedded system receives this command information,, and return the successful information of whether rewriting to Subscriber Interface Module SIM with the data rewriting in the memory address 0X1844.
After Subscriber Interface Module SIM receives this return message (step S26), judge rewriting whether successfully (step S27), if rewrite successfully, then finish, if rewrite failure, embedded system is returned the information of rewriting failure to Subscriber Interface Module SIM, and Subscriber Interface Module SIM can receive this return message (step S28), and show, the commissioning staff promptly knows and rewrites failure.
Like this, exception throw when debugged program continues operation and runs into this debug command, breakpoint is promptly successfully added in debugged program halt operation.
When debugged program need continue to move, the operation information when the context processing module will be recovered debugged program interrupt.But, because original program at debugged program interrupt point place is modified, will cause debugged program normally to move down, therefore, when recovering the operation information of debugged program, also need the former data at breakpoint place are write back in the debugged program.
In the present embodiment, address, breakpoint place is 0X1844, and the former data in this address have been preserved by Subscriber Interface Module SIM when adding breakpoint, and therefore, Subscriber Interface Module SIM can write back former data in the 0X1844 of address easily, and debugged program can continue operation.
Simultaneously, embedded system on-line debugging method of the present invention can also be checked the call relation of embedded system inner function.When checking function calling relationship, the commissioning staff at first need check the information of function by Subscriber Interface Module SIM setting, and this information is sent to symbol processing module and stack frame analysis module.After the symbol processing module receives this information, find out the information such as start address, function parameters address of this function, and be sent to stack frame analysis module.Stack frame analysis module sends the order of the information such as relative position that read corresponding stack frame pointer and stack pointer according to these address informations to embedded system by communication module and connection device.After embedded system was back to stack frame analysis module with corresponding information, stack frame analysis module was promptly according to these information, and the transfer mode of associative function parameter and rreturn value etc. is analyzed the function calls relation.After analysis finishes, analysis result is sent to Subscriber Interface Module SIM, and Subscriber Interface Module SIM shows the result, and the commissioning staff can view the function calls relation, certainly, also can utilize this function calls relation as analyzing whether in-problem foundation of debugged program run.
This shows, embedded system on-line debugging method of the present invention can dynamically be provided with breakpoint in debugged program debug process, make the commissioning staff check the operation conditions in debugged arbitrary moment of program easily, and can realize single step run as required, make debugging become more flexible.Simultaneously, the commissioning staff need not default a large amount of breakpoint in debugged program, reduces the storage space that debugged program takies.
Concrete application of the on-line debugging system of embedded system and adjustment method is exactly the debugging of smart card, as the debugging of SIM card.When needing the program of debugging SIM card, debug terminal can be a debugging computer, and embedded system is a SIM card, and card reader is then as both connection device.
Certainly, the present invention is not limited only to the debugging of SIM card, and other embedded system as single-chip microcomputer etc., can use the present invention to debug.If use in the debugging of other embedded system, then the commissioning staff should select corresponding debug terminal and connection device according to different embedded systems.
At last, it is emphasized that to the invention is not restricted to above-mentioned embodiment that breakpoint is provided with the change of position, the subtle change such as change of connection device also should be included in protection scope of the present invention such as giving tacit consent to.

Claims (8)

1. the on-line debugging system of embedded system comprises
Embedded system;
The debug terminal that is connected with described embedded system by connection device;
It is characterized in that:
Described debug terminal comprises
Subscriber Interface Module SIM;
Receive the symbol processing module that described Subscriber Interface Module SIM sends information;
The target processing module that the information that provides according to described symbol processing module is debugged described embedded system, described target processing module comprises
The execution module of the order that the execution Subscriber Interface Module SIM sends;
The command information that execution module is sent is sent to the communication module (17) of described connection device;
Described embedded system comprises debugged program and debugging module;
Described debugging module comprises
Receive the communication module (36) of the command information of described connection device transmission;
The command processing module of the command information that received communication module (36) is sent;
The context processing module of debugged program information when preserving debugged program interrupt.
2. according to the on-line debugging system of the described embedded system of claim 1, it is characterized in that:
Described target processing module also comprises stack frame analysis module, function calling relationship information in the debugged program of information analysis that described stack frame analysis module provides according to communication module (17).
3. according to the on-line debugging system of claim 1 or 2 described embedded systems, it is characterized in that:
Described embedded system is a smart card, and described connection device is a card reader.
4. use adjustment method, may further comprise the steps as embedded system on-line debugging system as described in the claim 2:
Step 1: in debugged program, add the acquiescence breakpoint, and debugged program is downloaded in the embedded system;
Step 2: the debugged program of operation in embedded system, debugged program run operation suspension during to breakpoint, described context processing module is preserved the current operation information of debugged program;
Step 3: the operation information of debugged program is checked and/or revised to debug terminal, judges whether to add new breakpoint in debugged program, if need, then adds new breakpoint in debugged program, otherwise, carry out next step;
Step 4: described command processing module sends the order that continues operation to debugged program, the operation information when the context processing module is recovered debugged program interrupt, and debugged program continues operation;
Step 5: if debugged program runs into breakpoint, then return execution in step two, otherwise, continue the debugged program of operation.
5. according to the on-line debugging method of the described embedded system of claim 4, it is characterized in that:
In the described step 3, if need in debugged program, add new breakpoint, then Subscriber Interface Module SIM is provided with the information that needs to add breakpoint, and this information is sent to symbol processing module and execution module, the symbol processing module is found out the address that breakpoint need be set, execution module sends to embedded system by communication module (17) and connection device and reads the command information that is stored in data in this address, and is debug command with data rewriting in this address.
6. according to the on-line debugging method of the described embedded system of claim 4, it is characterized in that:
In the described step 3, when debug terminal need be checked and/or revise in the debugged program a certain variate-value, the variable name information of variable need be checked and/or revise to Subscriber Interface Module SIM setting, and this information is sent to symbol processing module and execution module, the symbol processing module is found out the address of this variable, and execution module sends to embedded system by communication module (17) and connection device and reads and/or rewrite the command information that is stored in data in this address.
7. according to the on-line debugging method of the described embedded system of claim 4, it is characterized in that:
Described step 3 comprises that also debug terminal checks the step of function calling relationship in the debugged program: Subscriber Interface Module SIM setting need be checked the information of function, and this information is sent to symbol processing module and stack frame analysis module, the symbol processing module is found out the start-stop address of this function, stack frame analysis module obtains the address information of this function in the interior debugged program of embedded system by communication module (17) and connection device, stack frame pointer position, stack pointer position and function return value information, the parameter of associative function, the transfer mode information of rreturn value, and, this call relation is sent to Subscriber Interface Module SIM according to this function calls relation of above-mentioned information analysis.
8. according to the on-line debugging method of each described embedded system of claim 4 to 7, it is characterized in that:
Described embedded system is a smart card, and described connection device is a card reader.
CN200710032621A 2007-12-13 2007-12-13 Online debugging system of embedded system and debug method thereof Expired - Fee Related CN101183330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710032621A CN101183330B (en) 2007-12-13 2007-12-13 Online debugging system of embedded system and debug method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710032621A CN101183330B (en) 2007-12-13 2007-12-13 Online debugging system of embedded system and debug method thereof

Publications (2)

Publication Number Publication Date
CN101183330A true CN101183330A (en) 2008-05-21
CN101183330B CN101183330B (en) 2010-05-19

Family

ID=39448617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710032621A Expired - Fee Related CN101183330B (en) 2007-12-13 2007-12-13 Online debugging system of embedded system and debug method thereof

Country Status (1)

Country Link
CN (1) CN101183330B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430662B (en) * 2008-12-09 2010-10-06 东信和平智能卡股份有限公司 Method for debugging Java language program and virtual machine program together
CN102339248A (en) * 2010-07-20 2012-02-01 上海闻泰电子科技有限公司 On-line debugging system and method for embedded terminal
CN101667156B (en) * 2009-09-22 2012-09-26 中兴通讯股份有限公司 Visual service flow debugging method and system
CN102713858A (en) * 2011-01-12 2012-10-03 丰田自动车株式会社 Online debugging system for information processing device and online debugging method
CN103136107A (en) * 2011-12-03 2013-06-05 南京南瑞继保电气有限公司 Variable debugging method of embedded program dynamic storage allocation
CN103761184A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for testing code segment of program
CN103853147A (en) * 2012-12-06 2014-06-11 中国科学院软件研究所 Online debugging system and method for embedded system
CN104360950A (en) * 2014-12-03 2015-02-18 东信和平科技股份有限公司 Intelligent card debugging method, intelligent card debugging system and intelligent card debugging device
CN104915295A (en) * 2015-06-29 2015-09-16 北京奇虎科技有限公司 Game software debugging method and device
CN105721568A (en) * 2016-02-02 2016-06-29 清华大学 Remote debugging system, method and device
CN106201790A (en) * 2015-05-08 2016-12-07 深圳市祈飞科技有限公司 A kind of adjustment method based on DSDT table and debugging system
CN106598837A (en) * 2015-10-20 2017-04-26 北京国双科技有限公司 Code debugging method and device
CN106649074A (en) * 2015-10-30 2017-05-10 北京数码视讯科技股份有限公司 Method and device for program debugging of intelligent card
CN108632368A (en) * 2018-04-23 2018-10-09 捷德(中国)信息科技有限公司 A kind of remote debugging system and method for chip operating system
CN111752845A (en) * 2020-06-30 2020-10-09 江苏恒宝智能系统技术有限公司 Debugging tool and debugging method and system thereof
CN111984521A (en) * 2019-05-23 2020-11-24 核工业理化工程研究院 Board-level debugging method without JTAG intervention
CN113111001A (en) * 2021-04-29 2021-07-13 苏州大学 Remote software debugging method for embedded terminal
CN113946481A (en) * 2021-12-20 2022-01-18 南京瑞斯科微控制器研究院有限公司 Rapid program downloading method for RISC-V kernel MCU debugging and debugger

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2293254B (en) * 1994-07-12 1999-05-19 David Brian Doo A new, fast method of debugging embedded software for almost any microprocessor
CN1139876C (en) * 1999-11-30 2004-02-25 深圳市中兴通讯股份有限公司 Embedded software aided debugging method
CN1282085C (en) * 2004-04-09 2006-10-25 中兴通讯股份有限公司 Method of parallel regulating multi-task of imbedding system
CN100386743C (en) * 2005-10-31 2008-05-07 大唐微电子技术有限公司 Debugging method of embedded system and its system
CN1834940A (en) * 2005-12-22 2006-09-20 苏州超锐微电子有限公司 Method of realizing breakpoint modulating function by embedding counter in command

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430662B (en) * 2008-12-09 2010-10-06 东信和平智能卡股份有限公司 Method for debugging Java language program and virtual machine program together
CN101667156B (en) * 2009-09-22 2012-09-26 中兴通讯股份有限公司 Visual service flow debugging method and system
CN102339248A (en) * 2010-07-20 2012-02-01 上海闻泰电子科技有限公司 On-line debugging system and method for embedded terminal
CN102713858B (en) * 2011-01-12 2015-11-25 丰田自动车株式会社 The on-line debugging system of signal conditioning package and on-line debugging method
CN102713858A (en) * 2011-01-12 2012-10-03 丰田自动车株式会社 Online debugging system for information processing device and online debugging method
CN103136107A (en) * 2011-12-03 2013-06-05 南京南瑞继保电气有限公司 Variable debugging method of embedded program dynamic storage allocation
CN103853147A (en) * 2012-12-06 2014-06-11 中国科学院软件研究所 Online debugging system and method for embedded system
CN103853147B (en) * 2012-12-06 2016-04-20 中国科学院软件研究所 A kind of on-line debugging system of embedded system
CN103761184A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for testing code segment of program
CN103761184B (en) * 2013-12-31 2017-01-04 华为技术有限公司 Code segment method of testing, device and the system of program
CN104360950A (en) * 2014-12-03 2015-02-18 东信和平科技股份有限公司 Intelligent card debugging method, intelligent card debugging system and intelligent card debugging device
CN106201790B (en) * 2015-05-08 2019-07-16 深圳市祈飞科技有限公司 A kind of adjustment method and debugging system based on DSDT table
CN106201790A (en) * 2015-05-08 2016-12-07 深圳市祈飞科技有限公司 A kind of adjustment method based on DSDT table and debugging system
CN104915295A (en) * 2015-06-29 2015-09-16 北京奇虎科技有限公司 Game software debugging method and device
CN104915295B (en) * 2015-06-29 2017-11-28 北京奇虎科技有限公司 Games Software adjustment method and device
CN106598837A (en) * 2015-10-20 2017-04-26 北京国双科技有限公司 Code debugging method and device
CN106649074A (en) * 2015-10-30 2017-05-10 北京数码视讯科技股份有限公司 Method and device for program debugging of intelligent card
CN105721568A (en) * 2016-02-02 2016-06-29 清华大学 Remote debugging system, method and device
CN108632368A (en) * 2018-04-23 2018-10-09 捷德(中国)信息科技有限公司 A kind of remote debugging system and method for chip operating system
CN108632368B (en) * 2018-04-23 2021-04-09 捷德(中国)科技有限公司 Remote debugging system and method for chip operating system
CN111984521A (en) * 2019-05-23 2020-11-24 核工业理化工程研究院 Board-level debugging method without JTAG intervention
CN111984521B (en) * 2019-05-23 2022-11-29 核工业理化工程研究院 Board-level debugging method without JTAG (Joint test action group) intervention
CN111752845A (en) * 2020-06-30 2020-10-09 江苏恒宝智能系统技术有限公司 Debugging tool and debugging method and system thereof
CN113111001A (en) * 2021-04-29 2021-07-13 苏州大学 Remote software debugging method for embedded terminal
WO2022227410A1 (en) * 2021-04-29 2022-11-03 苏州大学 Embedded terminal remote software debugging method
CN113111001B (en) * 2021-04-29 2023-10-24 苏州大学 Remote software debugging method for embedded terminal
CN113946481A (en) * 2021-12-20 2022-01-18 南京瑞斯科微控制器研究院有限公司 Rapid program downloading method for RISC-V kernel MCU debugging and debugger
CN113946481B (en) * 2021-12-20 2022-03-18 南京瑞斯科微控制器研究院有限公司 RISC-V kernel MCU debugging downloading program method and debugger

Also Published As

Publication number Publication date
CN101183330B (en) 2010-05-19

Similar Documents

Publication Publication Date Title
CN101183330B (en) Online debugging system of embedded system and debug method thereof
CN100504810C (en) Embedded system debug method
US6311326B1 (en) Online debugging and tracing system and method
CN100386743C (en) Debugging method of embedded system and its system
EP1754156B1 (en) Data processing system with trace co-processor
US8266608B2 (en) Post-compile instrumentation of object code for generating execution trace data
US7818620B2 (en) Program failure analysis system, failure analysis method, and emulator device
CN101430662B (en) Method for debugging Java language program and virtual machine program together
CN101667154A (en) Apparatus and method for improving emulation speed of high-level languages in on-chip emulation systems
JP4877068B2 (en) Software development support program, software development support method
CN101482845A (en) Method and system for calling instant debugger
EP2733613B1 (en) Controller and program
CN102063367B (en) Off-line analysis method and device aiming at computer crash program
CN101237350B (en) Global variant exception alteration and positioning method for multi-task environment single board machine
US5956480A (en) Terminal and online system for tracking version of data and program
CN117032118A (en) Soft PLC system based on industrial Internet of things
EP1265136A2 (en) Linking of applications into devices having overlays and shadow memories
CN110673988A (en) eMMC debugging method independent of self-contained firmware
EP0801348A1 (en) Method of monitoring the operation of a computer
CN112231221A (en) Debugging method and system for application program of embedded Linux system
CN110928753A (en) Method and device for controlling log output of browser console, computer equipment and computer readable storage medium
WO2005119455A1 (en) System for testing embedded computers
EP1164488A1 (en) Remote debugging in an embedded system enviroment
CN108228247A (en) The system and method that a kind of tool is interacted with target machine enhancing
CN115827016A (en) Method and system for upgrading program of rail transit monitoring equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: EASTCOMPEACE TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: EASTCOMPEACE SMART CARD CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 519060 Guangdong province Zhuhai Nanping Science and Technology Industrial Park Road No. 8 screen

Patentee after: Eastcompeace Technology Co., Ltd.

Address before: 519060 Guangdong province Zhuhai Nanping Science and Technology Industrial Park Road No. 8 screen

Patentee before: Eastcompeace Smart Card Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100519

Termination date: 20161213

CF01 Termination of patent right due to non-payment of annual fee