-# Copyright 2003, 2007, 2008 Free Software Foundation, Inc.
+# Copyright 2003-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Test for PR gdb/1056.
# 2003-10-18 Michael Chastain <mec@shout.net>
-if $tracelevel then {
- strace $tracelevel
-}
-
# test SIGFPE (such as division by 0) inside gdb itself
-set prms_id 0
-set bug_id 0
gdb_start
kfail "gdb/1056" "print 1/0"
}
}
+gdb_test "print 1U/0" ".*Division by zero.*" "Test unsigned division by zero"
+