Re: Using GDB to debug ia64 files

2004-07-01 Thread Ashwin N
Larry Hall wrote:

 At 06:39 AM 6/30/2004, you wrote:

[...]

I'de like to add PDB support to the BFD library, but I have problems finding
my way into the code. Have an idea of what to read/do first ?
If I can manage to add support of the PDB format to BFD, do you think I will
be able to do what I'de like to ? Is there a sufficient support in GDB for
doing what I'de like to ?
 
 That's a question for the GDB folks so I'll leave that for them.  I'm not
 sure if there's a patent issue with PDB though.

The Wine folk seem to be interested in implementing this feature:
http://www.winehq.org/site/status_todo

-snip--
GDB
 * Add the MSC/PDB info support to gdb
-snip-

Couldn't find the current status of this work.


~ash
-- 
Ashwin N
http://ash.webhop.net/




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Using GDB to debug ia64 files

2004-06-30 Thread Vincent Girard-Reydet
OKay, so what soltuion do I have ?
I have downloaded Cygwi, especially the GDB 20030919-1 package (guess it's
what you call vanilla Windows GDB ?). I have tried to compile it for
architecture ia64-pc-cygwin, but it failed. Same for ia64-pc-elf.
I'de like to add PDB support to the BFD library, but I have problems finding
my way into the code. Have an idea of what to read/do first ?
If I can manage to add support of the PDB format to BFD, do you think I will
be able to do what I'de like to ? Is there a sufficient support in GDB for
doing what I'de like to ?

Last question : what is precisely this vanilla Windows version of GDB
you're talking of ? Where can I get it, if it's not the one of Cygwin ?

Vincent

 -Message d'origine-
 De : Larry Hall [mailto:[EMAIL PROTECTED]
 Envoye : mardi 29 juin 2004 16:21
 A : [EMAIL PROTECTED]; Cygwin List; [EMAIL PROTECTED]
 Objet : RE: Using GDB to debug ia64 files


 At 02:22 AM 6/29/2004, you wrote:
 I must add a precision : only the platform is ia64. My
 development machine
 is ia32, and I do cross-compilation to compile my BIOS.


 Sure but you'll need tools that work with ia64, just like your BIOS does.


 I never heard of this vanilla Windows version of gdb, have you
 informations about it ?


 See http://www.mingw.org/.  Lots of pure Win32 versions of tools are
 available there.


  Hi people of Cygwin  GDB,
  
  I'm trying to do some quite complicated debug stuff with Cygwin,
  and can't
  find how to do it. Would someone know how to help me ?
  Here is the problem :
  
  I have a BIOS compiled with the VC++ compiler for ia64. This
 BIOS is EFI
  (www.intel.com/technology/efi/) based.
  The BIOS is compiled under Windows, and it's a mandatory because
  some tools
  I'm using have not been ported to Linux.
  The BIOS is compiled in debug mode, thus generating Windows
 paths to the
  debug files (PDB format) in the image.
  
  I've written a GDB stub in my BIOS. What I wish is to use GDB on
  Cygwin to
  communicate with this stub and debug my BIOS.
  What I don't know is :
   - does GDB support COFF format and PDB format ? I guess the
  first is yes,
  and I read a thread on this archive about PDB format. I'm not
  sure GDB does
  understand it, but then I would add the PDB support to GDB.
 Does someone
  have doc about it (if the rest of the stuff is possible, of
 course), and
  know how long a process this can be ?
  
   - supposing I have GDB understanding both PDB and COFF format
  (or if I can
  make VC generate a debug file format that GDb can
 understand), will I be
  able to use it to debug my BIOS ? Or will GDB/Cygwin crash
 because if the
  Windows Paths ?
  
   - does GDB/Cygwin have a goog ia64 support ? I think
 GDB/Linux has been
  ported to ia64. Has this port been done to GDB/Cygwin ? If not,
  would it be
  long to transcript it from GDB/Linux to GDB/Cygwin ?
 
 
  Cygwin itself has not yet been ported to ia64.  It may work in Win32
  emulation mode (there have been successful reports of this IIRC) but
  that won't get you where you want to go.  In any case, it's not clear
  that adding Cygwin into this equation is helpful to you.  If you're
  building with VC++ and cannot or won't use VC++ to debug for
 some reason,
  you may as well focus on the vanilla Windows version of gdb, unless you
  find a benefit to using the Cygwin version.  In this light, this is a
  pure gdb issue.
 
 
  --
  Larry Hall  http://www.rfk.com
  RFK Partners, Inc.  (508) 893-9779 - RFK Office
  838 Washington Street   (508) 893-9889 - FAX
  Holliston, MA 01746
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Using GDB to debug ia64 files

2004-06-30 Thread Larry Hall
At 06:39 AM 6/30/2004, you wrote:
OKay, so what soltuion do I have ?
I have downloaded Cygwi, especially the GDB 20030919-1 package (guess it's
what you call vanilla Windows GDB ?). I have tried to compile it for
architecture ia64-pc-cygwin, but it failed. Same for ia64-pc-elf.
I'de like to add PDB support to the BFD library, but I have problems finding
my way into the code. Have an idea of what to read/do first ?
If I can manage to add support of the PDB format to BFD, do you think I will
be able to do what I'de like to ? Is there a sufficient support in GDB for
doing what I'de like to ?


That's a question for the GDB folks so I'll leave that for them.  I'm not
sure if there's a patent issue with PDB though.


Last question : what is precisely this vanilla Windows version of GDB
you're talking of ? Where can I get it, if it's not the one of Cygwin ?


A vanilla Windows version of GDB is GDB without Cygwin.  It targets the
Windows platform without the POSIX emulation that the Cygwin DLL provides.
I suggested it simply because it's not obvious to me that you need Cygwin 
under-the-hood to do what you want to do.  Keeping Cygwin in the equation
may just complicate what you want to do.  But that's for you to decide.  It's 
just a suggestion.

You can find a vanilla Windows version of GDB at http://www.mingw.org/.


 -Message d'origine-
 De : Larry Hall [mailto:[EMAIL PROTECTED]
 Envoye : mardi 29 juin 2004 16:21
 A : [EMAIL PROTECTED]; Cygwin List; [EMAIL PROTECTED]
 Objet : RE: Using GDB to debug ia64 files


 At 02:22 AM 6/29/2004, you wrote:
 I must add a precision : only the platform is ia64. My
 development machine
 is ia32, and I do cross-compilation to compile my BIOS.


 Sure but you'll need tools that work with ia64, just like your BIOS does.


 I never heard of this vanilla Windows version of gdb, have you
 informations about it ?


 See http://www.mingw.org/.  Lots of pure Win32 versions of tools are
 available there.


  Hi people of Cygwin  GDB,
  
  I'm trying to do some quite complicated debug stuff with Cygwin,
  and can't
  find how to do it. Would someone know how to help me ?
  Here is the problem :
  
  I have a BIOS compiled with the VC++ compiler for ia64. This
 BIOS is EFI
  (www.intel.com/technology/efi/) based.
  The BIOS is compiled under Windows, and it's a mandatory because
  some tools
  I'm using have not been ported to Linux.
  The BIOS is compiled in debug mode, thus generating Windows
 paths to the
  debug files (PDB format) in the image.
  
  I've written a GDB stub in my BIOS. What I wish is to use GDB on
  Cygwin to
  communicate with this stub and debug my BIOS.
  What I don't know is :
   - does GDB support COFF format and PDB format ? I guess the
  first is yes,
  and I read a thread on this archive about PDB format. I'm not
  sure GDB does
  understand it, but then I would add the PDB support to GDB.
 Does someone
  have doc about it (if the rest of the stuff is possible, of
 course), and
  know how long a process this can be ?
  
   - supposing I have GDB understanding both PDB and COFF format
  (or if I can
  make VC generate a debug file format that GDb can
 understand), will I be
  able to use it to debug my BIOS ? Or will GDB/Cygwin crash
 because if the
  Windows Paths ?
  
   - does GDB/Cygwin have a goog ia64 support ? I think
 GDB/Linux has been
  ported to ia64. Has this port been done to GDB/Cygwin ? If not,
  would it be
  long to transcript it from GDB/Linux to GDB/Cygwin ?
 
 
  Cygwin itself has not yet been ported to ia64.  It may work in Win32
  emulation mode (there have been successful reports of this IIRC) but
  that won't get you where you want to go.  In any case, it's not clear
  that adding Cygwin into this equation is helpful to you.  If you're
  building with VC++ and cannot or won't use VC++ to debug for
 some reason,
  you may as well focus on the vanilla Windows version of gdb, unless you
  find a benefit to using the Cygwin version.  In this light, this is a
  pure gdb issue.
 
 
  --
  Larry Hall  http://www.rfk.com
  RFK Partners, Inc.  (508) 893-9779 - RFK Office
  838 Washington Street   (508) 893-9889 - FAX
  Holliston, MA 01746
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/ 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Using GDB to debug ia64 files

2004-06-29 Thread Vincent Girard-Reydet
I must add a precision : only the platform is ia64. My development machine
is ia32, and I do cross-compilation to compile my BIOS.

I never heard of this vanilla Windows version of gdb, have you
informations about it ?

 Hi people of Cygwin  GDB,
 
 I'm trying to do some quite complicated debug stuff with Cygwin,
 and can't
 find how to do it. Would someone know how to help me ?
 Here is the problem :
 
 I have a BIOS compiled with the VC++ compiler for ia64. This BIOS is EFI
 (www.intel.com/technology/efi/) based.
 The BIOS is compiled under Windows, and it's a mandatory because
 some tools
 I'm using have not been ported to Linux.
 The BIOS is compiled in debug mode, thus generating Windows paths to the
 debug files (PDB format) in the image.
 
 I've written a GDB stub in my BIOS. What I wish is to use GDB on
 Cygwin to
 communicate with this stub and debug my BIOS.
 What I don't know is :
  - does GDB support COFF format and PDB format ? I guess the
 first is yes,
 and I read a thread on this archive about PDB format. I'm not
 sure GDB does
 understand it, but then I would add the PDB support to GDB. Does someone
 have doc about it (if the rest of the stuff is possible, of course), and
 know how long a process this can be ?
 
  - supposing I have GDB understanding both PDB and COFF format
 (or if I can
 make VC generate a debug file format that GDb can understand), will I be
 able to use it to debug my BIOS ? Or will GDB/Cygwin crash because if the
 Windows Paths ?
 
  - does GDB/Cygwin have a goog ia64 support ? I think GDB/Linux has been
 ported to ia64. Has this port been done to GDB/Cygwin ? If not,
 would it be
 long to transcript it from GDB/Linux to GDB/Cygwin ?


 Cygwin itself has not yet been ported to ia64.  It may work in Win32
 emulation mode (there have been successful reports of this IIRC) but
 that won't get you where you want to go.  In any case, it's not clear
 that adding Cygwin into this equation is helpful to you.  If you're
 building with VC++ and cannot or won't use VC++ to debug for some reason,
 you may as well focus on the vanilla Windows version of gdb, unless you
 find a benefit to using the Cygwin version.  In this light, this is a
 pure gdb issue.


 --
 Larry Hall  http://www.rfk.com
 RFK Partners, Inc.  (508) 893-9779 - RFK Office
 838 Washington Street   (508) 893-9889 - FAX
 Holliston, MA 01746



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Using GDB to debug ia64 files

2004-06-28 Thread Vincent Girard-Reydet
Hi people of Cygwin  GDB,

I'm trying to do some quite complicated debug stuff with Cygwin, and can't
find how to do it. Would someone know how to help me ?
Here is the problem :

I have a BIOS compiled with the VC++ compiler for ia64. This BIOS is EFI
(www.intel.com/technology/efi/) based.
The BIOS is compiled under Windows, and it's a mandatory because some tools
I'm using have not been ported to Linux.
The BIOS is compiled in debug mode, thus generating Windows paths to the
debug files (PDB format) in the image.

I've written a GDB stub in my BIOS. What I wish is to use GDB on Cygwin to
communicate with this stub and debug my BIOS.
What I don't know is :
 - does GDB support COFF format and PDB format ? I guess the first is yes,
and I read a thread on this archive about PDB format. I'm not sure GDB does
understand it, but then I would add the PDB support to GDB. Does someone
have doc about it (if the rest of the stuff is possible, of course), and
know how long a process this can be ?

 - supposing I have GDB understanding both PDB and COFF format (or if I can
make VC generate a debug file format that GDb can understand), will I be
able to use it to debug my BIOS ? Or will GDB/Cygwin crash because if the
Windows Paths ?

 - does GDB/Cygwin have a goog ia64 support ? I think GDB/Linux has been
ported to ia64. Has this port been done to GDB/Cygwin ? If not, would it be
long to transcript it from GDB/Linux to GDB/Cygwin ?

Thank you for your answers, may they be as precise as possible !

Vincent Girard-Reydet
-
Happy people are not in a hurry.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Using GDB to debug ia64 files

2004-06-28 Thread Larry Hall

At 10:46 AM 6/28/2004, you wrote:
Hi people of Cygwin  GDB,

I'm trying to do some quite complicated debug stuff with Cygwin, and can't
find how to do it. Would someone know how to help me ?
Here is the problem :

I have a BIOS compiled with the VC++ compiler for ia64. This BIOS is EFI
(www.intel.com/technology/efi/) based.
The BIOS is compiled under Windows, and it's a mandatory because some tools
I'm using have not been ported to Linux.
The BIOS is compiled in debug mode, thus generating Windows paths to the
debug files (PDB format) in the image.

I've written a GDB stub in my BIOS. What I wish is to use GDB on Cygwin to
communicate with this stub and debug my BIOS.
What I don't know is :
 - does GDB support COFF format and PDB format ? I guess the first is yes,
and I read a thread on this archive about PDB format. I'm not sure GDB does
understand it, but then I would add the PDB support to GDB. Does someone
have doc about it (if the rest of the stuff is possible, of course), and
know how long a process this can be ?

 - supposing I have GDB understanding both PDB and COFF format (or if I can
make VC generate a debug file format that GDb can understand), will I be
able to use it to debug my BIOS ? Or will GDB/Cygwin crash because if the
Windows Paths ?

 - does GDB/Cygwin have a goog ia64 support ? I think GDB/Linux has been
ported to ia64. Has this port been done to GDB/Cygwin ? If not, would it be
long to transcript it from GDB/Linux to GDB/Cygwin ?


Cygwin itself has not yet been ported to ia64.  It may work in Win32
emulation mode (there have been successful reports of this IIRC) but 
that won't get you where you want to go.  In any case, it's not clear
that adding Cygwin into this equation is helpful to you.  If you're 
building with VC++ and cannot or won't use VC++ to debug for some reason, 
you may as well focus on the vanilla Windows version of gdb, unless you 
find a benefit to using the Cygwin version.  In this light, this is a 
pure gdb issue.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Using GDB to debug ia64 files

2004-06-28 Thread Christopher Faylor
On Mon, Jun 28, 2004 at 04:46:26PM +0200, Vincent Girard-Reydet wrote:
Hi people of Cygwin  GDB,
find how to do it. Would someone know how to help me ?
Here is the problem :

I have a BIOS compiled with the VC++ compiler for ia64. This BIOS is EFI
(www.intel.com/technology/efi/) based.
The BIOS is compiled under Windows, and it's a mandatory because some tools
I'm using have not been ported to Linux.
The BIOS is compiled in debug mode, thus generating Windows paths to the
debug files (PDB format) in the image.

I've written a GDB stub in my BIOS. What I wish is to use GDB on Cygwin to
communicate with this stub and debug my BIOS.
What I don't know is :
 - does GDB support COFF format and PDB format ?

GDB supports PE format on Windows and uses STABS for debugging information.
If you build your own version of gdb you can make it understand almost
any format out there other than PDB.  GDB doesn't understand PDB.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/