Bug 15594 - tls support in 64x32 x86 gdbserver doesn't extend address to 64 bits
Summary: tls support in 64x32 x86 gdbserver doesn't extend address to 64 bits
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: server (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 17:56 UTC by dje
Modified: 2013-06-06 18:04 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2013-06-06 17:56:39 UTC
Filing this so it can be referred to.
The code to handle tls in linux-x86-low.c doesn't extend the 32-bit address to 64 bits leaving the upper bits unassigned.

ref: http://sourceware.org/ml/gdb-patches/2013-05/msg00936.html

patch to trunk here:
http://sourceware.org/ml/gdb-cvs/2013-05/msg00302.html
Comment 1 dje 2013-06-06 17:57:54 UTC
patch is in trunk
Comment 2 cvs-commit@gcc.gnu.org 2013-06-06 18:02:50 UTC
CVSROOT:	/cvs/src
Module name:	src
Changes by:	devans@sourceware.org	2013-06-06 18:02:48

Modified files:
	gdb/gdbserver  : ChangeLog 

Log message:
	Add PR number to this entry:
	PR server/15594
	* linux-x86-low.c (ps_get_thread_area): Properly extend address to
	64 bits in 64-cross-32 environment.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/ChangeLog.diff?cvsroot=src&r1=1.721&r2=1.722
Comment 3 cvs-commit@gcc.gnu.org 2013-06-06 18:04:32 UTC
CVSROOT:	/cvs/src
Module name:	src
Branch: 	gdb_7_6-branch
Changes by:	devans@sourceware.org	2013-06-06 18:04:30

Modified files:
	gdb/gdbserver  : ChangeLog 

Log message:
	Add PR number to this entry:
	PR server/15594
	* linux-x86-low.c (ps_get_thread_area): Properly extend address to
	64 bits in 64-cross-32 environment.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.697.2.5&r2=1.697.2.6