0aa5bcef5b91250535df3b1eaddb4d7b2079051c
[sws1-1415.git] / ass5a / sws1-assignment5-s4109503-s4202015 / exercise2b
1 (gdb) break function_b
2 (gdb) run
3 (gdb) info stack
4 (gdb) frame 0
5 (gdb) info frame
6
7 For knowing register values I did
8 (gdb) i r REGISTERNAME
9
10 For all values i did:
11 (gdb) x 0xADDRESS
12
13 Data Question
14 ===============================================================================
15 0 which frame it is
16 function_b which function the frame belongs to
17 0x7fffffffe850 the location (address in memory) of the frame
18 0x7fffffffe870 the location of the frame it was called by
19 0x40050e the value of the instruction pointer
20 0x7fffffffe870 the location of the return address,
21 0x400560 the value of the return address,
22 0x7fffffffe840 the value of the base pointer
23 0x7fffffffe840 the location of the saved base pointer,
24 0x7fffffffe860 the value of the saved base pointer,
25 0x400560 the value of the stack pointer
26 0x7fffffffe840 the address of the local variable
27
28 1 which frame it is
29 function_a which function the frame belongs to
30 0x7fffffffe870 the location (address in memory) of the frame
31 0x7fffffffe880 the location of the frame it was called by
32 0xfe9ee80040060ebf the value of the instruction pointer
33 0x7fffffffe860 the location of the return address
34 0x7fffffffe870 the value of the return address
35 0x7fffffffe870 the value of the base pointer
36 0x7fffffffe860 the location of the saved base pointer,
37 0x7fffffffe870 the value of the saved base pointer
38 0x7fffffffe870 the value of the stack pointer
39 0x7fffffffe860 the address of the local variable
40
41 2 which frame it is
42 main which function the frame belongs to
43 0x7fffffffe880 the location (address in memory) of the frame
44 0x7fffffffe870 the location of the frame it was called by
45 0xfe89e800400622bf the value of the instruction pointer
46 0x7fffffffe870 the location of the return address
47 0x7fffffffe870 the value of the return address
48 0x400560 the value of the base pointer
49 0x7fffffffe870 the location of the saved base pointer,
50 0x400560 the value of the saved base pointer
51 0x400560 the value of the stack pointer
52 0x7fffffffe870 the address of the local variable