Skip to content

Commit

Permalink
[gdb/tdep] Remove includes of gdbsupport/common-defs.h
Browse files Browse the repository at this point in the history
In commit 18d2988 ("gdb, gdbserver, gdbsupport: remove includes of early
headers") all includes of gdbsupport/common-defs.h where removed, but
commit c1cdee0 ("gdb: LoongArch: Add support for hardware watchpoint")
reintroduced some.

Fix this by removing them.

Tested by doing this on x86_64-linux:
...
$ make \
    nat/loongarch-hw-point.o \
    nat/loongarch-linux.o \
    nat/loongarch-linux-hw-point.o
  CXX    nat/loongarch-hw-point.o
  CXX    nat/loongarch-linux.o
  CXX    nat/loongarch-linux-hw-point.o
...

Approved-By: Simon Marchi <simon.marchi@efficios.com>
  • Loading branch information
vries committed Dec 4, 2024
1 parent 0225ef6 commit cf8d35f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion gdb/nat/loongarch-hw-point.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */

#include "gdbsupport/common-defs.h"
#include "gdbsupport/break-common.h"
#include "gdbsupport/common-regcache.h"
#include "loongarch-hw-point.h"
Expand Down
1 change: 0 additions & 1 deletion gdb/nat/loongarch-linux-hw-point.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */

#include "gdbsupport/common-defs.h"
#include "gdbsupport/break-common.h"
#include "gdbsupport/common-regcache.h"
#include "nat/linux-nat.h"
Expand Down
1 change: 0 additions & 1 deletion gdb/nat/loongarch-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */

#include "gdbsupport/common-defs.h"
#include "gdbsupport/break-common.h"
#include "nat/linux-nat.h"
#include "nat/loongarch-linux-hw-point.h"
Expand Down

0 comments on commit cf8d35f

Please sign in to comment.