diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-08-16 19:57:19 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-08-16 19:57:19 +0000 |
commit | 7be570e7ce77920e2e628a03bdfe2d295fc2568f (patch) | |
tree | a49512270bb021f1d5171b362dc973e28c97ca94 /gdb/objfiles.c | |
parent | ed288bb597072176e84fc8279707a3f2f475779b (diff) | |
download | gdb-7be570e7ce77920e2e628a03bdfe2d295fc2568f.zip gdb-7be570e7ce77920e2e628a03bdfe2d295fc2568f.tar.gz gdb-7be570e7ce77920e2e628a03bdfe2d295fc2568f.tar.bz2 |
import gdb-1999-08-16 snapshot
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 123c230..a763a66 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1003,3 +1003,23 @@ in_plt_section (pc, name) && STREQ (s->the_bfd_section->name, ".plt")); return (retval); } + +/* Return nonzero if NAME is in the import list of OBJFILE. Else + return zero. */ + +int +is_in_import_list (name, objfile) + char *name; + struct objfile *objfile; +{ + register int i; + + if (!objfile || !name || !*name) + return 0; + + for (i = 0; i < objfile->import_list_size; i++) + if (objfile->import_list[i] && STREQ (name, objfile->import_list[i])) + return 1; + return 0; +} + |