This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/3] RISC-V/Linux/native: Determine FLEN dynamically


On Thu, 30 Jan 2020, Jim Wilson wrote:

> > We can do better however and not rely on any particular value of FLEN
> > and probe for it dynamically, by observing that the PTRACE_GETREGSET
> > ptrace(2) call will only accept an exact regset size, and that will
> > reflect FLEN.
> 
> I forgot to mention this before, but our long term plans are to pass
> info via the auxiliary vector from the kernel to the application, and
> then in theory gdb should be able to get architecture info from there.

 Thanks for the heads-up.  This will undoubtedly be useful for something, 
but I think we have a solution for GDB/gdbserver already, so unless the 
circumstances change, I think we're fine without the need to peek at the 
auxv.

 I'll be posting v3, which has just passed testing, right away.  It 
includes a few further improvements beyond what has been already 
discussed.

  Maciej


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]