From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21884 invoked by alias); 29 Aug 2007 20:45:18 -0000 Received: (qmail 21877 invoked by uid 22791); 29 Aug 2007 20:45:17 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,HK_OBFDOM,SPF_HELO_PASS,SPF_PASS,TW_DW,TW_PM X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Aug 2007 20:45:08 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7TKj6OI011315 for ; Wed, 29 Aug 2007 16:45:07 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7TKj661009714; Wed, 29 Aug 2007 16:45:06 -0400 Received: from toner.toronto.redhat.com (toner.toronto.redhat.com [172.16.14.55]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l7TKj50R015656; Wed, 29 Aug 2007 16:45:05 -0400 Message-ID: <46D5DAD1.8050807@redhat.com> Date: Wed, 29 Aug 2007 20:45:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Roland McGrath CC: frysk Subject: Re: elfutils import References: <20070827202033.D62924D05BE@magilla.localdomain> In-Reply-To: <20070827202033.D62924D05BE@magilla.localdomain> Content-Type: multipart/mixed; boundary="------------060009040009040500030402" X-Virus-Checked: Checked by ClamAV on sourceware.org X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00368.txt.bz2 This is a multi-part message in MIME format. --------------060009040009040500030402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 369 Roland McGrath wrote: > That diff was really not useful. Please post the diff between what you > have in the frysk tree and the corresponding vanilla elfutils source. > Roland, My mistake. This branch (sami-elfutils_129-merge-20070827-branch) now contains the vanila elfutils sources plus frysk changes to elfutils. I attached a diff showing thos changes. Sami --------------060009040009040500030402 Content-Type: text/plain; name="frysk_changes" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="frysk_changes" Content-length: 6902 Index: ChangeLog =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/ChangeLog,v retrieving revision 1.1.1.3 retrieving revision 1.16.2.3 diff -u -r1.1.1.3 -r1.16.2.3 --- ChangeLog 22 Aug 2007 17:18:47 -0000 1.1.1.3 +++ ChangeLog 29 Aug 2007 17:13:51 -0000 1.16.2.3 @@ -4,6 +4,10 @@ * configure.ac: Don't use libelf-po/POTFILES.in as config file anymore. +2007-05-28 Nurdin Premji + + * libdwfl/libdwfl.h: Publicize elf_from_remote_memory. + 2007-05-16 Roland McGrath * configure.ac (AM_INIT_AUTOMAKE): Use -Wno-portability. @@ -16,6 +20,11 @@ * configure.ac: Use AM_MAINTAINER_MODE. +2006-08-19 Stepan Kasal + + * Makefile.am: Do not run installcheck nor uninstall either. + Do not define all targets on one line, attach explanation. + 2006-07-12 Ulrich Drepper * configure.ac (internal_function): Don't use internal visibility. @@ -25,6 +34,10 @@ * configure.ac: Add dummy automake conditional to get dependencies for non-generic linker right. See src/Makefile.am. +2006-06-27 Rick Moseley + + * Makefile.am: Change to not install for frysk. + 2005-11-18 Roland McGrath * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. Index: Makefile.am =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/Makefile.am,v retrieving revision 1.1.1.3 retrieving revision 1.8.2.3 diff -u -r1.1.1.3 -r1.8.2.3 --- Makefile.am 22 Aug 2007 17:18:53 -0000 1.1.1.3 +++ Makefile.am 29 Aug 2007 17:13:51 -0000 1.8.2.3 @@ -31,7 +31,7 @@ SUBDIRS = config m4 lib libelf libebl libdwfl libdw libcpu libasm backends \ src po tests -EXTRA_DIST = elfutils.spec GPG-KEY NOTES EXCEPTION +EXTRA_DIST = elfutils.spec GPG-KEY NOTES # Make sure the test install uses lib64 when $LIB will yield lib64. # Make sure the test build uses the same compiler, which on e.g. ppc64 @@ -46,6 +46,15 @@ rpm: dist rpmbuild -ts --sign elfutils-@PACKAGE_VERSION@.tar.gz +# Do not install the copy embedded in frysk: +## (We cannot put all targets to one line, Automake would not understand.) +install: + : Do not run $@ in elfutils. +uninstall: + : Do not run $@ in elfutils. +installcheck: + : Do not run $@ in elfutils. + # Tell version 3.79 and up of GNU make to not build goals in this # directory in parallel. .NOTPARALLEL: Index: backends/ChangeLog =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/backends/ChangeLog,v retrieving revision 1.1.1.5 retrieving revision 1.11.2.3 diff -u -r1.1.1.5 -r1.11.2.3 --- backends/ChangeLog 22 Aug 2007 17:20:05 -0000 1.1.1.5 +++ backends/ChangeLog 29 Aug 2007 17:13:51 -0000 1.11.2.3 @@ -65,6 +65,11 @@ need static object for anything here. This rule is the only source of .deps/ files. +2006-06-23 Stepan Kasal + + * Makefile.am: Work around a bug in GNU make -jN by mentioning *.map. + * Makefile.am: Mention the *.o files. + 2006-06-23 Stepan Kasal * Makefile.am (PACKAGE_VERSION): Remove superfluous definition. Index: backends/Makefile.am =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/backends/Makefile.am,v retrieving revision 1.1.1.3 retrieving revision 1.9.2.3 diff -u -r1.1.1.3 -r1.9.2.3 --- backends/Makefile.am 22 Aug 2007 17:20:07 -0000 1.1.1.3 +++ backends/Makefile.am 29 Aug 2007 17:13:51 -0000 1.9.2.3 @@ -45,6 +45,8 @@ noinst_LIBRARIES = $(libebl_pic) noinst_DATA = $(libebl_pic:_pic.a=.so) +# Workaround a bug in GNU make -jN: +non-intermediate-maps: $(libebl_pic:_pic.a=.map) if MUDFLAP libelf = ../libelf/libelf.a @@ -119,6 +121,14 @@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ fi +# The *.o files are deleted at the end of the first run (they are +# intermediate) and rebuilt in the second one (they get mentioned in +# autogenerated dependencies). To avoid this, mention them here: +# (It seems this makefile does not try to be portable, so the GNU extensions +# can be used here, too.) +non-intermediate-objects: $(foreach m,$(modules),$($(m)_SRCS:.c=.o)) + + install: install-am install-ebl-modules install-ebl-modules: $(mkinstalldirs) $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR) Index: libdwfl/libdwfl.h =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/libdwfl/libdwfl.h,v retrieving revision 1.1.1.4 retrieving revision 1.11.2.2 diff -u -r1.1.1.4 -r1.11.2.2 --- libdwfl/libdwfl.h 26 Apr 2007 17:20:53 -0000 1.1.1.4 +++ libdwfl/libdwfl.h 29 Aug 2007 17:13:51 -0000 1.11.2.2 @@ -455,6 +455,15 @@ const char *regname, int bits, int type), void *arg); + +extern Elf *elf_from_remote_memory (GElf_Addr ehdr_vma, + GElf_Addr *loadbasep, + ssize_t (*read_memory) (void *arg, + void *data, + GElf_Addr address, + size_t minread, + size_t maxread), + void *arg); #ifdef __cplusplus Index: tests/ChangeLog =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/tests/ChangeLog,v retrieving revision 1.1.1.5 retrieving revision 1.19.2.3 diff -u -r1.1.1.5 -r1.19.2.3 --- tests/ChangeLog 22 Aug 2007 17:19:06 -0000 1.1.1.5 +++ tests/ChangeLog 29 Aug 2007 17:13:51 -0000 1.19.2.3 @@ -174,6 +174,10 @@ * allregs.c (struct reginfo): Increase size of name. (one_register): Assert that it's big enough. +2006-06-23 Stepan Kasal + + * line2addr.c (main): Avoid using sscanf() to prevent a warning. + 2006-04-04 Roland McGrath * run-bug1-test.sh: Test a second case, to cover both byte orders. Index: tests/line2addr.c =================================================================== RCS file: /cvs/frysk/frysk-imports/elfutils/tests/line2addr.c,v retrieving revision 1.1.1.1 retrieving revision 1.7.2.2 diff -u -r1.1.1.1 -r1.7.2.2 --- tests/line2addr.c 8 May 2006 20:48:53 -0000 1.1.1.1 +++ tests/line2addr.c 29 Aug 2007 17:13:51 -0000 1.7.2.2 @@ -131,19 +131,18 @@ for (; cnt < argc; ++cnt) { struct args a = { .arg = argv[cnt] }; + char *c = strchr (a.arg, ':'); - switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line)) - { - default: - case 0: - printf ("ignored %s\n", argv[cnt]); - continue; - case 1: - a.line = 0; - break; - case 2: - break; - } + if (a.arg == NULL) { + printf ("ignored %s\n", a.arg); + continue; + } else if (c == NULL) { + a.file = strdup (a.arg); + a.line = 0; + } else { + a.file = strndup (a.arg, c - a.arg); + a.line = strtol (c + 1, NULL, 10); + } (void) dwfl_getdwarf (dwfl, &handle_module, &a, 0); --------------060009040009040500030402--