Home > Back-end >  GDB script problem
GDB script problem

Time:01-16

Now has a 32-bit registers a, b, c, a function of each register is different, but I when I test the application using the GDB, need to read the three register, how can be implemented in a script or a command the three register is read out, the result like this format: register name: value; Or read this register, each bit or domain list, like: a name: value

CodePudding user response:

https://www.baidu.com/s? Wd=E5 GCC % % % % 86% 85% E5 B5 8 c % % E6 B1 BC % 96% % 87% % E7 AF E8 % % % % % E6 B3 AD 95

CodePudding user response:

GCC inline assembler syntax? What does this have to do with GDB script? Please explain for me, I am a novice is not very good

CodePudding user response:

To temporarily not by GDB or no show the custom data and the custom data value function, is I write a short program to complete the corresponding functional auxiliary debugging,

Don't rely on the debugger output complex data structure. And complex data structures to the entire content of every step of the process it using a small piece of code is easy to understand by yourself the format of the output, help to debug very much! Or can be said to be "infrastructure"

Reference:
Singly linked list data structure on data sort http://bbs.csdn.net/topics/392201633

Curb table swap any two nodes C source code (C pointer application ultimate challenge) http://download.csdn.net/detail/zhao4zhong1/5532495
  • Related