]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: adjust which Dwarf2 register numbers to use
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2024 08:25:59 +0000 (09:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2024 08:25:59 +0000 (09:25 +0100)
commitfabb73d1bb833f7da40971757b51635cda9274e8
treeb7c7907e4d608bddc003e8fe289d5fe7002e7534
parent77b07380deafa490b4c2da3c4d1661060b5319c9
x86: adjust which Dwarf2 register numbers to use

Consumers can't know which execution mode is in effect for a certain
piece of code; they can only go from object file properties. Hence which
register numbers to encode ought to depend solely on object file type.

In tc_x86_frame_initial_instructions() do away with parsing a register
name: We have a symbolic constant already for the 64-bit case, and the
32-bit number isn't going to change either. Said constant's definition
needs moving, though, to be available also for non-ELF. While moving
also adjust the comment to clarify that it's applicable to 64-bit mode
only.
gas/config/tc-i386.c
gas/config/tc-i386.h