This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch 2/2] Add hppa-linux target to gdb
- From: Andrew Cagney <cagney at gnu dot org>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 05 Apr 2004 16:02:03 -0400
- Subject: Re: [patch 2/2] Add hppa-linux target to gdb
- References: <20040404174532.GR750@tausq.org>
* config/pa/nm-linux.h: New file.
With regard to the nm- additions, many of these:
+#define CANNOT_FETCH_REGISTER(regno) pa_cannot_fetch_register(regno)
+extern int pa_cannot_fetch_register (int regno);
+
+#define CANNOT_STORE_REGISTER(regno) pa_cannot_store_register(regno)
+extern int pa_cannot_store_register (int regno);
+
+#define HAVE_STEPPABLE_WATCHPOINT 1
+#define STOPPED_BY_WATCHPOINT(W) \
+ pa_linux_stopped_by_watchpoint (PIDGET(inferior_ptid))
+extern CORE_ADDR pa_linux_stopped_by_watchpoint (int);
+
+#define target_insert_watchpoint(addr, len, type) \
+ pa_linux_insert_watchpoint (PIDGET(inferior_ptid), addr, len, type)
+extern int pa_linux_insert_watchpoint (int pid, CORE_ADDR addr,
+ int len, int rw);
+
+#define target_remove_watchpoint(addr, len, type) \
+ pa_linux_remove_watchpoint (PIDGET(inferior_ptid), addr, len)
+extern int pa_linux_remove_watchpoint (int pid, CORE_ADDR addr, int len);
+
+/* Hardware watchpoints */
+
+#define TARGET_HAS_HARDWARE_WATCHPOINTS
+
+#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
+ (type == bp_hardware_watchpoint)
+
now live in the target vector. Can I suggest removing them for the
moment, we can come back to it later.
For the tm- file, it, other than for shlibs, shouldn't be necessary.
We're all going to need to finish multi-arching this beastie.
Andrew