Bug 77504 - CDT suppresses error messages from .gdbinit script
Summary: CDT suppresses error messages from .gdbinit script
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 77508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-02 13:20 EST by Oyvind Harboe CLA
Modified: 2020-09-04 15:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oyvind Harboe CLA 2004-11-02 13:20:33 EST
I've got a target that I connect to w/TCP/IP and I want to issue the following 
commands:

target remote foo:4444
load


If I use the GDBServer target and add a gdbinit file which contains the "load" 
command, the following error message is supressed by CDT:

----
hello!loadexe:2: Error in sourced command file:
You can't do that when your target is `exec'
----

If the error message was not suppressed(completely hidden), I would have 
understood my error earlier.

The fix is probably to use a "local" launch + add the "target remote xxx:4444  
+ load" to the GDB init script.

Øyvind
Comment 1 Oyvind Harboe CLA 2004-11-11 09:22:30 EST
*** Bug 77508 has been marked as a duplicate of this bug. ***
Comment 2 Alain Magloire CLA 2004-11-12 18:19:26 EST
That is almost impossible to fix, when initializing gdb(spawing etc ..)
The launch/console etc .. is not even create yet.

The only way to fix this would be to disable the reading of the
init file at the begining and when all the Eclipse/Launch stuff
is ready we ask gdb to read the file at that time.

Maybe for cdt-3.0
Comment 3 Nobody - feel free to take it CLA 2005-07-08 13:31:47 EDT
Deferred.
Comment 4 Alain Magloire CLA 2005-09-06 11:45:39 EDT
Returning to the pool.
Comment 5 Doug Schaefer CLA 2007-08-21 11:04:47 EDT
Future means you commit to fix it in the Future. Inboxes can't make committments. Moving to '--'.