Mail Archives: djgpp-workers/2012/12/04/22:46:23
> Date: Tue, 04 Dec 2012 22:49:06 +0100
> From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
> CC: Eli Zaretskii <eliz AT gnu DOT org>, Ozkan Sezer <sezeroz AT gmail DOT com>
>
> A new patch ignoring the return value of the function.
>
> diff -aprNU5 djgpp.orig/src/debug/fsdb/fullscr.c djgpp/src/debug/fsdb/fullscr.c
> --- djgpp.orig/src/debug/fsdb/fullscr.c 2012-12-01 04:29:46 +0000
> +++ djgpp/src/debug/fsdb/fullscr.c 2012-12-04 22:21:24 +0000
> @@ -855,11 +855,11 @@ select_source_file (char *file)
>
> static int
> code_skip (int origin, int count)
> {
> int len, *next, i, j, k, instcount, done, leave;
> - char *state, *source /* , *inst */;
> + char *state, *source;
>
> if (count >= 0)
> {
> while (count-- > 0)
> if (valid_instaddr (origin))
> @@ -887,13 +887,11 @@ code_skip (int origin, int count)
> {
> done++;
> j = origin - done;
> if (valid_instaddr (j))
> {
> -#if 0
> - inst = unassemble_proper (j, &len);
> -#endif
> + unassemble_proper (j, &len);
> source = unassemble_source (j);
> next[done] = j + len;
> if (source)
> {
> leave = 0;
> @@ -907,13 +905,13 @@ code_skip (int origin, int count)
> code we don't need this. */
> #if 0
> leave = (strncmp (inst, "jmp", 3) == 0
> || strncmp (inst, "ret", 3) == 0
> || strncmp (inst, "iret", 4) == 0);
> - if (!leave)
> - inst = unassemble_proper (j, &len);
> #endif
> + if (!leave)
> + unassemble_proper (j, &len);
> }
> }
> }
> else
> {
>
Fine with me, thanks.
- Raw text -