From c7b1adc9a01611d4bdc9a8e4c059189857c642a1 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 31 Jul 2007 21:49:21 +0000 Subject: 2007-07-31 Michael Snyder * exec.c (xfer_memory): Remove redundant condition from 'if'. --- gdb/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/exec.c') diff --git a/gdb/exec.c b/gdb/exec.c index 4e68d1c..9bf827b 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -479,7 +479,7 @@ xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, for (p = target->to_sections; p < target->to_sections_end; p++) { - if (overlay_debugging && section && p->the_bfd_section && + if (overlay_debugging && section && strcmp (section->name, p->the_bfd_section->name) != 0) continue; /* not the section we need */ if (memaddr >= p->addr) -- cgit v1.1