🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1073

Re: Is there any way to redefine a function

#1073
From: parag
Date: Wed, 03 Feb 2010 00:31
20 lines
1519 bytes
On Feb 3, 5:19 am, parag <parag.p...@gmail.com> wrote:
> Hi All,
> Is there any way to redefine an existing C function using GDB
>
> I havea  function
>
> int whatsup(){
> return 1;
>
> }
>
> I want to make it
> int whatsup() {
> return 0;
>
> }

Also ,
is there any way you can make a symbol of a function change into a
variable?
Technical Details
Message-ID: <9b45ec49-5411-47dc-8304-1509f302bf82@m27g2000prl.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!m27g2000prl.googlegroups.com!not-for-mail
References: <7b8a7ec6-3e2b-4745-8328-2d59ff64e904@s36g2000prf.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!m27g2000prl.googlegroups.com!not-for-mail
From: parag <parag.paul@gmail.com>
Newsgroups: gnu.gdb.bug
Subject: Re: Is there any way to redefine a function
Date: Tue, 2 Feb 2010 16:31:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 20
Message-ID: <9b45ec49-5411-47dc-8304-1509f302bf82@m27g2000prl.googlegroups.com>
References: <7b8a7ec6-3e2b-4745-8328-2d59ff64e904@s36g2000prf.googlegroups.com>
NNTP-Posting-Host: 198.182.52.26
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1265157114 24750 127.0.0.1 (3 Feb 2010 00:31:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 3 Feb 2010 00:31:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m27g2000prl.googlegroups.com; posting-host=198.182.52.26; 
 posting-account=BeUA6goAAADdRyNhz2s9YM42WlCjTFW0
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.17) 
 Gecko/2009122116 Firefox/3.0.17 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)