diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-10-14 13:15:34 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-10-14 13:15:34 +0000 |
commit | 70d4c67377f210c611d843df0865c7650fa9a4c6 (patch) | |
tree | be0ca3bacc5adb9bd7184cfbfaff5bf8e7a0375d /gdb | |
parent | 6a327e170e105295774bf3adadd3cb0af60e776d (diff) | |
download | gdb-70d4c67377f210c611d843df0865c7650fa9a4c6.zip gdb-70d4c67377f210c611d843df0865c7650fa9a4c6.tar.gz gdb-70d4c67377f210c611d843df0865c7650fa9a4c6.tar.bz2 |
2009-10-14 Tristan Gingold <gingold@adacore.com>
* solib-darwin.c: Remove trailing whitespaces.
(darwin_dyld_version_ok): Fix typo.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-darwin.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6c3ef5f..4b25940 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-10-14 Tristan Gingold <gingold@adacore.com> + + * solib-darwin.c: Remove trailing whitespaces. + (darwin_dyld_version_ok): Fix typo. + 2009-10-14 Andrew Stubbs <ams@codesourcery.com> * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index d93d025..d444b37 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -82,7 +82,7 @@ static int darwin_dyld_version_ok (void) { return dyld_all_image.version >= DYLD_VERSION_MIN - && dyld_all_image.version >= DYLD_VERSION_MAX; + && dyld_all_image.version <= DYLD_VERSION_MAX; } /* Read dyld_all_image from inferior. */ @@ -154,7 +154,7 @@ lookup_symbol_from_bfd (bfd *abfd, char *symname) symbol_table = (asymbol **) xmalloc (storage_needed); number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table); - + for (i = 0; i < number_of_symbols; i++) { asymbol *sym = symbol_table[i]; @@ -182,7 +182,7 @@ find_program_interpreter (void) if (exec_bfd) { bfd_mach_o_load_command *cmd; - + if (bfd_mach_o_lookup_command (exec_bfd, BFD_MACH_O_LC_LOAD_DYLINKER, &cmd) == 1) return cmd->command.dylinker.name_str; @@ -336,7 +336,7 @@ darwin_solib_create_inferior_hook (void) } if (!dyld_bfd) return; - + if (!inf->attach_flag) { /* We find the dynamic linker's base address by examining @@ -356,7 +356,7 @@ darwin_solib_create_inferior_hook (void) /* Now try to set a breakpoint in the dynamic linker. */ dyld_all_image_addr = lookup_symbol_from_bfd (dyld_bfd, "_dyld_all_image_infos"); - + bfd_close (dyld_bfd); if (dyld_all_image_addr == 0) |