Fast source file to line number table association
First Claim
1. A method, in a data processing system, for associating files with line number table in a debugger, the method comprising:
- for each line number table, examining header information for source files that contribute to the line number table; and
for each source file that contributes to a line number table, storing an entry in a file information database, wherein the entry associates the source file with a line number table offset.
3 Assignments
0 Petitions
Accused Products
Abstract
A mechanism is provided in a debugger for building a file information database while significantly reducing debug startup time. For each line number table, the mechanism of the present invention reads the header section and determines all the source files that contribute to the line number table. The mechanism also makes note of the line number table offset. The mechanism then inserts the source filename into the file information database. In one preferred embodiment, the file information database is implemented as a hash table. Searching time occurs during an interactive debug session; therefore, the searching time is not easily detectable to a user, thus creating the perception of a faster interactive debugging session.
-
Citations
18 Claims
-
1. A method, in a data processing system, for associating files with line number table in a debugger, the method comprising:
-
for each line number table, examining header information for source files that contribute to the line number table; and
for each source file that contributes to a line number table, storing an entry in a file information database, wherein the entry associates the source file with a line number table offset. - View Dependent Claims (2, 3, 4)
-
-
5. A method, in a data processing system, for setting a breakpoint in a debugger, the method comprising:
-
receiving a query for a breakpoint, wherein the query includes a filename and a line number;
looking up the filename in a file information database to obtain a line number table offset; and
looking up the line number using the line number table offset to obtain a machine address. - View Dependent Claims (6)
-
-
7. An apparatus, in a data processing system, for associating files with line number table in a debugger, the apparatus comprising:
-
means for examining, for each line number table, header information for source files that contribute to the line number table; and
means for storing, for each source file that contributes to a line number table, an entry in a file information database, wherein the entry associates the source file with a line number table offset. - View Dependent Claims (8, 9, 10)
-
-
11. An apparatus, in a data processing system, for setting a breakpoint in a debugger, the apparatus comprising:
-
means for receiving a query for a breakpoint, wherein the query includes a filename and a line number;
means for looking up the filename in a file information database to obtain a line number table offset; and
means for looking up the line number using the line number table offset to obtain a machine address. - View Dependent Claims (12)
-
-
13. A computer program product, in a computer readable medium, for associating files with line number table in a debugger, the computer program product comprising:
-
instructions for examining, for each line number table, header information for source files that contribute to the line number table; and
instructions for storing, for each source file that contributes to a line number table, an entry in a file information database, wherein the entry associates the source file with a line number table offset. - View Dependent Claims (14, 15, 16)
-
-
17. A computer program product, in a computer readable medium, for setting a breakpoint in a debugger, the computer program product comprising:
-
instructions for receiving a query for a breakpoint, wherein the query includes a filename and a line number;
instructions for looking up the filename in a file information database to obtain a line number table offset; and
instructions for looking up the line number using the line number table offset to obtain a machine address. - View Dependent Claims (18)
-
Specification