NO

Author Topic: How to debug programm with .dbg?  (Read 472 times)

Offline bitcoin

  • Member
  • *
  • Posts: 106
How to debug programm with .dbg?
« on: July 03, 2020, 11:49:43 pm »
Hello
Pelles C can generate .dbg symbols. What program (debugger) can use it? I use x64dbg, but it can't load this.
Can Pelles C generate .pdb format?

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2076
    • http://www.smorgasbordet.com
Re: How to debug programm with .dbg?
« Reply #1 on: July 04, 2020, 02:00:09 pm »
As of version 9.0 I switched to my own debug format (See "Appendix", "Pelles C Debug Information Specification " in the help file). AFAIK, only the debugger in POIDE will understand it. You can generate .dbg files (linker option).

When I started Pelles C many years ago, the Microsoft CodeView debug format was documented and possible to implement. After a few years the documentation was removed and the format changed. I tried to keep up, but over the years it became ~70% Microsoft and ~30% Pelles C. I got fed up with this and switched to my own format that I have full control over.

(Again, briefly, Microsoft did an attempt at "documenting" the format here: https://github.com/Microsoft/microsoft-pdb - presumably to help LLVM add support for it, but it was too late and too messy for me.)

Maybe you should try LLVM, it probably has a better future than Pelles C...
/Pelle

Offline bitcoin

  • Member
  • *
  • Posts: 106
Re: How to debug programm with .dbg?
« Reply #2 on: July 04, 2020, 04:43:24 pm »
Thanks. No, Pelles C is better, LLVM or Visual Studio is huge and complicated.

I found, that IDA free can debug with .dbg format.

Offline MrBcx

  • Global Moderator
  • Member
  • *****
  • Posts: 64
    • http://www.bcxgurus.com/
Re: How to debug programm with .dbg?
« Reply #3 on: July 04, 2020, 05:14:21 pm »
Quote
Maybe you should try LLVM, it probably has a better future than Pelles C...

Maybe so, but I'll always appreciate that Pelle Orinius has been providing his Pelles C
tools and support since 2003 and continues to do so.

It has been said that one of the best ways to test software is by using more than one
compiler system during development.  I recently added LLVM / Clang to my tool set.  I
now use MSVC, Mingw32/64 (Nuwen), LLVM-Clang, Pelles C, and (believe it or not)
Lcc-Win32 to do my testing on. 

Every compiler system brings something different to the table and each has its strengths
and weaknesses.   Using more than one compiler will almost certainly help one to develop
better code.  Pelles C should be in every Windows developer's tool kit.
« Last Edit: July 04, 2020, 07:41:41 pm by MrBcx »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1895
Re: How to debug programm with .dbg?
« Reply #4 on: July 05, 2020, 09:11:22 am »
In my archive is a pocc.exe 16.6.2003 version 2.50.1.0  :)
 
May the source be with you

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2076
    • http://www.smorgasbordet.com
Re: How to debug programm with .dbg?
« Reply #5 on: July 05, 2020, 06:09:05 pm »
FWIW,
found an old CD with pocc.exe version 1.00.0 (beta 1) from October 5, 2000 (32-bit, swedish texts only, no optimizer, ~C99, etc.)
Version at 2.30 for polink/polib/porc/pomc/pomake/podump/pobind/porebase, since they came from an earlier project.
Help in swedish only. No IDE yet...
/Pelle