Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

245 lines
11 KiB

  1. #undef DEBUGGING
  2. #include <windows.h>
  3. #include <commctrl.h>
  4. #define VER_FILETYPE VFT_APP
  5. #define VER_FILESUBTYPE VFT2_UNKNOWN
  6. #define VER_FILEDESCRIPTION_STR "Windows NT GUI symbolic debugger"
  7. #define VER_INTERNALNAME_STR "windbg.exe\0"
  8. #define VER_ORIGINALFILENAME_STR "windbg.exe\0"
  9. #include <dbgver.h>
  10. #include "windbg.h"
  11. #include "dialogs.h"
  12. #include "menu.h"
  13. #include "dialogs.dlg"
  14. #include "resource.h"
  15. HELPCURSOR CURSOR "bitmaps/help.cur"
  16. WINDBGICON ICON "bitmaps/windbg.ico"
  17. DOCICON ICON "bitmaps/source.ico"
  18. CPUICON ICON "bitmaps/reg.ico"
  19. LOCALSICON ICON "bitmaps/local.ico"
  20. WATCHICON ICON "bitmaps/watch.ico"
  21. DISASMICON ICON "bitmaps/asm.ico"
  22. CMDICON ICON "bitmaps/ncmdwin.ico"
  23. SPADICON ICON "bitmaps/spad.ico"
  24. MEMORYICON ICON "bitmaps/memory.ico"
  25. CALLSTACKICON ICON "bitmaps/stack.ico"
  26. PROCTHREADICON ICON "bitmaps/procthrd.ico"
  27. //
  28. // Bitmaps for Windbg buttons.
  29. //
  30. IDB_BMP_TOOLBAR BITMAP "bitmaps/toolbar.bmp"
  31. MAIN_MENU MENU
  32. BEGIN
  33. POPUP "&File"
  34. BEGIN
  35. MENUITEM "&Open Source File...\tCtrl+O", IDM_FILE_OPEN
  36. MENUITEM "&Close Current Window", IDM_FILE_CLOSE
  37. MENUITEM SEPARATOR
  38. MENUITEM "Open &Executable...\tCtrl+E", IDM_FILE_OPEN_EXECUTABLE
  39. MENUITEM "A&ttach to a Process...\tF6", IDM_FILE_ATTACH
  40. MENUITEM "Open Crash &Dump...\tCtrl+D", IDM_FILE_OPEN_CRASH_DUMP
  41. MENUITEM "Connect To &Remote Session...\tCtrl+R", IDM_FILE_CONNECT_TO_REMOTE
  42. MENUITEM "&Kernel Debug...\tCtrl+K", IDM_FILE_KERNEL_DEBUG
  43. MENUITEM SEPARATOR
  44. MENUITEM "&Symbol File Path ...\tCtrl+S", IDM_FILE_SYMBOL_PATH
  45. MENUITEM "Source File &Path ...\tCtrl+P", IDM_FILE_SOURCE_PATH
  46. MENUITEM "&Image File Path ...\tCtrl+I", IDM_FILE_IMAGE_PATH
  47. MENUITEM SEPARATOR
  48. MENUITEM "Open &Workspace...\tCtrl+W", IDM_FILE_OPEN_WORKSPACE
  49. MENUITEM "Save Workspace", IDM_FILE_SAVE_WORKSPACE
  50. MENUITEM "Save Workspace &As...", IDM_FILE_SAVE_WORKSPACE_AS
  51. MENUITEM "Clear Workspace...", IDM_FILE_CLEAR_WORKSPACE
  52. MENUITEM "Delete Workspaces...", IDM_FILE_DELETE_WORKSPACES
  53. MENUITEM SEPARATOR
  54. MENUITEM "Map Network Drive...", IDM_FILE_MAP_NET_DRIVE,
  55. MENUITEM "Disconnect Network Drive...", IDM_FILE_DISCONN_NET_DRIVE,
  56. MENUITEM SEPARATOR
  57. POPUP "Recent &Files"
  58. BEGIN
  59. MENUITEM "Recent File", IDM_FILE_MRU_FILE1, GRAYED
  60. END
  61. MENUITEM SEPARATOR
  62. MENUITEM "E&xit\aAlt+F4", IDM_FILE_EXIT
  63. END
  64. POPUP "&Edit"
  65. BEGIN
  66. MENUITEM "Cu&t\tCtrl+X", IDM_EDIT_CUT
  67. MENUITEM "&Copy\tCtrl+C", IDM_EDIT_COPY
  68. MENUITEM "&Paste\tCtrl+V", IDM_EDIT_PASTE
  69. MENUITEM "Select &All\tCtrl+A", IDM_EDIT_SELECT_ALL
  70. MENUITEM "&Add to Command Output", IDM_EDIT_ADD_TO_COMMAND_HISTORY
  71. MENUITEM "Clear Command O&utput", IDM_EDIT_CLEAR_COMMAND_HISTORY
  72. MENUITEM SEPARATOR
  73. MENUITEM "&Find...\tCtrl+F", IDM_EDIT_FIND, GRAYED
  74. MENUITEM SEPARATOR
  75. MENUITEM "&Go to Address...\tCtrl+G", IDM_EDIT_GOTO_ADDRESS, GRAYED
  76. MENUITEM "Go to &Line...\tCtrl+L", IDM_EDIT_GOTO_LINE, GRAYED
  77. MENUITEM SEPARATOR
  78. MENUITEM "&Breakpoints...\tAlt+F9", IDM_EDIT_BREAKPOINTS
  79. MENUITEM "&Open/Close Log File...", IDM_EDIT_LOG_FILE
  80. MENUITEM SEPARATOR
  81. MENUITEM "&Properties...", IDM_EDIT_PROPERTIES, GRAYED
  82. END
  83. POPUP "&View"
  84. BEGIN
  85. MENUITEM "&Command\tAlt+1", IDM_VIEW_COMMAND
  86. MENUITEM "&Watch\tAlt+2", IDM_VIEW_WATCH
  87. MENUITEM "&Locals\tAlt+3", IDM_VIEW_LOCALS
  88. MENUITEM "&Registers\tAlt+4", IDM_VIEW_REGISTERS
  89. MENUITEM "&Memory\tAlt+5", IDM_VIEW_MEMORY
  90. MENUITEM "Call Stac&k\tAlt+6", IDM_VIEW_CALLSTACK
  91. MENUITEM "&Disassembly\tAlt+7", IDM_VIEW_DISASM
  92. MENUITEM "&Scratch Pad\tAlt+8", IDM_VIEW_SCRATCH
  93. MENUITEM "Processes and Threads\tAlt+9", IDM_VIEW_PROCESS_THREAD
  94. MENUITEM SEPARATOR
  95. MENUITEM "&Verbose Output\tCtrl+Alt+V", IDM_VIEW_TOGGLE_VERBOSE
  96. MENUITEM "Sho&w Version\tCtrl+Alt+W", IDM_VIEW_SHOW_VERSION
  97. MENUITEM SEPARATOR
  98. MENUITEM "Tool&bar", IDM_VIEW_TOOLBAR, CHECKED
  99. MENUITEM "&Status Bar", IDM_VIEW_STATUS, CHECKED
  100. MENUITEM SEPARATOR
  101. MENUITEM "Fo&nt...", IDM_VIEW_FONT
  102. MENUITEM "&Options...", IDM_VIEW_OPTIONS
  103. END
  104. POPUP "&Debug"
  105. BEGIN
  106. MENUITEM "&Go\tF5", IDM_DEBUG_GO
  107. MENUITEM "Go &Unhandled Exception", IDM_DEBUG_GO_UNHANDLED
  108. MENUITEM "Go &Handled Exception", IDM_DEBUG_GO_HANDLED
  109. MENUITEM "&Restart\tCtrl+Shift+F5", IDM_DEBUG_RESTART
  110. MENUITEM "Stop &Debugging\tShift+F5", IDM_DEBUG_STOPDEBUGGING
  111. MENUITEM "&Break\tCtrl+Break", IDM_DEBUG_BREAK
  112. MENUITEM SEPARATOR
  113. MENUITEM "Step &Into\tF11 or F8", IDM_DEBUG_STEPINTO
  114. MENUITEM "Step &Over\tF10", IDM_DEBUG_STEPOVER
  115. MENUITEM "Step Out\tShift+F11", IDM_DEBUG_STEPOUT
  116. MENUITEM "Run to &Cursor\tCtrl+F10 or F7", IDM_DEBUG_RUNTOCURSOR
  117. MENUITEM SEPARATOR
  118. MENUITEM "&Source Mode", IDM_DEBUG_SOURCE_MODE, CHECKED
  119. MENUITEM SEPARATOR
  120. MENUITEM "&Event Filters...", IDM_DEBUG_EVENT_FILTERS
  121. MENUITEM "&Modules...", IDM_DEBUG_MODULES
  122. MENUITEM SEPARATOR
  123. POPUP "&Kernel Connection"
  124. BEGIN
  125. MENUITEM "Cycle B&aud Rate\tCtrl+Alt+A", IDM_KDEBUG_TOGGLE_BAUDRATE
  126. MENUITEM "Cycle Initial Break\tCtrl+Alt+K", IDM_KDEBUG_TOGGLE_INITBREAK
  127. MENUITEM "Resynchronize\tCtrl+Alt+R", IDM_KDEBUG_RECONNECT
  128. END
  129. END
  130. POPUP "&Window"
  131. BEGIN
  132. MENUITEM "C&ascade", IDM_WINDOW_CASCADE
  133. MENUITEM "Tile &Horizontally", IDM_WINDOW_TILE_HORZ
  134. MENUITEM "Tile &Vertically", IDM_WINDOW_TILE_VERT
  135. MENUITEM "Arran&ge", IDM_WINDOW_ARRANGE
  136. MENUITEM "Arrange &Icons", IDM_WINDOW_ARRANGE_ICONS
  137. MENUITEM SEPARATOR
  138. MENUITEM "A&uto-arrange", IDM_WINDOW_AUTO_ARRANGE
  139. MENUITEM "A&rrange All Windows", IDM_WINDOW_ARRANGE_ALL
  140. MENUITEM "Overlay &Source", IDM_WINDOW_OVERLAY_SOURCE
  141. MENUITEM "Automatically Open &Disassembly", IDM_WINDOW_AUTO_DISASM
  142. END
  143. POPUP "&Help"
  144. BEGIN
  145. MENUITEM "&Contents", IDM_HELP_CONTENTS
  146. MENUITEM "&Index", IDM_HELP_INDEX
  147. MENUITEM "&Search", IDM_HELP_SEARCH
  148. MENUITEM SEPARATOR
  149. MENUITEM "&About...", IDM_HELP_ABOUT
  150. END
  151. END
  152. //
  153. // Default accelerators
  154. //
  155. MAIN_ACC ACCELERATORS
  156. BEGIN
  157. // File Menu
  158. "O", IDM_FILE_OPEN, VIRTKEY, CONTROL
  159. "E", IDM_FILE_OPEN_EXECUTABLE, VIRTKEY, CONTROL
  160. VK_F6, IDM_FILE_ATTACH, VIRTKEY
  161. "D", IDM_FILE_OPEN_CRASH_DUMP, VIRTKEY, CONTROL
  162. "K", IDM_FILE_KERNEL_DEBUG, VIRTKEY, CONTROL
  163. "P", IDM_FILE_SOURCE_PATH, VIRTKEY, CONTROL
  164. "S", IDM_FILE_SYMBOL_PATH, VIRTKEY, CONTROL
  165. "R", IDM_FILE_CONNECT_TO_REMOTE, VIRTKEY, CONTROL
  166. "I", IDM_FILE_IMAGE_PATH, VIRTKEY, CONTROL
  167. VK_F4, IDM_FILE_EXIT, VIRTKEY, ALT
  168. "W", IDM_FILE_OPEN_WORKSPACE, VIRTKEY, CONTROL
  169. // Edit Menu
  170. // CUA compliant & old style
  171. "X", IDM_EDIT_CUT, VIRTKEY, CONTROL
  172. VK_DELETE, IDM_EDIT_CUT, VIRTKEY, SHIFT
  173. "C", IDM_EDIT_COPY, VIRTKEY, CONTROL
  174. VK_INSERT, IDM_EDIT_COPY, VIRTKEY, CONTROL
  175. "V", IDM_EDIT_PASTE, VIRTKEY, CONTROL
  176. VK_INSERT, IDM_EDIT_PASTE, VIRTKEY, SHIFT
  177. "A", IDM_EDIT_SELECT_ALL, VIRTKEY, CONTROL
  178. "F", IDM_EDIT_FIND, VIRTKEY, CONTROL
  179. "G", IDM_EDIT_GOTO_ADDRESS, VIRTKEY, CONTROL
  180. "L", IDM_EDIT_GOTO_LINE, VIRTKEY, CONTROL
  181. VK_F9, IDM_EDIT_BREAKPOINTS, VIRTKEY, ALT
  182. VK_F9, IDM_EDIT_TOGGLEBREAKPOINT, VIRTKEY
  183. // Debug Menu
  184. VK_F5, IDM_DEBUG_GO, VIRTKEY
  185. VK_F5, IDM_DEBUG_RESTART, VIRTKEY, SHIFT, CONTROL
  186. VK_F5, IDM_DEBUG_STOPDEBUGGING, VIRTKEY, SHIFT
  187. VK_CANCEL, IDM_DEBUG_BREAK, VIRTKEY, CONTROL
  188. // Old Key
  189. VK_F7, IDM_DEBUG_RUNTOCURSOR, VIRTKEY
  190. // New Key
  191. VK_F10, IDM_DEBUG_RUNTOCURSOR, VIRTKEY, CONTROL
  192. // Old key
  193. VK_F8, IDM_DEBUG_STEPINTO, VIRTKEY
  194. // New key
  195. VK_F11, IDM_DEBUG_STEPINTO, VIRTKEY
  196. VK_F10, IDM_DEBUG_STEPOVER, VIRTKEY
  197. VK_F11, IDM_DEBUG_STEPOUT, VIRTKEY, SHIFT
  198. "A", IDM_KDEBUG_TOGGLE_BAUDRATE, VIRTKEY, CONTROL, ALT
  199. "D", IDM_KDEBUG_TOGGLE_DEBUG, VIRTKEY, CONTROL, ALT
  200. "K", IDM_KDEBUG_TOGGLE_INITBREAK,VIRTKEY, CONTROL, ALT
  201. "R", IDM_KDEBUG_RECONNECT, VIRTKEY, CONTROL, ALT
  202. "V", IDM_VIEW_TOGGLE_VERBOSE, VIRTKEY, CONTROL, ALT
  203. "W", IDM_VIEW_SHOW_VERSION, VIRTKEY, CONTROL, ALT
  204. "1", IDM_VIEW_COMMAND, VIRTKEY, ALT
  205. "2", IDM_VIEW_WATCH, VIRTKEY, ALT
  206. "3", IDM_VIEW_LOCALS, VIRTKEY, ALT
  207. "4", IDM_VIEW_REGISTERS, VIRTKEY, ALT
  208. "5", IDM_VIEW_MEMORY, VIRTKEY, ALT
  209. "6", IDM_VIEW_CALLSTACK, VIRTKEY, ALT
  210. "7", IDM_VIEW_DISASM, VIRTKEY, ALT
  211. "8", IDM_VIEW_SCRATCH, VIRTKEY, ALT
  212. "9", IDM_VIEW_PROCESS_THREAD, VIRTKEY, ALT
  213. "1", IDM_VIEW_COMMAND, VIRTKEY, ALT, SHIFT
  214. "2", IDM_VIEW_WATCH, VIRTKEY, ALT, SHIFT
  215. "3", IDM_VIEW_LOCALS, VIRTKEY, ALT, SHIFT
  216. "4", IDM_VIEW_REGISTERS, VIRTKEY, ALT, SHIFT
  217. "5", IDM_VIEW_MEMORY, VIRTKEY, ALT, SHIFT
  218. "6", IDM_VIEW_CALLSTACK, VIRTKEY, ALT, SHIFT
  219. "7", IDM_VIEW_DISASM, VIRTKEY, ALT, SHIFT
  220. "8", IDM_VIEW_SCRATCH, VIRTKEY, ALT, SHIFT
  221. "9", IDM_VIEW_PROCESS_THREAD, VIRTKEY, ALT, SHIFT
  222. END
  223. // Define the string table
  224. #include <res_str.i>