[oss] [Assignment 1] [Task 1] gdb-sha1 task5 (was: [Assignment 1] [Task 1] no m32 compilation flag)
Vlad Dumitrescu
vlad at dumitrescu.ro
Tue Nov 11 16:36:39 EET 2014
On Tue, Nov 11, 2014 at 4:23 AM, Alex Teaca <ionutalex.teaca at gmail.com> wrote:
>
> Hello,
>
> It's not clear for me the task 5 from the GDB section.
>
> 1. What means to print the stack ? We have to examine the memory between the
> ebp and esp pointers of the current frame stack ?
> 2. What registers must be printed ? The values of eax, ebx ..., or the
> registers saved on stack ?
> 3. Which is the third frame ? I see that the compute_hash is called from
> main. This means that the ebp from the compute_hash frame stack will point
> to the ebp from the main frame stack and in this case will be 0.
>
> Thanks, Alex
I think you might be over-thinking it. It's a simple exercise. :)
Check the GDB manual. You'll find everything you need there.
Vlad
More information about the oss
mailing list