[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Gdb on the Hurd.



Since it almost essential to have a debugger to do any serious
development for any platform, I have been trying to get gdb working on
the Hurd.  Unfortunately my work did not make it into gdb-4.18, which
doesn't even compile for the Hurd.  The good news is that the latest
snapshot (gdb-19990412, see http://sourceware.cygnus.com) does compile
on the Hurd, and is more or less functional.  However, it has a nasty
bug that prevents you from attaching to a process suspended by the
crash server.  The patch at the end of this message solves this
problem.  This patch is already integrated in the upstream sources,
and will be in the next snapshot.

There are rumours of an upcoming gdb-4.18.1.  I'm not sure whether my
Hurd patches will be included in gdb-4.18.1, but this patch will most
probably not be in there.

Mark


1999-04-25  Mark Kettenis  <kettenis@gnu.org>

	* gnu-nat.c (gnu_attach): Call target_terminal_init before calling
	inf_set_traced, since that function calls code that might try to
	restore the terminal settings.


--- /home/kettenis/tmp/gdb-19990412/gdb/gnu-nat.c	Sat Apr  3 01:11:56 1999
+++ gdb-19990412/gdb/gnu-nat.c	Sun Apr 25 15:54:22 1999
@@ -2004,6 +2004,10 @@
   attach_flag = 1;
   push_target (&gnu_ops);
 
+  /* We have to initialize the terminal settings now, since the code
+     below might try to restore them.  */
+  target_terminal_init ();
+  
   inf_update_signal_thread (inf);
   inf_set_traced (inf, inf->want_signals);
 


Reply to: