www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/24/04:46:03

Date: Mon, 24 May 1999 11:43:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andris Pavenis <pavenis AT lanet DOT lv>
cc: djgpp-workers AT delorie DOT com
Subject: Re: gdb 4.18 for DJGPP (alpha)
In-Reply-To: <Pine.A41.4.05.9905201327380.92326-100000@ieva01.lanet.lv>
Message-ID: <Pine.SUN.3.91.990524114306.14456C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 20 May 1999, Andris Pavenis wrote:

> Build gdb-4.18 with upcoming DJGPP-2.03. Ctrl-C will kill debugee if gdb
> is built with earlier versions (before You checked in updated dbgcom.c).

Thanks for the tip.

I checked out the latest dbgcom.c and include/debug/dbgcom.h from CVS
and built GDB with them.  Unfortunately, the resulting binary doesn't
work correctly.  In the following fragment from go32-nat.c:

	{
	  if (a_tss.tss_irqn == sig_map[i].go32_sig)
	    {
#if __DJGPP_MINOR__ < 3
	      if ((status->value.sig = sig_map[i].gdb_sig) !=
		  TARGET_SIGNAL_TRAP)
		status->kind = TARGET_WAITKIND_SIGNALLED;
#else
        status->value.sig = sig_map[i].gdb_sig;
        status->kind = TARGET_WAITKIND_STOPPED;
#endif
	      break;
	    }
	}

if I enable the v2.03 part, breakpoints stop working (GDB says the
program got SIGTRAP instead), and if I enable the v2.02 part, Ctrl-C
kills the debuggee, like with the old dbgcom.c

Is there anything else in the library I should update besides dbgcom.c
and <debug/dbgcom.h>?

> At least I have successfully debugged debugger part in rhide with itself
> (with gdb-4.17 not 4.18, but I don't think it's a problem as such
> possibility is determined by dbgcom.c)

Maybe, if it's not much of a bother, you could send me your source of
dbgcom.c and your libdbg.a, so I could verify that I didn't do
anything stupid when I upgraded dbgcom.c?

I'm mainly concerned that something has gone wrong when I checked
dbgcom.c into CVS, and we will release a buggy libdbg.a with v2.03,
after all the efforts that went into improving the debug support.

> Also You should apply patch to gdb/go32-nat.c sent recently to this
> mailing list.

I did that, thanks (the fragment above is part of that patch).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019