GDB (API)
/home/stan/gdb/src/gdb/gdbtk/plugins/plugins.tcl
Go to the documentation of this file.
00001 # Only load the rhabout plugin if it was installed.
00002 foreach dir $::gdb_plugins {
00003   if {[file exists [file join $dir rhabout]]} {
00004     package require RHABOUT 1.0
00005     $Menu add command Other "About Red Hat" \
00006       {ManagedWin::open RHAbout} -underline 0
00007 
00008     # To activate the PlugIn sample, uncomment the next line
00009     set plugins_available 1
00010   }
00011 }
00012 
00013 # Only load the Intel Pentium plugin for x86 targets.
00014 if {[string match "i?86-*" $::GDBStartup(target_name)] && ![TargetSelection::native_debugging]} {
00015   package require INTELPENTIUM 1.0
00016 
00017   # Add a new cascading-style menu to plugin menu
00018   $Menu add cascade intel "Intel Pentium" 0
00019 
00020   # Add MSR selection dialog menu item.
00021   $Menu add command None "MSR Selection..." \
00022     {ManagedWin::open_dlg MsrSelDlg} -underline 0
00023 
00024   # Add CPU info menu item.
00025   $Menu add command None "CPU Information..." \
00026     display_cpu_info -underline 0
00027 
00028   # Activate the PlugIn.
00029   set plugins_available 1
00030 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines