Jump to content

PuTTY problem unrecognized arm osabi


Go to solution Solved by superkhung,

10 posts in this topic

Recommended Posts

Posted
warning: Unrecognized osabi 0 in arm_set_osabi_from_host_info

 

This line is preventing me from doing anything related to GDB. I can't attach the binary or watch an offset. Please help someone!

  • Solution
Posted

it's not putty, seems that you are trying gdb on an device that it cpu arch wont support by gdb (should be arm64). Use lldb instead.

U can see this in Apple's code

switch (info.osabi)
    {
      case GDB_OSABI_DARWIN:
    info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, 0);
        break;
      case GDB_OSABI_DARWINV6:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_6);
        break;
      case GDB_OSABI_DARWINV7:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7);
        break;
      case GDB_OSABI_DARWINV7F:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7f);
        break;
      case GDB_OSABI_DARWINV7K:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7k);
        break;
      default:
        warning ("Unrecognized osabi %d in arm_set_osabi_from_host_info", (int) info.osabi);
    }
Posted

 

it's not putty, seems that you are trying gdb on an device that it cpu arch wont support by gdb (should be arm64). Use lldb instead.

U can see this in Apple's code

switch (info.osabi)
    {
      case GDB_OSABI_DARWIN:
    info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, 0);
        break;
      case GDB_OSABI_DARWINV6:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_6);
        break;
      case GDB_OSABI_DARWINV7:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7);
        break;
      case GDB_OSABI_DARWINV7F:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7f);
        break;
      case GDB_OSABI_DARWINV7K:
        info.bfd_arch_info = bfd_lookup_arch (bfd_arch_arm, bfd_mach_arm_7k);
        break;
      default:
        warning ("Unrecognized osabi %d in arm_set_osabi_from_host_info", (int) info.osabi);
    }

Thanks :)

 

Now I have to get VMWare...

Posted

This happens to me all the time on my iPad Air. It doesn't really do anything except watch points won't really work properly :/ using break points work perfectly :) I always get this message on my iPad Air.

Posted

Yes, just don't mind this message. :)

Posted

this is not puttys fault , again

It's a problem that happens on PuTTY so it's a "PuTTY Problem". :p

Posted

I still can't do gdb. PuTTY is refusing to let me do anything. I get errors when attaching a binary, or even setting a watchpoint or breakpoint.

Posted

I still can't do gdb. PuTTY is refusing to let me do anything. I get errors when attaching a binary, or even setting a watchpoint or breakpoint.

Are the errors as you see above?

Posted

I still can't do gdb. PuTTY is refusing to let me do anything. I get errors when attaching a binary, or even setting a watchpoint or breakpoint.

 

What's your idevice ? If it's running arm64, u can only debug app with lldb and debugserver (can find it in xcode) since apple only support gdb up to armv7

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines