Machine-translated by Google. Questions are authored in English.
Top

Discussion

Assertion (A): Symbol table information must be preserved in the object file for a debugger to be useful.
Reason (R): Without it the debugger has no way to relate a machine address to a source level name or type.

  • A.Both A and R are true, but R is not the correct explanation of A
  • B.A is true but R is false
  • C.A is false but R is true
  • D.Both A and R are true, and R is the correct explanation of A

Answer: D

Both are true and the reason gives the mechanism, and it explains why stripped binaries are hard to debug. Optimisation complicates matters further, since a variable may live in different places at different points or nowhere at all.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.