Question: Programming in C. Use the code below to answer the value and purpose section of the table below. Breakpoint 1, 0x00000000004004d1 in bar () Missing

Programming in C.
Use the code below to answer the value and purpose section of the table below.
 Programming in C. Use the code below to answer the value
and purpose section of the table below. Breakpoint 1, 0x00000000004004d1 in bar

Breakpoint 1, 0x00000000004004d1 in bar () Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.e17.x86_64 (gdb) c Continuing Breakpoint 1, 0x00000000004004d1 in bar (gdb) stepi 4 in bar () (gdb) stepi 0x80000000004004d7 in bar() (gdb) stepi 0x00000000004004d9 in bar() (gdb) stepi 0x00000000004004dc in bar () (gdb) stepi 0x00000000004004df in bar() (gdb) info reg rax rbx rcx rdx 0x4 0x0 0x400560 4195680 0x2 0x4 0x2 0x7fffffffdbd0 0x7fffffffdbd0 0x7fffffffdbd0 ex7fffffffdbde 0x7ffff7dd5e80 140737351868032 0x0 0x7fffffffd760 140737488344928 0x7ffff7a30350 140737348043600 0x4003e0 4195296 0x7fffffffdd30 140737488346416 0x0 0x0 0x4004df 0x4004df 0x202 [IF ] 0x33 0x2b 0x0 0x0 0x0 0x0 rdi rbp rsp r 8 r 9 r12 r13 r14 r15 eflags CS 51 43 ds es 8s Write the activation record for bar() when %rip gets to 0x00000000004004df. Under Value put the numeric value held at that address. Under Purpose put one of the following: a. not part of bar()'s activation record b. argument to bar() c. the address inx foo) to which rip should return d. the stored rbp address for foo() e. local variable to bar() f in the activation record of bar(), but not used Address: Value: Purpose: rbp 0x10 rbp 0x8 rbp+ 0x4 rbp 0x4 rbp-0x8 rbp - 0xC rbp - 0x10 rbp-0x14 rbp 0x18

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!