Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Question about GDB on Windows

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

Hi all,

I've read there are a few problems with gdb on windows. Actually, I've encountered a few problems, while not show stoppers are annoying.

Sometimes when debugging a GUI app, the will get focus, but kinda freeze. Usually this is when I've run the application in debug mode and then shut the application down, but GDB stays running.

I've noticed that everything is much better behaved if I ensure that gdb is shutdown after each run (which is sometimes is not).

Question: Is there a way to ensure that gdb gets shutdown after every debug run?

Thanks,

Warm Regards, Lee "Everything I needed to learn in life, I learned selling encyclopedias door to door."

Reply by email

Marc Weustink
to Lee Jenkins
Lee Jenkins wrote 13 lines
Hi all, I've read there are a few problems with gdb on windows. Actually, I've encountered a few problems, while not show stoppers are annoying. Sometimes when debugging a GUI app, the will get focus, but kinda freeze. Usually this is when I've run the application in debug mode and then shut the application down, but GDB stays running. I've noticed that everything is much better behaved if I ensure that gdb is shutdown after each run (which is sometimes is not). Question: Is there a way to ensure that gdb gets shutdown after every debug run?

No, unless you use the reset debugger menu item.

The initial idea of the debugger is to keep gdb running to avoid long gdb startup and loading times when debugging in multiple runs.

Marc

Reply by email

Marius
to Lee Jenkins: I've read there are a few problems with gdb on windows. Actually, I've encountered a few…
Lee Jenkins wrote 11 lines
I've read there are a few problems with gdb on windows. Actually, I've encountered a few problems, while not show stoppers are annoying. Sometimes when debugging a GUI app, the will get focus, but kinda freeze. Usually this is when I've run the application in debug mode and then shut the application down, but GDB stays running. I've noticed that everything is much better behaved if I ensure that gdb is shutdown after each run (which is sometimes is not). Question: Is there a way to ensure that gdb gets shutdown after every debug run?

I have GDB problems on windows 2000. The first time GDB works fine, any additional attempt will fail. So basicly i need to reset GDB after each run. To solve this i assigned ctrl-f2 to reset program and ctrl-f3 to reset debugger. Its kind of a boring solution but i do not have any other workaround

At home with Windows XP everything runs fine..

Reply by email

Vincent Snijders
to Marius
Marius wrote 19 lines
Lee Jenkins wrote: > I've read there are a few problems with gdb on windows. Actually, I've > encountered a few problems, while not show stoppers are annoying. > > Sometimes when debugging a GUI app, the will get focus, but kinda freeze. > Usually this is when I've run the application in debug mode and then shut the > application down, but GDB stays running. > > I've noticed that everything is much better behaved if I ensure that gdb is > shutdown after each run (which is sometimes is not). > > Question: Is there a way to ensure that gdb gets shutdown after every debug run? I have GDB problems on windows 2000. The first time GDB works fine, any additional attempt will fail. So basicly i need to reset GDB after each run. To solve this i assigned ctrl-f2 to reset program and ctrl-f3 to reset debugger. Its kind of a boring solution but i do not have any other workaround

What versions of gdb did you try?

At home with Windows XP everything runs fine..

Vincent

Reply by email

Marius
to Vincent Snijders
Show quoted text 5 lines
What versions of gdb did you try? > At home with Windows XP everything runs fine.. Vincent

On work we use Win2000 (think we will use it for another 2 years). I upgraded GDB to GNU gdb 6.7.50.20071127 but it did not make any difference compared to GNU gdb 6.6.

I love fpc and laz, and this is not what anybody wants to hear, but the gdbis in comparison so disappointing i reverted a project back to delphi just to solve problems.

Greetings,
Marius

Reply by email