* main.c (captured_main): Set lim_at_start before calling
make_command_stats_cleanup.
This commit is contained in:
parent
a59306a3db
commit
e565b8378e
2 changed files with 13 additions and 5 deletions
13
gdb/main.c
13
gdb/main.c
|
@ -300,7 +300,14 @@ captured_main (void *data)
|
|||
int save_auto_load;
|
||||
struct objfile *objfile;
|
||||
|
||||
struct cleanup *pre_stat_chain = make_command_stats_cleanup (0);
|
||||
struct cleanup *pre_stat_chain;
|
||||
|
||||
#ifdef HAVE_SBRK
|
||||
/* Set this before calling make_command_stats_cleanup. */
|
||||
lim_at_start = (char *) sbrk (0);
|
||||
#endif
|
||||
|
||||
pre_stat_chain = make_command_stats_cleanup (0);
|
||||
|
||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
||||
setlocale (LC_MESSAGES, "");
|
||||
|
@ -311,10 +318,6 @@ captured_main (void *data)
|
|||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
#ifdef HAVE_SBRK
|
||||
lim_at_start = (char *) sbrk (0);
|
||||
#endif
|
||||
|
||||
cmdsize = 1;
|
||||
cmdarg = (struct cmdarg *) xmalloc (cmdsize * sizeof (*cmdarg));
|
||||
ncmd = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue