aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparcl-tdep.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-08-24 21:51:33 +0000
committerMark Alexander <marka@cygnus>1998-08-24 21:51:33 +0000
commitce8f5b49f69cd6cdffc9548aa3b409876f05c2a5 (patch)
treec2b2d27e9607ed93c0f1b1c1e9caea72ca5f4f14 /gdb/sparcl-tdep.c
parent080a50b635c8b89b09d3bf25e2e24dd9944ec54e (diff)
downloadgdb-ce8f5b49f69cd6cdffc9548aa3b409876f05c2a5.zip
gdb-ce8f5b49f69cd6cdffc9548aa3b409876f05c2a5.tar.gz
gdb-ce8f5b49f69cd6cdffc9548aa3b409876f05c2a5.tar.bz2
* sh-stub.c (undoSStep): Improve comment.
* sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use same method on both 32-bit and 64-bit machines. * sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't support hardware breakpoints. * config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
Diffstat (limited to 'gdb/sparcl-tdep.c')
-rw-r--r--gdb/sparcl-tdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/sparcl-tdep.c b/gdb/sparcl-tdep.c
index 89e1c2c..e50fdce 100644
--- a/gdb/sparcl-tdep.c
+++ b/gdb/sparcl-tdep.c
@@ -83,7 +83,7 @@ static void sparclite_download PARAMS ((char *filename, int from_tty));
#define DDA1_ENABLE 0x80
#define DIA2_ENABLE 0x40
#define DIA1_ENABLE 0x20
-#define DSINGLE_STEP 0x10
+#define DSINGLE_STEP 0x10 /* not used */
#define DDV_TYPE_MASK 0xc
#define DDV_TYPE_LOAD 0x0
#define DDV_TYPE_STORE 0x4
@@ -232,6 +232,10 @@ sparclite_check_watch_resources (type, cnt, ot)
int cnt;
int ot;
{
+ /* Watchpoints not supported on simulator. */
+ if (strcmp (target_shortname, "sim") == 0)
+ return 0;
+
if (type == bp_hardware_breakpoint)
{
if (TARGET_HW_BREAK_LIMIT == 0)