aboutsummaryrefslogtreecommitdiff
path: root/gdb/memrange.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/memrange.c')
-rw-r--r--gdb/memrange.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/memrange.c b/gdb/memrange.c
index 31dc893..2369ee2 100644
--- a/gdb/memrange.c
+++ b/gdb/memrange.c
@@ -22,8 +22,7 @@
#include <algorithm>
int
-mem_ranges_overlap (CORE_ADDR start1, int len1,
- CORE_ADDR start2, int len2)
+mem_ranges_overlap (CORE_ADDR start1, int len1, CORE_ADDR start2, int len2)
{
ULONGEST h, l;
@@ -37,8 +36,7 @@ mem_ranges_overlap (CORE_ADDR start1, int len1,
int
address_in_mem_range (CORE_ADDR address, const struct mem_range *r)
{
- return (r->start <= address
- && (address - r->start) < r->length);
+ return (r->start <= address && (address - r->start) < r->length);
}
void
@@ -59,9 +57,9 @@ normalize_mem_ranges (std::vector<mem_range> *memory)
{
m[a].length = std::max ((CORE_ADDR) m[a].length,
(m[b].start - m[a].start) + m[b].length);
- continue; /* next b, same a */
+ continue; /* next b, same a */
}
- a++; /* next a */
+ a++; /* next a */
if (a != b)
m[a] = m[b];