diff options
author | Nick Clifton <nickc@redhat.com> | 2008-03-03 10:19:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-03-03 10:19:01 +0000 |
commit | 35d60fe406fc549ffff0e3042b91d66716a22c37 (patch) | |
tree | f22cbfa79d494f4c53d89ebc094512e9bf54e607 /binutils/dwarf.c | |
parent | 4a628337a0cef1558842b9d66b7de6c1c6964803 (diff) | |
download | fsf-binutils-gdb-35d60fe406fc549ffff0e3042b91d66716a22c37.zip fsf-binutils-gdb-35d60fe406fc549ffff0e3042b91d66716a22c37.tar.gz fsf-binutils-gdb-35d60fe406fc549ffff0e3042b91d66716a22c37.tar.bz2 |
* dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,
DW_OP_PGI_omp_thread_num.
* dwarf.c (decode_location_expression): Handle
DW_OP_PGI_omp_thread_num.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 814e479..cdc8d12 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1014,6 +1014,15 @@ decode_location_expression (unsigned char * data, /* FIXME: Is there data associated with this OP ? */ break; + /* PGI (STMicroelectronics) extensions. */ + case DW_OP_PGI_omp_thread_num: + /* 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. */ + printf ("DW_OP_PGI_omp_thread_num"); + break; + default: if (op >= DW_OP_lo_user && op <= DW_OP_hi_user) |