Date: Fri, 21 Sep 2001 16:03:25 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: freebsd-hackers@freebsd.org Subject: Kernel module debugging help Message-ID: <Pine.SOL.4.21.0109211554410.1238-100000@onyx>
next in thread | raw e-mail | index | archive | help
I am using gdb a lot recently and find out that most of the bugs are memory related. I am wondering how to set up a hardware breakpoint which is triggered whenever a memory address is written again. I have no experience with this subject. Another minor question is how to set a static variable inside a function. Acoording the GDB manual, I should be able to say: (gdb) set function_name::my_static_variable = somevalue But it does not work. I am using 4.3-release on a PC. Thanks for your help. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0109211554410.1238-100000>