Enhance personality syscall decoding
* personality.c (SYS_FUNC(personality)): On entering syscall, print first argument not as a hex value but as a set of flags. On exiting syscall, print return code as a set of flags. * NEWS: Mention this enhancement.
This commit is contained in:
parent
ffb6c55d7d
commit
97cbf69756
3
NEWS
3
NEWS
@ -1,6 +1,9 @@
|
||||
Noteworthy changes in release ?.?? (????-??-??)
|
||||
===============================================
|
||||
|
||||
* Improvements
|
||||
* Enhanced decoding of personality syscall.
|
||||
|
||||
* Bug fixes
|
||||
* Fixed build on arc, metag, nios2, or1k, and tile architectures.
|
||||
|
||||
|
@ -6,7 +6,11 @@
|
||||
|
||||
SYS_FUNC(personality)
|
||||
{
|
||||
printxval(personality_options, tcp->u_arg[0], "PER_???");
|
||||
if (entering(tcp)) {
|
||||
printflags(personality_options, tcp->u_arg[0], "PER_???");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return RVAL_DECODED;
|
||||
tcp->auxstr = sprintflags("", personality_options, tcp->u_rval);
|
||||
return RVAL_HEX | RVAL_STR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user