From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] nto update
Date: Thu, 23 Oct 2008 17:38:00 -0000 [thread overview]
Message-ID: <gdqcpb$v7b$1@ger.gmane.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
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.
[-- Attachment #2: nto-update-20081023.diff --]
[-- Type: text/x-patch, Size: 1262 bytes --]
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);
next reply other threads:[~2008-10-23 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 17:38 Aleksandar Ristovski [this message]
2008-10-23 17:44 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gdqcpb$v7b$1@ger.gmane.org' \
--to=aristovski@qnx.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox