File: note-netbsd-core.test

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (54 lines) | stat: -rw-r--r-- 1,835 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## Test that note values are interpreted correctly for NetBSD core files.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU --strict-whitespace
# RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM --strict-whitespace

--- !ELF
FileHeader:
  Class: ELFCLASS64
  Data:  ELFDATA2LSB
  Type:  ET_CORE
Sections:
  - Name: .note.foo
    Type: SHT_NOTE
    Notes:
      - Name: NetBSD-CORE
        Type: NT_NETBSDCORE_PROCINFO
      - Name: NetBSD-CORE
        Type: NT_NETBSDCORE_AUXV
      - Name: NetBSD-CORE@3615
        Type: NT_NETBSDCORE_LWPSTATUS

ProgramHeaders:
  - Type:     PT_NOTE
    FirstSec: .note.foo
    LastSec:  .note.foo

# GNU:      Displaying notes found at file offset 0x00000078 with length 0x00000050:
# GNU-NEXT:   Owner                Data size 	Description
# GNU-NEXT:   NetBSD-CORE          0x00000000	NT_NETBSDCORE_PROCINFO (procinfo structure)
# GNU-NEXT:   NetBSD-CORE          0x00000000	NT_NETBSDCORE_AUXV (ELF auxiliary vector data)
# GNU-NEXT:   NetBSD-CORE@3615     0x00000000	PT_LWPSTATUS (ptrace_lwpstatus structure)

# LLVM:      Notes [
# LLVM-NEXT:   NoteSection {
# LLVM-NEXT:     Name: <?>
# LLVM-NEXT:     Offset: 0x78
# LLVM-NEXT:     Size: 0x50
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: NetBSD-CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_NETBSDCORE_PROCINFO (procinfo structure)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: NetBSD-CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_NETBSDCORE_AUXV (ELF auxiliary vector data)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: NetBSD-CORE@3615
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: PT_LWPSTATUS (ptrace_lwpstatus structure)
# LLVM-NEXT:     }
# LLVM-NEXT:   }
# LLVM-NEXT: ]