From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: jason@molenda.com Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Version 2 of patch to add 'maint profile-gdb' command Date: Mon, 24 Sep 2001 14:53:00 -0000 Message-id: <2110-Mon24Sep2001235325+0300-eliz@is.elta.co.il> References: <20010910003022.A21681@shell17.ba.best.com> <3B9CE0C6.5060700@cygnus.com> <20010910115244.A25119@shell17.ba.best.com> <3B9FACDA.6070407@cygnus.com> <20010916174433.A3258@shell17.ba.best.com> <200109170536.HAA21988@is.elta.co.il> <3BA6DEE6.1020700@cygnus.com> <3405-Tue18Sep2001095115+0300-eliz@is.elta.co.il> <20010924133215.A23707@shell17.ba.best.com> X-SW-Source: 2001-09/msg00321.html > Date: Mon, 24 Sep 2001 13:32:15 -0700 > From: Jason Molenda > > I'm a little hesitant to use this emacs code... besides having an > #ifdef FreeBSD around it, it uses the address of a certain function > for the beginning of the text section -- hardcoded. So unless > someone can guess which one of gdb's functions is going to end up > at the beginning of .text, I don't see how that'd work. The first function in the binary is the first function the linker sees. If this is platform-dependent in GDB, we could simply arrange for an empty function that every platform links in. > Okay, I would have been happier if someone had just said "Approved!" > and it had gone in immediately :-) I can't be that someone: it's not my responsibility ;-)