kgdb: debugging non-running threads doesn't work |
||||
Issue description1. Attach kgdb, as per: https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-faq#TOC-Debugging-with-KGDB-KDB 2. In kgdb, type "info thread" 3. Switch to a sleeping thread 4. Type 'bt' Expect: should work Actual: on arm64, it doesn't
,
Mar 15 2018
,
Mar 15 2018
Update the Errata under KGDB notes? https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-faq#TOC-Debugging-with-KGDB-KDB
,
Mar 15 2018
> Update the Errata under KGDB notes? Yes, once the actual fixes land in 4.4 and 4.14. The above just made it so that we can revert the gdb hack we have. See chromium:630015.
,
Mar 15 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/6b2b71c306c49b5d737286f49b22b675370eb8c1 commit 6b2b71c306c49b5d737286f49b22b675370eb8c1 Author: Douglas Anderson <dianders@chromium.org> Date: Thu Mar 15 19:49:59 2018 FROMGIT: arm64/debug: Fix registers on sleeping tasks This is the equivalent of commit 001bf455d206 ("ARM: 8428/1: kgdb: Fix registers on sleeping tasks") but for arm64. Nuff said. ...well, perhaps I could also add that task_pt_regs are userspace registers and that's not what kgdb is supposed to be reporting. We're supposed to be reporting kernel registers. Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Will Deacon <will.deacon@arm.com> BUG= chromium:821174 TEST='info thread' in kgdb now works for sleeping tasks Change-Id: I0e995418f4947c7ce6f6e803126fbe711d3aa0a6 Signed-off-by: Douglas Anderson <dianders@chromium.org> (cherry picked from commit 24153c03d4f5dc4ac0ccd446a9636c269c1d4a02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core) Reviewed-on: https://chromium-review.googlesource.com/959393 Reviewed-by: Evan Green <evgreen@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> [modify] https://crrev.com/6b2b71c306c49b5d737286f49b22b675370eb8c1/arch/arm64/kernel/kgdb.c
,
Mar 15 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/0259948bed96b4d3ca7b3917d61e91865a35a419 commit 0259948bed96b4d3ca7b3917d61e91865a35a419 Author: Douglas Anderson <dianders@chromium.org> Date: Thu Mar 15 22:27:42 2018 FROMGIT: arm64/debug: Fix registers on sleeping tasks This is the equivalent of commit 001bf455d206 ("ARM: 8428/1: kgdb: Fix registers on sleeping tasks") but for arm64. Nuff said. ...well, perhaps I could also add that task_pt_regs are userspace registers and that's not what kgdb is supposed to be reporting. We're supposed to be reporting kernel registers. Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Will Deacon <will.deacon@arm.com> BUG= chromium:821174 TEST='info thread' in kgdb now works for sleeping tasks Change-Id: I0e995418f4947c7ce6f6e803126fbe711d3aa0a6 Signed-off-by: Douglas Anderson <dianders@chromium.org> (cherry picked from commit 24153c03d4f5dc4ac0ccd446a9636c269c1d4a02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core) Reviewed-on: https://chromium-review.googlesource.com/371942 Reviewed-by: Matthias Kaehlcke <mka@chromium.org> [modify] https://crrev.com/0259948bed96b4d3ca7b3917d61e91865a35a419/arch/arm64/kernel/kgdb.c
,
Mar 15 2018
Fix landed; removed errata mention from wiki. |
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Mar 14 2018