At 18:03 18-2-2007, you wrote:
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.

This is a known issue with pascal support gdb that can't be solved. It was already discussed a couple of years ago when Pierre Muller extended my initial pascal patch for gdb. The $... is used to display registers. E.g. 'print $eax'.


Peter

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

Reply via email to