]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[nto] Fixes for nto procfs.
authorAleksandar Ristovski <aristovski@qnx.com>
Tue, 20 Oct 2015 16:58:46 +0000 (12:58 -0400)
committerAleksandar Ristovski <aristovski@qnx.com>
Tue, 20 Oct 2015 17:02:09 +0000 (13:02 -0400)
commit609c3040c2df944239d4d96644d736df605a6831
tree93350cc983650f1d2421198c27b9511607c86d27
parentedeefb679201858453502e21446d7a65fedeaf0e
[nto] Fixes for nto procfs.

Fix errnoeus construction of procfs path. The issue is, after the first
info pidlist or first run, the path for local node (the most common node)
will be reset to empty which makes subsequent queries and runs impossible.

gdb/ChangeLog:

* nto-procfs.c (nto_procfs_path): Rename to...
(nodestr): ... this, and change type.
(nto_node): Use new variable and logic accordingly.
(procfs_open_1): Use new variable name. Use local buffer to construct
procfrs path.
(procfs_pidlist): Use NODESTR to construct procfs path.
(procfs_files_info): Use NODESTR to output meaningful text.
(do_attach): Construct procfs using NODESTR.
(procfs_create_inferior): Compare pointer to NULL.
gdb/ChangeLog
gdb/nto-procfs.c