ps: add catastrophic_failure()
The catastrophic_failure function tries to make bug reporting useful by telling in which line error occured, and drops core. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
@ -507,3 +507,12 @@ void self_info(void){
|
||||
open_psdb(namelist_file);
|
||||
fprintf(stderr,"namelist_file=\"%s\"\n",namelist_file?namelist_file:"<no System.map file>");
|
||||
}
|
||||
|
||||
void __attribute__ ((__noreturn__))
|
||||
catastrophic_failure(const char *filename,
|
||||
unsigned int linenum,
|
||||
const char *message)
|
||||
{
|
||||
error_at_line(0, 0, filename, linenum, message);
|
||||
abort();
|
||||
}
|
||||
|
Reference in New Issue
Block a user