![]() ![]() Si - Execute current (machine) instruction of a program that has been running if it's a call to a function, step into the function. S - Execute current source code statement of a program that has been running if it's a call to a function, step into the function. N - Execute current source code statement of a program that has been running if it's a call to a function, the entire function is executed. Here are some additional commands that will be useful in this section: We introduced some gdb commands in Chapter 2. Simple program to illustrate the use of gdb to view CPU registers. * Demonstrate use of gdb to examine registers, etc. You will get a chance to see this in the exercises at the end of this section. There are situations where the compiler may not be able to honor our request. The register modifier is “advisory” only. I have used the register storage class modifier to request that the compiler use a CPU register for the int* ptr variable. ![]() We will use the program in Listing 8.5.1 to illustrate the use of gdb to view the contents of the CPU registers. Section 8.5 Using gdb to View the CPU Registers
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |