On Thu, Jan 11, 2024 at 10:35 AM Gregory Nutt wrote:
> Everything you need to know is in that referenced wiki page:
>
> https://cwiki.apache.org/confluence/display/NUTTX/Debugging+ELF+Loadable+Modules
>
> I don't know anything about QEMU or RISC-V. But assuming that NSH is
> your init applicatio
Everything you need to know is in that referenced wiki page:
https://cwiki.apache.org/confluence/display/NUTTX/Debugging+ELF+Loadable+Modules
I don't know anything about QEMU or RISC-V. But assuming that NSH is
your init application...
* NSH is not in memory when you start the OS; it reside
You should be able to set breakpoints properly, but only after the correct MMU
mapping is in place.
Original message From: yfliu2008
Date: 1/9/24 8:06 PM (GMT-06:00) To: dev Subject:
Re:Re: debugging user app crashes Yes, in kernel mode each user space program
has similar
On 1/9/2024 8:06 PM, yfliu2008 wrote:
Yes, in kernel mode each user space program has similar but isolated virtual
address spaces. So it seems that we can't set break points to them like FLAT or
PROTECTED build.
Not sure if we need some sort of debug agent in KERNEL build so that it can hel
Yes! For kernel mode each program has its own main() implementation, not
the definition.
BR,
Alan
On Tue, Jan 9, 2024 at 10:34 PM Gregory Nutt wrote:
>
> On 1/9/2024 7:28 PM, Alan C. Assis wrote:
> > Hi Yf,
> > Just look at your System.map and you will see that all those main()
> became
> > _mai
On 1/9/2024 7:28 PM, Alan C. Assis wrote:
Hi Yf,
Just look at your System.map and you will see that all those main() became
_main.
It isn't possible to have a unique main() symbol, otherwise we will have a
duplicated symbol, also even if the compiler accepted that, how could NuttX
know you want
Assis"< acas...@gmail.com >;
Date:2024/1/10 8:11
To:"dev"< dev@nuttx.apache.org >;
Subject:Re: debugging user app crashes
Hi Yf Liu,
I don't know if this minidump server works on 64-bit and with QEMU, but
about the other question how to setup breakpoint in the NSH
nel ELF, not to the apps ELF.
>
>
>
>
> Regards,
> yf
>
>
>
>
>
> Original
>
>
>
> From:"Alan C. Assis"< acas...@gmail.com >;
>
> Date:2024/1/10 8:11
>
> To:"dev"< dev@nuttx.apache.org >;
>
> Subject:Re:
Hi Yf Liu,
I don't know if this minidump server works on 64-bit and with QEMU, but
about the other question how to setup breakpoint in the NSH user space
program, just set the break point to the nsh_main if you want to debug the
NSH itself or set it to program_main to put the breakpoint to some use