]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle case where DAP line can be None
authorTom Tromey <tromey@adacore.com>
Mon, 6 Jan 2025 14:45:33 +0000 (07:45 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 13 Jan 2025 14:42:27 +0000 (07:42 -0700)
commit183e227b00eaf23eaaa208b4db8e6e2973b14494
tree1ac2fb5116e27d57bbc7fe160c7a4931c72aa647
parent0866754873ccfe99520e7ac069f17cc7076c7a5c
Handle case where DAP line can be None

A comment in bugzilla pointed out a bug in my earlier patch to handle
the DAP "linesStartAt1" setting.  In particular, in the backtrace
code, "line" can be None, which would lead to an exception from
export_line.

This patch fixes the problem.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32468

(cherry picked from commit 28e585134434ee2c65df5001e4494c1b4adcd204)
gdb/python/lib/gdb/dap/bt.py