Course Solutions Uncategorized (Solved) : Chmod U X Toanalyze Make Tell Unix Executable Program Analyze Gdb Gdb Toanalyze Structure Q30219845 . . . .

(Solved) : Chmod U X Toanalyze Make Tell Unix Executable Program Analyze Gdb Gdb Toanalyze Structure Q30219845 . . . .

 

Do chmod u+x toAnalyze to make tell Unix that it is anexecutable program

Analyze it with gdb: gdb toAnalyze. It has a structure like:

int bar (/* some number of args */){ /* Some number of local vars */ return( /* something */ );}int foo (/* some number of args */){ /* Some if-statement */ /* Some number of local vars */ /* Some code, including call(s) to bar() */ return( /* something */ );}int main (){ /* Some number of local vars, including call(s) to foo() */ return(0);

}

5. (10 Points) Assembly language understanding (4): How many local variables does foo() have? Where are they on the stack? Give an offset from rbp from within foo ()s activation record.

5.

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post