On Sun, Feb 02, 2025 at 12:13:17PM +0100, Samuel Thibault wrote:
> Zhaoming Luo, le dim. 02 févr. 2025 19:09:45 +0800, a ecrit:
> > On Sun, Feb 02, 2025 at 12:00:17PM +0100, Samuel Thibault wrote:
> > > Zhaoming Luo, le dim. 02 févr. 2025 18:55:49 +0800, a ecrit:
> > > > ```
> > > > Thread 2 hit Breakpoint 1, _hurd_select (nfds=7, pollfds=0x0, 
> > > > readfds=0x103cc20, writefds=0x103cc40, exceptfds=0x103cc60,
> > > >     timeout=0x103cba4, sigmask=0x0) at ./hurd/hurdselect.c:51
> > > > 51      ./hurd/hurdselect.c: No such file or directory.
> > > > ```
> > > > 
> > > > I expected it will show me the source code of hurdselect.c.
> > > 
> > > You need to download it with `apt source glibc` and cd into it,
> > > otherwise gdb can't magically invent it :)
> > 
> > But I invoked the gdb using the following command in $(curl-src)/tests/:
> > 
> > ```
> > ~/curl/tests$ ./runtests.pl 546 -g
> > ```
> 
> You can use
> 
> set directories /where/you/put/glibc

Yeah it works! Thanks


Reply via email to