This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Compile error in gdb/gdbserver/linux-i386-ipa.c:183
- From: Adrian Cornish <gnu at bluedreamer dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 16 May 2011 09:33:15 -0600
- Subject: Compile error in gdb/gdbserver/linux-i386-ipa.c:183
Hi
Not sure if this error was fixed (could not find it in patch archives)
Build was with this options to configure and compiler is gcc 4.6.0
$ ./configure --prefix=/usr --with-python
Error is:
gcc -c -Wall -g -O2 -I. -I. -I./../common -I./../regformats
-I./../../include -DCONFIG_UST_GDB_INTEGRATION -fPIC -DGDBSERVER
-DIN_PROCESS_AGENT -fvisibility=hidden linux-i386-ipa.c -o
linux-i386-ipa.o
linux-i386-ipa.c: In function 'supply_static_tracepoint_registers':
linux-i386-ipa.c:182:8: error: too few arguments to function 'internal_error'
server.h:469:6: note: declared here
server.h:469
void internal_error (const char *file, int line, const char *, ...)
ATTR_NORETURN ATTR_FORMAT (printf, 3, 4);
Hope this helps
Adrian Cornish
diff -crBN gdb-7.2_orig//gdb/gdbserver/linux-i386-ipa.c
gdb-7.2/gdb/gdbserver/linux-i386-ipa.c
*** gdb-7.2_orig//gdb/gdbserver/linux-i386-ipa.c 2010-07-01
04:36:11.000000000 -0600
--- gdb-7.2/gdb/gdbserver/linux-i386-ipa.c 2011-05-16 09:08:47.000000000 -0600
***************
*** 178,184 ****
}
break;
default:
! internal_error ("unhandled register size: %d",
i386_st_collect_regmap[i].size);
}
}
--- 178,184 ----
}
break;
default:
! internal_error (__FILE__, __LINE__, "unhandled register size: %d",
i386_st_collect_regmap[i].size);
}
}