aboutsummaryrefslogtreecommitdiff
path: root/gdb/tdesc.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-14 01:01:28 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-14 01:01:28 +0000
commitea3c08395c487e9c6613635f9d407908e2397aa2 (patch)
tree37e91d5ff471647a27204ae56a3e5abc7f8d03d6 /gdb/tdesc.c
parentedbf28ce4cce654eeb0e88782aee11d6e8529978 (diff)
downloadgdb-ea3c08395c487e9c6613635f9d407908e2397aa2.zip
gdb-ea3c08395c487e9c6613635f9d407908e2397aa2.tar.gz
gdb-ea3c08395c487e9c6613635f9d407908e2397aa2.tar.bz2
Motorola 88000 port without tears, I mean without tdescs.
ChangeLog has the details. This is preliminary for quick release, cleanups remain to be done.
Diffstat (limited to 'gdb/tdesc.c')
-rwxr-xr-xgdb/tdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tdesc.c b/gdb/tdesc.c
index 9a632e3..4a38649 100755
--- a/gdb/tdesc.c
+++ b/gdb/tdesc.c
@@ -235,11 +235,11 @@ int dc_compare_tdesc_elems (elem1, elem2)
s1 = ((tdesc_elem_t *) elem1)->start_address;
s2 = ((tdesc_elem_t *) elem2)->start_address;
if (s1 < s2) return -1;
- if (s1 > s2) return +1;
+ if (s1 > s2) return 1;
e1 = ((tdesc_elem_t *) elem1)->end_address;
e2 = ((tdesc_elem_t *) elem2)->end_address;
if (e1 < e2) return -1;
- if (e1 > e2) return +1;
+ if (e1 > e2) return 1;
return 0;
}