This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Patch for new DW_OP
- From: "Tambay, Pallavi" <Pallavi dot Tambay at amd dot com>
- To: <binutils at sourceware dot org>
- Cc: "Meissner, Michael" <michael dot meissner at amd dot com>, "rajagopal, dwarak" <dwarak dot rajagopal at amd dot com>, <steven dot nakamoto at pgroup dot com>
- Date: Fri, 29 Feb 2008 16:57:33 -0600
- Subject: Patch for new DW_OP
Hi,
This patch adds the following dwarf operation as a PGI
(STMicroelectronics) extension.
Operation: DW_OP_PGI_omp_thread_num
Code: 0xf8
No. of operands: 0
Description:
The DW_OP_PGI_omp_thread_num operation pushes the thread number for the
current thread
as it would be returned by the standard OpenMP library function
omp_get_thread_num().
The "current thread" is the thread for which the expression is being
evaluated.
-Pallavi
elf/ChangeLog
2008-02-29 Pallavi Tambay <pallavi.tambay@amd.com>
* dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,
DW_OP_PGI_omp_thread_num.
--- gnu/binutils-2.18/include/elf/dwarf2.h 2007-08-06
12:59:47.000000000 -0700
+++ dwarf2.h 2008-02-29 09:59:11.367972000 -0800
@@ -548,7 +548,9 @@
DW_OP_HP_fltconst8 = 0xe3,
DW_OP_HP_mod_range = 0xe4,
DW_OP_HP_unmod_range = 0xe5,
- DW_OP_HP_tls = 0xe6
+ DW_OP_HP_tls = 0xe6,
+ /* PGI (STMicroelectronics) extensions. */
+ DW_OP_PGI_omp_thread_num = 0xf8
};
#define DW_OP_lo_user 0xe0 /* Implementation-defined range start.
*/