Skip to content

Commit

Permalink
ctfdwdiff: Don't ask for variables and inline expansions in pfunct
Browse files Browse the repository at this point in the history
As we won't find them in CTF land... I also have to add a new pfunct cmdline
option to ask for inline functions not to be printed, as they aren't on the
symtab.

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
acmel committed Mar 31, 2009
1 parent 6afe884 commit a94b511
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ctfdwdiff
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ diff_tool() {
local ctf_options=$3
local obj=$4

diff=$results_dir/$obj.diff
ctf=$results_dir/$obj.ctf.c
dwarf=$results_dir/$obj.dwarf.c
diff=$results_dir/$obj.$tool.diff
ctf=$results_dir/$obj.$tool.ctf.c
dwarf=$results_dir/$obj.$tool.dwarf.c
$tool -F ctf $ctf_options $obj > $ctf
$tool -F dwarf $dwarf_options $obj > $dwarf
diff -up $dwarf $ctf > $diff
if [ -s $diff ] ; then
[ $# -gt 4 ] && vim $results_dir/$obj.diff
[ $# -gt 4 ] && vim $diff
exit 0
else
rm -f $diff $ctf $dwarf
Expand All @@ -25,7 +25,7 @@ diff_tool() {
diff_one() {
local obj=$1
diff_tool "pahole" "--flat_arrays --show_private_classes --fixup_silly_bitfields" " " $obj $2
diff_tool "pfunct" "-TVi --no_parm_names" "-TVi" $obj $2
diff_tool "pfunct" "-V --no_parm_names" "-V" $obj $2
}


Expand Down

0 comments on commit a94b511

Please sign in to comment.