Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We then set a breakpoint at 0x000055555555516f : retq and looked at the stack and the memory just above where the current rsp is by

We then set a breakpoint at 0x000055555555516f <+38>: retq and looked at the stack and the memory just above where the current rsp is by using x/20xg $rsp - 24 Use the memory and the assembly provided earlier to answer the following questions. Breakpoint 3, 0x000055555555516f in func2 () (gdb) x/20xg $rsp-24 0x7fffffffe918: 0x0000000000000000 0x0000553255554040 0x7fffffffe928: 0x00007fffffffe950 0x00005555555551b1 0x7fffffffe938: 0x00007fffffffe96e 0x00007fffffffe966 0x7fffffffe948: 0x0000000000000000 0x00007fffffffe980 0x7fffffffe958: 0x0000555555555211 0x0000000000000000 0x7fffffffe968: 0x3632555555555060 0x0021356b63307231 0x7fffffffe978: 0x5451f5e58d070900 0x0000000000000000 0x7fffffffe988: 0x00007ffff7deb0b3 0x00007ffff7ffc620 0x7fffffffe998: 0x00007fffffffea78 0x0000000100000000 0x7fffffffe9a8: 0x00005555555551d6 0x0000555555555230 1. What value was stored to the stack by the instruction 0x0000555555555153 <+10>: mov %al,-0x4(%rbp) 2. At what address in the memory, was the value stored at in the instruction 0x0000555555555153 <+10>: mov %al,-0x4(%rbp) 3. What is the return address to func1 that was stored on the stack? 4. Where is the return address to func1 that was stored on the stack? 5. Where is the %rbp value that is pushed to the stack by the instruction 0x000055555555514d <+4>: push %rbp stored on the stack?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago