View Issue Details

IDProjectCategoryView StatusLast Update
0007867LazarusDebuggerpublic2014-11-09 09:37
ReportersergkamAssigned ToMarc Weustink 
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSASPLinuxOS Version11
Product Version0.9.21 (SVN)Product Build7-11-06 
Target VersionFixed in Version 
Summary0007867: Debugger can not use xterm as starter applicaion
DescriptionDebuger not work. don`t stop application on breakpoint or pause
editor can show two breakpoints on one line.
in breakpoint list window shows "Invalid(ON)" on all.

all gdb path(/usr/bin/gdb) and options(-g) correct.
no optimization or smartlink

KGdb - on same my binapy file work ok.

GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
Free Pascal Compiler version 2.0.4 [2006/08/20]
lazarus snapshot 7-11-06
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetGTK, GTK 2
Attached Files

Relationships

related to 0012172 resolvedMarc Weustink Patches debugging console applications under *nix doesn't work 
related to 0027003 resolvedMartin Friebe Lazarus False debug running condition prevents shutdown 

Activities

sergkam

2006-12-15 15:24

reporter   ~0010395

Debug now work.
But don`t work if for run i use xterm
(/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine))

Vincent Snijders

2006-12-15 15:37

manager   ~0010396

With xterm it is not possible to debug atm. I don't know if this is fixable.

I don't think this will be fix before a 1.0 release.
Using gnome-terminal instead of xterm is possible with 'set detach-on-fork off' on gdb, but the terminal application is still debugged together. xterm freezes with this option.

Flávio Etrusco (notifications not working)

2010-03-23 02:57

developer   ~0035953

Last edited: 2010-03-23 02:59

The (biggest) problem is not the script, but the xterm itself. Passing the app as the shell also has the same problem.
This patch ( http://bugs.freepascal.org/view.php?id=12172 ) works, but I don't know how good it is and it spews in terminal: &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n.

Marc Weustink

2010-05-05 19:44

administrator   ~0037305

flavio, i want to have some more generic solution. I don't want to add specific debugger stuff into the LCL (iirc)
I tried to play with "set schedule-multiple on" and "set detach-on-fork off", but couldn't make it work (e.g. start lazarus. It always end with a zombie fpc process - why the fpc here? - and the other 2 process are non-runnable :-/

No really related, but "set scheduler-locking on" seemed cool too :-)

Issue History

Date Modified Username Field Change
2006-11-22 20:15 sergkam New Issue
2006-11-22 20:15 sergkam Status new => assigned
2006-11-22 20:15 sergkam Assigned To => Marc Weustink
2006-11-22 20:15 sergkam Widgetset => GTK
2006-11-28 19:27 Vincent Snijders LazTarget => 1.0
2006-12-15 15:24 sergkam Note Added: 0010395
2006-12-15 15:37 Vincent Snijders LazTarget 1.0 => post 1.0
2006-12-15 15:37 Vincent Snijders Note Added: 0010396
2010-03-23 01:36 Flávio Etrusco (notifications not working) Note Added: 0035949
2010-03-23 02:57 Flávio Etrusco (notifications not working) Note Added: 0035953
2010-03-23 02:59 Flávio Etrusco (notifications not working) Note Edited: 0035953
2010-03-23 03:00 Flávio Etrusco (notifications not working) Relationship added related to 0012172
2010-05-05 19:44 Marc Weustink Note Added: 0037305
2010-05-07 06:13 Flávio Etrusco (notifications not working) Note Added: 0037342
2010-11-26 14:22 Martin Friebe LazTarget post 1.0 => -
2010-11-26 14:22 Martin Friebe Widgetset GTK => GTK, GTK 2
2010-11-26 14:22 Martin Friebe Summary Debuger not work. don`t stop application on brakepoint or pause => Debugger can not use xterm as starter applicaion
2012-02-04 12:08 Zeljan Rikalo LazTarget - => 1.2
2014-01-14 15:16 Martin Friebe LazTarget 1.2 => 1.4
2014-09-10 01:03 Juha Manninen LazTarget 1.4 => -
2014-11-09 09:37 Juha Manninen Relationship added related to 0027003