Re: Unable to break into a PAM module

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 1/17/20 10:03 PM, Full Name wrote:
>      Well, I got it to work in the end. I would like to share what I did, in case it could be of use to someone.
> 
>      Just launching the SSH daemon from the debugger and setting breakpoints in the relevant PAM source code file won't usually work. This is because the SSH forks children processes, and gdb seems to unable to follow them properly. And, yes, I tried with the different 'set follow-*' commands in gdb.

For the next time, I suggest also trying "set detach-on-fork off",
and "set schedule-multiple on".

Thanks,
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.