From: "Marc Weustink" <[EMAIL PROTECTED]>
Yury Sidorov wrote:
Hi,

Here is a patch:

* Set debugger breakpoint on main/entry point using decimal number. It
fixes executing application without debug info under gdb. I encountered
problems at least with gdb 6.0 for win32 bundled with Lazarus. It dont
accept pascal hexadecimal string $xxxx as address for breakpoint even if
language is set to Pascal. It seems like bug in gdb, but this patch
workarounds this bug.

It's indeed a bug in gdb.
But I don't understand really what is going on here. The reason I used
the unparsed value is that I got "0x..." values reported and not "$...."
So I assumed that when GDB reports the address as "0x..." it will
understand it as address and when it reports "$..." it will understand
that.

I dont understand it also. gdb reports addresses as $..., but accept address in 
breakpoint only as 0x... or decimal value.
Anyway this patch avoids this problem.

Yury Sidorov.

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

Reply via email to