- /* Create labels from all modules we have linked into the output file */
- for (I = 0; I < CollCount (&ObjDataList); ++I) {
-
- /* Get the object file */
- ObjData* O = CollAtUnchecked (&ObjDataList, I);
-
- /* Output the labels */
- PrintDbgSymLabels (O, F);
- }
-
- /* Close the file */
- if (fclose (F) != 0) {
- Error ("Error closing map file `%s': %s", LabelFileName, strerror (errno));
- }
-}
-
-
-
-void CreateDbgFile (void)
-/* Create a debug info file */
-{
- unsigned I;
-
- /* Open the debug info file */
- FILE* F = fopen (DbgFileName, "w");
- if (F == 0) {
- Error ("Cannot create label file `%s': %s", DbgFileName, strerror (errno));
- }
-
- /* Print line infos from all modules we have linked into the output file */
- for (I = 0; I < CollCount (&ObjDataList); ++I) {
-
- /* Get the object file */
- ObjData* O = CollAtUnchecked (&ObjDataList, I);
-
- /* Output debug info */
- PrintDbgInfo (O, F);
- }