[Bug python/16942] lookup in static block finds wrong type?

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Tue Sep 30 14:39:15 GMT 2025


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

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7d43a7afc1a8193a93f534c1b6875630d3b83612

commit 7d43a7afc1a8193a93f534c1b6875630d3b83612
Author: Tom Tromey <tom@tromey.com>
Date:   Thu Apr 3 22:13:00 2025 -0600

    Fix bug in gdb.lookup_type

    gdb.lookup_type accepts a 'block' argument, but in some cases does not
    use it.  This can cause the wrong type to be returned.

    This patch fixes the problem by simply passing the block through.  I
    have no idea why it worked the way it did, and there weren't any tests
    for the 'block' parameter.  (I didn't look at git blame out of fear
    that it was my patch back in the day.)

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list