Return Entire thread

C.O.D.E

1 Name: Anonymous 2021-02-18 14:50


(gdb) step

findMax (arr=0xbefff110, len=5, max=17) at max.c:17

(gdb) info arg

arr = 0xbefff110

len = 5

max = 17

(gdb) p arr

$3 = (int*) 0xbefff110

(gdb) p *arr

$4 = 17

(gdb) p [email protected]

$5 = {[0] = 0xbefff110,

[1] = 0xbefff12c,

[2] = 0x10378 <_start>,

[3] = 0xbefff12c,

[4] = 0xbefff12c}

(gdb) p *[email protected]

$6 = {[0] = 17,

[1] = 21,

[2] = 44,

[3] = 2,

[4] = 60}

(gdb) call printArr(arr, 5)

{17 21 44 2 60}

(gdb)


Return Entire thread
Name:
Leave this field blank: