From owner-freebsd-current Tue May 28 20:21:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 19BF637B407 for ; Tue, 28 May 2002 20:21:04 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id CF6C981461; Wed, 29 May 2002 12:51:01 +0930 (CST) Date: Wed, 29 May 2002 12:51:01 +0930 From: Greg 'groggy' Lehey To: Nick Hibma Cc: FreeBSD CURRENT Mailing List Subject: Re: gdb52 patch for your .gdbinit files Message-ID: <20020529125101.K82424@wantadilla.lemis.com> References: <20020528155213.Y231-100000@heather.van-laarhoven.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020528155213.Y231-100000@heather.van-laarhoven.org> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, 28 May 2002 at 15:54:21 +0200, Nick Hibma wrote: > > I'm using a derivative of the .gdbinit.vinum files that is available in > the modules/vinum directory. For them to work the following patch is > needed in gdb52. > > As you can see, the patch is trivial, so I have no clue why this wasn't > left alone when they modified symfile.c. If I can be bothered I'll > submit it to them. Hmm. Looking at this patch, it seems it's complaining about being handed a hex value where it's looking for an address. I'd guess that this is in the wrong place. Where does it happen in the macros? Greg > # diff -wu gdb-5.2/gdb/symfile.c~ gdb-5.2/gdb/symfile.c > --- gdb-5.2/gdb/symfile.c~ Tue May 28 15:51:37 2002 > +++ gdb-5.2/gdb/symfile.c Tue May 28 15:51:06 2002 > @@ -1546,11 +1546,15 @@ > char *val = sect_opts[i].value; > char *sec = sect_opts[i].name; > > +#ifdef 0 > val = sect_opts[i].value; > if (val[0] == '0' && val[1] == 'x') > addr = strtoul (val+2, NULL, 16); > else > addr = strtoul (val, NULL, 10); > +#else > + addr = parse_and_eval_address(val); > +#endif > > /* Here we store the section offsets in the order they were > entered on the command line. */ -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message