CN1952910A - Back method and system of testing for bug by computer program - Google Patents

Back method and system of testing for bug by computer program Download PDF

Info

Publication number
CN1952910A
CN1952910A CN 200510114338 CN200510114338A CN1952910A CN 1952910 A CN1952910 A CN 1952910A CN 200510114338 CN200510114338 CN 200510114338 CN 200510114338 A CN200510114338 A CN 200510114338A CN 1952910 A CN1952910 A CN 1952910A
Authority
CN
China
Prior art keywords
program
module
computer program
error code
debugging
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
CN 200510114338
Other languages
Chinese (zh)
Other versions
CN100418067C (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005101143380A priority Critical patent/CN100418067C/en
Publication of CN1952910A publication Critical patent/CN1952910A/en
Application granted granted Critical
Publication of CN100418067C publication Critical patent/CN100418067C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to a computer error check assistant method and system applied to one computer platform to provide one error check assistant function, wherein, the system comprises the following parts: user operates interface module, program code module, execution address computation module, index module and error removing module. The invention method and system can automatically error codes computer program all program module and to compute each module real time memory address by use of error codes to index relative program module.

Description

Computer program debugging householder method and system
Technical field
The invention relates to a kind of computer information technology, particularly about a kind of computer program debugging householder method and system, be applied in computer platform, a computer program on this computer platform, ROM-BIOS (Basic Input/Output System for example, BIOS) program, when generation error code situation fails to carry out smoothly, provide efficient debugging subsidiary function to this bios program, assist the program development personnel to find the position at the error code place in this bios program more quickly.
Background technology
In the exploitation of computer program, after the program development staff development goes out a computer program (for example bios program), usually need at first on computer platform, this bios program to be carried out test procedure, just whether actual this bios program of carrying out on this computer platform is tested this bios program and can normally be moved.If this bios program can't provide intended function or cause this computer platform to take place when the machine situation when reality is carried out by normal operation, the program development personnel just need this bios program is carried out debugging work, find out and correct the error code in this bios program.
The breakpoint error-checking method is a kind of bios program error-checking method commonly used, it is by the ad-hoc location of program development personnel in the bios program strings of commands (just program development personnel think most probable generation error code place near), set a breakpoint (breakpoint) via update routine in advance, make to stop automatically when bios program is carried out this breakpoint that the program development personnel can check that at this moment each buffer and variate-value progressively find out the position of makeing mistakes.
Yet the shortcoming of above-mentioned breakpoint error-checking method in practical application is that the program development personnel must be correlated with in the compiling of bios program with manual type *.MAP in (Link Editor Map) document, search the memory address of each program module when reality is carried out in the bios program, just section (segment) and initial value (offset), this operation process is rather loaded down with trivial details and efficient is lower.In addition, existing breakpoint error-checking method is to be that scope is carried out debugging with whole bios program (i.e. all program modules), so operation process is also rather wasted time and energy and inefficent.
In addition, at present industry another kind of error-checking method commonly used be by the program development personnel when bios program is ended to carry out because of the error code situation takes place, by one group of specific pilot lamp on the computer motherboard, the possible position of error code is judged in for example indication that the Port84 of BIOS chip is relevant with Port84 number.Yet this error-checking method is not very accurate, so the program development personnel can't infer the position at malfunction code place exactly.
Moreover, another kind of error-checking method at present commonly used is the provisional injunction that is added some test usefulness by the program development personnel in the front and back scope of error code may take place the original program code, is judged the position at error code place by execution results of the provisional injunction of these test usefulness; In the end find and revise after the error code, again with the provisional injunction deletion of these test usefulness.This error-checking method need rather be required great effort time-consuming in the processes of adding and delete the provisional injunction of these test usefulness in advance afterwards, is not a kind of quick and efficient error-checking method therefore.
Summary of the invention
For overcoming the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of computer program debugging householder method and system that assists the program development personnel more effectively the bios program that error code takes place to be carried out debugging work.
Computer program debugging householder method of the present invention and system are applied in computer platform, a computer program on this computer platform, when for example bios program generation error code situation fails to carry out smoothly, provide an effective debugging subsidiary function to this bios program, assist the program development personnel to find the position at error code place in this bios program more apace.
Computer program debugging householder method of the present invention comprises at least: reorganize all program modules that this computer program comprises when reality is carried out; Calculate the memory address at each program module place when reality is carried out of reorganizing; Utilize an error code address as keyword, retrieve the program module that the error code of the computer program of this generation error code situation is correlated with; And carry out debug work at the error code relative program module that this retrieves.
On the entity framework, computer program debugging backup system of the present invention comprises at least: user's operating and controlling interface module can provide user's operating and controlling interface; One program reorganization module, it can reorganize this computer program included all program modules when reality is carried out, and these program modules are shown on this computer platform by this user's operating and controlling interface module with the appreciable message form of a user; One executive address computing module, it can calculate the memory address at each program module place when reality is carried out that this program reorganization module reorganizes, and the executive address data of being tried to achieve are shown on this computer platform by this user's operating and controlling interface module with the appreciable message form of a user; One retrieval module, the search function that it can provide a user to control by this user's operating and controlling interface module, the program module of being correlated with so as to the error code that utilizes an error code address to retrieve the computer program of this generation error code situation; And a debug module, the error eliminating function that it can provide a user to control is so as to carrying out debug work at the relevant program module of error code that this retrieval module retrieved.
Computer program debugging householder method of the present invention and system can reorganize all program modules in the computer program that error code takes place automatically, and calculating the memory address at each program module place when reality is carried out automatically, the program development personnel can utilize the error code address search of the computer program that error code takes place to go out the relevant program module of error code.The present invention allows the program development personnel that the debugging scope is narrowed down to the program module that error code is correlated with, needn't be that scope is carried out debugging with whole computer program (promptly all program modules) as the existing practice, therefore can assist the program development personnel to reach the position of finding the error code place effectively more fast.
Description of drawings
Fig. 1 is the application mode of computer program debugging backup system of the present invention and the system architecture synoptic diagram of Object Oriented OO component model thereof;
Fig. 2 is the synoptic diagram of user's operating and controlling interface of computer program debugging backup system demonstration of the present invention.
Embodiment
Following conjunction with figs. describes computer program debugging householder method of the present invention and system in detail.
Fig. 1 shows the application mode of computer program debugging backup system of the present invention (as the square of label 100 indications).As shown in the figure, computer program debugging backup system 100 of the present invention is the computer platform 10 of arranging in pairs or groups in practical application, a computer program on this computer platform 10, bios program for example, when generation error code situation fails to carry out smoothly, provide a debugging subsidiary function to this bios program 20, assist the program development personnel to find the position at error code place in this bios program 20 more quickly and efficiently with error code.
As shown in Figure 1, the Object Oriented OO component model of computer program debugging backup system 100 of the present invention (object-oriented component model) comprises at least: (a) user's operating and controlling interface module 110; (b) program reorganization module 120; (c) an executive address computing module 130; (d) retrieval module 140; And (e) debug module 150.
Each module individual attribute and function in the computer program debugging backup system 100 of the present invention are described at first respectively.
User's operating and controlling interface module 110 can provide as shown in Figure 2 user's operating and controlling interface 111, and this user's operating and controlling interface 111 is presented on the screen 11 of this computer platform 10, user's (being the program development personnel) can control computer program debugging backup system 100 of the present invention by this user's operating and controlling interface 111 and (annotate the basic mode that Fig. 2 only shows user's operating and controlling interface 111 in a schematic way, on concrete enforcement, many different ways of presentation can be arranged, and can comprise many other operating key and options).User's operating and controlling interface 111 shown in Figure 2 for example comprises a program module viewing area 112, an executive address viewing area 113, a search key input field 114 and a result for retrieval viewing area 115; Wherein this program module viewing area 112 shows the title of all program modules in this bios program 20; This executive address viewing area 113 shows the memory address (with section and initial value represent) of each program module when reality is carried out in this bios program 20; This search key input field 114 is to allow user's (being the program development personnel) import the error code address of bios program 20 when reality is carried out of this generation error code; 115 of this result for retrieval viewing areas demonstrate result for retrieval (being the relevant program module in error code address that search key input field 114 receives).
Program reorganization module 120 can be reorganized bios program 20 required all program modules (just this bios program 20 is at all intermediate files of compilation process generation) when reality is carried out that the error code situation takes place automatically, and it is reorganized into a program module collection 121.When practical operation, the title of all program modules is presented at the program module viewing area 112 in user's operating and controlling interface 111 shown in Figure 2 in the program module collection 121 that user's operating and controlling interface module 110 can be reorganized this program reorganization module 120.
Executive address computing module 130 can calculate the memory address at each program module place when reality is carried out in the program module collection 121 that said procedure reorganization module 120 reorganizes.In this embodiment, the executive address of being tried to achieve is with section (segment) and initial value (offset) expression.When practical operation, the executive address data that user's operating and controlling interface module 110 can be tried to achieve this executive address computing module 130 are presented at the executive address viewing area 113 in user's operating and controlling interface 111 shown in Figure 2.
The program module search function that retrieval module 140 can provide a user to control, just it can respond the error code address date that a user controls incident 201 inputs, from the program module collection 121 of said procedure reorganization module 120 reorganizations, retrieve the relevant program module in error code address of input, and its result for retrieval is presented at result for retrieval viewing area 115 in user's operating and controlling interface 111 shown in Figure 2.On concrete enforcement, the adquisitiones of this error code address date for example can adopt the device of existing ITP (In-Target Probe) equipment or other equivalence.In addition, this retrieval module 140 can and then comprise that also one calls out the source query function, and the user can inquire the program module of deserving the machine spot correlation and be called out calling source when carrying out (which program module call out should the machine spot correlation program module) when reality is carried out.Specifically implementing, this calls out source query function and for example can use bios program design upward used CALL, JSB and ROM Gate to assist to inquire the calling source of deserving machine spot correlation program module.
The error eliminating function that debug module 150 can provide a user to control, the program module that the program development personnel can only retrieve at above-mentioned retrieval module 140 (the relevant program module of error code just) is carried out debug work.This debug module 150 for example can set a breakpoint or adopt any other proper method to carry out debug work deserving machine spot correlation program module, obtains the bios program 30 after the debug.
Below illustrate that with application example computer program debugging backup system 100 of the present invention is applied in the operation steps of computer program debugging householder method.In this application example, suppose to have in the bios program 20 of error code and comprise a plurality of a plurality of program modules shown in the program module viewing area 112 of Fig. 2, and wherein the name program module that is called " CHECK_HEALTH " has error code, makes this bios program 20 can cause computer platform 10 that the machine situation takes place to work as when reality is carried out.The program module " CHECK_HEALTH " that computer program debugging backup system 100 of the present invention can assist the program development personnel to find out quickly and efficiently to have error code is carried out debug work apace at this program module " CHECK_HEALTH " with error code.
Please consult Fig. 1 and Fig. 2 simultaneously, when practical application, when the execution of the bios program 20 with error code caused computer platform 10 to take place when the machine situation, the program development personnel can start computer program debugging backup system 100 of the present invention and carry out an error routine.
The operation steps of computer program debugging householder method of the present invention comprises, computer program debugging backup system 100 can at first start user's operating and controlling interface module 110 by hand, on the screen 11 of computer platform 10, demonstrate as shown in Figure 2 user's operating and controlling interface 111, and all program modules (just this bios program 20 is at all intermediate files of compilation process generation) that the bios program 20 of error code situations comprises when reality is carried out take place in 120 reorganizations of the module of start-up routine reorganization simultaneously, and then make in the program module collection 121 that 130 pairs of these programs of executive address computing module reorganization module 120 reorganizes all program modules carry out an executive address calculation procedure, calculate the memory address at each program module place when reality is carried out.All program modules that then make user's operating and controlling interface module 110 that this program reorganization module 120 is reorganized, the executive address data that calculate together with this executive address computing module 130, be presented at program module viewing area 112 and executive address viewing area 113 in user's operating and controlling interface 111 respectively with the appreciable message form of user, the program development personnel can browse all program modules and executive address scope thereof in the bios program 20 of this generation error code situation by this user's operating and controlling interface module 110.
At this moment, the program development personnel can be by the search key input field 114 in user's operating and controlling interface 111, import the error code address date of this bios program 20, for example be [1000:1234], can make retrieval module 140 from the program module collection 121 that this program reorganization module 120 is reorganized, retrieve and deserve the relevant program module of machine dot address (just name is called the program module of " CHECK_HEALTH "), and result for retrieval is presented at result for retrieval viewing area 115 in user's operating and controlling interface 111 shown in Figure 2.In addition, the program development personnel also can and then use retrieval module 140 to inquire to deserve machine spot correlation program module " CHECK_HEALTH " to be called out calling source (which program module is called out is deserved machine spot correlation program module) when carrying out when reality is carried out, for example use the bios program design to go up used CALL, JSB and ROM Gate and inquire the calling of deserving machine spot correlation program module " CHECK_HEALTH " and originate.
Then the program development personnel can enable debug module 150, carry out debug work at the program module " CHECK_HEALTH " that above-mentioned retrieval module 140 retrieves.This debug module 150 for example can set a breakpoint or adopt any other suitable method to carry out debug work deserving machine spot correlation program module, obtains the bios program 30 after the debug.
Therefore this computer program debugging householder method comprises at least: at first, reorganize all program modules that this computer program comprises when reality is carried out; Subsequently, calculate the memory address at each program module place when reality is carried out of reorganizing; Then, utilize an error code address, retrieve the relevant program module of error code of the computer program of this generation error code situation as keyword, last, carry out debug work at this error code relative program module that retrieves.
Generally speaking, the invention provides a kind of computer program debugging householder method and system of novelty, can provide an efficient computer program debugging subsidiary function the program development personnel; The present invention can reorganize all program modules in the computer program that error code takes place automatically, and calculate the memory address at each program module place when reality is carried out automatically, the program development personnel can utilize the error code address of the computer program that error code takes place, retrieve the relevant program module of error code, the present invention can allow the program development personnel that the debugging scope is narrowed down to error code institute relative program module, needn't be as the existing practice, need carry out debugging for scope to whole computer program (i.e. all program modules), therefore can assist the program development personnel more quick, find the position at error code place effectively.

Claims (8)

1. a computer program debugging householder method is applied in a computer platform, provides the debugging subsidiary function to a computer program that the error code situation takes place, and it is characterized in that this computer program debugging householder method comprises at least:
Reorganize all program modules that this computer program comprises when reality is carried out;
Calculate the memory address at each program module place when reality is carried out of reorganizing;
Utilize an error code address as keyword, retrieve the program module that the error code of the computer program of this generation error code situation is correlated with; And
Carry out debug work at this error code relative program module that retrieves.
2. computer program debugging householder method as claimed in claim 1 is characterized in that this computer program is a bios program.
3. computer program debugging householder method as claimed in claim 1 is characterized in that, this computer program debugging householder method and then also comprise:
One calls out the source polling routine, inquires the tangible border of the relevant program module of error code and is called out calling source when carrying out when carrying out.
4. computer program debugging householder method as claimed in claim 1 is characterized in that, the adquisitiones that deserves the machine dot address is to adopt an ITP equipment.
5. computer program debugging backup system, the computer platform of can arranging in pairs or groups provides a debugging subsidiary function to a computer program that the error code situation takes place, and it is characterized in that this computer program debugging backup system comprises at least:
One user's operating and controlling interface module, it can provide user's operating and controlling interface;
One program reorganization module, it can reorganize this computer program included all program modules when reality is carried out, and these program modules are shown on this computer platform by this user's operating and controlling interface module with the appreciable message form of a user;
One executive address computing module, it can calculate the memory address at each program module place when reality is carried out that this program reorganization module reorganizes, and the executive address data of being tried to achieve are shown on this computer platform by this user's operating and controlling interface module with the appreciable message form of a user;
One retrieval module, the search function that it can provide a user to control by this user's operating and controlling interface module, the program module of being correlated with so as to the error code that utilizes an error code address to retrieve the computer program of this generation error code situation; And
One debug module, the error eliminating function that it can provide a user to control is so as to carrying out debug work at the relevant program module of error code that this retrieval module retrieved.
6. computer program debugging backup system as claimed in claim 5 is characterized in that this computer program is a bios program.
7. computer program debugging backup system as claimed in claim 5 is characterized in that, this retrieval module and then comprise that calls out the source query function is originated so as to inquire the calling that the relevant program module of error code called out when carrying out when reality is carried out.
8. computer program debugging backup system as claimed in claim 5 is characterized in that, the adquisitiones that deserves the machine dot address is to adopt an ITP equipment.
CNB2005101143380A 2005-10-20 2005-10-20 Back method and system of testing for bug by computer program Expired - Fee Related CN100418067C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101143380A CN100418067C (en) 2005-10-20 2005-10-20 Back method and system of testing for bug by computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101143380A CN100418067C (en) 2005-10-20 2005-10-20 Back method and system of testing for bug by computer program

Publications (2)

Publication Number Publication Date
CN1952910A true CN1952910A (en) 2007-04-25
CN100418067C CN100418067C (en) 2008-09-10

Family

ID=38059260

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101143380A Expired - Fee Related CN100418067C (en) 2005-10-20 2005-10-20 Back method and system of testing for bug by computer program

Country Status (1)

Country Link
CN (1) CN100418067C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826046B (en) * 2009-03-06 2011-12-14 纬创资通股份有限公司 Power-on debugging method of computer

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5386522A (en) * 1991-12-30 1995-01-31 International Business Machines, Corp. Dynamic physical address aliasing during program debugging
US6378087B1 (en) * 1999-06-08 2002-04-23 Compaq Computer Corporation System and method for dynamically detecting unchecked error condition values in computer programs
DE10127170A1 (en) * 2001-06-05 2002-12-19 Infineon Technologies Ag Troubleshooting procedures and troubleshooting device
CN1632763A (en) * 2004-12-15 2005-06-29 时仁帅 Automatic debugging and mistake correcting method and system for assembly program in embedded module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826046B (en) * 2009-03-06 2011-12-14 纬创资通股份有限公司 Power-on debugging method of computer

Also Published As

Publication number Publication date
CN100418067C (en) 2008-09-10

Similar Documents

Publication Publication Date Title
US9824002B2 (en) Tracking of code base and defect diagnostic coupling with automated triage
US10354225B2 (en) Method and system for process automation in computing
US8719745B2 (en) Method and system for automatically establishing hierarchical parameterized cell (PCELL) debugging environment
US20130067440A1 (en) System and method for sql performance assurance services
CN104216888A (en) Data processing task relation setting method and system
US9645911B2 (en) System and method for debugging firmware/software by generating trace data
CN102667730A (en) Design time debugging
CN102567164A (en) Instruction set batch testing device and method for processor
CN103186461A (en) Storage method and recover method for field data, and related devices
CN104268310A (en) Method for calling UVM verification environment through special graphical interface
CN104156224A (en) Continuous integration method and system for software construction
CN111797157B (en) Data processing method, system, electronic equipment and storage medium
CN102234046A (en) Lift control software field debugging system
CN103064780B (en) A kind of method of software test and device
CN105653268A (en) Rule engine debugging method and rule engine debugging system
CN114818565A (en) Simulation environment management platform, method, equipment and medium based on python
CN113515297B (en) Version updating method and device, electronic equipment and storage medium
CN111679851A (en) Demand code management method, apparatus, system and computer readable storage medium
CN100418067C (en) Back method and system of testing for bug by computer program
CN109460234B (en) Application slimming method and device, terminal and storage medium
CN110413515A (en) A kind of bios code walks checking method, system and code walkthrough tool automatically
US20070168978A1 (en) Computer program code debugging method and system
CN102306013A (en) Portable airplane 1553B bus monitoring system based on universal serial bus (USB) interface and control method for portable airplane 1553B bus monitoring system
CN111400190A (en) Automatic test flow generation method and device and computer readable storage medium
CN113051171A (en) Interface test method, device, equipment and storage medium

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080910

Termination date: 20111020