Citando Frank Rowand <frowand.l...@gmail.com>:

> On 10/3/2014 11:14 AM, joaoandrefe...@sapo.pt wrote:
>> Citando Frank Rowand <frowand.l...@gmail.com>:
>>
>>> On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote:
>>>> Hello again,
>>>>
>>>> By the way, while googling for this error I've noticed that a
>>>> common mistake is to invoke GDB on the wrong location (e. g.
>>>> http://ehc.ac/p/kgdb/mailman/message/23341685/). What I'm doing
>>>> is
>>>
>>> ^^^^ The answer is in that link.  As I mentioned before, invoke
>>> gdb from the root of your kernel source tree.  Since your vmlinux
>>> is in a different directory, you can supply the absolute path of
>>> vmlinux in the gdb command line.
>>
>> Sorry, but I think I'm not fully understanding this. I don't know
>> exactly what do you mean by "kernel source tree" in the host machine.
>> In the target (KGDB), I guess it's /usr/src/linux, since it was there
>> I've compiled the kernel. In the host (GDB), apart from the vmlinux
>> file, I don't know what else relates to the kernel I'm trying to
>> debug on the target. I've tried to launch "gdb /boot/vmlinux" in both
>> / and /usr/src, but things are't changing. So, a newbie doubt has
>> arrived, can you enlighten me? Thanks for your patience!
>
> No problem (on the patience).
>
> You guessed correctly, you need the kernel source tree that you used
> to compile the kernel for the target.  Since you compiled on the
> target, you will have to copy that source tree to your host
> system (the one you run gdb on).
>
> -Frnk

Hi again, Frank,

Thanks! I knew I should be missing something. Strangely, none of the  
tutorials I've found online mentioned this important detail. Anyway,  
although as KGDB / GDB seem to be running correctly (at least judging  
from the GBD output), as you pointed out previously, I'm looking into  
using kdmx.

Thanks again,
João

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to