| CompOrg Fall 2003 Homework #3 FAQ | ||
| CompOrg Home | HW3 Description | ||
| Question: | I get "permission denied" when I try to run my bomb, and gdb won't let me run it. |
| Answer: | The file must have execute permission. Try this: chmod +x bomb |
|   |   |
| Question: | Is there a penalty if we guess wrong and the bomb explodes? |
| Answer: | No. I've disabled the code that sends email whenever the bomb explodes. |
|   |   |
| Question: | What is "al" and "ah" and how do I look at them using gdb? |
| Answer: | These are 8 bit registers,
which are actually just names for part of register eax (these names
come from the x86 instruction set which was the 16-bit Intel
instruction set). There are 4 16 bit registers, named
Registers gdb does not seem to let you look at these 8 bit registers, it
doesn't recognize the names |
|   |   |
| Question: | How do I view memory as ASCII values? |
| Answer: | You can use the 'c' format to the x command, for example the following will display 20 bytes starting at the address in %edx as decimal values and the equiv. ASCII characters: x/20x $edx You can also use the 's' format (which means string). You will see all the ASCII chars until a null (0 byte) is found. The following will display the ASCII string found at address 0xbfbbf4f4: x/s 0xbfbbf4f4 |
|   |   |
| Question: |
|
| Answer: |
|
|   |   |