gdb/testsuite: Reduce gdb.threads/threadcrash.exp reliance on libc symbols
[binutils-gdb.git] / sim / testsuite / pru / dmem-zero-trap.s
bloba0605b6572b939f0ce3e87587b67981c5623af0a
1 # Check that DMEM zero address access can be trapped.
2 # mach: pru
3 # sim: --error-null-deref
4 # xerror:
5 # output: core: 4 byte read to unmapped address 0x0 at *\n
7 # Copyright (C) 2016-2024 Free Software Foundation, Inc.
8 # Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
10 # This file is part of the GNU simulators.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 3 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 .include "testutils.inc"
27 start
29 ldi r1, 0
30 lbbo &r2, r1, 0, 4
32 pass