Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-arm64
  • Repository
Switch branch/tag
  • ipipe-arm64
  • include
  • linux
  • ptrace.h
Find file BlameHistoryPermalink
  • Roland McGrath's avatar
    [PATCH] Use decimal for PTRACE_ATTACH and PTRACE_DETACH. · 416bc512
    Roland McGrath authored Sep 29, 2006
    
    
    It is sure confusing that linux/ptrace.h has:
    	#define PTRACE_SINGLESTEP	   9
    	#define PTRACE_ATTACH		0x10
    	#define PTRACE_DETACH		0x11
    	#define PTRACE_SYSCALL		  24
    All the low-numbered constants are in decimal, but the last two in hex.
    It sure makes it likely that someone will look at this and think that
    9, 10, 11 are used, and that 16 and 17 are not used.
    
    How about we use the same notation for all the numbers [0,24] in the
    same short list?
    
    Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    416bc512

Imprint & Privacy Policy