What does 'inferior' mean in the term 'inferior debugger'?

后端 未结 2 1636
一向
一向 2021-02-05 04:49

I didn\'t really understand the explanation for inferior in the GDB manual, and google doesn\'t yield anything more helpful.

Can anyone explain \'inferior\' in simple te

2条回答
  •  无人及你
    2021-02-05 05:30

    "Inferior" is a general term to mean "something that you are using gdb to debug" -- generally a process or perhaps a kernel running on an emulator or on some other piece of hardware connected on a serial line.

    The term "Inferior debugger" comes up when you are using gdb to debug gdb. That is, you have TWO gdb processes running, one of which (the main gdb) is watching and controlling (setting breakpoints, single stepping, etc) the second (the "inferior debugger"). The inferior debugger is itself probably controlling some other program.

提交回复
热议问题