public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: root@jacob.remcomp.fr (root)
To: lwerzinger@krones.de (Lothar Werzinger)
Cc: gnu-win32@cygnus.com
Subject: Re: (Kein "Betreff")
Date: Thu, 29 Jan 1998 04:47:00 -0000	[thread overview]
Message-ID: <m0xxotp-000AKCC@jacob.remcomp.fr> (raw)
In-Reply-To: <34CED472.9B2FCA66@krones.de>

> 
> Hi,
> 
> as I got no reply until now, I try to resen this (slightly modified)
> message
> 
> Is it possible to debug executables which were produced by the MSVC++
> (DevStudio 97 Service Pack 2) compiler with gdb? As far as I know, gdb
> supports COFF. but when I load the executable, gdb complains about
> finding no debug information.

It finds no debug information it can understand, that is.
gdb uses (as for as I know) a format for the debug information called
"stabs", that was developed in Unix, and stores a textual representation
(mostly ascii) of the types and variables used in the program. In this
way the debugger can know what is going on.

MSVC compilers generate debug information in a format called NB09, a
mostly binary representation, and thus much more compact than stabs.
I have written a debugger for windows for my system lcc-win32. I used the
MSVC format, so my code is compatible with MSVC and can be debugged with
a real debugger. Cygnus choose to leave gdb alone, so gdb uses a format
that no one else in the windows world will understand.

> 
> As far as I found out gdb is capable of loading and executing the
> binary. The only thing I would need, is a converter that makes a gdb
> symbol file out of the *.pdb files of the MSVC++ compiler. 

The .pdb format is (as far as I know) undocumented, as opposed to the NB09.

> Has anybody
> written such a program or is doing so? 

I have proposed several times to the people of cygnus to write a converter
but they manifested no interest. Obviously I will not do it for free, since
gdb is a product commercialized by cygnus and I do not feel like working for
free so somebody else makes money out of it. Nothing against people making
money obviously, but if I contribute to a commercial undertaking I want my
share of it.

> Besides the fact that the .pdb
> files are MS and binary, it should be just a question of demangling the
> MS names and remangle them in a way gdb understands them or?
> 

Making that program is a very difficult undertaking. I think it would take
me 2 months full time. It is 'just a question' of:

1) Reading all the symbolic information from the program database.
2) Reading the type information.
3) Reading the line number information.
4) Reading the files information.
5) Generating the stabs information.
and finally
6) Reorganize the executable file so that incorporates the .stabs information
   in it.

It is just a question of writing it of course... :-)

-- 
Jacob Navia	Logiciels/Informatique
41 rue Maurice Ravel			Tel 01 48.23.51.44
93430 Villetaneuse 			Fax 01 48.23.95.39
France
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  parent reply	other threads:[~1998-01-29  4:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-27 22:46 Lothar Werzinger
1998-01-28 14:54 ` Vadim V. Sytnikov
1998-01-28 15:02 ` gdb and executables, windbg in ms platform sdf Patrick J. Fay
1998-01-29  4:47   ` Lothar Werzinger
1998-01-29  4:47 ` root [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-30 14:15 <kein Betreff> sabine.petry
2006-06-06 20:21 Maurice Hüllein
2006-06-07  2:48 ` Larry Hall (Cygwin)
2006-06-07 22:35   ` Serethos
2006-06-08  7:14     ` Larry Hall (Cygwin)
1999-03-02  8:04 No Subject Anjlica Malla
     [not found] ` < 000901be64c6$90bd9b80$89055280@oemcomputer >
1999-03-04 15:14   ` <kein Betreff> Michael Hirmke
1999-03-31 19:45     ` Michael Hirmke
1998-05-27  2:28 No Subject Gilbert Mak
1998-05-28 18:15 ` <kein Betreff> Michael Hirmke
1998-01-21 22:08 No Subject Bruce N. Hunsaker
1998-01-25 14:40 ` <kein Betreff> Michael Hirmke
1997-09-30 19:03 No Subject Hyung Kuk Kang
1997-10-01 13:41 ` <kein Betreff> Michael Hirmke
1997-08-16 20:30 No Subject IGnatius T Foobar
1997-08-17  7:17 ` <kein Betreff> Michael Hirmke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0xxotp-000AKCC@jacob.remcomp.fr \
    --to=root@jacob.remcomp.fr \
    --cc=gnu-win32@cygnus.com \
    --cc=lwerzinger@krones.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).