From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32009 invoked by alias); 23 Oct 2008 17:38:40 -0000 Received: (qmail 32001 invoked by uid 22791); 23 Oct 2008 17:38:39 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Oct 2008 17:38:00 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kt48D-0005ll-2l for gdb-patches@sources.redhat.com; Thu, 23 Oct 2008 17:37:57 +0000 Received: from entropy.qnx.com ([209.226.137.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 17:37:57 +0000 Received: from aristovski by entropy.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 17:37:57 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: [patch] nto update Date: Thu, 23 Oct 2008 17:38:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010507060802050302070901" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00579.txt.bz2 This is a multi-part message in MIME format. --------------010507060802050302070901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 237 Hello, A few minor fixes to nto-procfs.c to make it compilable. Thanks, Aleksandar Ristovski QNX Software Systems ChangeLog: * nto-procfs.c (procfs_files_info): Fix a typo. (procfs_create_inferior): Make attach_flag per-inferior. --------------010507060802050302070901 Content-Type: text/x-patch; name="nto-update-20081023.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nto-update-20081023.diff" Content-length: 1262 Index: gdb/nto-procfs.c =================================================================== RCS file: /cvs/src/src/gdb/nto-procfs.c,v retrieving revision 1.33 diff -u -p -r1.33 nto-procfs.c --- gdb/nto-procfs.c 22 Sep 2008 15:21:30 -0000 1.33 +++ gdb/nto-procfs.c 23 Oct 2008 17:13:38 -0000 @@ -497,7 +497,7 @@ procfs_files_info (struct target_ops *ig struct inferior *inf = current_inferior (); printf_unfiltered ("\tUsing the running image of %s %s via %s.\n", - pi->attach_flag ? "attached" : "child", + inf->attach_flag ? "attached" : "child", target_pid_to_str (inferior_ptid), nto_procfs_path); } @@ -991,6 +991,7 @@ procfs_create_inferior (char *exec_file, int fd, fds[3]; sigset_t set; const char *inferior_io_terminal = get_inferior_io_terminal (); + struct inferior *inf; argv = xmalloc (((strlen (allargs) + 1) / (unsigned) 2 + 2) * sizeof (*argv)); @@ -1085,8 +1086,8 @@ procfs_create_inferior (char *exec_file, inferior_ptid = do_attach (pid_to_ptid (pid)); - add_inferior (pid); - attach_flag = 0; + inf = add_inferior (pid); + inf->attach_flag = 0; flags = _DEBUG_FLAG_KLC; /* Kill-on-Last-Close flag. */ errn = devctl (ctl_fd, DCMD_PROC_SET_FLAG, &flags, sizeof (flags), 0); --------------010507060802050302070901--