This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Unwinding CFI for x86_64 signal frame (__restore_rt)


Hi Jakub,

On Mon, 27 Nov 2006 23:06:58 +0100, Jakub Jelinek wrote:
...
> 	.cfi_startproc
> 	nop			# some instructions
> 	...
> 	.cfi_escape 0x10		# DW_CFA_expression
> 	.cfi_uleb128 3, 2f-1f	# register 3, length
> 	.cfi_label 1		# Similar to 1:
> 	.cfi_escape 0x77	# DW_OP_breg8
> 	.cfi_sleb128 0x80	# offset
> 	.cfi_label 2		# Similar to 2:
> 	...
> 	.cfi_endproc

it looks nice.  On top of it could be even easily built some higher-level
pseudoinstrs - like macros - to provide the (postfix notation) DW_OPs there:

	.cfi_startproc
	nop			# some instructions
	.cfi_cfa_startexpr, rbx	# register 3
	.cfi_op_breg r8, 0x80	# DW_OP_breg8, offset
	.cfi_cfa_endexpr
	...
	.cfi_endproc



Best Regards,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]