inferior.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* Variables that describe the inferior process running under GDB:
  2. Where it is, why it stopped, and how to step it.
  3. Copyright (C) 1986 Free Software Foundation, Inc.
  4. GDB is distributed in the hope that it will be useful, but WITHOUT ANY
  5. WARRANTY. No author or distributor accepts responsibility to anyone
  6. for the consequences of using it or for whether it serves any
  7. particular purpose or works at all, unless he says so in writing.
  8. Refer to the GDB General Public License for full details.
  9. Everyone is granted permission to copy, modify and redistribute GDB,
  10. but only under the conditions described in the GDB General Public
  11. License. A copy of this license is supposed to have been given to you
  12. along with GDB so you can know your rights and responsibilities. It
  13. should be in a file named COPYING. Among other things, the copyright
  14. notice and this notice must be preserved on all copies.
  15. In other words, go ahead and share GDB, but don't try to stop
  16. anyone else from sharing it farther. Help stamp out software hoarding!
  17. */
  18. /* Pid of our debugged inferior, or 0 if no inferior now. */
  19. extern int inferior_pid;
  20. /* Last signal that the inferior received (why it stopped). */
  21. extern int stop_signal;
  22. /* Address at which inferior stopped. */
  23. extern CORE_ADDR stop_pc;
  24. /* Stack frame when program stopped. */
  25. extern FRAME stop_frame;
  26. /* Number of breakpoint it stopped at, or 0 if none. */
  27. extern int stop_breakpoint;
  28. /* Nonzero if stopped due to a step command. */
  29. extern int stop_step;
  30. /* Nonzero if stopped due to completion of a stack dummy routine. */
  31. extern int stop_stack_dummy;
  32. /* Range to single step within.
  33. If this is nonzero, respond to a single-step signal
  34. by continuing to step if the pc is in this range. */
  35. extern CORE_ADDR step_range_start; /* Inclusive */
  36. extern CORE_ADDR step_range_end; /* Exclusive */
  37. /* Stack frame address as of when stepping command was issued.
  38. This is how we know when we step into a subroutine call,
  39. and how to set the frame for the breakpoint used to step out. */
  40. extern CORE_ADDR step_frame;
  41. /* 1 means step over all subroutine calls.
  42. -1 means step over calls to undebuggable functions. */
  43. extern int step_over_calls;
  44. /* If stepping, nonzero means step count is > 1
  45. so don't print frame next time inferior stops
  46. if it stops due to stepping. */
  47. extern int step_multi;
  48. /* Store registers 0 and 1 here when about to pop a stack dummy frame. */
  49. extern REGISTER_TYPE stop_r0;
  50. extern REGISTER_TYPE stop_r1;
  51. /* Nonzero if pc has been changed by the debugger
  52. since the inferior stopped. */
  53. extern int pc_changed;