Jump to content

GDB trouble ios8.4


Go to solution Solved by ITz_kser,

7 posts in this topic

Recommended Posts

Posted

I'm on 8.4 and since some update about 2 months ago ( either in Cydia, gnu debugger or possibly a supporting library ) GDB only returns debugging information in relation to the _mh_execute_header ().


0x001f000c in _mh_execute_header ()
4: $r2 = 2041261
3: $r1 = 1
2: $r0 = 19582444
1: x/i $pc  0x1f000c:  78 44 00 68                   stmdavs    r0, {r3, r4, r5, r6, r10, lr}

performing a disassemble command at this break returns hundreds of thousands of lines of bad commands:
 

<snip>
0x000a3b38 <_mh_execute_header+248632>:  00 68 90 f8                   undefined instruction 0xf8906800
0x000a3b3c <_mh_execute_header+248636>:  ad 10 11 f0                   undefined instruction 0xf01110ad
0x000a3b40 <_mh_execute_header+248640>:  01 0f 05 d0                   andle    r0, r5, r1, lsl #30
0x000a3b44 <_mh_execute_header+248644>:  01 6e 19 b9                   ldmdblt  r9, {r0, r9, r10, r11, sp, lr}
0x000a3b48 <_mh_execute_header+248648>:  03 21 08 91                   tstls    r8, r3, lsl #2
0x000a3b4c <_mh_execute_header+248652>:  6a f3 bc d2                   adcsle   pc, r12, #-1476395007   ; 0xa8000001
0x000a3b50 <_mh_execute_header+248656>:  02 98 00 f1                   undefined instruction 0xf1009802
</snip>

Any idea on what I can do to revert and have it work the way it was 2 months ago?

-M

Posted

Do you have windows because debuggers do not work on 8.4

 

I'm on 8.4 and since some update about 2 months ago ( either in Cydia, gnu debugger or possibly a supporting library ) GDB only returns debugging information in relation to the _mh_execute_header ().


0x001f000c in _mh_execute_header ()
4: $r2 = 2041261
3: $r1 = 1
2: $r0 = 19582444
1: x/i $pc  0x1f000c:  78 44 00 68                   stmdavs    r0, {r3, r4, r5, r6, r10, lr}

performing a disassemble command at this break returns hundreds of thousands of lines of bad commands:
 

<snip>
0x000a3b38 <_mh_execute_header+248632>:  00 68 90 f8                   undefined instruction 0xf8906800
0x000a3b3c <_mh_execute_header+248636>:  ad 10 11 f0                   undefined instruction 0xf01110ad
0x000a3b40 <_mh_execute_header+248640>:  01 0f 05 d0                   andle    r0, r5, r1, lsl #30
0x000a3b44 <_mh_execute_header+248644>:  01 6e 19 b9                   ldmdblt  r9, {r0, r9, r10, r11, sp, lr}
0x000a3b48 <_mh_execute_header+248648>:  03 21 08 91                   tstls    r8, r3, lsl #2
0x000a3b4c <_mh_execute_header+248652>:  6a f3 bc d2                   adcsle   pc, r12, #-1476395007   ; 0xa8000001
0x000a3b50 <_mh_execute_header+248656>:  02 98 00 f1                   undefined instruction 0xf1009802
</snip>

Any idea on what I can do to revert and have it work the way it was 2 months ago?

-M

Posted

I'm still using Win7.   But GDB worked perfectly fine 2 months ago with my same Windows PC setup at that time.  ( there have been a couple of monthly updates since then ... ).   I downgraded the GNU Debugger install from cydia.radare.org back to version 1518-12 hoping that would fix it ... but now I get the "Illegal instruction: 4" error.

 

It's very frustrating as I was able to use this in October and now it doesn't work :wallbash:

 

@ITz_kser  I would love to use LLDB however I have not been able to figure out how to use it with a Windows PC.   Can you point me to a correct setup instruction?

 

-M

  • Solution
Posted

Sadly it's hard to use LLDB on windows I test it and i got errors you can follow DiDA tutorial you won't lose anything

here

And watchpoint in GDB will crash your game so you need to use LLDB

if DiDA tutorial didn't work for you then you can lunch OS X on your PC using Virtualbox this's what i did ^_^

Posted

Thanks  ITz_kser !  I was able to get the LLDB debugserver running and I'm trying out the various commands.  

 

Woo!

 

-M

If it works, then tell me! Never gotten LLDB and GDB to work on Windows. :)

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