delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2009/09/19/17:34:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX19AdR9EjnxAXWBz9YFBjgrER64Oo1cLtHCneW/3B+
uWAnMzIOVjvw/u
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Re: [brobecker AT adacore DOT com: GDB 6.8.91 available for testing]
Date: Sat, 19 Sep 2009 23:33:50 +0200
User-Agent: KMail/1.9.10
References: <833a6jwd5d DOT fsf AT gnu DOT org> <200909192120 DOT 52643 DOT juan DOT guerrero AT gmx DOT de> <83vdjevfzt DOT fsf AT gnu DOT org>
In-Reply-To: <83vdjevfzt.fsf@gnu.org>
MIME-Version: 1.0
Message-Id: <200909192333.50394.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.52
Reply-To: djgpp-workers AT delorie DOT com

Am Samstag, 19. September 2009 schrieb Eli Zaretskii:
[snip]
> What version of GCC is that?
gcc 4.4.1


> Can you please show the preprocessed source of
> 'add_internal_problem_command'?

# 1053 "utils.c"
static void
add_internal_problem_command (struct internal_problem *problem)
{
  struct cmd_list_element **set_cmd_list;
  struct cmd_list_element **show_cmd_list;
  char *set_doc;
  char *show_doc;

  set_cmd_list = xmalloc (sizeof (*set_cmd_list));
  show_cmd_list = xmalloc (sizeof (*set_cmd_list));
  *set_cmd_list = 0;
  *show_cmd_list = 0;

  set_doc = xstrprintf (gettext ("Configure what GDB does when %s is detected."),
   problem->name);

  show_doc = xstrprintf (gettext ("Show what GDB does when %s is detected."),
    problem->name);

  add_prefix_cmd ((char*) problem->name,
    class_maintenance, set_internal_problem_cmd, set_doc,
    set_cmd_list,
    concat ("maintenance set ", problem->name, " ", 0),
    0 , &maintenance_set_cmdlist);

  add_prefix_cmd ((char*) problem->name,
    class_maintenance, show_internal_problem_cmd, show_doc,
    show_cmd_list,
    concat ("maintenance show ", problem->name, " ", 0),
    0 , &maintenance_show_cmdlist);

  set_doc = xstrprintf (gettext ("Set whether GDB should quit when an %s is detected"),

   problem->name);
  show_doc = xstrprintf (gettext ("Show whether GDB will quit when an %s is detected"),

    problem->name);
  add_setshow_enum_cmd ("quit", class_maintenance,
   internal_problem_modes,
   &problem->should_quit,
   set_doc,
   show_doc,
   0,
   0,
   0,
   set_cmd_list,
   show_cmd_list);

  xfree (set_doc);
  xfree (show_doc);

  set_doc = xstrprintf (gettext ("Set whether GDB should create a core file of GDB when %s is detected"),

   problem->name);
  show_doc = xstrprintf (gettext ("Show whether GDB will create a core file of GDB when %s is detected"),

    problem->name);
  add_setshow_enum_cmd ("corefile", class_maintenance,
   internal_problem_modes,
   &problem->should_dump_core,
   set_doc,
   show_doc,
   0,
   0,
   0,
   set_cmd_list,
   show_cmd_list);

  xfree (set_doc);
  xfree (show_doc);
}


Here more warnings produced by the compilation step in libliberty:

gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./pex-common.c -o pex-common.o
./pex-common.c: In function 'temp_file':
./pex-common.c:120: warning: missing sentinel in function call
./pex-common.c:141: warning: missing sentinel in function call
./pex-common.c: In function 'pex_run_in_environment':
./pex-common.c:225: warning: missing sentinel in function call

gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./strsignal.c -o strsignal.o
./strsignal.c: In function 'strsignal':
./strsignal.c:427: warning: the address of 'sys_siglist' will never be NULL

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019