* dll.c (UNSPECIFIED_CORE_ADDR): New macro.

(match_dll): Use it.
This commit is contained in:
Doug Evans 2014-01-16 15:47:43 -08:00
parent e07e2682b4
commit 40ed484e74
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-01-16 Doug Evans <dje@google.com>
* dll.c (UNSPECIFIED_CORE_ADDR): New macro.
(match_dll): Use it.
2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
* target.h (target_ops) <read_btrace>: Change parameters and

View File

@ -20,6 +20,9 @@
#define get_dll(inf) ((struct dll_info *)(inf))
/* An "unspecified" CORE_ADDR, for match_dll. */
#define UNSPECIFIED_CORE_ADDR (~(CORE_ADDR) 0)
struct inferior_list all_dlls;
int dlls_changed;
@ -41,7 +44,7 @@ match_dll (struct inferior_list_entry *inf, void *arg)
struct dll_info *iter = (void *) inf;
struct dll_info *key = arg;
if (key->base_addr != ~(CORE_ADDR) 0
if (key->base_addr != UNSPECIFIED_CORE_ADDR
&& iter->base_addr == key->base_addr)
return 1;
else if (key->name != NULL