This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA/RFC] blockframe.c Fix errorneous addr check


Hi,

This patch fix wrong detection of belonging addr to startup file:
if call main is last instuction in crt0, then 
inside_entry_file erroneously return false.

Ok to commit?
Andrey 

P.S. Possible this bug not in this func, but in symbol reader.


2002-06-27 Andrey Volkov <avolkov@transas.com>

    *blockframe.c (inside_entry_file): Fixed erroneous check that 
    addr is in startup file.
    
Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.30
diff -u -r1.30 blockframe.c
--- blockframe.c	26 Jun 2002 15:28:46 -0000	1.30
+++ blockframe.c	27 Jun 2002 16:33:10 -0000
@@ -113,7 +113,7 @@
 	return 0;
     }
   return (addr >= symfile_objfile->ei.entry_file_lowpc &&
-	  addr < symfile_objfile->ei.entry_file_highpc);
+	  addr <= symfile_objfile->ei.entry_file_highpc);
 }
 
 /* Test a specified PC value to see if it is in the range of addresses


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]