Article View: gnu.misc.discuss
Article #63137Patching binaries with gdb?
From: Drew Eckhardt
Date: Thu, 02 Mar 1995 23:01
Date: Thu, 02 Mar 1995 23:01
22 lines
1269 bytes
1269 bytes
I ran the following commands in gdb : set write set dem arm file ./spdb disassembled a few things, replaced some code with nops like this set variable *(int *)0x9c54=0x01000000 and was ready to write my changes out to spdb. Unfortunately, perusing the GDB documentation didn't show up anything intuitive, other than the fact that I needed to set write before loading the file (which I did), and exiting didn't write the file as it would with adb. How should I have written my changes back to the binary? Please Cc: me with any responses via E-mail, since my news feed is currently flakey. -- Four boxes : soap, ballot, jury, ammo. Use in that order.
Technical Details
Message-ID:
<D4u5Aw.F1J@boulder.openware.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder.openware.com!drewShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,5a27f106af424cf8,start X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1995-03-05 00:28:08 PST Newsgroups: gnu.misc.discuss Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder.openware.com!drew From: drew@boulder.parcplace.com (Drew Eckhardt) Subject: Patching binaries with gdb? Message-ID: <D4u5Aw.F1J@boulder.openware.com> Sender: news@boulder.openware.com Organization: Openware Date: Thu, 2 Mar 1995 23:01:44 GMT Lines: 22