This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] adding gdb.pascal subdir


On Tue, Jul 17, 2007 at 04:22:26PM +0200, Pierre Muller wrote:
>   A possible work-around would be to fix breakpoints at specific
> positions in the file, but this would require to re-edit hello.exp
> each time someone changes hello.pas source. 
>   I have no idea if this is acceptable.

Take a look at the testsuite function "gdb_get_line_number".  You're
exactly right that fixing the breakpoints at specific positions is a
bad idea, but this way they can "float" along with the source.

> The other failure is common to gpc and fpc:
> (gdb) ptyp 'a simple string' ^M
>  gives a strange error: 
> No symbol table is loaded: use "file" command.
> I have no idea why this happens.

It is probably trying to call malloc to allocate the string.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]