# US 2004/0083331 A1 · Method and apparatus for mapping debugging information when debugging integrated executables in a heterogeneous architecture

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

- Number: US 2004/0083331 A1
- Document ID: US20040083331A1
- Status: Published application
- Kind: A1
- Application number: 10/280,243
- Filed: 2002-10-24
- Published: 2004-04-29
- Earliest claimed: 2002-10-24
- Assignees: International Business Machines Corporation
- Inventors: Michael Karl Gschwind; Kathryn M. O'Brien; John Kevin O'Brien; Valentina Salapura
- Web page: https://patentgrep.com/patent/US20040083331A1

## CPC

- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/362: Debugging of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides for the employment of a dynamic debugger for a parallel processing environment. This is achieved by dynamically updating mapping information at run-time in a mapping table, wherein the mapping table is read by the dynamic debugger.

## Claims

### Claim 1

A method for dynamically mapping from a mapping indicia to a memory address or other register address, the method comprising:
determining if the mapping indicia is of the type associated with a selected separate execution environment;
selecting at least one module in which the mapping indicia is located, wherein the module selected is also associated with the selected separate execution environment;
determining if the at least one module selected is loaded into the memory of the selected separate execution environment; and
providing at least one memory address of the mapping indicia if the at least one module selected is loaded into the memory of the selected separate execution environment.

### Claim 2 (depends on 1)

The method of claim 1, further comprising a step of providing at least one memory offset associated with the desired mapping indicia.

### Claim 3 (depends on 1)

The method of claim 1, further comprising signalling that the memory module is not loaded in the selected execution environment.

### Claim 4 (depends on 1)

The method of claim 1, further comprising determining the memory location of an unloaded module within a system memory.

### Claim 5 (depends on 1)

The method of claim 1, further comprising the step of dynamically updating a dynamic load map when at least one module is loaded at run time to the selected separate execution environment.

### Claim 6 (depends on 1)

The method of claim 1, further comprising the step of dynamically updating a dynamic load map when at least one module is unloaded at run time from the selected separate execution environment.

### Claim 7 (depends on 1)

The method of claim 1, further comprising providing a plurality of memory offsets associated with the desired mapping indicia.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining at least one module in which the mapping indicia is located further comprises determining a plurality of modules, in each of which the mapping indicia is located.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining if the mapping indicia is of the type associated with a selected separate execution environment further comprises determining if the mapping indicia is of the type associated with an attached processor unit.

### Claim 10

A method for mapping from a memory address to mapping indicia, the method comprising:
determining if the memory address is of the type associated with a selected separate execution environment;
selecting at least one module to which the memory address is correlated, wherein the selected module is associated with the separate execution environment;
determining if the at least one module, to which the memory address correlates, is loaded to the separate execution environment; and
returning mapping indicia from the separate execution environment, wherein the mapping indicia corresponds to the memory address, if the at least one module is loaded to the separate execution environment.

### Claim 11 (depends on 10)

The method of claim 10, wherein the step of selecting at least one module, to which the memory address correlates, further comprises determining a plurality of modules in which the memory address is correlated.

### Claim 12 (depends on 10)

The method of claim 10, further comprising a step of identifying mapping indicia by both the module load address in the separate execution environment and the memory offset of the mapping indicia.

### Claim 13 (depends on 10)

The method of claim 10, further comprising a step of signalling that the at least one module is loaded to the memory register specified by the memory address.

### Claim 14

A system data map for mapping between at least two separate execution environments, wherein the system map comprises:
mapping indicia;
at least one memory offset of the mapping indicia from a determined memory location; and
indicia of the separate execution environment.

### Claim 15 (depends on 14)

The system data map of claim 14, wherein the at least one offset comprises a plurality of offsets of the address of the mapping indicia.

### Claim 16 (depends on 15)

The system data map of claim 15, wherein the plurality of offsets of the address of the mapping memory correspond to a plurality of separate execution environments.

### Claim 17 (depends on 14)

The system data map of claim 14, further comprising indicia of a module in which the mapping indicia resides.

### Claim 18 (depends on 14)

The system data map of claim 14, further comprising indicia of the memory address of an unloaded copy of a module, in which the mapping indicia resides, in the memory space of a system memory.

### Claim 19 (depends on 14)

The system data map of claim 14, wherein the mapping indicia comprises a symbol.

### Claim 20 (depends on 14)

The system data map of claim 14, wherein the mapping indicia comprises a file name and a line number.

### Claim 21

A method for mapping between mapping information and memory address, comprising:
classifying information according to a targeted processor;
associating software modules information with symbols; and
tracking loading and unloading of the modules at runtime to provide accurate information about the state of the system.

### Claim 22

A computer program product for dynamically mapping from a mapping indicia to a memory address or other register address, the computer program product having a medium with a computer program embodied thereon, the computer program comprising:
computer code for determining if the mapping indicia is of the type associated with a selected separate execution environment;
computer code for selecting at least one module in which the mapping indicia is located, wherein the module is also associated with the selected separate execution environment;
computer code for determining if the at least one module associated with the mapping indicia is loaded into the memory of the selected separate execution environment; and
computer code for providing at least one memory address of the desired mapping indicia if the at least one module is loaded into the memory of the selected separate execution environment.

### Claim 23

A processor for dynamically mapping from a mapping indicia to a memory address or other register address, the processor including a computer program comprising:
computer code for determining if the mapping indicia is of the type associated with a selected separate execution environment;
computer code for selecting at least one module in which the mapping indicia is located, wherein the module is also associated with the selected separate execution environment;
computer code for determining if the at least one module associated with the mapping indicia is loaded into the memory of the selected separate execution environment; and
computer code for providing at least one memory address of the desired mapping indicia if the at least one module is loaded into the memory of the selected separate execution environment.
