Recent

Author Topic: Debug with wine  (Read 4270 times)

alpha_one_x86

  • New Member
  • *
  • Posts: 28
  • Developer of Ultracopier and Supercopier
    • Supercopier
Debug with wine
« on: January 21, 2013, 05:49:04 pm »
Hello,
I compil my application for windows (.exe with debug symbol as auto, -g).
It crash under wine but not under windows.
Then how debug it under wine?
Cheer,
« Last Edit: January 21, 2013, 06:08:04 pm by alpha_one_x86 »
Developer of Ultracopier and Supercopier 2013

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12015
  • Debugger - SynEdit - and more
    • wiki
Re: Debug with wine
« Reply #1 on: January 21, 2013, 08:07:52 pm »
Never done that. But I would suggest the following.

1) Make sure the windows version of gdb, runs and works under wine.
Best to test that from command line, so you can see all errors, if any occur.

- Copy the gdb.exe and libraries (c:\lazarus\mingw\gdb\...) to your linux/wine (If you have a window installation of lazarus on that system, then you already have them)
- have some project.exe (empty form) compiled with debug info.

Run (in the gdb folder, so libraries are found)
   gdb.exe project.exe

In gdb (30 is a line number)
   b unit1:30
   r

if that all works, you likely can use gdb under wine.
All you need is to have a lazarus install. (sorry remote debug does not really work yet)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Debug with wine
« Reply #2 on: January 21, 2013, 08:53:19 pm »
And file a bugreport with wine, obviously  >:D

circular

  • Hero Member
  • *****
  • Posts: 4462
    • Personal webpage
Re: Debug with wine
« Reply #3 on: January 21, 2013, 09:27:00 pm »
Never a good idea to program when you're drunk  :D
Conscience is the debugger of the mind

mas steindorff

  • Hero Member
  • *****
  • Posts: 560
Re: Debug with wine
« Reply #4 on: January 22, 2013, 08:01:43 am »
Never a good idea to program when you're drunk  :D
%) That's when I do my best work!  %)
windows 10 &11, Ubuntu 21+ IDE 3.4 general releases

circular

  • Hero Member
  • *****
  • Posts: 4462
    • Personal webpage
Re: Debug with wine
« Reply #5 on: January 23, 2013, 09:39:37 pm »
Oh maybe it depends on the people.  ;)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018