aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-darwin.c
diff options
context:
space:
mode:
authorTristan Gingold <tristan.gingold@adacore.com>2014-03-17 14:01:02 +0100
committerTristan Gingold <tristan.gingold@adacore.com>2014-03-17 14:10:06 +0100
commitd4ccb5e05c99c4006fe43ab08ebe13b7a74fc111 (patch)
tree3c50eb2c04bae2c8e185e04be070e7fc8df911af /gdb/solib-darwin.c
parenta2a0d05662961e9d59fe2ddf9026319d53022ac0 (diff)
downloadgdb-d4ccb5e05c99c4006fe43ab08ebe13b7a74fc111.zip
gdb-d4ccb5e05c99c4006fe43ab08ebe13b7a74fc111.tar.gz
gdb-d4ccb5e05c99c4006fe43ab08ebe13b7a74fc111.tar.bz2
darwin: handle recent version of dyld
gdb/ * solib-darwin.c (DYLD_VERSION_MAX): Increase value. (darwin_solib_create_inferior_hook): Emit a warning if version is unhandled.
Diffstat (limited to 'gdb/solib-darwin.c')
-rw-r--r--gdb/solib-darwin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index e8d4667..a9989ea 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -70,7 +70,7 @@ struct gdb_dyld_all_image_infos
/* Current all_image_infos version. */
#define DYLD_VERSION_MIN 1
-#define DYLD_VERSION_MAX 12
+#define DYLD_VERSION_MAX 14
/* Per PSPACE specific data. */
struct darwin_info
@@ -513,7 +513,10 @@ darwin_solib_create_inferior_hook (int from_tty)
darwin_load_image_infos (info);
if (!darwin_dyld_version_ok (info))
- return;
+ {
+ warning (_("unhandled dyld version (%d)"), info->all_image.version);
+ return;
+ }
create_solib_event_breakpoint (target_gdbarch (), info->all_image.notifier);