TWI226531B - Computer debugging device and method - Google Patents
Computer debugging device and method Download PDFInfo
- Publication number
- TWI226531B TWI226531B TW91134219A TW91134219A TWI226531B TW I226531 B TWI226531 B TW I226531B TW 91134219 A TW91134219 A TW 91134219A TW 91134219 A TW91134219 A TW 91134219A TW I226531 B TWI226531 B TW I226531B
- Authority
- TW
- Taiwan
- Prior art keywords
- computer
- debugging
- program
- memory
- item
- Prior art date
Links
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
1226531 五、發明說明(1) 發明所屬之技術領域: 本發明係一種電腦除錯之裝置及方法,其主要係一種 在當機時會產生自動連線之訊息’而使當機系統可與外 系統連線’並藉由外部系統之除錯系統,進行除錯之動; 先前技術: 按,一般習知電腦系統偵錯系統,包含如下之 1·將待機之系統主機板的中央處理器插在一儲 海 式之控制單元的插座上。 彳貝錯程 2·將該控制單元的插座插置在該系統主機板供 插置之插座上。 慝理器 3·啟動該控制單元以對該系統主機板進行偵錯工作 然而,上述之方法只能針對某一速度以下之水 器,而現今中央處理器發展的速度一直在改 、處理 中央處理器之速度改變,則上述之方法即無法適^以:但 方面,由於控制單兀之插座上之插孔數目是固^ 另一 央處理器之插腳數目有所變更,則供中央處理^紅一但中 座亦不能使用,更何況,因為必須將處理器置之插 ,因此,必須拆開機殼,才能達到目進仃偵錯 便。 在操作上非常不 另外有一種除錯方式,主要係透過一除 統上設有一第一電腦,該第一電腦中包含一 '、,該系 處理器,其中,記憶體係用來儲存一目標程;記憶體及一 指令服務程式,而處理器則用來執行該記憶及—中斷 之程式; 第5頁 1226531 、發明說明(2) 以及一按鍵 中斷指.令; 該第一電腦電連接於該第二電腦’其内存有一除錯程 式用來對該第一電腦除錯; 令第一電腦之處理器於執行 狀態時,同時第一電腦上之 開關 電連接於該處理器,用來產生一預定之 關會產生一 執行指定之 會建立與該 以該對該第 此種除 鍵開關被觸 開關再被觸 態無法被保 預定之 中斷指 第二電 一電腦 錯方式 發之動 發後, 留下來 中斷指令 令服務移 腦除錯赛 進行除错 ,雖衧避 作,才錐 會產生/ 該目標程式並因而進入一當機 按鍵開關被觸發,則該按鍵開 ,使第一電腦上之處理器開始 式,而該中斷指令服務程式則 武之連線,以使該除錯程式得 免拆機之過程,但必須透過按 啟動除錯之動作,更因該按鍵 禎定之中斷指令,而使當機狀 執行程式有遺失資料之可能性 發明内容: 鑒於上述傳統之電藤除錄所存在的一些缺陷’本 姑甏及方法。 發明提供一種電腦除錯之果务^ 本發明之-目的,在提供電滕除錯之裝置,該裝 置包括有第一電滕,該第一€=載有一基本輸入/輸出 系統(BIOS ROM),該系統内包DAU、一載入器(L〇ader),且 該第-電滕中包含有記憶雜、中央處理器’該第厂 電滕並透過連接埠與第二電戚 性連接,令第一電腦進1226531 V. Description of the invention (1) The technical field to which the invention belongs: The present invention is a computer debugging device and method, which is mainly a message that will automatically generate a connection when it crashes, so that the crash system can communicate with the outside world. The system is connected and debugged by the debugging system of the external system. Prior technology: Press, generally known as the computer system debugging system, including the following: 1. Plug in the central processing unit of the standby system motherboard On the socket of a storage-type control unit.彳 Shell wrong course 2. Insert the socket of the control unit on the socket of the system motherboard. Controller 3. Start the control unit to debug the system's motherboard. However, the above method can only be used for water heaters below a certain speed. At present, the speed of central processor development has been changing and processing central processing. If the speed of the controller is changed, the above method cannot be applied. However, because the number of jacks on the socket of the control unit is fixed. Even if the middle seat cannot be used, not to mention, because the processor must be plugged in, it is necessary to remove the boot to achieve the purpose of debugging. There is no other way of debugging in operation, which is mainly provided by a first computer on a divider system. The first computer contains a processor, and the memory system is used to store a target program. Memory and an instruction service program, and the processor is used to execute the memory and interrupt program; page 1226531, invention description (2) and a key interrupt instruction; the first computer is electrically connected to the The second computer has a debugging program in its memory for debugging the first computer; when the processor of the first computer is in the running state, the switch on the first computer is electrically connected to the processor for generating a The pre-determined level will result in the execution of a designated designation. The interruption of the pre-determined interruption after the switch is touched and the touch-control switch cannot be guaranteed. Stay here to interrupt the instructions to make the service brain debug game for debugging. Although avoidance, the cone will generate / the target program and thus enter a crash button switch is triggered, the button is turned on, so that the first power On the processor start type, and the interrupt instruction service program is connected by force, so that the debug program can avoid the process of disassembly, but it must start the debug action by pressing, and the interrupt instruction determined by the key, The possibility of losing data due to a crashed execution program. SUMMARY OF THE INVENTION In view of the above-mentioned defects in the traditional Dento recording, the present method and method. The invention provides a computer debugging service. It is an object of the present invention to provide a device for debugging an electronic device. The device includes a first device. The first device contains a basic input / output system (BIOS ROM). The system includes a DAU and a loader (L0ader), and the first-timer contains a memory, a central processing unit, and the first factory-timer, and is connected to the second electricality through a port, so that First computer
12265311226531
五、發明說明(3) 入當機狀態時,該第一電腦之系统會自動將載入器 (Loader)加以執行,產生與第二電腦連線之訊息,使第二 電腦與第一電腦連結’進而可藉以連接第二電腦,並配合 第二電腦中之除錯程式進行除錯,如此,不需拆機,且不 需透過按鍵之觸發,即可進行除錯之動作。 本發明之另一目的,在提供一種電腦除錯之方法,該 方法係在第一電腦進入當機狀態時,該第一電腦會自動將 包含在基本輸入/輸出系統中之載入器(Loader)加以執行 ,產生一與第二電腦連線之訊息,而當連線成功時,該第 二電腦會傳送一存取程式碼至第一電腦之記憶體(Dram)中 ,使第一電腦可藉由第二電腦中之除錯程式進行除錯,如 此,不但不需拆機,同時可保留當機環境狀態,亦不需更 換基本輸入/輸出系統(BIOS ROM),即可達到除錯之目的 本發明之另一目的,在提供了一種電腦除錯之方法, 當第一電腦系統產生連線之訊息時,該第一電腦系統會去 檢查第一電腦之通信埠是否與第二電腦之通信埠相連接, 如一直未能連接成功,則經過一段時間後,該系統會進行 重置(Restart)之動作。 本發明之再一目的,在提供了一種電腦除錯之方法, 當第一電腦之通信埠與第二電腦之通信埠相連接成功時, 該第一電腦系統會進一步去檢查第二電腦是否正常運作, 如該第一電腦一直處於關機狀態’則經過一段時間後,該 系統會進行重置(Restart)之動作。V. Description of the invention (3) When the machine is in a crash state, the system of the first computer will automatically execute the loader (Loader) to generate a message connected to the second computer, so that the second computer is connected to the first computer 'Furthermore, a second computer can be connected and debugged in cooperation with a debugging program in the second computer. In this way, the operation of debugging can be performed without disassembling the machine and without triggering by pressing a button. Another object of the present invention is to provide a computer debugging method. When the first computer enters the down state, the first computer will automatically load a loader included in the basic input / output system. ) Is executed to generate a message connecting with the second computer, and when the connection is successful, the second computer will send an access code to the memory (Dram) of the first computer, so that the first computer can Debugging is performed by the debugging program in the second computer. In this way, not only does the machine need to be disassembled, but the state of the downtime environment can be maintained, and the basic input / output system (BIOS ROM) does not need to be replaced. Object Another object of the present invention is to provide a method for debugging a computer. When the first computer system generates a connection message, the first computer system checks whether the communication port of the first computer is connected to the second computer. The communication ports are connected. If the connection has not been successful, the system will restart after a period of time. Another object of the present invention is to provide a method for debugging a computer. When the communication port of the first computer and the communication port of the second computer are successfully connected, the first computer system will further check whether the second computer is normal. Operation, if the first computer is always off, then after a period of time, the system will perform a reset (Restart) action.
第7頁 1226531 五、發明說明(4) 本發明之次一目的,在提供一種電腦除錯之方法,當 第一電.腦與第二電腦處於連線狀態時’除了可進行除錯外 ,另,第二電腦可下達一個指定之中斷服務程式’使該第 二電腦系統傳送一存取程式碼置放於第一電腦中之記憶體 (DRAM)中,進而自動對第一電腦進行更新程式之動作,使 第二電腦在完成除錯工作外’更可完成更新程式之工作。 實施方式:Page 7 1226531 V. Description of the invention (4) A second object of the present invention is to provide a method for debugging a computer. When the first computer, the brain and the second computer are connected, in addition to debugging, In addition, the second computer may issue a designated interrupt service routine to cause the second computer system to transmit an access code and place it in a memory (DRAM) in the first computer, thereby automatically updating the first computer. This action enables the second computer to complete the task of updating the program in addition to completing the debugging work. Implementation:
本發明係一種電腦除錯之裝置,請參照第1圖所示, 該裝置包含有一第一電腦1〇,於本實施例稱為目標系統, 該第一電腦10内載有一基本輸入/輸出系統(BIOS ROM)l 〇〇 ,該基本輸入/輸出系統(BIOS ROM )100内包含有一載入器 (Loader)llO,該載入器(Loader)係為一段程式,該程式 係預先儲存於基本輸入/輸出系統(BIOS ROM) 1 00,第一電 腦10並透過一連接埠11(於本實施例為串列或並列埠)與第 二電腦20 (於本實施例稱為外部系統)作電性連接,於本實 施例該第二電腦2 0透過一連接線21與第一電腦1〇相連接, 且該第二電腦20中存有除錯程式。 另,該第一電腦10另外包含有硬碟120、記憶體 (DRAM) 130及一中央處理器140。The present invention is a computer debugging device. Please refer to FIG. 1. The device includes a first computer 10, which is called a target system in this embodiment. The first computer 10 contains a basic input / output system. (BIOS ROM) 100. The basic input / output system (BIOS ROM) 100 includes a loader 110. The loader is a program, and the program is stored in the basic input in advance. / Output system (BIOS ROM) 1 00. The first computer 10 is electrically connected to a second computer 20 (referred to as an external system in this embodiment) through a port 11 (a serial or parallel port in this embodiment). In this embodiment, the second computer 20 is connected to the first computer 10 through a connection cable 21, and a debugging program is stored in the second computer 20. In addition, the first computer 10 further includes a hard disk 120, a memory (DRAM) 130, and a central processing unit 140.
以令第一電腦進入一當機狀態時,該第一電腦之基本 輸入/輪出系統(BIOS ROM) 100會自動將載入器(Loader) 110載入記憶體130中,並透過中央處理器140加以執行, 產生與第二電腦20連線之訊息,而當第二電腦2〇與第一電In order to make the first computer enter a crash state, the basic input / roll-out system (BIOS ROM) 100 of the first computer will automatically load the loader 110 into the memory 130 and pass the central processing unit 140 executes it to generate a message connected to the second computer 20, and when the second computer 20 and the first computer 20
第8頁 1226531 五、發明說明(5) 腦1〇連線成功時,該第二電腦20會傳送一程式碼(c〇de)至 第一電腦10之記憶體(DRAM) 130中,使第一電腦10之系統 可與第二電腦2〇系統連接,進而可藉以連接第二電腦,並 配合第二電腦中之除錯程式進行除錯,如此,不但不需拆 機’且不需透過被動方式,即可自動進行除錯之動作。 請參閱第1、2圖所示,本發明在透過前述裝置後,即 可依下列步驟運作:Page 8 1226531 V. Description of the invention (5) When the brain 10 is connected successfully, the second computer 20 will send a code (code) to the memory (DRAM) 130 of the first computer 10, so that the first computer 10 The system of one computer 10 can be connected to the system of the second computer 20, so that the second computer can be connected and debugged with the debugging program in the second computer. In this way, not only does the machine need to be disassembled, but also does not need to be passive. Mode, you can automatically perform the debugging action. Please refer to FIG. 1 and FIG. 2. After passing through the aforementioned device, the present invention can operate according to the following steps:
當第一電腦10之基本輸入/輸出系統(BIOS ROM) 100或 應用作業系統(AP)進入當機狀態而產生一錯誤訊息 (error)時,該第一電腦1〇之基本輸入/輸出系統(BI〇s ROM )100會自動將包含在其中之載入器(Loader)載入記憶 體(DRAM) 1 30中,並加以執行,使該基本輸入/輸出系統 (BIOS ROM)1〇〇產生一與第二電腦20連線之訊息; 當該基本輸入/輸出系統(BIOS ROM)100產生一與第二 電腦20連線之訊息時,該第一電腦1〇系統會去偵測第一電 腦10之通信埠與第二電腦20之通信埠是否已確實相連接, 如一直未能連接成功,則經過一段時間後,第一電腦10之 系統會進行重置之動作; 如第一電腦之通信埠與第二電腦之通信埠連接成功,該第 一電腦10系統會進一步去檢查第二部20電腦是否正常運作 ,如該第二電腦20 —直處於關機狀態,則經過一段時間後 ,該系統會進行重置之動作。 而當連線成功且第二電腦2 0亦處於正常運作狀態時, 該第二電腦20會傳送一存取程式碼(於本實施例為二進位When the basic input / output system (BIOS ROM) 100 or the application operating system (AP) of the first computer 10 enters the down state and an error message is generated, the basic input / output system of the first computer 10 ( BIOs ROM) 100 will automatically load the loader contained in it into the memory (DRAM) 1 30 and execute it, so that the basic input / output system (BIOS ROM) 100 generates a A message connected to the second computer 20; when the basic input / output system (BIOS ROM) 100 generates a message connected to the second computer 20, the first computer 10 system will detect the first computer 10 Whether the communication port of the second computer 20 is connected to the communication port of the second computer 20. If the connection is not successful, the system of the first computer 10 will reset after a period of time; such as the communication port of the first computer The connection to the communication port of the second computer is successful. The first computer 10 system will further check whether the second computer 20 is operating normally. If the second computer 20 is directly in the shutdown state, the system will Perform the reset operation. When the connection is successful and the second computer 20 is also in a normal operating state, the second computer 20 sends an access code (in this embodiment, it is a binary)
1226531 五、發明說明(6) 碼(access binary code))至第一電腦 1〇之記憶體(DRAM) 130中,·使第一電腦丨〇可藉以連接第二電腦,並配合第二 電腦20中之除錯程式進行除錯,如此,不但不需拆機,同 時可保留當機狀態,亦不需更換基本輸入/輸出系統(BIOS ROM),即可達到除錯之目的。 請參照第1、3圖所示,當第一電腦1〇與第二電腦20處 於連線狀態時,除了可自動進行除錯外,另,第二電腦2〇 亦可下達一個指定之中斷服務程式(於本實施例為IRQ, SMI或NMI指令),使該第二電腦2〇系統傳送一存取程式碼 (於本實施例為一進位碼(access binary code))至第一電 腦10之記憶體(DRAM)130中,使第一電腦10可執行該存取 程式碼,而自動對第一電腦10進行更新程式之動作,使第 二電腦在完成除錯工作外,更可完成更新程式之工作。 综上所述,本發明之電腦除錯之裝置及方法,不但可 改良習用技術之各種缺點,且在使用上能增進功效,合於 實用,充份符合發明專利之要件,實為一理想之創 申請人爱依專利法之規定,肖肖局提出發 並想請早日賜准本案專利,至感德便。 寻利申請 第10頁 1226531 圖式簡單說明 第1圖··為本發明之裝置示意圖。 第2圖:係本發明進行除錯時之流程示意圖。 第3圖:係本發明進行更新程式之流程示意圖。 主要元件之圖號說明:1226531 V. Description of the invention (6) Access binary code) into the memory (DRAM) 130 of the first computer 10, so that the first computer can be connected to the second computer and cooperate with the second computer 20 The debugging program in this chapter is used for debugging. In this way, not only does the machine need to be disassembled, but the machine can be kept in a down state, and the basic input / output system (BIOS ROM) does not need to be replaced to achieve the purpose of debugging. Please refer to Figures 1 and 3, when the first computer 10 and the second computer 20 are connected, in addition to the automatic debugging, the second computer 20 can also issue a designated interrupt service. Program (in this embodiment, IRQ, SMI, or NMI instructions), which causes the second computer 20 system to transmit an access code (in this embodiment, an access binary code) to the first computer 10 In the memory (DRAM) 130, the first computer 10 can execute the access code and automatically update the program on the first computer 10, so that the second computer can complete the update program in addition to completing the debugging work. Work. In summary, the computer debugging device and method of the present invention can not only improve the various shortcomings of conventional technology, but also improve the efficiency in use. It is practical and fully meets the requirements of the invention patent. It is an ideal The applicant filed in accordance with the provisions of the Patent Law. The Xiao Xiao Bureau proposed and requested that the patent in this case be granted as soon as possible. Profit-seeking Application Page 10 1226531 Brief Description of Drawings Figure 1 ... This is a schematic diagram of the device of the present invention. Fig. 2: Schematic diagram of the process when debugging according to the present invention. Figure 3: Schematic diagram of the process of updating the program according to the present invention. Description of drawing numbers of main components:
第11頁 第一電腦 10 第二電腦 20 基本輸入/輸出系統(BIOS) 100 載入器(Loader) 110 硬碟 120 記憶體 130 中央處理器 140Page 11 First Computer 10 Second Computer 20 Basic Input / Output System (BIOS) 100 Loader 110 Hard Disk 120 Memory 130 Central Processing Unit 140
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91134219A TWI226531B (en) | 2002-11-25 | 2002-11-25 | Computer debugging device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91134219A TWI226531B (en) | 2002-11-25 | 2002-11-25 | Computer debugging device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200408933A TW200408933A (en) | 2004-06-01 |
TWI226531B true TWI226531B (en) | 2005-01-11 |
Family
ID=35634242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW91134219A TWI226531B (en) | 2002-11-25 | 2002-11-25 | Computer debugging device and method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI226531B (en) |
-
2002
- 2002-11-25 TW TW91134219A patent/TWI226531B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW200408933A (en) | 2004-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9158628B2 (en) | Bios failover update with service processor having direct serial peripheral interface (SPI) access | |
CN107122321B (en) | Hardware repair method, hardware repair system, and computer-readable storage device | |
CN112970002B (en) | System for configurable error handling | |
US9367446B2 (en) | Computer system and data recovery method for a computer system having an embedded controller | |
TW445416B (en) | Upgrade card for a computer system and method of operating the same | |
US20160011880A1 (en) | Service processor (sp) initiated data transaction with bios utilizing interrupt | |
US20160011646A1 (en) | Service processor (sp) intiateed data transaction with bios utilizing power off commands | |
TW200813837A (en) | A chipset-independent method for locally and remotely updating and configuring system BIOS | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
KR20200002603A (en) | Power button override for persistent memory enabled platforms | |
US10075609B2 (en) | Information processing apparatus and control method thereof for reducing transition time from a power-save mode | |
TW201133269A (en) | Setting method of power lock-up and electronic apparatus thereof | |
JP2018116648A (en) | Information processor, control method thereof and program | |
JP2011258032A (en) | Information processing unit | |
US11822927B2 (en) | Boot times in an information processing device with externally connected devices | |
TWI226531B (en) | Computer debugging device and method | |
CN1991681B (en) | System for avoiding pushing power switch to interrupt BIOS updating and method thereof | |
TW201349120A (en) | Method for performing basic input output system utility program without system management interrupt mechanism | |
EP4172828B1 (en) | Static configuration of accelerator card security modes | |
TWI720615B (en) | Computer device and shutdown and reboot controlling method thereof | |
CN108229209B (en) | BMC chip with double CPU frameworks and autonomous security improving method thereof | |
TWI468913B (en) | Computer system and method for starting and setting computer system | |
CN108073481B (en) | Server system capable of providing hardware operation information and processing method thereof | |
TWI554876B (en) | Method for processing node replacement and server system using the same | |
CN104142870A (en) | Virtual BIOS (basic input /output system) booting system and virtual BIOS booting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |