* dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,
authorNick Clifton <nickc@redhat.com>
Mon, 3 Mar 2008 10:19:01 +0000 (10:19 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 3 Mar 2008 10:19:01 +0000 (10:19 +0000)
  DW_OP_PGI_omp_thread_num.

* dwarf.c (decode_location_expression): Handle
  DW_OP_PGI_omp_thread_num.

binutils/ChangeLog
binutils/dwarf.c
include/elf/ChangeLog
include/elf/dwarf2.h

index 32047adaae48f04b7be2feee847f963893a42b0a..5738f0ac422bbdb94ec84883aa10db098db36bcc 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-03  Nick Clifton  <nickc@redhat.com>
+
+       * dwarf.c (decode_location_expression): Handle
+       DW_OP_PGI_omp_thread_num.
+
 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
 
        * objdump.c (objdump_print_addr): Initialise "sym".
index 814e47953b18cdf58357e9ec08479528f04e5332..cdc8d12b66178cda4cddd25fdb861a728d8dd04f 100644 (file)
@@ -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)
index b1c75677e0e2e10f618901b5fc1f4c3b5c23016c..92bd5745b2da629bbf7ca9fcf72bea82673d40ae 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-03  Pallavi Tambay  <pallavi.tambay@amd.com>
+
+       * dwarf2.h: (enum dwarf_location_atom): Add new DW_OP:
+       DW_OP_PGI_omp_thread_num.
+
 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
 
        * mips.h: Update copyright.
index 371a038c61f947a9b447ef8401a38399a8264bc5..648658da365a858e72618673f729e1c359c69845 100644 (file)
@@ -1,7 +1,7 @@
 /* Declarations and definitions of codes relating to the DWARF2 and
    DWARF3 symbolic debugging information formats.
    Copyright (C) 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+   2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
 
    Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
    Office (AJPO), Florida State University and Silicon Graphics Inc.
@@ -551,7 +551,9 @@ enum dwarf_location_atom
     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.  */