===============================
Enhanced Debugger Release Notes
===============================
These notes contain installation information, instructions for
debugging Itanium(TM)-based applications, and known issues and
limitations for the Enhanced Debugger (EDB).

Debugging Itanium(TM)-based applications
----------------------------------------
The Enhanced Debugger is a 32-bit application which runs on both Win32 and 
Win64 systems.  When run on an Win32 system, the Enhanced Debugger can debug
IA32 application locally and debug Itanium-based application remotely.
When run on an Win64 system, it can debug both IA32 application and Itanium-
based application locally.

-----------------
EDB Installation
-----------------
If the installation program detects a Pentium(r) III processor 
and Windows* NT 4 with Service Pack 5 (or newer), a driver is 
installed to allow debug of the SSE registers.   The driver, 
viaxxmmd, must be running to correctly view these registers. 

When run on a Win32 system, the installation software installs 
EDB and creates an appropriate environment to support the 
debugging of Win32 applications.  To debug Win64 applications, 
the same software package must be installed on the Win64 system. 
When installed on a Win64 system, the installation software 
also installs Remote Debugging Support. This includes the
installation of debug servers which may require additional setup
before the debugging of a Win64 application can occur. This setup
is described below along with instructions for loading an
Itanium-based application for debug.

Trouble-Shooting EDB Registration Errors
----------------------------------------
If EDB fails to execute due to a DLL registration error, perform 
the following steps to correct the problem:
 
1) Change to the EDB installation directory
2) Run register.bat 

Remote Debug Setup and Use
--------------------------
There are two debug servers provided with this release: the DCOM 
debug server and named-pipe/serial debug server. Several requirements
must be met in order to use the DCOM debug server if running the
debugger on a Win32 system to debug an Itanium-based application.
If these requirements can be met, then the DCOM debug server should be used.
It is the preferred server because it does not require manual startup and
communication is faster. 

Directions for using the DCOM debug server and for using 
the named-pipe/serial debug server follow. 

Using the DCOM Debug Server
---------------------------
If the debugger and Itanium-based application are running
on the same Win64 system, nothing special is required.

If the debugger is running on a remote Win32 system, you must meet
the following requirements in order to use the DCOM debug server.

Requirements for Using the DCOM debug server:
* Your user login name on the Win32 system must be the same as
  that on the Win64 system (no administrator privilege on the Win32
  system is required).
* Your user login on the Win64 system must have administrator 
  privileges.
* The Win64 system must be in the network domain.
* If EDB has not been installed on the Win64 machine yet,
  EDB DCOM server must be registered by running ia64/regedbsv64.bat.
* On some earlier versions of Microsoft Windows XP for IA64, you may also 
  need to use DCOMCNFG utility to manually configure the edb DCOM server 
  after it has been registered.  

  Normally, you wouldn't need this, but in case you do,
  a) Type "dcomcnfg" in a Win64 console window.
  b) Find the edb DCOM server at:
     Component Services->Computers->My Computer->DCOM Config->edbautosv
  c) Right click "edbautosv" and select "Properties"
  d) Select "Identity" tab, select "The launching user" radio button,
     if not already selected.
  e) Click "Apply" and "OK".

Once you are logged on the Win32 and the Win64 system is setup as
described above, you can proceed with loading the Itanium-based
application as described below.


Loading Itanium-based Application with DCOM Connection
------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Add a connection, specifying Win64*DCOM in the 'Platform' field and the
   name of the Win64 system in the 'Name of remote' field (e.g. \\mysystem).
4) Fill in the remaining fields in the Remote Load dialog and click Load.

The DCOM debug server will be started for you automatically and the
Itanium-based application will be loaded for debugging.


Trouble-Shooting the Use of DCOM Debug Server
---------------------------------------------
If the DCOM debug server (edbautosv.exe) is not properly registered on the
Win64 system, the error "Unable to connect - unknown error" will occur. 

If a COM error occurs during a Remote Load, check that the path and
filename of your application on the Win64 system match what was 
entered in the Remote Load dialog.


Using The Named-Pipe/Serial Debug Server
----------------------------------------
The named-pipe/serial debug server provides an alternative method
of performing remote debugging in the event that DCOM services
are unavailable.  Use of the DCOM debug server is preferred as
communication is faster and there is no requirement for manual
startup of the server.

The named-pipe/serial debug server must be manually started on the
Win64 system prior to doing a Remote Load command from the debugger.
Different connection points are created depending on how you start
this server. Start the server by entering a command from one of the
options described below in a Win64 command window.

Option 1: "edbsv" is the default invocation and it specifies that
you wish to use a named-pipe with a default name as the connection to
communicate between the host system running EDB and the remote debug server.
The default name given to the pipe is \\<NameOfSystem>\pipe\edb64pipe.

 
Option 2: "edbsv <NameOfPipe>" is the same as option 1 except that 
you choose the name of the pipe. For example, if you invoke the 
server as "edbsv debugpipe1" on a system named "jesse" then a pipe 
named \\jesse\pipe\debugpipe1 will be created. 

 
Option 3: "edbsv COM1" or "edbsv COM2" specifies that you wish to 
use a serial communication port for communication. This is a slow 
method of communication and is not the preferred method. Start the 
server with the argument COM1 (use COM2 only if you have a second 
serial port) to select the communication port to which you will 
connect. By using this option, it is assumed that COM1/COM2 port
of your Win64 system has been connected with COM1/COM2 port of your
Win32 system by a null-modem cable correctly.

Once the debug server is running on the Win64 system, you will be
able to use Remote Load to load an Itanium-based application for debug
as described below. 

Loading Itanium-based Application with Named-pipe Connection
-------------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Add a connection, specifying Win64*PIPE in the 'Platform' field and the
   name of the pipe you started in the 'Name of remote' field
   (e.g. \\mysystem\pipe\pipename).
4) Fill in the remaining fields in the Remote Load dialog and click Load.

Loading Itanium-based Application with Serial Connection
-------------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Select COM1 or COM2 from the Connection field drop-down list.
4) Fill in the remaining fields in the Remote Load dialog and click Load.

*** Remote connections must be re-created ***
Any remote connections you created using a previous release of EDB 
must be deleted and created again.  To delete a connection, simply 
select the connection name in the Remote Load dialog box and then hit 
the Delete key on the keyboard.


---------------------------------
EDB Issues and Known Limitations
---------------------------------

Examining Variables
-------------------
* Before attempting to view local (stack) variables, you must execute the
first source line in the function. This will ensure that the stack frame has
been completely set up.  Attempts to view local variables when the stack
frame is not completed will result in erroneous values or cause the
debugger to terminate abnormally.

Cursor Not Pointing At First Line of Code
-----------------------------------------
* The cursor indicating the current point of execution in the Source view may
not point at the first executable line of code when stepping into a function.
To make sure you do no try to view variables while they are not yet setup on
the stack, set a breakpoint on the second line of code in the function and run
to it.

Setting Breakpoints
-------------------
Attempting to set a breakpoint on a non-executable line at the start of a
function will result in the breakpoint being set on the second executable
line of that function rather than the first.  You must specify the first
executable line itself in order to place a breakpoint on it.


Unknown Type Information
------------------------
If the Type field in the Watch or Locals windows shows a numeric value preceded
by question marks (??) it is indicating the type information for that symbol can
not be found. You should check the compilation options for the application to see
if the "Separate Types" option has been selected.  You must disable this option
and re-compile or the debugger will not find the type information that gets stored
in a separate file. The Value field will likely contain erroneous information when
the type information cannot be found.

Restart Command
---------------
Do not use the restart command if more than one application is loaded
under the debugger. The wrong application may be loaded and executed.

Remote IA-32 debug
------------------
There is no support in this release for debugging IA-32 applications running
on a different system than the debugger.  Only debugging of remote
Itanium-based applications is supported.

Remote Debugging
----------------
* You must make sure that the local copy and remote copy of an
application being debugged remotely are identical. Mismatched
executables will result in unpredictable behavior and could cause
EDB to terminate abnormally.

* To delete a connection item from the "Remote File Load/connection"
list, you select the item, hit the Delete key, and then you must
dismiss the "Remote File Load" dialogue by clicking the "Cancel" button.
To delete multiple connections, you must repeat this entire procedure.
Deleting multiple connections without dismissing the dialogue in between
will not result in all of the selected connections being deleted.

* If the debug session appears to be hung from both local and 
remote system, you must terminate both the debugger and the remote 
debug server before you can restart the debugging session. To 
terminate the debugger, use the task manager. To terminate the 
remote debugger server, type <Ctrl-C> in the command window where 
the server was started. 

* Do not attempt to load another application before the debugger 
is finished loading the current application. The application is 
finished loading when the Disassembly window contains disassembled 
instructions.
 
C++ Language Support 
--------------------
* EDB will not display all members of a derived class.
For example, in the following code fragment EDB can display the 
data members of class Base by expanding pBase, but not the data
members of class Derived. 

  class Base { int baseMember; };
  class Derived : public Base { /* ... */ };
  Base* pBase = new Derived;<o:p </o:p 



FORTRAN Language Support
------------------------
* Applications linked using Microsoft's .NET development tools
generate debug information in the new DIA format. When debugging
an application of this type, if array subsections are passed as
arguments the debugger will not display such arguments correctly.
Also, the type information may be incorrect.

* Attempting to display a public variable defined in a MODULE  
from within the USE'ing program unit results in 
"symbol not found" error. The workaround is to prepend the 
name of the module to the variable name as in MODNAME::VARNAME. 
This error only occurs in Fortran applications compiled with 
the efl compiler for a Win64 system. 

* If you attempt to Step-Into an alternate entry point of a 
procedure/function, you will actually step over the call. Set 
a breakpoint at the alternate entry point of the 
procedure/function where you wish to stop in order to work 
around this problem. 

* The debugger cannot properly display pointers to arrays that 
are passed as arguments.

* You cannot use FORTRAN CHARACTER strings in an expression. If 
you have the declaration CHARACTER ONECHAR then the expression 
ONECHAR .EQ. 'A' in the watch window results in a "bad operand" 
error. You must enter the expression ONECHAR(1) .EQ. 'A' instead. 

* Most any type of variable with a length of 1 byte (e.g., BYTE 
or INTEGER(KIND=1)) will have its Type shown as CHARACTER(1).  
If the value is negative, EDB will display it incorrectly in 
decimal display mode. 

* Attempting to display a section of an array that the program 
defines to be an array section results in EDB displaying the 
wrong elements and values. To work around the problem, display 
either the entire array or individual elements of the array. 

* Use array section expressions to display small sections 
of large FORTRAN arrays. It can take more than a minute to 
retrieve the first thousand elements of an array. 


Conditional Breakpoints 
-----------------------
* In the event that a conditional expression cannot be
evaluated when the corresponding breakpoint is encountered,
a warning message is popped up and the condition is assumed
to be true (i.e., execution is halted). Check for incorrect
syntax or use of variables that are not in scope at the point
where the breakpoint occurred. Entering the expression in the
Watch window will often give a more specific reason as to why
the evaluation of that expression failed.

* Specifying a data breakpoint on a variable that is passed by
reference and using a variable in its conditional expression
may result in a failure to evaluate the condition.  This will
occur if the data breakpoint is hit when outside the scope of
the variable used in the expression.

* Skip count only applies once. If the Skip count is defined
to be n, the breakpoint will not be reported until after n
occurrences, but only the first time.  The breakpoint is reported
every time it is hit after that.


Source and Disassembly Views 
----------------------------
* If you cannot see the instruction pointer or any breakpoint 
icon in the windows, change your workspace background color 
to a different color. Use the Color dialog box from the 
Configuration menu. 


Window Focus 
------------
* When you float a window away from the Session Manager and 
give it focus, using any menu command from the Session Manager 
to do any action puts the focus back to the Session Manager 
rather than keeping the focus on the floating window. Use the 
toolbar buttons instead to keep the correct focus. 


Watch and Locals Views 
----------------------
* You must enter enum values as numeric values, not the enum 
string names. For example, for the following code: 

  enum Color {Red, Blue, Yellow}
  Color myColor = Red;

The value of myColor is shown as Red inside the Watch window, 
instead of 0. However, you cannot modify the value of myColor 
by entering Blue. You must type 1. EDB will then display the 
value as Blue.


--------------------------------------------------------------------
Intel, the Intel logo, Pentium, Pentium Pro, Itanium, and MMX are
trademarks or registered trademarks of Intel Corporation or its 
subsidiaries in the United States and other countries.

*Other brands and names are the property of their respective owners. 

Copyright(c) 2000 - 2002, Intel Corporation. All Rights Reserved.

