This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

target remote and multiprocess+


Hi,

This patch does:
(1) make "multiprocess+;" work with "target remote"
(2) stop inferiors only for the event thread when a break or watch point
is hit
(3) stop new inferiors only when global break or watch points are in place

This makes it possible to debug an embedded target where gdbserver is
running as native thread on the target. The target has to report the
threadlist as an inferiorlist with one thread per inferior. That way one
can context switch break and watch points and halt only the thread to be
debugged.

Without (2) and (3) the gdbstub on the target would get stopped when
connecting...

Per advice of Luis Machado I did run

  make check >check.out 2>&1
and
  make check-gdb RUNTESTFLAGS="--target_board native-gdbserver"
>check2.out 2>&1

I then did a "grep FAILED | sort" on the outputs of an unmodified
gdb-7.12 and a gdb-7.12 bult with my patch.
A diff between both sets of output didn't show up any new FAILED lines.

regards, Matthias

-- 
Matthias Pfaller                          Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8131 5161 41
Hans-Böckler-Str. 2, D 85221 Dachau       Fax   +49 8131 5161 66
http://www.marco.de/                      Email leo@marco.de
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München

Attachment: P.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]