Article View: gnu.gdb.bug
Article #1072Is there any way to redefine a function
From: parag
Date: Wed, 03 Feb 2010 00:19
Date: Wed, 03 Feb 2010 00:19
14 lines
1347 bytes
1347 bytes
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;
}
Technical Details
Message-ID:
<7b8a7ec6-3e2b-4745-8328-2d59ff64e904@s36g2000prf.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s36g2000prf.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,4ce26526e2a415cc,start X-Google-Attributes: gidf0ead4270c,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s36g2000prf.googlegroups.com!not-for-mail From: parag <parag.paul@gmail.com> Newsgroups: gnu.gdb.bug Subject: Is there any way to redefine a function Date: Tue, 2 Feb 2010 16:19:51 -0800 (PST) Organization: http://groups.google.com Lines: 14 Message-ID: <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 X-Trace: posting.google.com 1265156391 19639 127.0.0.1 (3 Feb 2010 00:19:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 3 Feb 2010 00:19:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s36g2000prf.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)