Basically what Im trying to do is to get key/IV which encrypt backup file from my ZTE ZXV10 H10L V2 router,the encryption is AES CRC. I have crosstool chain for my router and I have cross compile gdbserver. In my cspd binary there is function CSPDBGetFileEncryKey which copy key with strncpy.Here is the cspd binary. So I attach gdbserver to cspd proces./gdbserver4 192.168.1.68:1234 --attach 69But when I access to it with gdb Im in side nanosleep functionremote Thread 69 In: nanosleepand after few nexti actions router just reboot. So I tried to run cspd as stand alone process ./gdbserver4 192.168.1.68:1234 /bin/cspdbut main exit just normaly. So mine question is what would you do next how could I access CSPDBGetFileEncryKey disassemble CSPDBGetFileEncryKeyDump of assembler code for function CSPDBGetFileEncryKey:   0x004fd9d0 <+0>: lui gp,0x12   0x004fd9d4 <+4>: addiu   gp,gp,-15504   0x004fd9d8 <+8>: addu    gp,gp,t9   0x004fd9dc <+12>:    addiu   sp,sp,-40   0x004fd9e0 <+16>:    sw  ra,36(sp)   0x004fd9e4 <+20>:    sw  s2,32(sp)   0x004fd9e8 <+24>:    sw  s1,28(sp)   0x004fd9ec <+28>:    sw  s0,24(sp)   0x004fd9f0 <+32>:    sw  gp,16(sp)   0x004fd9f4 <+36>:    move    s1,a0   0x004fd9f8 <+40>:    beqz    a0,0x4fda54 <CSPDBGetFileEncryKey+132>   0x004fd9fc <+44>:    move    s0,a1   0x004fda00 <+48>:    beqz    a1,0x4fda58 <CSPDBGetFileEncryKey+136>   0x004fda04 <+52>:    li  v0,-1   0x004fda08 <+56>:    lw  s2,-30308(gp)   0x004fda0c <+60>:    lw  t9,-27820(gp)   0x004fda10 <+64>:    jalr    t9   0x004fda14 <+68>:    addiu   a0,s2,176   0x004fda18 <+72>:    lw  gp,16(sp)   0x004fda1c <+76>:    beqz    v0,0x4fda54 <CSPDBGetFileEncryKey+132>   0x004fda20 <+80>:    move    a0,s1   0x004fda24 <+84>:    lw  t9,-30340(gp)   0x004fda28 <+88>:    move    a1,zero   0x004fda2c <+92>:    jalr    t9   0x004fda30 <+96>:    move    a2,s0   0x004fda34 <+100>:   move    a0,s1   0x004fda38 <+104>:   addiu   a1,s2,176   0x004fda3c <+108>:   lw  gp,16(sp)   0x004fda40 <+112>:   lw  t9,-29812(gp)  <-----!   0x004fda44 <+116>:   jalr    t9   0x004fda48 <+120>:   addiu   a2,s0,-1   0x004fda4c <+124>:   b   0x4fda58 <CSPDBGetFileEncryKey+136>   0x004fda50 <+128>:   move    v0,zero   0x004fda54 <+132>:   li  v0,-1   0x004fda58 <+136>:   lw  ra,36(sp)   0x004fda5c <+140>:   lw  s2,32(sp)   0x004fda60 <+144>:   lw  s1,28(sp)   0x004fda64 <+148>:   lw  s0,24(sp)   0x004fda68 <+152>:   jr  ra   0x004fda6c <+156>:   addiu   sp,sp,40Here is same function from IDACSPDBGetFileEncryKey
remote deguging with gdbserver and how to access function
debugging;linux;gdb;remote