diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2021-03-29 13:26:35 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2021-03-29 13:26:35 +0200 |
commit | 25b48839b37e81e854cfdef9bc8592a4195a5e32 (patch) | |
tree | c95dccc053aa94b509a7021f4f0cf61b4b6697c5 /gdb/inf-child.c | |
parent | bbe1eca622b28a28a2ea486d77914e6c25d63ed8 (diff) | |
download | gdb-25b48839b37e81e854cfdef9bc8592a4195a5e32.zip gdb-25b48839b37e81e854cfdef9bc8592a4195a5e32.tar.gz gdb-25b48839b37e81e854cfdef9bc8592a4195a5e32.tar.bz2 |
Restore procfs.c compilation
Since c8fbd44a018a9923f906bfd2be5489caa87b602a (gdb: remove
target_is_pushed free function), procfs.c compilation is broken, which
went unnoticed for lack of functioning buildbots:
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c: In member function 'virtual void procfs_target::attach(const char*, int)':
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:1772:8: error: 'inf' was not declared in this scope; did you mean 'info'?
1772 | if (!inf->target_is_pushed (this))
| ^~~
| info
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c: In member function 'virtual void procfs_target::create_inferior(const char*, const string&, char**, int)':
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:2865:8: error: 'inf' was not declared in this scope; did you mean 'info'?
2865 | if (!inf->target_is_pushed (this))
| ^~~
| info
Fixed by defining inf. Tested on amd64-pc-solaris2.11 and
sparcv9-sun-solaris2.11.
2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gdb:
* procfs.c (procfs_target::attach): Define inf.
Use it.
(procfs_target::create_inferior): Likewise.
Diffstat (limited to 'gdb/inf-child.c')
0 files changed, 0 insertions, 0 deletions