* can't open file in Insight
@ 2009-11-16 21:09 yunlu liu
2009-11-16 21:25 ` Keith Seitz
0 siblings, 1 reply; 6+ messages in thread
From: yunlu liu @ 2009-11-16 21:09 UTC (permalink / raw)
To: insight
Hi,
I installed insight on Ubuntu9.04. I find I couldn't use the insight
to open *.c files. When I click File->open/source choose a *.c file,
it shows error in sourced command file: undefined command: " ". Try
"help". And the stack trace for error is as follows:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error in sourced command file:
Undefined command: "". Try "help".
while executing
"gdb_cmd "source $file_name""
(procedure "source_file" line 4)
invoked from within
"source_file"
invoked from within
".srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file
invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
(procedure "tk::MenuInvoke" line 50)
invoked from within
"tk::MenuInvoke
.srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file
1"
(command bound to event)errorCode is NONE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I'm just a beginner of insight. I wonder what the problem is. Looking
forward to replies.Thanks a lot.
--
Best Regards!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't open file in Insight
2009-11-16 21:09 can't open file in Insight yunlu liu
@ 2009-11-16 21:25 ` Keith Seitz
2009-11-16 21:46 ` yunlu liu
0 siblings, 1 reply; 6+ messages in thread
From: Keith Seitz @ 2009-11-16 21:25 UTC (permalink / raw)
To: yunlu liu; +Cc: insight
On 11/16/2009 01:08 PM, yunlu liu wrote:
> Hi,
> I installed insight on Ubuntu9.04. I find I couldn't use the insight
> to open *.c files. When I click File->open/source choose a *.c file,
> it shows error in sourced command file: undefined command: " ".
The "source" is really a gdb script file, not a source file.
Unfortunately, a feature was never added to Insight to allow the user to
edit the source search path, so the first time you debug something,
you'll have to manually enter the directory. Insight will save this into
its preferences.
Open a console window and type "help dir".
Keith
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't open file in Insight
2009-11-16 21:25 ` Keith Seitz
@ 2009-11-16 21:46 ` yunlu liu
2009-11-16 21:54 ` Keith Seitz
0 siblings, 1 reply; 6+ messages in thread
From: yunlu liu @ 2009-11-16 21:46 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
Hi Keith,
Thanks a lot for your reply. I wonder how could I manually enter the
directory. I find no place to enter on the insight pannel.And I try to
type"insight .../filename". It just open the insight without file
loading. I appreciate your help very much.
On Tue, Nov 17, 2009 at 5:24 AM, Keith Seitz <keiths@redhat.com> wrote:
> On 11/16/2009 01:08 PM, yunlu liu wrote:
>>
>> Hi,
>> I installed insight on Ubuntu9.04. I find I couldn't use the insight
>> to open *.c files. When I click File->open/source choose a *.c file,
>> it shows error in sourced command file: undefined command: " ".
>
> The "source" is really a gdb script file, not a source file. Unfortunately,
> a feature was never added to Insight to allow the user to edit the source
> search path, so the first time you debug something, you'll have to manually
> enter the directory. Insight will save this into its preferences.
>
> Open a console window and type "help dir".
>
> Keith
>
--
Best Regards!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't open file in Insight
2009-11-16 21:46 ` yunlu liu
@ 2009-11-16 21:54 ` Keith Seitz
[not found] ` <5d96e8200911161412w6d5eec25w1b99fa5694643819@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Keith Seitz @ 2009-11-16 21:54 UTC (permalink / raw)
To: yunlu liu; +Cc: insight
On 11/16/2009 01:45 PM, yunlu liu wrote:
> Hi Keith,
> Thanks a lot for your reply. I wonder how could I manually enter the
> directory. I find no place to enter on the insight pannel.And I try to
> type"insight .../filename". It just open the insight without file
> loading. I appreciate your help very much.
Open a console window. There's a button for that in the toolbar (it's
the monitor with shell prompt). There is also the menu View->Console.
Typing "insight ../filename" will have insight/gdb try to open
"../filename" as an executable, which is not quite what you want. :-)
Keith
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-17 16:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 21:09 can't open file in Insight yunlu liu
2009-11-16 21:25 ` Keith Seitz
2009-11-16 21:46 ` yunlu liu
2009-11-16 21:54 ` Keith Seitz
[not found] ` <5d96e8200911161412w6d5eec25w1b99fa5694643819@mail.gmail.com>
2009-11-16 22:17 ` Keith Seitz
2009-11-17 16:52 ` yunlu liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).