Re: bug: Watch location restrict pointer
Tom Tromey <[email protected]> Wed, 04 Mar 2020 15:15:10 -0700
| Newsgroups | gmane.comp.gdb.devel,gmane.comp.gdb.bugs.general |
|---|---|
| Message-ID | <[email protected]> |
Volker> Breakpoint 1, main () at main.cpp:2 Volker> 2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 void*= __restrict__ ptr =3D 0; Volker> gdbinit:3: Error in sourced command file: Volker> A syntax error in expression, near `restrict *) 0x00007fffffffd608'. Thanks for the report. I sent a patch to fix this. Some variant of it should go in reasonably soon. As a workaround you can try something like stripping out the restrict: watch -location (void *) ptr Tom