This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug corefiles/18227] can't modify memory in core file, even with --write


https://sourceware.org/bugzilla/show_bug.cgi?id=18227

--- Comment #1 from Doug Evans <xdje42 at gmail dot com> ---
For reference sake, segv.c:

#include <signal.h>
#include <stdio.h>

void
segv (int sig)
{
  printf ("in segv\n");
  fflush (stdout);
}

int
main ()
{
  if (0) signal (SIGSEGV, segv);
  *((char*) 0) = 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]