Mattias Gaertner wrote:
On Mon, 14 May 2007 01:38:30 +0200
Marc Weustink <[EMAIL PROTECTED]> wrote:

[...snip...]

It does not matter if I use mi or the default syntax.
In a simple project the break FPC_RAISEEXECPTION works, but on the
IDE it does not. For me this sounds like a gdb bug, or a bug in the
what I wanted to know is when running gdb:
1) does break FPC_RAISEEXECPTION work ?

Yes for a simple project, no for the 'lazarus' binary.


2) (in mi mode) does -break-insert FPC_RAISEEXCEPTION work ?

Yes for a simple project, no for the 'lazarus' binary.


3) (in mi mode) does FPC_RAISEEXECPTION work ?

If you mean as command: No, it gives: 'FPC' command not found.
If you mean, if gdb stops there: Yes, it pauses the program.

I did mean: (in mi mode) does break FPC_RAISEEXECPTION work ?

But it is clear now.

Just, simple plain gdb, I'm not interested in lazarus here. Only gdb.

Yes. I tried only gdb, not the IDE debugger.

I was confused with your test with lazarus (it can mean 2 things, 1: use it as testapp for gdb, 2: use it as tool to run gdb)


So, it seems that for larger projects the FPC_RAISEEXECPTION symbol gets relocated wrong, since it it still there, but points to a nonsense location. This sounds like a fpc bug.


debuginfo. Because nm shows the correct value, my guess is: it is a
gdb bug.
Another bug is: the IDE debugger does not seems to stop the
application, even if the exception was spotted by the IDE. But
since I didn't check this carefully, maybe I misinterpreted
something. I have to check this.
If the exeption dialog is shown. the debugger is paused. What can
happen is that doing a single step or a stepover results in a
continue (wouthout step)

I tried once more: When an exception occurs, the IDE debugger stops the
program and shows the dialog. Pressing OK, the application continues,
while under linux it opens the sourceeditor at the error line.

That is strange, since the lazarusdebugger must tell gdb to continue (after teh dialog is shown). Why does that happen ?

> I will send you the IDE output.

Thanks,

Marc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to