tree: f57ea92403aced5fc59957b02564687df07323b5 [path history] [tgz]
  1. integration_tests/
  2. meta/
  3. test_data/
  4. agent_configuration.cc
  5. agent_configuration.h
  6. align.cc
  7. align.h
  8. align_unittest.cc
  9. arch.cc
  10. arch.h
  11. arch_arm64.cc
  12. arch_arm64_unittest.cc
  13. arch_types.h
  14. arch_x64.cc
  15. arch_x64_unittest.cc
  16. automation_handler.cc
  17. automation_handler.h
  18. automation_instruction_executor.cc
  19. automation_instruction_executor.h
  20. automation_instruction_executor_unittest.cc
  21. binary_launcher.h
  22. breakpoint.cc
  23. breakpoint.h
  24. breakpoint_unittest.cc
  25. BUILD.gn
  26. component_manager.h
  27. debug_agent.cc
  28. debug_agent.h
  29. debug_agent_unittest.cc
  30. debug_registers.h
  31. debug_registers_arm64.cc
  32. debug_registers_arm64_unittest.cc
  33. debug_registers_x64.cc
  34. debug_registers_x64_unittest.cc
  35. debugged_job.cc
  36. debugged_job.h
  37. debugged_job_unittest.cc
  38. debugged_process.cc
  39. debugged_process.h
  40. debugged_process_unittest.cc
  41. debugged_thread.cc
  42. debugged_thread.h
  43. debugged_thread_breakpoint_unittest.cc
  44. debugged_thread_unittest.cc
  45. elf_utils.cc
  46. elf_utils.h
  47. exception_handle.h
  48. general_registers.cc
  49. general_registers.h
  50. hardware_breakpoint.cc
  51. hardware_breakpoint.h
  52. hardware_breakpoint_unittest.cc
  53. job_handle.cc
  54. job_handle.h
  55. limbo_provider.h
  56. local_stream_backend.cc
  57. local_stream_backend.h
  58. main.cc
  59. main_launcher.cc
  60. mock_component_manager.cc
  61. mock_component_manager.h
  62. mock_debug_agent_harness.cc
  63. mock_debug_agent_harness.h
  64. mock_exception_handle.h
  65. mock_job_handle.cc
  66. mock_job_handle.h
  67. mock_job_tree.cc
  68. mock_job_tree.h
  69. mock_limbo_provider.cc
  70. mock_limbo_provider.h
  71. mock_process.cc
  72. mock_process.h
  73. mock_process_breakpoint.h
  74. mock_process_handle.cc
  75. mock_process_handle.h
  76. mock_stream_backend.h
  77. mock_suspend_handle.h
  78. mock_system_interface.cc
  79. mock_system_interface.h
  80. mock_thread.cc
  81. mock_thread.h
  82. mock_thread_handle.cc
  83. mock_thread_handle.h
  84. module_list.cc
  85. module_list.h
  86. process_breakpoint.cc
  87. process_breakpoint.h
  88. process_handle.h
  89. process_handle_observer.h
  90. README.md
  91. remote_api.h
  92. remote_api_adapter.cc
  93. remote_api_adapter.h
  94. software_breakpoint.cc
  95. software_breakpoint.h
  96. software_breakpoint_unittest.cc
  97. stdio_handles.h
  98. suspend_handle.h
  99. system_interface.cc
  100. system_interface.h
  101. test_utils.h
  102. thread_handle.h
  103. time.h
  104. time_zircon_unittest.cc
  105. unwind.cc
  106. unwind.h
  107. unwind_unittest.cc
  108. watchpoint.cc
  109. watchpoint.h
  110. watchpoint_info.h
  111. watchpoint_unittest.cc
  112. zircon_binary_launcher.cc
  113. zircon_binary_launcher.h
  114. zircon_component_manager.cc
  115. zircon_component_manager.h
  116. zircon_exception_handle.cc
  117. zircon_exception_handle.h
  118. zircon_job_handle.cc
  119. zircon_job_handle.h
  120. zircon_limbo_provider.cc
  121. zircon_limbo_provider.h
  122. zircon_limbo_provider_unittest.cc
  123. zircon_process_handle.cc
  124. zircon_process_handle.h
  125. zircon_suspend_handle.cc
  126. zircon_suspend_handle.h
  127. zircon_system_interface.cc
  128. zircon_system_interface.h
  129. zircon_system_interface_unittest.cc
  130. zircon_thread_handle.cc
  131. zircon_thread_handle.h
  132. zircon_utils.cc
  133. zircon_utils.h
  134. zxdb_test_app.cc
src/developer/debug/debug_agent/README.md

Debug agent

This is the code for the backend of the Fuchsia debugger. This backend runs on the target Fuchsia computer (Linux or Mac) and talks via IPC (code in ../ipc) to the zxdb frontend (code in ../zxdb) running on the developer's workstation.

User documentation

Please see the debugger setup and usage documentation.

Manual testing

When changing anything related to process launching:

  • run /boot/bin/ps
  • run -c fuchsia-pkg://fuchsia.com/debug_agent#meta/debug_agent.cmx or some other component URL.
  • attach some_filter When a process by that name already exists.
  • A new process caught by filter (technically 2 handles this, but it's good to be explicit).
  • attach 56421 Attach by PID and name are different code paths in the agent!