Commit f98c52b1 authored by Gavriel State's avatar Gavriel State Committed by Alexandre Julliard

Some older versions of GDB need to have the filename data available

for each section, so we need to output it again for the data section.
parent dac9dfc9
......@@ -1136,6 +1136,8 @@ static void BuildCallFrom32Regs( FILE *outfile )
*/
void BuildRelays16( FILE *outfile )
{
char buffer[1024];
/* File header */
fprintf( outfile, "/* File generated automatically. Do not edit! */\n\n" );
......@@ -1144,7 +1146,6 @@ void BuildRelays16( FILE *outfile )
#ifdef USE_STABS
if (output_file_name)
{
char buffer[1024];
getcwd(buffer, sizeof(buffer));
fprintf( outfile, "\t.file\t\"%s\"\n", output_file_name );
......@@ -1197,6 +1198,15 @@ void BuildRelays16( FILE *outfile )
#ifdef USE_STABS
fprintf( outfile, "\t.stabs \"\",100,0,0,.Letext\n");
fprintf( outfile, ".Letext:\n");
/* Some versions of gdb need to have the filename data for
each section, so output it again for the data section. */
if (output_file_name)
{
fprintf( outfile, ".stabs \"%s/\",100,0,0,Data_Start\n", buffer);
fprintf( outfile, ".stabs \"%s\",100,0,0,Data_Start\n", output_file_name );
fprintf( outfile, "Data_Start:\n\n" );
}
#endif
/* The whole Call16_Ret segment must lie within the .data section */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment