Facilitating availability of object data types at runtime
AssigneeRed Hat, Inc.
InventorUlrich Drepper
Life of this patent
Estimating the term…
Abstract
A method and apparatus for facilitating availability of object data types at runtime are described. In one embodiment, the method may include parsing debug information generated by a compiler for a software program, identifying in the debug information desired data types and objects associated with the desired data types, and creating for each desired data type an object list including references to associated objects. The method may further include adding resulting object lists to a set of object files generated by the compiler for the software program. The set of object files with the added object lists may then be used by a linker when creating an executable file for the software program.
Claims22
A computer-implemented method comprising:
- parsing debug information generated by a compiler for a software program;
- identifying, in the debug information, one or more desired data types and objects associated with the desired data types;
- creating, for each desired data type, an object list including references to associated objects;
- and
- adding resulting object lists to a set of object files generated by the compiler for the software program, the set of object files with the added object lists to be used by a linker when creating an executable file for the software program.
A computer-implemented method comprising:
- identifying a reference to an object passed to a program function during an execution of a program;
- determining whether the referenced object satisfies a required data type using an object list including references to objects associated with the required data type, the object list being created based on debug information generated for the program by a compiler;
- allowing the program function to use the referenced object if the referenced object satisfies the required data type;
- and
- generating an error if the referenced object does not satisfy the required data type.
A computer-readable storage medium including data that, when accessed by a machine, cause the machine to perform a method comprising:
- parsing debug information generated by a compiler for a software program;
- identifying, in the debug information, one or more desired data types and objects associated with the desired data types;
- creating, for each desired data type, an object list including references to associated objects;
- and
- adding resulting object lists to a set of object files generated by the compiler for the software program, the set of object files with the added object lists to be used by a linker when creating an executable file for the software program.
A computer-implemented system comprising:
- a parser to parse debug information generated by a compiler for a software program, and to identify, in the debug information, one or more desired data types and objects associated with the desired data types;
- and
- a list creator, coupled to the parser, to create for each desired data type an object list including references to associated objects, and to add resulting object lists to a set of object files generated by the compiler for the software program, the set of object files with the added object lists to be used by a linker when creating an executable file for the software program.
Dependencies are inferred from the claim text.