This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/4] Fix some regressions caused by source highlighting patch
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gdb-patches at sourceware dot org, Tom Tromey <tom at tromey dot com>
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Mon, 7 Jan 2019 12:42:20 +0000
- Subject: [PATCH 0/4] Fix some regressions caused by source highlighting patch
I noticed that the source highlighting patch 62f29fda90cf1d introduced
a couple of regressions. These are fixed in patches #1 and #2 of this
series.
However, the fix in patch #2 is not great. I noticed while preparing
this patch that we currently depend on the behaviour of signed integer
overflow in some cases, so...
Patch #3 is some preparation, then patch #4 removes the signed integer
overflow, and cleans up the fix in patch #2.
--
Andrew Burgess (4):
gdb: Fix skip of `\r` before `\n` in source output
gdb: Handle requests to print source lines backward
gdb: Move declarations from symtab.h to source.h
gdb: Avoid signed integer overflow when printing source lines
gdb/ChangeLog | 43 ++++++++++++++++++++++++
gdb/cli/cli-cmds.c | 35 +++++++++----------
gdb/source.c | 83 ++++++++++++++++++++++++++++-----------------
gdb/source.h | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++
gdb/symtab.h | 24 --------------
gdb/tui/tui-hooks.c | 1 +
6 files changed, 208 insertions(+), 74 deletions(-)
--
2.14.5