<p>I am trying to build gdb for armv6 architecture. I will be compiling this package on a Fedora Linux-Intel x86 box. I read the process of installing the gdb, like</p>

<ol>
<li><p>Download the source pachage</p></li>
<li><p>run <code>configure -host</code></p></li>
<li><p><code>make</code></p></li>
</ol>

<p>But I got lost in the process because I was not able to make out what will be the host, target, needed for the <code>configure</code> script. </p>

<p>I need to basically be able to debug programs running on armv6 architecture board which runs linux kernel 2.6.21.5-cfs-v19. The gdb executable which I intend to obtain after compilation of the source also needs to be able to run on above mentioned configuration.</p>

<p>Now to get a working gdb executable for this configuration what steps should I follow? </p>

[{'answer_id': 70278, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>target/host is usually the target tool chain you would be using (mostly arm-linux)</p>\n'}, {'answer_id': 70379, 'author': 'GodEater', 'author_id': 6756, 'author_profile': 'https://Stackoverflow.com/users/6756', 'pm_score': 2, 'selected': False, 'text': '<p>We (www.rockbox.org) use the arm target for a whole batch of our currently working DAPS. The target we specify is usually arm-elf, rather than arm-linux.</p>\n'}, {'answer_id': 9198236, 'author': 'nodakai', 'author_id': 1190965, 'author_profile': 'https://Stackoverflow.com/users/1190965', 'pm_score': 1, 'selected': False, 'text': '<p>Be careful with <code>arm-linux</code> vs. <code>arm-elf</code>, eg.</p>\n\n<ul>\n<li><p><a href="http://sources.redhat.com/ml/crossgcc/2005-11/msg00028.html" rel="nofollow">http://sources.redhat.com/ml/crossgcc/2005-11/msg00028.html</a></p>\n\n<blockquote>\n  <p>arm-elf is a standalone toolchain which does not require an underlying OS. So you can use\n  it to generate programs using newlib</p>\n  \n  <p>arm-linux is a toolchain targetted to generate code for linux OS running on an ARM machine</p>\n</blockquote></li>\n</ul>\n\n<p>We sometimes say <code>arm-elf</code> is for "bare metal".\nUnfortunately there\'s another "bare metal" target <code>arm-eabi</code> and no one knows what the difference between these two exactly is.</p>\n\n<p>BTW,</p>\n\n<blockquote>\n  <p>The gdb executable which i intend to obtain after compilation of the source,also needs to be able to run on above mentioned configuration.</p>\n</blockquote>\n\n<p>Really? Running GDB on an ARM board may be quite slow.\nI recommend you either of</p>\n\n<ol>\n<li>Remote debugging of the ARM board from an x86 PC</li>\n<li>Saving a memory core on the ARM board, transferring it to an x86 PC and then inspecting it there</li>\n</ol>\n\n<p>Cf.</p>\n\n<ul>\n<li><a href="http://elinux.org/GDB" rel="nofollow">http://elinux.org/GDB</a></li>\n<li><a href="http://old.nabble.com/Cross-platform,-multithreaded-debugging-%28x86-to-ARM%29-with-gdb-and-gdbserver-not-recognizing-threads-td26820064.html" rel="nofollow">Cross-platform, multithreaded debugging (x86 to ARM) with gdb and gdbserver not recognizing threads</a></li>\n<li><a href="http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/remote-debugging" rel="nofollow">http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/remote-debugging</a></li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/70258', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2759376/']