From 3aef2f08589e46bbbce15a4534c4900bc2528998 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 7 Oct 2008 18:04:14 +0000 Subject: Fixes SEGFAULT when setting registers from GDB. set $cpsr=1234 git-svn-id: svn://svn.berlios.de/openocd/trunk@1026 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/register.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/target/register.h') diff --git a/src/target/register.h b/src/target/register.h index 456ab590..96bd3da9 100644 --- a/src/target/register.h +++ b/src/target/register.h @@ -2,6 +2,9 @@ * Copyright (C) 2005 by Dominic Rath * * Dominic.Rath@gmx.de * * * + * Copyright (C) 2007,2008 Øyvind Harboe * + * oyvind.harboe@zylin.com * + * * * 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 * * the Free Software Foundation; either version 2 of the License, or * @@ -64,6 +67,7 @@ extern reg_t* register_get_by_name(reg_cache_t *first, char *name, int search_al extern reg_cache_t** register_get_last_cache_p(reg_cache_t **first); extern int register_reg_arch_type(int (*get)(reg_t *reg), int (*set)(reg_t *reg, u8 *buf)); extern reg_arch_type_t* register_get_arch_type(int id); +extern void register_init_dummy(reg_t *reg); #endif /* REGISTER_H */ -- cgit v1.2.3