Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libdebugger/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Boston, MA 02111-1307, USA. */
/* The following line makes Solaris' gcc/cpp not puke. */
#undef HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#endif /* HAVE_LIBREADLINE */

/* From readline. ?? Should this be in configure? */
#ifndef whitespace
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
#endif
#endif /* HAVE_LIBREADLINE */

#include "cmd_initialize.h"

Expand Down Expand Up @@ -79,8 +79,6 @@ char *psz_debugger_args;

debug_enter_reason_t last_stop_reason;

#ifdef HAVE_LIBREADLINE

short_cmd_t short_command[256] = { { NULL,
(const char *) '\0',
(const char *) '\0',
Expand Down Expand Up @@ -226,8 +224,6 @@ extern debug_return_t dbg_cmd_set_var (char *psz_args, int expand)
return debug_readloop;
}

#endif /* HAVE_LIBREADLINE */

#define PROMPT_LENGTH 300

#include <setjmp.h>
Expand Down Expand Up @@ -381,10 +377,14 @@ debug_return_t enter_debugger (target_stack_node_t *p,

if ( line ) {
if ( *(s=stripwhite(line)) ) {
#ifdef HAVE_LIBREADLINE
add_history (s);
#endif /* HAVE_LIBREADLINE */
debug_return=execute_line(s);
} else {
#ifdef HAVE_LIBREADLINE
add_history ("step");
#endif /* HAVE_LIBREADLINE */
debug_return=dbg_cmd_step((char *) "");
}
free (line);
Expand Down
2 changes: 1 addition & 1 deletion libdebugger/command/set.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Boston, MA 02111-1307, USA. */
/* The following line makes Solaris' gcc/cpp not puke. */
#undef HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#endif /* HAVE_LIBREADLINE */

/* From readline. ?? Should this be in configure? */
#ifndef whitespace
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
#endif
#endif /* HAVE_LIBREADLINE */

subcommand_var_info_t set_subcommands[] = {
{ "basename",
Expand Down