diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-03-09 22:38:37 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-03-09 22:38:37 +0000 |
commit | 5fd1a349f04524afe86e4aa5c46390698d7901dd (patch) | |
tree | a13fb2206273feea390ea5276fb2785a0ed848ae /gdb/printcmd.c | |
parent | 36746093bb421cbad3a8afa2223a67565510f655 (diff) | |
download | gdb-5fd1a349f04524afe86e4aa5c46390698d7901dd.zip gdb-5fd1a349f04524afe86e4aa5c46390698d7901dd.tar.gz gdb-5fd1a349f04524afe86e4aa5c46390698d7901dd.tar.bz2 |
2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib.c (solib_contains_address_p): New function.
(solib_name_from_address): Use it.
* printcmd.c (display_uses_solib_p): Use it.
* solib.h (solib_contains_address_p): Declare it.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 8a746e4..23a2230 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1767,7 +1767,7 @@ display_uses_solib_p (const struct display *d, struct expression *const exp = d->exp; if (d->block != NULL - && solib_name_from_address (d->block->startaddr) == solib->so_name) + && solib_contains_address_p (solib, d->block->startaddr)) return 1; for (i = 0; i < exp->nelts; ) @@ -1783,7 +1783,7 @@ display_uses_solib_p (const struct display *d, SYMBOL_OBJ_SECTION (symbol); if (block != NULL - && solib_name_from_address (block->startaddr) == solib->so_name) + && solib_contains_address_p (solib, block->startaddr)) return 1; if (section && section->objfile == solib->objfile) |