Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h"
@ 2001-08-02 13:18 Mark Kettenis
  2001-08-02 13:24 ` Fernando Nasser
  2001-08-02 13:29 ` DJ Delorie
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Kettenis @ 2001-08-02 13:18 UTC (permalink / raw)
  To: gdb-patches

Seems obvious to me :-).  Checked in on mainline.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* cli/cli-decode.h: Include "gdb_regex.h" instead of
	"gnu-regex.h".

Index: cli/cli-decode.h
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-decode.h,v
retrieving revision 1.2
diff -u -p -r1.2 cli-decode.h
--- cli/cli-decode.h 2001/03/06 08:21:19 1.2
+++ cli/cli-decode.h 2001/08/02 20:16:00
@@ -19,7 +19,7 @@
 #if !defined (CLI_DECODE_H)
 #define CLI_DECODE_H 1
 
-#include "gnu-regex.h"   /* Needed by apropos_cmd. */
+#include "gdb_regex.h"		/* Needed by apropos_cmd.  */
 
 /* Command classes are top-level categories into which commands are broken
    down for "help" purposes.  


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h"
  2001-08-02 13:18 [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h" Mark Kettenis
@ 2001-08-02 13:24 ` Fernando Nasser
  2001-08-02 13:29 ` DJ Delorie
  1 sibling, 0 replies; 4+ messages in thread
From: Fernando Nasser @ 2001-08-02 13:24 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

Mark Kettenis wrote:
> 
> Seems obvious to me :-).  Checked in on mainline.
> 
> Mark
> 

Yes.  Thanks.


> Index: ChangeLog
> from  Mark Kettenis  <kettenis@gnu.org>
> 
>         * cli/cli-decode.h: Include "gdb_regex.h" instead of
>         "gnu-regex.h".
> 
> Index: cli/cli-decode.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/cli/cli-decode.h,v
> retrieving revision 1.2
> diff -u -p -r1.2 cli-decode.h
> --- cli/cli-decode.h 2001/03/06 08:21:19 1.2
> +++ cli/cli-decode.h 2001/08/02 20:16:00
> @@ -19,7 +19,7 @@
>  #if !defined (CLI_DECODE_H)
>  #define CLI_DECODE_H 1
> 
> -#include "gnu-regex.h"   /* Needed by apropos_cmd. */
> +#include "gdb_regex.h"         /* Needed by apropos_cmd.  */
> 
>  /* Command classes are top-level categories into which commands are broken
>     down for "help" purposes.

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h"
  2001-08-02 13:18 [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h" Mark Kettenis
  2001-08-02 13:24 ` Fernando Nasser
@ 2001-08-02 13:29 ` DJ Delorie
  2001-08-02 14:03   ` Mark Kettenis
  1 sibling, 1 reply; 4+ messages in thread
From: DJ Delorie @ 2001-08-02 13:29 UTC (permalink / raw)
  To: kettenis; +Cc: gdb-patches

Why not "xregex.h" ?

> Seems obvious to me :-).  Checked in on mainline.
> 
> Mark
> 
> 
> Index: ChangeLog
> from  Mark Kettenis  <kettenis@gnu.org>
> 
> 	* cli/cli-decode.h: Include "gdb_regex.h" instead of
> 	"gnu-regex.h".


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h"
  2001-08-02 13:29 ` DJ Delorie
@ 2001-08-02 14:03   ` Mark Kettenis
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Kettenis @ 2001-08-02 14:03 UTC (permalink / raw)
  To: dj; +Cc: gdb-patches

   Date: Thu, 2 Aug 2001 16:29:13 -0400
   From: DJ Delorie <dj@redhat.com>

   Why not "xregex.h" ?

I'm working on that :-).  In fact replacing gnu-regex.{c,h} with
xregex.h is what prompted this change.  We will still need to go
through gdb_regex.h to support --without-included-regex though.

Before we can get rid of the regex code in the gdb subdirectory, there
is one problem to solve though.  GDB uses the BSD re_comp() and
re_exec() instead of the POSIX interfaces.  Unfortunately, that bit of
code isn't currently compiled into the code included in libiberty.

In the long run we probably want to switch to the POSIX interfaces,
but in the meantime, the attached patch would make it possible to use
"xregex.h" in GDB.  I think it is pretty harmless, although it does
involve some name-space pollution.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* xregex.h (_REGEX_RE_COMP): Define.
	(re_comp): Define to xre_comp.
	(re_exec): Define to xre_exec.

Index: xregex.h
===================================================================
RCS file: /cvs/src/src/include/xregex.h,v
retrieving revision 1.1
diff -u -p -r1.1 xregex.h
--- xregex.h 2001/07/11 00:15:17 1.1
+++ xregex.h 2001/08/02 20:57:19
@@ -19,6 +19,10 @@
 #  define re_syntax_options xre_syntax_options
 #  define re_max_failures xre_max_failures
 
+#  define _REGEX_RE_COMP
+#  define re_comp xre_comp
+#  define re_exec xre_exec
+
 #include "xregex2.h"
 
 #endif /* xregex.h */


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-02 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 13:18 [PATCH] Include "gdb_regex.h" instead of "gnu-regex.h" Mark Kettenis
2001-08-02 13:24 ` Fernando Nasser
2001-08-02 13:29 ` DJ Delorie
2001-08-02 14:03   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox