Writing memory with GDB.

From: Joseph Casey (joecasey_at_indigo.ie)
Date: 02/12/05


Date: Sat, 12 Feb 2005 18:41:40 +0000

Greetings.
Can I write memory locations with GDB? I have been looking through
Debugging With GDB and a few tutorials but can't find anything - only
how to read memory and write to variables. I am using GDB 5.1.1 for TI
MSP430 in text mode but I expect the commands would be the same as for
native debugging.
Help appreciated.
Joseph Casey.



Relevant Pages

  • Re: Great SWT Program
    ... More a shell than an operating system, ... Gdb is for the birds. ... Well, debugging one's own code is what gdb is for, isn't it? ... Being able to make a breakpoint that would trip the first time any ...
    (comp.lang.java.programmer)
  • Re: Recommended virtualization technique for debugging/developing FreeBSD
    ... :>> I was wondering what people use, in the abscense of suitable actual hardware, ... everything was seld compiled but with an external compiler. ... Most initial debugging was done with a super-low-level serial console, ... gdb wasn't available either. ...
    (freebsd-current)
  • Re: mmap failing with EINVAL inside valgrind
    ... The other day I was debugging some other application, ... POST++, and it was always crashing when I run it under gdb, luckily by ... 250 MB of memory leaked per day;). ... I presume valgrind does something similar to gdb, ...
    (comp.unix.programmer)
  • compiling perl/tk with debugging?; help debugging a segfault in Tk_HandleEvent
    ... perl/tk 800.025. ... I have a core file from one such crash, ... my weak C and debugging skills, I'm having a hard time figuring out ...
    (comp.lang.perl.tk)
  • RE: VMWare Workstation 6 for debugging Linux Kernel (!)
    ... maybe somebody make some side by side comparison of vmware & uml regarding kernel debugging. ... Run gdb on the Host, reference it to the kernel with symbols and attach to ...
    (Linux-Kernel)