aboutsummaryrefslogtreecommitdiff
path: root/exec/elfcore.c
Commit message (Collapse)AuthorAgeFilesLines
* elfcore: Add support for saving x86_64 registersSergey Bugaev2023-05-101-1/+71
| | | | Message-Id: <20230508213136.608575-21-bugaevc@gmail.com>
* exec: Port to x86_64Sergey Bugaev2023-05-101-3/+3
| | | | Message-Id: <20230508213136.608575-20-bugaevc@gmail.com>
* Fix warningsSamuel Thibault2018-03-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libdiskfs/boot-start.c (diskfs_start_bootstrap): Fix printf format. * libfshelp/delegate.c: Include <alloca.h> and <stdlib.h>. * libfshelp/start-translator-long.c: Include <stdlib.h>. * libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Fix prototypes for password_check_group and password_check_user. * libstore/argp.c: Include <stdlib.h>. * libstore/task.c: Include <stdlib.h>. * exec/exec.c: Include <mach/vm_param.h>. * libbpf/bpf_impl.c: Include <stdlib.h>. * proc/info.c (S_proc_getloginpids): Remove local variables leader_task and leader_sub. * proc/main.c (main): Remove local variable original_argv. * boot/boot.c (task_died, S_mach_notify_new_task): Fix printf format. * exec/elfcore.c: Include <alloca.h> and <mach/vm_param.h>. * trans/crash.c: Include <hurd/msg.h>. * trans/random.c: Include <signal.h>. * utils/login.c: Include <signal.h>. * utils/id.c: Include <hurd/msg.h>. * utils/devprobe.c: Include <stdlib.h>. * utils/addauth.c: Include <hurd/msg.h>. * utils/frobauth-mod.c: Include <hurd/msg.h>. * utils/storeread.c: Include <stdlib.h>. * utils/msgport.c: Include <hurd/msg.h>. * sutils/clookup.c (file_name_lookup_carefully): Fix lookup function prototype, make head and tail const. * utils/rpcscan.c: Include <stdlib.h>. * sutils/bless.c: Include <stdlib.h>. * fstests/fstests.c: Include <stdlib.h>. * startup/startup.c (argz_task_insert_right): Fix printf format. * init/init.c: Include <stdlib.h>.
* Record executable entry for PIE core dumpsSamuel Thibault2017-12-111-0/+13
| | | | | | | | | | | | * hurd/process.defs (proc_set_entry, proc_get_entry): New RPCs. * hurd/process_reply.defs: Add skips for proc_set_entry, proc_get_entry. * hurd/process_request.defs: Likewise. * exec/exec.c (do_exec): Call proc_set_entry. * proc/proc.h (proc): Add p_entry field. * proc/mgt.c (S_proc_set_entry, S_proc_get_entry): New RPC implementations. * exec/elfcore.c (dump_core): Add at_entry note, call proc_get_entry to get it, and write it with WRITE_NOTE.
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-7/+7
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* Revert part of "fix compiler warnings in hurd/exec"Thomas Schwinge2016-05-231-2/+2
| | | | | | | | | This reverts part of commit 05c3ffac543052c8d0b171a5f77bb977d5316a61. These type casts are no longer needed after the commit e914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf changes. * exec/elfcore.c: Revert type casts added in commit 05c3ffac543052c8d0b171a5f77bb977d5316a61.
* fix compiler warnings in hurd/execFlavio Cruz2015-12-291-2/+2
| | | | | | | exec: Fix compiler warnings. * exec/elfcore.c: Cast arguments to vm_address_t. * exec/main.c: Use %lu in asprintf.
* Define TIME_VALUE_TO_TIMESPEC only when not defined alreadySamuel Thibault2015-09-191-0/+2
| | | | | * exec/elfcore.c (TIME_VALUE_TO_TIMESPEC) [TIME_VALUE_TO_TIMESPEC]: Do not redefine macro.
* Fix space styleSamuel Thibault2015-03-051-12/+12
|
* Fix actual procinfo_t typeSamuel Thibault2014-11-021-2/+2
| | | | | * exec/elfcore.c (dump_core): Use procinfo_t, which is already a pointer, instead of procinfo_t*.
* Fix proc_getprocinfo callsSamuel Thibault2014-11-021-2/+2
| | | | | | | | | | | The deallocation also needs to be fixed. Also, fetch_procinfo already took care of the conversion. * exec/elfcore.c (dump_core): Fix procinfoCnt taken from proc_getprocinfo. * utils/login.c (check_owned): Likewise. * libps/procstat.c (merge_procinfo): Remove conversion between bytes and int, already handled by fetch_procinfo.
* Fix proc_getprocinfo callsSamuel Thibault2014-11-021-1/+1
| | | | | | | | | The procinfoCnt argument is the number of elements of the procinfo_t array, not its size in bytes. * exec/elfcore.c (dump_core): Fix procinfoCnt given to proc_getprocinfo. * libps/procstat.c (merge_procinfo): Likewise. * utils/login.c (check_owned): Likewise.
* Fix registers recording in core dumpSamuel Thibault2013-02-111-4/+4
| | | | | * exec/elfcore.c (fetch_thread_regset): Fix field shifting order to avoid losing register content.
* Update copyright years.Thomas Schwinge2008-07-011-1/+1
|
* * elfcore.c (TIME_VALUE_TO_TIMESPEC): Completely implement instead ofSamuel Thibault2008-06-101-5/+11
| | | | | | casting `time_value *' into `struct timeval *'. (dump_core): Reimplement timeradd instead of casting `time_value *' into `struct timeval *'.
* 2004-02-10 Roland McGrath <roland@frob.com>Roland McGrath2004-02-101-10/+10
| | | | | | | | * elfcore.c (dump_core): Include null terminator in note name size, and round up to four byte alignment. (dump_core: write_note): Don't round OFFSET after each partial write. (dump_core): Don't round up to page size before writing notes. Do round up to page size for offset of each PT_LOAD region.
* 2002-09-17 Roland McGrath <roland@frob.com>Roland McGrath2002-09-171-8/+21
| | | | | * elfcore.c [i386_THREAD_STATE] (fetch_thread_regset): The two types are not actually identical, must rearrange some members a little.
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-1/+1
| | | | * elfcore.c (dump_core): int -> size_t
* 2002-05-01 Roland McGrath <roland@frob.com>Roland McGrath2002-05-031-0/+28
| | | | | | * elfcore.c [ALPHA_THREAD_STATE] (ELF_MACHINE, fetch_thread_regset, fetch_thread_fpregset): New definitions for Alpha CPU.
* 2002-03-11 Roland McGrath <roland@frob.com>Roland McGrath2002-03-111-68/+138
| | | | | | * elfcore.c: New file, used by crash server (../trans) to write ELF core dump files. Thanks to Jon Arney <jarney1@cox.net> for spurring me to write this, and for helping to test and debug it.
* (dump_core): Missing munmapRoland McGrath2002-03-111-0/+4
|
* Prototype code to produce the NT_PSINFO note.Roland McGrath2002-03-111-7/+115
|
* Fixed some little bugs in the prototype code.Roland McGrath2002-03-091-17/+16
|
* Untested code.Roland McGrath2002-03-081-88/+326
|
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-1/+1
| | | | | | | | | | | | | | | * core.c (core_dump_task): Use munmap instead of vm_deallocate, when it's from our own task. * elfcore.c: Likewise. * exec.c (load_section): Likewise. (map): Likewise. (close_exec_stream): Likewise. (finish_mapping): Likewise. (load): Likewise. (do_exec): Likewise. (S_exec_setexecdata): Likewise. * hashexec.c (check_hashbang): Likewise. * main.c (deadboot): Likewise.
* *** empty log message ***Michael I. Bushnell1996-07-181-0/+100