Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!mailrus!husc6!m2c!applix!mark From: mark@applix.UUCP (Mark Fox) Newsgroups: comp.unix.wizards Subject: How do you patch with sdb? Message-ID: <808@applix.UUCP> Date: 20 Sep 88 18:40:01 GMT Distribution: na Organization: APPLiX Inc., Westboro MA Lines: 22 The subject line says it all... My rather ancient copy of the SYSV manual states that "an initial argument of -w permits overwriting locations in [the executable program file]." However, I can't find the equivalent of adb's w and W commands. I do know about the variable!value command but I can't get sdb to swallow it (sdb says: cannot execute (not an active procedure) & if looking for an address, use ':'). Can anyone help? Can anything be done without compiling with the -g switch? We would like to be able to patch production copies of software, i.e., compiled with -O and not -g (exclusive options, I believe) and possibly stripped. BTW why is it that many vendors ship sdb but no adb in their binary releases? I have found sdb to be severely lacking in comparison with adb when trying to debug programs not compiled with the -g switch. Anyone for dbx vs. sdb flame wars? :o) -- Mark UUCP: ...harvard!m2c!applix!mark mark@applix.m2c.org