From: "Chan Kim" <ckim@etri.re.kr>
To: "'Richard'" <richard_siegfried@systemli.org>,
<kernelnewbies@kernelnewbies.org>
Subject: RE: Can I debug busybox program running on a qemu virtual machine using gdb?
Date: Fri, 8 Jul 2022 10:11:53 +0900 [thread overview]
Message-ID: <042001d89267$b5ec7910$21c56b30$@etri.re.kr> (raw)
In-Reply-To: <316b7e35-58c4-48fe-4b1b-0351fb17bc1a@systemli.org>
Hi,
Thanks for replying.
Actually, I just wanted to know what kernel config variables are needed to
make tftp work in vanilla linux.
I get the message "tftp: sendto: Network is unreachable".
With another default config, I can use tftp on qemu machine but still the
kernel image size is big so I tried to reduce the size and reduce the
experiment cycle time. But now I know I can build my test platform driver
into a kernel module I can do away with it. Maybe I'll just try this
"finding minimal config for tftp " later.
(I though because the shell itself is the busybox, maybe I could find where
the program is loaded and set breakpoint in the tftp entrance or condition,
but couldn't find where busybox was loaded.)
Thank you.
Chan Kim
>-----Original Message-----
>From: Richard <richard_siegfried@systemli.org>
>Sent: Friday, July 8, 2022 8:46 AM
>To: kernelnewbies@kernelnewbies.org
>Subject: Re: Can I debug busybox program running on a qemu virtual machine
>using gdb?
>
>Hi,
>
>If the goal is only to understand tftp and it's not something hardware
>dependend I would debug it on my normal desktop system/notebook. My distro
>(debian) has a busybox package. It does not provide the symlinks to change
>the ARGV[0] but you can create them manually and then debug locally as
>usually with your prefered tool (emacs recommended :) ).
>
>If it has to be in quemu, I see no reason against it, the normal rules for
>remote debugging apply.
>
>-- Richard Sailer
>
>On 07/07/2022 11:27, Chan Kim wrote:
>> Hi all,
>>
>> I'm trying to track how tftp program runs when I run tftp provided by
>> busybox on qemu virtual machine.
>> I can debug the linux source but I cannot debug tftp (busybox) program.
>> Can I debug busybox program using gdb in this case?
>> Any hint or advice will be very appreciated.
>> Thank you!
>>
>> Chan Kim
>>
>>
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies@kernelnewbies.org
>https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2022-07-08 1:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 9:27 Can I debug busybox program running on a qemu virtual machine using gdb? Chan Kim
2022-07-07 23:45 ` Richard
2022-07-08 1:11 ` Chan Kim [this message]
2022-07-08 1:29 ` Valdis Klētnieks
2022-07-08 8:36 ` Tom Mitchell
2022-07-09 1:19 ` Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='042001d89267$b5ec7910$21c56b30$@etri.re.kr' \
--to=ckim@etri.re.kr \
--cc=kernelnewbies@kernelnewbies.org \
--cc=richard_siegfried@systemli.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox