2006-06-02 05:36:31 -05:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2005 by Dominic Rath *
|
|
|
|
* Dominic.Rath@gmx.de *
|
|
|
|
* *
|
2009-12-10 12:11:03 -06:00
|
|
|
* Copyright (C) 2007-2009 Øyvind Harboe *
|
2008-07-25 01:54:17 -05:00
|
|
|
* oyvind.harboe@zylin.com *
|
|
|
|
* *
|
2008-09-20 05:50:53 -05:00
|
|
|
* Copyright (C) 2008 by Spencer Oliver *
|
|
|
|
* spen@spen-soft.co.uk *
|
|
|
|
* *
|
2006-06-02 05:36:31 -05:00
|
|
|
* 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 *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
* Free Software Foundation, Inc., *
|
|
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef GDB_SERVER_H
|
|
|
|
#define GDB_SERVER_H
|
|
|
|
|
2009-11-13 11:46:21 -06:00
|
|
|
struct image;
|
2009-12-04 16:06:20 -06:00
|
|
|
#include <target/target.h>
|
2006-06-02 05:36:31 -05:00
|
|
|
|
2008-05-07 07:14:26 -05:00
|
|
|
#define GDB_BUFFER_SIZE 16384
|
2006-06-02 05:36:31 -05:00
|
|
|
|
2009-11-13 10:06:52 -06:00
|
|
|
struct gdb_service
|
2006-06-02 05:36:31 -05:00
|
|
|
{
|
2009-11-13 12:11:13 -06:00
|
|
|
struct target *target;
|
2009-11-13 10:06:52 -06:00
|
|
|
};
|
2006-06-02 05:36:31 -05:00
|
|
|
|
2009-11-28 20:56:23 -06:00
|
|
|
int gdb_target_add_all(struct target *target);
|
2009-11-13 15:25:47 -06:00
|
|
|
int gdb_register_commands(struct command_context *command_context);
|
2006-06-02 05:36:31 -05:00
|
|
|
|
|
|
|
#define ERROR_GDB_BUFFER_TOO_SMALL (-800)
|
2008-02-16 09:21:13 -06:00
|
|
|
#define ERROR_GDB_TIMEOUT (-801)
|
2006-06-02 05:36:31 -05:00
|
|
|
|
|
|
|
#endif /* GDB_SERVER_H */
|