diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-05-26 19:40:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-05-26 19:40:53 +0000 |
commit | bb02f434acf46a33f9ccdf2345e8c84520d5788a (patch) | |
tree | f1fad43f85040dc267c45b6b106cf30060543cee | |
parent | 54b3292ad14c86347e2f09db4061f9fc25b6cf00 (diff) | |
download | gdb-bb02f434acf46a33f9ccdf2345e8c84520d5788a.zip gdb-bb02f434acf46a33f9ccdf2345e8c84520d5788a.tar.gz gdb-bb02f434acf46a33f9ccdf2345e8c84520d5788a.tar.bz2 |
2004-05-26 Andrew Cagney <cagney@gnu.org>
* corefile.c (core_create_line_syms): Per ISO C '90, move
vma_high's declaration to the function's start.
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/corefile.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index ccad012..863eb8a 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2004-05-26 Andrew Cagney <cagney@gnu.org> + + * corefile.c (core_create_line_syms): Per ISO C '90, move + vma_high's declaration to the function's start. + 2004-05-26 Ben Elliston <bje@au.ibm.com> * gprof.c (main): Clean up some more. diff --git a/gprof/corefile.c b/gprof/corefile.c index 56c6d23..f987c72 100644 --- a/gprof/corefile.c +++ b/gprof/corefile.c @@ -590,6 +590,7 @@ core_create_line_syms () const char *filename; int prev_line_num; Sym_Table ltab; + bfd_vma vma_high; /* Create symbols for functions as usual. This is necessary in cases where parts of a program were not compiled with -g. For @@ -612,7 +613,7 @@ core_create_line_syms () ltab.len = 0; prev_line_num = 0; - bfd_vma vma_high = core_text_sect->vma + core_text_sect->_raw_size; + vma_high = core_text_sect->vma + core_text_sect->_raw_size; for (vma = core_text_sect->vma; vma < vma_high; vma += min_insn_size) { unsigned int len; |