X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fexec.c;h=636d167bd64a5dc9f6143cda98e38b7929484c89;hb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;hp=4e68d1cf4435cd61321371299753be6a4016532d;hpb=17a912b6825ef7feaad6d9b4f5419f045fe3c8d0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/exec.c b/gdb/exec.c index 4e68d1cf44..636d167bd6 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -1,13 +1,14 @@ /* Work with executable files, for GDB. Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003, 2007 Free Software Foundation, Inc. + 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008 + Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -16,9 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include "defs.h" #include "frame.h" @@ -479,7 +478,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)