projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change inferior thread list to be a thread map
[deliverable/binutils-gdb.git]
/
gdb
/
nto-procfs.c
diff --git
a/gdb/nto-procfs.c
b/gdb/nto-procfs.c
index 9dd35a4c8aafcce2e9c7bec459941dcb7831c47c..c31dbf136c8cb9966c20f33b73ef5a74c97e0d82 100644
(file)
--- a/
gdb/nto-procfs.c
+++ b/
gdb/nto-procfs.c
@@
-1,7
+1,7
@@
/* Machine independent support for QNX Neutrino /proc (process file system)
for GDB. Written by Colin Burgess at QNX Software Systems Limited.
/* Machine independent support for QNX Neutrino /proc (process file system)
for GDB. Written by Colin Burgess at QNX Software Systems Limited.
- Copyright (C) 2003-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2003-20
20
Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
Contributed by QNX Software Systems Ltd.
@@
-42,8
+42,8
@@
#include "regcache.h"
#include "solib.h"
#include "inf-child.h"
#include "regcache.h"
#include "solib.h"
#include "inf-child.h"
-#include "
common
/filestuff.h"
-#include "
common
/scoped_fd.h"
+#include "
gdbsupport
/filestuff.h"
+#include "
gdbsupport
/scoped_fd.h"
#define NULL_PID 0
#define _DEBUG_FLAG_TRACE (_DEBUG_FLAG_TRACE_EXEC|_DEBUG_FLAG_TRACE_RD|\
#define NULL_PID 0
#define _DEBUG_FLAG_TRACE (_DEBUG_FLAG_TRACE_EXEC|_DEBUG_FLAG_TRACE_RD|\
@@
-409,7
+409,7
@@
nto_procfs_target::update_thread_list ()
(e.g. thread exited). */
continue;
ptid = ptid_t (pid, 0, tid);
(e.g. thread exited). */
continue;
ptid = ptid_t (pid, 0, tid);
- new_thread = find_thread_ptid (ptid);
+ new_thread = find_thread_ptid (
this,
ptid);
if (!new_thread)
new_thread = add_thread (ptid);
update_thread_private_data (new_thread, tid, status.state, 0);
if (!new_thread)
new_thread = add_thread (ptid);
update_thread_private_data (new_thread, tid, status.state, 0);
@@
-605,7
+605,7
@@
procfs_meminfo (const char *args, int from_tty)
if (strcmp (map.info.path, printme.name))
continue;
if (strcmp (map.info.path, printme.name))
continue;
- /* Lower debug_vaddr is always text, if ne
ss
essary, swap. */
+ /* Lower debug_vaddr is always text, if ne
c
essary, swap. */
if ((int) map.info.vaddr < (int) printme.text.debug_vaddr)
{
memcpy (&(printme.data), &(printme.text),
if ((int) map.info.vaddr < (int) printme.text.debug_vaddr)
{
memcpy (&(printme.data), &(printme.text),
@@
-693,7
+693,6
@@
nto_procfs_target::pid_to_exec_file (const int pid)
void
nto_procfs_target::attach (const char *args, int from_tty)
{
void
nto_procfs_target::attach (const char *args, int from_tty)
{
- char *exec_file;
int pid;
struct inferior *inf;
int pid;
struct inferior *inf;
@@
-704,7
+703,7
@@
nto_procfs_target::attach (const char *args, int from_tty)
if (from_tty)
{
if (from_tty)
{
-
exec_file = (char *)
get_exec_file (0);
+
const char *exec_file =
get_exec_file (0);
if (exec_file)
printf_unfiltered ("Attaching to program `%s', %s\n", exec_file,
if (exec_file)
printf_unfiltered ("Attaching to program `%s', %s\n", exec_file,
@@
-1215,7
+1214,7
@@
nto_procfs_target::create_inferior (const char *exec_file,
argv = xmalloc ((allargs.size () / (unsigned) 2 + 2) *
sizeof (*argv));
argv = xmalloc ((allargs.size () / (unsigned) 2 + 2) *
sizeof (*argv));
- argv[0] =
get_exec_file (1
);
+ argv[0] =
const_cast<char *> (get_exec_file (1)
);
if (!argv[0])
{
if (exec_file)
if (!argv[0])
{
if (exec_file)
@@
-1317,7
+1316,7
@@
nto_procfs_target::create_inferior (const char *exec_file,
{
/* FIXME: expected warning? */
/* warning( "Failed to set Kill-on-Last-Close flag: errno = %d(%s)\n",
{
/* FIXME: expected warning? */
/* warning( "Failed to set Kill-on-Last-Close flag: errno = %d(%s)\n",
- errn, strerror(errn) ); */
+ errn, s
afe_s
trerror(errn) ); */
}
if (!target_is_pushed (ops))
push_target (ops);
}
if (!target_is_pushed (ops))
push_target (ops);
This page took
0.047515 seconds
and
4
git commands to generate.