a.out-core.h 846 B

12345678910111213141516171819202122232425262728293031
  1. /* a.out coredump register dumper
  2. *
  3. * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_A_OUT_CORE_H
  12. #define _ASM_A_OUT_CORE_H
  13. #ifdef __KERNEL__
  14. #include <linux/user.h>
  15. /*
  16. * fill in the user structure for an a.out core dump
  17. */
  18. static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)
  19. {
  20. /* Only should be used for SunOS and ancient a.out
  21. * SparcLinux binaries... Not worth implementing.
  22. */
  23. memset(dump, 0, sizeof(struct user));
  24. }
  25. #endif /* __KERNEL__ */
  26. #endif /* _ASM_A_OUT_CORE_H */