aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-01-16 15:47:43 -0800
committerDoug Evans <dje@google.com>2014-01-16 15:47:43 -0800
commit40ed484e74e74fa116095eaf29e44b1cfee58811 (patch)
tree9ab82a41622b0366e1a7ad79317aa9f4ab06817b /gdb/gdbserver
parente07e2682b4c10f4d7ca14894189d8dbee761bf8f (diff)
downloadgdb-40ed484e74e74fa116095eaf29e44b1cfee58811.zip
gdb-40ed484e74e74fa116095eaf29e44b1cfee58811.tar.gz
gdb-40ed484e74e74fa116095eaf29e44b1cfee58811.tar.bz2
* dll.c (UNSPECIFIED_CORE_ADDR): New macro.
(match_dll): Use it.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/dll.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 5884639..c387aa6 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
diff --git a/gdb/gdbserver/dll.c b/gdb/gdbserver/dll.c
index 63b2ed0..be0e01f 100644
--- a/gdb/gdbserver/dll.c
+++ b/gdb/gdbserver/dll.c
@@ -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