Skip to content

Commit

Permalink
Fix for the PPC64 "dis" command to prevent conditional branch
Browse files Browse the repository at this point in the history
target addresses from being displayed as kernel system call
alias/wrapper names, for example, "SyS_read+<offset>" instead
of "sys_read+<offset>".
([email protected])
  • Loading branch information
Dave Anderson committed Aug 13, 2015
1 parent 0807455 commit 48add7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2496,10 +2496,10 @@ ppc64_dis_filter(ulong vaddr, char *inbuf, unsigned int output_radix)
if ((FIRSTCHAR(argv[argc-1]) == '<') &&
(LASTCHAR(argv[argc-1]) == '>')) {
p1 = rindex(inbuf, '<');
while ((p1 > inbuf) && !STRNEQ(p1, " 0x"))
while ((p1 > inbuf) && !(STRNEQ(p1, " 0x") || STRNEQ(p1, ",0x")))
p1--;

if (!STRNEQ(p1, " 0x"))
if (!(STRNEQ(p1, " 0x") || STRNEQ(p1, ",0x")))
return FALSE;
p1++;

Expand Down

0 comments on commit 48add7d

Please sign in to comment.