# US 2006/0069959 A1 · System and method for implementing software breakpoints

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0069959 A1
- Document ID: US20060069959A1
- Status: Published application
- Kind: A1
- Application number: 10/939,535
- Filed: 2004-09-13
- Published: 2006-03-30
- Earliest claimed: 2004-09-13
- Assignees: Sigmatel, Inc.
- Inventors: Russell Schultz
- Web page: https://patentgrep.com/patent/US20060069959A1

## CPC

- G06F 11/3644: {by instrumenting at runtime}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure is directed to a method of loading a breakpoint enabled page of a computer program into a computer readable memory. The method includes identifying a page of a computer program to be loaded into the computer readable memory and reading a breakpoint table to identify a set of breakpoints having memory addresses located within the page of the computer program prior to loading the page of the computer program. Each breakpoint has an instruction address and an instruction storage location. For each of the set of breakpoints, the method includes reading an operating instruction of the page of the computer program located at the instruction address, storing a copy of the operating instruction at the instruction storage location within the breakpoint table, and loading a trap instruction at the instruction address to replace the operating instruction in the page of the computer program to create a breakpoint enabled page of the computer program.

## Claims

### Claim 1

A method of loading a breakpoint enabled page of a computer program into a computer readable memory, the method comprising:
identifying a page of a computer program to be loaded into the computer readable memory;
prior to loading the page of the computer program, reading a breakpoint table to identify a set of breakpoints having memory addresses located within the page of the computer program, each breakpoint in the set of breakpoints having an instruction address and an instruction storage location;
for each of the set of breakpoints, reading an operating instruction of the page of the computer program located at the instruction address, storing a copy of the operating instruction at the instruction storage location within the breakpoint table, and loading a trap instruction at the instruction address to replace the operating instruction in the page of the computer program, to create a breakpoint enabled page of the computer program; and
loading the breakpoint enabled page of the computer program into the computer readable memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the computer program has a total size that is greater than the size of the computer readable memory and wherein the page of the computer program has a size that is less than the size of the computer readable memory.

### Claim 3 (depends on 1)

The method of claim 1, further comprising executing at least one of the trap instructions corresponding to at least one of the set of breakpoints and initiating a debug routine in response to executing the trap instruction.

### Claim 4 (depends on 3)

The method of claim 3, further comprising, after executing the at least one trap instruction and after initiating the debug routine, reading the previously stored copy of the operating instruction from the instruction storage location of the breakpoint table and executing the operating instruction to continue execution of the computer program after invocation of the breakpoint.

### Claim 5 (depends on 1)

The method of claim 1, wherein the computer readable memory and a processor configured to execute the instructions in the page of the computer program are disposed within an embedded processor system.

### Claim 6 (depends on 5)

The method of claim 5, wherein the embedded processor system comprises a handheld computer device.

### Claim 7 (depends on 6)

The method of claim 6, wherein the embedded processor system is an MP3 device.

### Claim 8 (depends on 5)

The method of claim 5, wherein the embedded processor system is a personal digital assistant.

### Claim 9 (depends on 1)

The method of claim 1, further comprising loading the breakpoint table from a host computer into the computer readable memory.

### Claim 10 (depends on 9)

The method of claim 9, wherein the host computer includes a debugger routine that is invoked upon execution of at least one of the trap instructions.

### Claim 11 (depends on 10)

The method of claim 10, wherein the debugger routine is prevented from accessing the breakpoint table while a memory paging routine within the embedded processor system is in the process of generating and then loading the breakpoint enabled page into the computer readable memory.

### Claim 12 (depends on 1)

The method of claim 1, wherein each entry of the breakpoint table further includes a task identifier, the task identifier representing a particular program task associated with activation of the breakpoint.

### Claim 13 (depends on 12)

The method of claim 12, wherein when a task other than the particular program task is being executed, the breakpoint is disabled by a real-time operating system kernel program and when the particular program task is being executed, the breakpoint is enabled by the real-time operating system kernel program.

### Claim 14 (depends on 1)

The method of claim 1, wherein the breakpoint enabled page of the computer memory is to be replaced with a second page of the computer program and further comprising reading the breakpoint table to identify at least one breakpoint having an address located within the second page of the computer program prior to loading the second page of the computer program into the computer readable memory.

### Claim 15 (depends on 14)

The method of claim 14, further comprising, for the at least one breakpoint, reading an operating instruction of the second page of the computer program located at the instruction address, storing a copy of the operating instruction at the instruction storage location within the breakpoint table for the at least one breakpoint, and loading a trap instruction at the instruction address to replace the operating instruction in the second page of the computer program, to create a breakpoint enabled second page of the computer program.

### Claim 16 (depends on 15)

The method of claim 15, further comprising loading the breakpoint enabled second page of the computer program into the computer readable memory.

### Claim 17 (depends on 14)

The method of claim 14, wherein the second page of the computer program is received from an external media source.

### Claim 18 (depends on 17)

The method of claim 17, wherein the external media source is selected form a hard disk drive, optical storage, and a flash memory.

### Claim 19 (depends on 17)

The method of claim 17, wherein the external media source is within a host computer and wherein the host computer communicates with the computer readable memory using a JTAG interface.

### Claim 20 (depends on 1)

The method of claim 1, further comprising adjusting a busy flag to prevent a debugger program from accessing the breakpoint table.

### Claim 21 (depends on 1)

The method of claim 1, further comprising evaluating a checksum value associated with the breakpoint table.

### Claim 22 (depends on 21)

The method of claim 21, wherein evaluating the checksum value is performed prior to reading the breakpoint table.

### Claim 23

An embedded system comprising:
a processor; and
memory accessible to the processor, the memory including:
a breakpoint table including a set of entries, each entry of the set of entries identifying an instruction address and including a storage cell for a replaced instruction; and
computer implemented instructions operable by the processor to access the breakpoint table and to insert a trap instruction associated with each of the set of entries included in the breakpoint table at the identified instruction addresses within a program page prior to loading the program page for execution.

### Claim 24 (depends on 23)

The embedded system of claim 23, wherein the memory has an available capacity that is smaller than a program associated with the program page.

### Claim 25

A system comprising:
a host computer including debugger software; and
an embedded system accessible to the host computer, the embedded system including:
a processor; and
memory accessible to the processor, the memory including:
a breakpoint table including a set of entries, each entry of the set of entries identifying an instruction address associated with an instruction included in a page of a program that is to be replaced by a trap instruction, each entry including a storage cell for storing the replaced instruction.

### Claim 26 (depends on 25)

The system of claim 25, wherein the breakpoint table is created by the debugger software and transferred to the embedded system.

### Claim 27 (depends on 25)

The system of claim 25, wherein a capacity of the memory is less than a size of the program.

### Claim 28 (depends on 25)

The system of claim 25, wherein the program is stored on a media source accessible to the memory.

### Claim 29 (depends on 25)

The system of claim 25, wherein the memory includes computer implemented instructions operable by the processor to access the breakpoint table and to insert the trap instruction at the instruction address within the page prior to loading the page for execution.
