diff options
author | Doug Evans <dje@google.com> | 2009-05-13 19:11:04 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-05-13 19:11:04 +0000 |
commit | 9f1036c17f3a91b8c1eaadb16a131a37d48540ea (patch) | |
tree | 50c955338fddc12fc254ae5c32e59f535203fa1d /gdb/gdbserver | |
parent | 57a9e6afe1689fca791c5be5b57b6bc361b466de (diff) | |
download | gdb-9f1036c17f3a91b8c1eaadb16a131a37d48540ea.zip gdb-9f1036c17f3a91b8c1eaadb16a131a37d48540ea.tar.gz gdb-9f1036c17f3a91b8c1eaadb16a131a37d48540ea.tar.bz2 |
* linux-x86-low.c: Don't include assert.h.
(x86_siginfo_fixup): Use fatal, not assert.
(x86_arch_setup): Fix comment.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 798d4de..333ab71 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index ffb70dc..416f19f 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -18,7 +18,6 @@ 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" @@ -551,7 +550,8 @@ x86_siginfo_fixup (struct siginfo *native, void *inf, int direction) /* 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); @@ -565,7 +565,7 @@ x86_siginfo_fixup (struct siginfo *native, void *inf, int direction) return 0; } -/* Return non-zero if the target is 64-bit. */ +/* Initialize gdbserver for the architecture of the inferior. */ static void x86_arch_setup (void) |