gdb: const-ify unpack_* functions in remote.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 18 Jan 2021 05:46:13 +0000 (00:46 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 18 Jan 2021 05:46:13 +0000 (00:46 -0500)
commitcecb19129054860e40d14c78af5c5ab06873e0ab
tree16f778b4f339b9dd58dbc2c037e09ebc7a432e06
parent44365e88c0e021a7f734e44aa845f1e96cd83389
gdb: const-ify unpack_* functions in remote.c

Const-ify the unpack_* functions, and then adjust the callers
accordingly.

gdb/ChangeLog:

* remote.c (class remote_target)
<remote_unpack_thread_info_response,
parse_threadlist_response>: Constify parameter and/or return
value and or local variable.
(stub_unpack_int): Likewise.
(unpack_nibble): Likewise.
(unpack_byte): Likewise.
(unpack_int): Likewise.
(unpack_string): Likewise.
(unpack_threadid): Likewise.
(remote_target::remote_unpack_thread_info_response): Likewise.
(remote_target::parse_threadlist_response): Likewise.

Change-Id: Ibda75f664d6e3452df00f85af7134533049171b7
gdb/ChangeLog
gdb/remote.c