discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code: GDB support not only for ProjectCenter


From: Stefan Urbanek
Subject: Re: Code: GDB support not only for ProjectCenter
Date: Sun, 10 Aug 2003 15:04:22 +0200

On 2003-08-10 14:46:12 +0200 Philippe C.D.Robert <philippe.robert@gmx.net> 
wrote:

Hi,

On Saturday, August 9, 2003, at 01:52 AM, Stefan Urbanek wrote:
Hi,

Here is a piece of code I am using in my project to debug either running or nor 
running program (two methods). Feel free to modify and reuse that code in 
ProjectCenter or other project for preliminary GDB support.

What it does? It uses Terminal.app services to launch GDB in new Terminal 
window with given arguments. One method passes PID and executable path to debug 
running process and the other method launches GDB with new, not running program.

I added initial support for external debugging to PC based on your code. But as I do not 
have the possibility to test it right now (no working gdb and no experience with 
terminal.app) I have one question wrt the arguments which have to be passed:  is it 
enough to pass eg. "somepath/SomeApp.app" as debug target or do I have to pass 
the full path to the executable?


You are passing SomeApp.app to the gdb. AFAIK, program you launch using 
terminal service is run in terminal's cwd. Therefore you should pass full path 
to the application.

Question to Alex: would it be possible to add a key 'WorkingDirectory' to the 
properties dictionary? If it is nil, then terminal's cwd will be used. I think 
it shoudl be useful.

Stefan
--
http://urbanek.host.sk

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi






reply via email to

[Prev in Thread] Current Thread [Next in Thread]