LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2010, 04:54 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
setting multiple source directories in GDB


Hi all
I've finally got GDB working over the Ethernet with an embedded board. There's only one thing I need to do to get it working perfect. That's setting my source directories. I need to set them because of the nature of the cross compiler, so I use

dir /blah/........

My only problem is I use about half a dozen different directories for source, so it takes me an age to type them in. Is there some sort of batch file I can call? Or can I set them in .gdbinit? I've tried a custom gdbinit in my exe directory which works for some things but not setting directories. I've tried
dir /...
and
set dir /........

Is there some way of setting them in .gdbinit or calling some sort of GDB batch instruction

thanks
 
Old 10-21-2010, 02:08 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sure.

.gdbinit should support a ":" separated search path.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change text in multiple files in multiple directories vivo2341 Linux - General 5 11-27-2006 08:16 PM
how to use gdb to debug multiple files in a project like other IDEs? DrowningFish Programming 1 08-15-2006 08:55 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM
gdb and multiple sources melinda_sayang Programming 0 04-03-2004 09:35 PM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 05:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration