+2009-05-13 Doug Evans <dje@google.com>
+
+ * linux-x86-low.c: Don't include assert.h.
+ (x86_siginfo_fixup): Use fatal, not assert.
+ (x86_arch_setup): Fix comment.
+
2009-05-12 Doug Evans <dje@google.com>
Biarch support for i386/amd64 gdbserver.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include <assert.h>
#include <signal.h>
#include "server.h"
#include "linux-low.h"
/* Is the inferior 32-bit? If so, then fixup the siginfo object. */
if (register_size (0) == 4)
{
- assert (sizeof (struct siginfo) == sizeof (compat_siginfo_t));
+ if (sizeof (struct siginfo) != sizeof (compat_siginfo_t))
+ fatal ("unexpected difference in siginfo");
if (direction == 0)
compat_siginfo_from_siginfo ((struct compat_siginfo *) inf, native);
return 0;
}
\f
-/* Return non-zero if the target is 64-bit. */
+/* Initialize gdbserver for the architecture of the inferior. */
static void
x86_arch_setup (void)