Dwarves Archive on lore.kernel.org
 help / color / Atom feed
* Feature request: codiff only considering file basename
@ 2008-10-24 13:12 Diego 'Flameeyes' Pettenò
       [not found] ` <m27i7yxhk5.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Diego 'Flameeyes' Pettenò @ 2008-10-24 13:12 UTC (permalink / raw)
  To: dwarves-u79uwXL29TY76Z2rM5mHXA


[-- Attachment #1: Type: text/plain, Size: 647 bytes --]


I found myself today in the situation of using codiff on two binaries
built with the same sources, but reorganised around; since I noticed a
non-zero difference on codiff, I would have liked to know where the
difference would be, but since the source files' path has changed,
codiff is showing me too much noise and I can't figure out what changed.

Optionally considering the basename of the source files would be very
nice way to reduce the noise and only show the important data.

Thanks!

P.S.: is a new release to be expected? Or git is going to be the only
way?

-- 
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/


[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Feature request: codiff only considering file basename
       [not found] ` <m27i7yxhk5.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2008-10-24 13:19   ` Arnaldo Carvalho de Melo
  2008-11-09 19:17     ` Diego 'Flameeyes' Pettenò
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2008-10-24 13:19 UTC (permalink / raw)
  To: Diego 'Flameeyes' Pettenò; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA

Em Fri, Oct 24, 2008 at 03:12:58PM +0200, Diego 'Flameeyes' Pettenò escreveu:
> 
> I found myself today in the situation of using codiff on two binaries
> built with the same sources, but reorganised around; since I noticed a
> non-zero difference on codiff, I would have liked to know where the
> difference would be, but since the source files' path has changed,
> codiff is showing me too much noise and I can't figure out what changed.
> 
> Optionally considering the basename of the source files would be very
> nice way to reduce the noise and only show the important data.

Can you show an excerpt of the output you would like to see changed?
 
> Thanks!
> 
> P.S.: is a new release to be expected? Or git is going to be the only
> way?

I was expecting to make a release with the CTF encoder, but will try and
get one out RSN with what is in git.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Feature request: codiff only considering file basename
  2008-10-24 13:19   ` Arnaldo Carvalho de Melo
@ 2008-11-09 19:17     ` Diego 'Flameeyes' Pettenò
  0 siblings, 0 replies; 3+ messages in thread
From: Diego 'Flameeyes' Pettenò @ 2008-11-09 19:17 UTC (permalink / raw)
  To: dwarves-u79uwXL29TY76Z2rM5mHXA


[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

Arnaldo Carvalho de Melo <acme-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
writes:

> Can you show an excerpt of the output you would like to see changed?

Sorry for the delay, very long days lately :(

flame@yamato mytmpfs % echo "int foo() { return 1; }" > foo.c
flame@yamato mytmpfs % gcc -ggdb -c foo.c 
flame@yamato mytmpfs % gcc -ggdb -c ./foo.c -o foo2.o
flame@yamato mytmpfs % codiff foo.o foo2.o
foo.c:
  foo |  -11
 1 function changed, 11 bytes removed, diff: -11

./foo.c:
  foo |  +11
 1 function changed, 11 bytes added, diff: +11

foo2.o:
 2 functions changed, 11 bytes added, 11 bytes removed, diff: +0

This is what I mean as a problem, as a solution I'd check for just the
basename (so that foo.c and ./foo.c become the same file) or, much more
complicated but would really be nice, I'd check if all the symbols gone
From one file appeared on another, so that the output would then become:

flame@yamato mytmpfs % codiff foo.o foo2.o
 File renamed: was foo.c is ./foo.c

But that's going to be hard :P

-- 
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-24 13:12 Feature request: codiff only considering file basename Diego 'Flameeyes' Pettenò
     [not found] ` <m27i7yxhk5.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-24 13:19   ` Arnaldo Carvalho de Melo
2008-11-09 19:17     ` Diego 'Flameeyes' Pettenò

Dwarves Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dwarves/0 dwarves/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dwarves dwarves/ https://lore.kernel.org/dwarves \
		dwarves@vger.kernel.org
	public-inbox-index dwarves

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dwarves


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git