5

I know that GDB disables ASLR for applications it debugs. Is there a way to enable ASLR inside GDB? I have a bug that I can only reproduce with ASLR enabled.

Thanks,

user1637056
  • 382
  • 3
  • 18

1 Answers1

7

Is there a way to enable ASLR inside GDB?

Yes:

(gdb) set disable-randomization off
Employed Russian
  • 199,314
  • 34
  • 295
  • 362