[oss] [Assignment 1][Task 1] GDB - Ambiguities

Andrei Datcu datcuandrei at gmail.com
Mon Nov 23 23:52:19 EET 2015


On the 4th subtask we have to:
"break on malloc calls; print the return value after malloc finishes"

So, we have to break on every malloc call? What's the point, as the
program only calls it once? Also, malloc is recursive. How do we
handle that? What return value do we have to print? Do we have to
print each return value after each recursive call?

On the 9th subtask, we have to:
"break execution on printf calls while in this mode
print current frame and the EIP register each time this breakpoint triggers"

Again, do we have to break each printf call? If so, do we have to do a
conditional and only hit the breakpoint if the flag is is set in a
stack frame below the current one? What do you mean by printing the
current frame?

Thanks,
Andrei


More information about the oss mailing list