Re: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-08 Thread Richard
On 08/07/2022 10:36, Tom Mitchell wrote: On Thu, Jul 7, 2022 at 2:27 AM 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

Re: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-08 Thread Tom Mitchell
On Thu, Jul 7, 2022 at 2:27 AM 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? >

Re: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Valdis Klētnieks
On Fri, 08 Jul 2022 10:11:53 +0900, "Chan Kim" said: > I get the message "tftp: sendto: Network is unreachable". Unless you did something *really* drastic, like figure out how to build the kernel without IPv4 support (is that even possible yet?), or leave out support for whatever virtual network

RE: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Chan Kim
gt;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

Re: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Richard
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

Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Chan Kim
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