Patch for new DW_OP
Tambay, Pallavi
Pallavi.Tambay@amd.com
Fri Feb 29 23:05:00 GMT 2008
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.
*/
More information about the Binutils
mailing list