127 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: %lldb -c %t -o 'process plugin dump --all' | \3# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \4# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \5# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \6# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \7# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s8# RUN: %lldb -c %t -o 'process plugin dump -a' | \9# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \10# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \11# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \12# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \13# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s14# RUN: %lldb -c %t -o 'process plugin dump --directory' | FileCheck --check-prefix=CHECKDIR %s15# RUN: %lldb -c %t -o 'process plugin dump -d' | FileCheck --check-prefix=CHECKDIR %s16# RUN: %lldb -c %t -o 'process plugin dump --linux' | \17# RUN: FileCheck --check-prefix=CHECKCPU --check-prefix=CHECKSTATUS \18# RUN: --check-prefix=CHECKLSB --check-prefix=CHECKCMD --check-prefix=CHECKENV \19# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP --check-prefix=CHECKSTAT \20# RUN: --check-prefix=CHECKUP --check-prefix=CHECKFD %s21# RUN: %lldb -c %t -o 'process plugin dump --cpuinfo' | FileCheck --check-prefix=CHECKCPU %s22# RUN: %lldb -c %t -o 'process plugin dump -C' | FileCheck --check-prefix=CHECKCPU %s23# RUN: %lldb -c %t -o 'process plugin dump --status' | FileCheck --check-prefix=CHECKSTATUS %s24# RUN: %lldb -c %t -o 'process plugin dump -s' | FileCheck --check-prefix=CHECKSTATUS %s25# RUN: %lldb -c %t -o 'process plugin dump --lsb-release' | FileCheck --check-prefix=CHECKLSB %s26# RUN: %lldb -c %t -o 'process plugin dump -r' | FileCheck --check-prefix=CHECKLSB %s27# RUN: %lldb -c %t -o 'process plugin dump --cmdline' | FileCheck --check-prefix=CHECKCMD %s28# RUN: %lldb -c %t -o 'process plugin dump -c' | FileCheck --check-prefix=CHECKCMD %s29# RUN: %lldb -c %t -o 'process plugin dump --environ' | FileCheck --check-prefix=CHECKENV %s30# RUN: %lldb -c %t -o 'process plugin dump -e' | FileCheck --check-prefix=CHECKENV %s31# RUN: %lldb -c %t -o 'process plugin dump --auxv' | FileCheck --check-prefix=CHECKAUX %s32# RUN: %lldb -c %t -o 'process plugin dump -x' | FileCheck --check-prefix=CHECKAUX %s33# RUN: %lldb -c %t -o 'process plugin dump --maps' | FileCheck --check-prefix=CHECKMAP %s34# RUN: %lldb -c %t -o 'process plugin dump -m' | FileCheck --check-prefix=CHECKMAP %s35# RUN: %lldb -c %t -o 'process plugin dump --stat' | FileCheck --check-prefix=CHECKSTAT %s36# RUN: %lldb -c %t -o 'process plugin dump -S' | FileCheck --check-prefix=CHECKSTAT %s37# RUN: %lldb -c %t -o 'process plugin dump --uptime' | FileCheck --check-prefix=CHECKUP %s38# RUN: %lldb -c %t -o 'process plugin dump -u' | FileCheck --check-prefix=CHECKUP %s39# RUN: %lldb -c %t -o 'process plugin dump --fd' | FileCheck --check-prefix=CHECKFD %s40# RUN: %lldb -c %t -o 'process plugin dump -f' | FileCheck --check-prefix=CHECKFD %s41 42# CHECKDIR: RVA SIZE TYPE StreamType43# CHECKDIR-NEXT: ---------- ---------- ---------- --------------------------44# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000038 0x00000007 SystemInfo45# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x0000000f MiscInfo46# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000010 0x47670003 LinuxCPUInfo47# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001a 0x47670004 LinuxProcStatus48# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670005 LinuxLSBRelease49# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670006 LinuxCMDLine50# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670007 LinuxEnviron51# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670008 LinuxAuxv52# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x000000bb 0x47670009 LinuxMaps53# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x4767000b LinuxProcStat54# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000000e 0x4767000c LinuxProcUptime55# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000016 0x4767000d LinuxProcFD56 57--- !minidump58Streams: 59 - Type: SystemInfo60 Processor Arch: BP_ARM6461 Platform ID: Linux62 CSD Version: '15E216'63 CPU: 64 CPUID: 0x0000000065 - Type: MiscInfo66 Content: 00000000010000007B00000000000000000000000000000067 - Type: LinuxCPUInfo68 Text: |69 cpu info output70 71# CHECKCPU: /proc/cpuinfo:72# CHECKCPU-NEXT: cpu info output73 - Type: LinuxProcStatus74 Text: |75 /proc/<pid>/status output76 77# CHECKSTATUS: /proc/PID/status:78# CHECKSTATUS-NEXT: /proc/<pid>/status output79 - Type: LinuxLSBRelease80 Text: |81 /etc/lsb-release output82 83# CHECKLSB: /etc/lsb-release:84# CHECKLSB-NEXT: /etc/lsb-release output85 - Type: LinuxCMDLine86 Text: |87 /proc/<pid>/cmdline output88 89# CHECKCMD: /proc/PID/cmdline:90# CHECKCMD-NEXT: /proc/<pid>/cmdline output91 - Type: LinuxEnviron92 Content: 2F70726F632F3C7069643E2F656E7669726F6E206F75747075740093# CHECKENV: /proc/PID/environ:94# CHECKENV-NEXT: /proc/<pid>/environ output95 - Type: LinuxAuxv96 Content: 2F70726F632F3C7069643E2F61757876206F75747075740097# CHECKAUX: /proc/PID/auxv:98# CHECKAUX-NEXT: 0x00000000: 2f 70 72 6f 63 2f 3c 70 69 64 3e 2f 61 75 78 76 /proc/<pid>/auxv99# CHECKAUX-NEXT: 0x00000010: 20 6f 75 74 70 75 74 00 output.100 - Type: LinuxMaps101 Text: |102 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process103 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process104 400dc000-400dd000 rw-p 00000000 00:00 0 105 106# CHECKMAP: /proc/PID/maps:107# CHECKMAP-NEXT: 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process108# CHECKMAP-NEXT: 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process109# CHECKMAP-NEXT: 400dc000-400dd000 rw-p 00000000 00:00 0 110 - Type: LinuxProcStat111 Text: |112 /proc/<pid>/stat output113 114# CHECKSTAT: /proc/PID/stat:115# CHECKSTAT-NEXT: /proc/<pid>/stat output116 - Type: LinuxProcUptime117 Text: |118 uptime output119 120# CHECKUP: uptime:121# CHECKUP-NEXT: uptime output122 - Type: LinuxProcFD123 Content: 2F70726F632F3C7069643E2F6664206F757470757400124# CHECKFD: /proc/PID/fd:125# CHECKFD-NEXT: /proc/<pid>/fd output126...127