[Lazarus] Cannot debug app (gdb errors)

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Nov 9 15:27:36 CET 2012



On Fri, 9 Nov 2012, Leonardo M. Ramé wrote:

> On 2012-11-09 15:20:45 +0100, michael.vancanneyt at wisa.be wrote:
>>
>>
>> On Fri, 9 Nov 2012, Leonardo M. Ramé wrote:
>>
>>> On 2012-11-09 15:10:21 +0100, Martin wrote:
>>>> On 09/11/2012 14:11, Leonardo M. Ramé wrote:
>>>>> Hi, I'm having some problems since a couple of days. I cannot start my
>>>>> app from the IDE, I get the same errors with or without debug
>>>>> information.
>>>>>
>>>>> My setup is this:
>>>>>
>>>>> Ubuntu 12.04 Linux 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>>>>> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
>>>>>
>>>>> My locale and LC_Type are es_AR.
>>>>>
>>>>> Here's the content of the debug window:
>>>>>
>>>> which version of fpc do you use? have you recently upgraded?
>>>>
>>>> Try stabs or dwarf.
>>>> do NOT (NEVER) smart link for debugging, see wiki dbg setup
>>>>
>>>> your GDB crashes while reading the symbol table (reading all, while
>>>> looking for a symbol that does not exist, But if this one was
>>>> skipped, it would crash later.)
>>>> This is an issue all versions of gdb have.
>>>>
>>>> The IDE has no influence on this. FPC (and the linker) generate the
>>>> debug info.
>>>>
>>>>
>>>> On a related note. your gdb is localized. the ide usually has no
>>>> problem, since most messages needed by the ide are still english.
>>>> It may have small functionality deduction. IIRC not showing
>>>> exception messages is one possible effect.
>>>>
>>>
>>> Thanks Martin, I'm using FPC rev 22945 and Lazarus 39266 (from today).
>>>
>>> BTW. Does anyone know how to force GDB to ignore localization?.
>>
>> Set LC_Type to C ?
>>
>
> How?, for example, creating a shell script to launch Lazarus?, I don't
> want to change the LC_Type for the whole system.

Not the IDE:

Create a script that sets the variable, exec's the debugger and then
point the IDE to the script instead of pointing it straight to gdb.

Michael.


More information about the Lazarus mailing list