On Sat, Dec 16, 2006 at 10:35:43PM +0000, Deanna Phillips wrote:
> remake is gnu make with debugging extensions like -
>
> -x for tracing shell commands and forcing them to echo
> -X for an interactive debugger
>
> The shell tracing is handy.
>
> Tested on i386, macppc and alpha.
>
tested on amd64 and here's a diff to make it build on sparc.
--- src/dbg_cmd.c.orig Sun Dec 17 15:05:00 2006
+++ src/dbg_cmd.c Sun Dec 17 15:09:03 2006
@@ -868,14 +868,19 @@ dbg_cmd_quit (char *psz_arg)
static debug_return_t
dbg_cmd_run (char *psz_arg)
{
+ char **ppsz_argv = global_argv;
+ char *psz_full_args;
+ const char *psz_make_cmd = global_argv[0];
+
+ unsigned int len;
+
printf("Changing directory to %s and restarting...\n",
directory_before_chdir);
chdir (directory_before_chdir);
- char **ppsz_argv = global_argv;
- const char *psz_make_cmd = global_argv[0];
+
if (psz_arg && strlen(psz_arg)) {
- unsigned int len = strlen(global_argv[0]) + strlen(psz_arg) + 2;
- char *psz_full_args = CALLOC(char, len);
+ len = strlen(global_argv[0]) + strlen(psz_arg) + 2;
+ psz_full_args = CALLOC(char, len);
snprintf(psz_full_args, len, "%s %s", global_argv[0], psz_arg);
ppsz_argv = buildargv(psz_full_args);
}
looks good to me,
jasper
--
``This statement is false''
NedBSD: http://nedbsd.eu