* Initialization Commands
@ 2009-10-30 17:51 María de los A. Vázquez
2009-10-30 18:00 ` Keith Seitz
0 siblings, 1 reply; 3+ messages in thread
From: María de los A. Vázquez @ 2009-10-30 17:51 UTC (permalink / raw)
To: insight; +Cc: gdb
Hi!
I'm new with gdb and insight. I'm loading Insight from Code::Blocks to use
it as my debbuger but I'm having problems with the Initialization Commands
and .gdbinit file. When I run the debugger (Insight) it didn't recognize the
initialization commands under Debugger settings (Code::Blocks) neither the
init file (.gdbinit). Instead I always need to enter the commands manually
so I don't know what I'm doing wrong?? Where does I need to declared the
.gdbinit file so it recognize it??? Any help will be useful for me!!!
Thanks.
Regards,
MarÃa
BTW
I only have two declarations on the .gdbinit file:
"target remote localhost:3333"
"load"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Initialization Commands
2009-10-30 17:51 Initialization Commands María de los A. Vázquez
@ 2009-10-30 18:00 ` Keith Seitz
2009-11-02 20:20 ` María de los A. Vázquez
0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2009-10-30 18:00 UTC (permalink / raw)
To: "María de los A. Vázquez"; +Cc: insight
On 10/30/2009 10:52 AM, MarÃa de los A. Vázquez wrote:
> I'm new with gdb and insight. I'm loading Insight from Code::Blocks to
> use it as my debbuger but I'm having problems with the Initialization
> Commands and .gdbinit file. When I run the debugger (Insight) it didn't
> recognize the initialization commands under Debugger settings
> (Code::Blocks) neither the init file (.gdbinit). Instead I always need
> to enter the commands manually so I don't know what I'm doing wrong??
> Where does I need to declared the .gdbinit file so it recognize it???
> Any help will be useful for me!!! Thanks.
I don't know anything about Code::Blocks, but it sounds to me like they
are starting up gdb/insight using the "-nx" option, which suppresses
reading .gdbinit.
Where is .gdbinit? Gdb looks in two places: $HOME and $PWD, i.e., your
home directory and the current directory. If .gdbinit is not in $HOME, I
would put it there and see if that works.
> BTW
> I only have two declarations on the .gdbinit file:
> "target remote localhost:3333"
> "load"
If you go to the Target Settings Dialog, you can have insight do this
for you automatically when you click the Run button. Of course, if
Code::Blocks is passing "-nx" to gdb/insight, insight won't read your
preferences file, anyway. But if you're like me and typically type at a
console window, this won't help you.
Keith
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Initialization Commands
2009-10-30 18:00 ` Keith Seitz
@ 2009-11-02 20:20 ` María de los A. Vázquez
0 siblings, 0 replies; 3+ messages in thread
From: María de los A. Vázquez @ 2009-11-02 20:20 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
> On 10/30/2009 10:52 AM, MarÃa de los A. Vázquez wrote:
>
>> I'm new with gdb and insight. I'm loading Insight from Code::Blocks to
>> use it as my debbuger but I'm having problems with the Initialization
>> Commands and .gdbinit file. When I run the debugger (Insight) it didn't
>> recognize the initialization commands under Debugger settings
>> (Code::Blocks) neither the init file (.gdbinit). Instead I always need
>> to enter the commands manually so I don't know what I'm doing wrong??
>> Where does I need to declared the .gdbinit file so it recognize it???
>> Any help will be useful for me!!! Thanks.
>
> I don't know anything about Code::Blocks, but it sounds to me like they
> are starting up gdb/insight using the "-nx" option, which suppresses
> reading .gdbinit.
Where is declared the "-nx" option?
> Where is .gdbinit? Gdb looks in two places: $HOME and $PWD, i.e., your
> home directory and the current directory. If .gdbinit is not in $HOME, I
> would put it there and see if that works.
I declared the .gdbinit file in my home directory and in the current
directory but it didn't work.
>> BTW
>> I only have two declarations on the .gdbinit file:
>> "target remote localhost:3333"
>> "load"
>
> If you go to the Target Settings Dialog, you can have insight do this for
> you automatically when you click the Run button. Of course, if
> Code::Blocks is passing "-nx" to gdb/insight, insight won't read your
> preferences file, anyway. But if you're like me and typically type at a
> console window, this won't help you.
>
> Keith
I try the Target Settings Dialog, but it doesn't work neither. If I close
insight and open it again, I have to input all the information again. That
isn't what I need.
MarÃa
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-02 20:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-30 17:51 Initialization Commands María de los A. Vázquez
2009-10-30 18:00 ` Keith Seitz
2009-11-02 20:20 ` María de los A. Vázquez
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).