https://sourceware.org/bugzilla/show_bug.cgi?id=34160

            Bug ID: 34160
           Summary: support for .nv_debug_line_sass section
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: redp at mail dot ru
  Target Milestone: ---

it seems that nvcc/ptxas produces two section with debug lines
- ordinary .debug_line
- .nv_debug_line_sass to link SASS instructions with lines in PTX:
like in following excerpt from readelf -SW:

 [ 5] .debug_line         PROGBITS  0000000000000000 009ae0 000286 00   0   0 
1
 [ 6] .nv_debug_line_sass PROGBITS  0000000000000000 009d66 000494 00   0   0 
1

So to add its support one variant can something like

1) add new enum to dwarf_section_display_enum
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -121,6 +121,7 @@ enum dwarf_section_display_enum
   debug_sup,
   separate_debug_str,
   note_gnu_build_id,
+  nv_line,
   max
 };

2) and add new section to end of debug_displays

--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -12343,6 +12343,7 @@ struct dwarf_section_display debug_displays[] =
      in the main file. Hence we need to have two entries for .debug_str.  */
   { { ".debug_str",        ".zdebug_str",           "",         NO_ABBREVS }, 
    display_debug_str,      &do_debug_str,      false },
   { { ".note.gnu.build-id", "",                      "",        NO_ABBREVS }, 
    display_debug_not_supported, NULL,          false },
+  { { ".nv_debug_line_sass",   "",                  "",         NO_ABBREVS }, 
    display_debug_lines,    &do_debug_lines,    true },
 };

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to