From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14302 invoked by alias); 28 Feb 2004 18:00:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14295 invoked from network); 28 Feb 2004 18:00:52 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 28 Feb 2004 18:00:52 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Ax8lg-0004Jm-FM for ; Sat, 28 Feb 2004 13:00:52 -0500 Date: Sat, 28 Feb 2004 18:00:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [patch/gdbserver] Add a debugging output to linux-arm-low.c Message-ID: <20040228180052.GA16547@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00840.txt.bz2 There's a corresponding fprintf in linux-i386-low.c, which I've always found helpful when trying to trace gdbserver behavior. Will commit in a little while. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer 2004-02-28 Daniel Jacobowitz * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. Index: gdb/gdbserver/linux-arm-low.c =================================================================== RCS file: /big/fsf/rsync/src-cvs/src/gdb/gdbserver/linux-arm-low.c,v retrieving revision 1.6 diff -u -p -r1.6 linux-arm-low.c --- gdb/gdbserver/linux-arm-low.c 24 Jul 2003 19:03:50 -0000 1.6 +++ gdb/gdbserver/linux-arm-low.c 28 Feb 2004 17:59:30 -0000 @@ -1,5 +1,5 @@ /* GNU/Linux/ARM specific low level interface, for the remote server for GDB. - Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002 + Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -47,11 +47,15 @@ arm_cannot_fetch_register (int regno) return (regno >= arm_num_regs); } +extern int debug_threads; + static CORE_ADDR arm_get_pc () { unsigned long pc; collect_register_by_name ("pc", &pc); + if (debug_threads) + fprintf (stderr, "stop pc is %08lx\n", pc); return pc; }