Fix gdb.python/py-thrhandle.exp failures for -m32 multilib
authorKevin Buettner <kevinb@redhat.com>
Fri, 26 Jul 2019 01:27:20 +0000 (18:27 -0700)
committerKevin Buettner <kevinb@redhat.com>
Sat, 27 Jul 2019 20:52:45 +0000 (13:52 -0700)
commit6bdfee81576aae55666a9245cfc0a316a6849957
treea472cdee9d0fea740162bbdf95b5e0b9dde859de
parent98a617f8d5cf9bfb53b2e1d5cf3f0e0f188d9e53
Fix gdb.python/py-thrhandle.exp failures for -m32 multilib

This patch fixes the following failures when testing with
"target_board unix/-m32" using a x86_64-pc-linux-gnu native GDB.

FAIL: gdb.python/py-thrhandle.exp: print thread for bogus handle thrs[3]
FAIL: gdb.python/py-thrhandle.exp: print thread for bogus handle thrs[4]
FAIL: gdb.python/py-thrhandle.exp: print thread id for thrs[0]
FAIL: gdb.python/py-thrhandle.exp: print thread id for thrs[1]
FAIL: gdb.python/py-thrhandle.exp: print thread id for thrs[2]
FAIL: gdb.python/py-thrhandle.exp: thread 0: fetch thread handle from thread
FAIL: gdb.python/py-thrhandle.exp: thread 0: verify that handles are the same
FAIL: gdb.python/py-thrhandle.exp: thread 1: fetch thread handle from thread
FAIL: gdb.python/py-thrhandle.exp: thread 1: verify that handles are the same
FAIL: gdb.python/py-thrhandle.exp: thread 2: fetch thread handle from thread
FAIL: gdb.python/py-thrhandle.exp: thread 2: verify that handles are the same

I've written it so that it might work for other 64-bit host / 32-bit target
combos too.

gdb/ChangeLog:

* linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
Add case for debugging 32-bit target on 64-bit host.  Revise
comment.
gdb/ChangeLog
gdb/linux-thread-db.c
This page took 0.033213 seconds and 4 git commands to generate.