Get closer to mainline. (#624)

* Get closer to mainline.

.gitignore is left-over from when I tried gnulib.
The other changes were made to make the checker happy, and I don't care
to upstream these.

Change-Id: I9168b3b80d89a142a46eb1906a7640fc02552743
Signed-off-by: Tim Newsome <tim@sifive.com>

* checkpatch requires this.

Why isn't this correct in upstream?

Change-Id: I3810e26e591450b6d7425368a39750405f4d8bfa
Signed-off-by: Tim Newsome <tim@sifive.com>

* Appears unnecessary.

I added this as part of FreeRtos work, but all those tests pass just
fine even without this change. I suspect I added it in an attempt to fix
something and it turned out to be unnecessary. Reverting because I don't
know how to justify upstreaming this.

Change-Id: I1e4d0af9d2b4d62c79969216929702463bf0c815
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2021-06-21 14:27:48 -07:00 committed by GitHub
parent 383ff36547
commit 388db62ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -14,8 +14,6 @@
# generated source files
src/jtag/minidriver_imp.h
src/jtag/jtag_minidriver.h
src/gnulib/sys/
src/gnulib/limits.h
# OpenULINK driver files generated by SDCC
src/jtag/drivers/OpenULINK/*.rel

View File

@ -11,6 +11,11 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
***************************************************************************/
/*

View File

@ -1354,7 +1354,7 @@ static int gdb_get_register_packet(struct connection *connection,
if (reg_list_size <= reg_num) {
LOG_ERROR("gdb requested a non-existing register");
return gdb_error(connection, retval);
return ERROR_SERVER_REMOTE_CLOSED;
}
if (!reg_list[reg_num]->valid) {