diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-04-18 00:24:57 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-04-18 00:24:57 +0000 |
commit | 40301fb7ad85711ccd7e14cce8d8bc76510b6798 (patch) | |
tree | 55bc67e182feb3337c6d09e4605ca139ca8c6cd2 /gdb | |
parent | c61d23386a3b0d874bf771959dcc3930196d88c7 (diff) | |
download | gdb-40301fb7ad85711ccd7e14cce8d8bc76510b6798.zip gdb-40301fb7ad85711ccd7e14cce8d8bc76510b6798.tar.gz gdb-40301fb7ad85711ccd7e14cce8d8bc76510b6798.tar.bz2 |
Unused local variables in xcoffread.c:read_xcoff_symtab
gdb/ChangeLog:
* xcoffread.c (read_xcoff_symtab): Delete variables
last_csect_val and last_csect_sec and associated code.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/xcoffread.c | 15 |
2 files changed, 8 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac79217..e065689 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-04-17 Joel Brobecker <brobecker@adacore.com> + + * xcoffread.c (read_xcoff_symtab): Delete variables + last_csect_val and last_csect_sec and associated code. + 2012-04-17 Doug Evans <dje@google.com> * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 86ae8fb..fcabddb 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -986,9 +986,7 @@ read_xcoff_symtab (struct partial_symtab *pst) char *filestring = " _start_ "; /* Name of the current file. */ - const char *last_csect_name; /* Last seen csect's name and value. */ - CORE_ADDR last_csect_val; - int last_csect_sec; + const char *last_csect_name; /* Last seen csect's name. */ this_symtab_psymtab = pst; @@ -998,7 +996,6 @@ read_xcoff_symtab (struct partial_symtab *pst) last_source_file = NULL; last_csect_name = 0; - last_csect_val = 0; start_stabs (); start_symtab (filestring, (char *) NULL, file_start_addr); @@ -1171,14 +1168,8 @@ read_xcoff_symtab (struct partial_symtab *pst) SECT_OFF_TEXT (objfile)); file_end_addr = file_start_addr + CSECT_LEN (&main_aux); - if (cs->c_name && (cs->c_name[0] == '.' - || cs->c_name[0] == '@')) - { - last_csect_name = cs->c_name; - last_csect_val = cs->c_value; - last_csect_sec = secnum_to_section (cs->c_secnum, - objfile); - } + if (cs->c_name && (cs->c_name[0] == '.' || cs->c_name[0] == '@')) + last_csect_name = cs->c_name; } continue; |