* breakpoint.h: Include break-common.h.
	(enum target_hw_bp_type): Move to ...
	* common/break-common.h: ... here.  New.

gdb/gdbserver/

	* i386-low.c: Include break-common.h.
	(enum target_hw_bp_type): Remove.
This commit is contained in:
Yao Qi 2013-07-27 07:11:46 +00:00
parent e21b1c5ffd
commit de6f69ad33
5 changed files with 43 additions and 17 deletions

View File

@ -1,3 +1,9 @@
2013-07-27 Yao Qi <yao@codesourcery.com>
* breakpoint.h: Include break-common.h.
(enum target_hw_bp_type): Move to ...
* common/break-common.h: ... here. New.
2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
* inflow.c (terminal_init_inferior_with_pgrp): Save inferior

View File

@ -24,6 +24,7 @@
#include "vec.h"
#include "ax.h"
#include "command.h"
#include "break-common.h"
struct value;
struct block;
@ -215,15 +216,6 @@ enum bpdisp
disp_donttouch /* Leave it alone */
};
enum target_hw_bp_type
{
hw_write = 0, /* Common HW watchpoint */
hw_read = 1, /* Read HW watchpoint */
hw_access = 2, /* Access HW watchpoint */
hw_execute = 3 /* Execute HW breakpoint */
};
/* Status of breakpoint conditions used when synchronizing
conditions with the target. */

30
gdb/common/break-common.h Normal file
View File

@ -0,0 +1,30 @@
/* Data structures associated with breakpoints shared in both GDB and
GDBserver.
Copyright (C) 1992-2013 Free Software Foundation, Inc.
This file is part of GDB.
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 3 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, see <http://www.gnu.org/licenses/>. */
#ifndef BREAK_COMMON_H
#define BREAK_COMMON_H 1
enum target_hw_bp_type
{
hw_write = 0, /* Common HW watchpoint */
hw_read = 1, /* Read HW watchpoint */
hw_access = 2, /* Access HW watchpoint */
hw_execute = 3 /* Execute HW breakpoint */
};
#endif

View File

@ -1,3 +1,8 @@
2013-07-27 Yao Qi <yao@codesourcery.com>
* i386-low.c: Include break-common.h.
(enum target_hw_bp_type): Remove.
2013-07-24 Luis Machado <lgustavo@codesourcery.com>
* Makefile.in (SFILES): /common/target-common.c.

View File

@ -20,6 +20,7 @@
#include "server.h"
#include "target.h"
#include "i386-low.h"
#include "break-common.h"
/* Support for 8-byte wide hw watchpoints. */
#ifndef TARGET_HAS_DR_LEN_8
@ -27,14 +28,6 @@
#define TARGET_HAS_DR_LEN_8 (sizeof (void *) == 8)
#endif
enum target_hw_bp_type
{
hw_write = 0, /* Common HW watchpoint */
hw_read = 1, /* Read HW watchpoint */
hw_access = 2, /* Access HW watchpoint */
hw_execute = 3 /* Execute HW breakpoint */
};
/* DR7 Debug Control register fields. */
/* How many bits to skip in DR7 to get to R/W and LEN fields. */