DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T g

⟦8b6650125⟧ TextFile

    Length: 5108 (0x13f4)
    Types: TextFile
    Names: »gdb-regexps,v«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦34cc4e2f7⟧ »./UNRELEASED/xgdb3.2.tar.Z« 
        └─⟦80fac5d7c⟧ 
            └─⟦this⟧ »./RCS/gdb-regexps,v« 

TextFile

head     1.1;
access   ;
symbols  ;
locks    hubbard:1.1; strict;
comment  @# @;


1.1
date     89.07.05.15.37.11;  author hubbard;  state Exp;
branches ;
next     ;


desc
@Initial checkin, Beta version 0.1.
@



1.1
log
@Initial revision
@
text
@/*
 * The following constitute the gdb specific parser regexps as referred
 * to in gdb.c and gdb-parse.c. Each regexp must be preceeded by a label
 * which must be unique in the first 4 characters. Upper and lower case
 * ARE significant.
 *
 * This file is run through cpp, so any cpp constructs can be used (see
 * xgdb.h for cpp invocation line).
 *
 * Note: See README file for information on differences in the \ notation.
 */

/* Some useful defines. */
#define NUM [0-9]*
#define HEXNUM [a-fA-F0-9x]*
#define IDENT [a-zA-Z_0-9]*
#define ANY .*

#define NUM_P \\(NUM\\)
#define HEX_P \\(HEXNUM\\)
#define IDENT_P \\(IDENT\\)
#define ANY_P \\(ANY\\)
#define PARML_P \\((ANY)\\)

/*
 * Regexps for -fullinfo stuff. The "FULL" regexp assumes that
 * you've patched gdb so that the PC is printed as the fourth
 * argument to the '^Z^Z...' line. The "Full" parser is used as
 * a fall-through case which will still work for source line
 * tracking but will not allow you to track the assembly (unless you
 * devise some other way of keeping xgdb's "S_address" state variable
 * current.
 */
@@@@FULL
\26\26\\(.*\\):NUM_P:NUM_P:ANY_P:HEX_P\n

@@@@Full
\26\26\\(.*\\):NUM_P:NUM_P:ANY_P\n

/* Parsers for frame information. */
@@@@Fra3			/* Step into func w/o line info */
^HEX_P in IDENT_P PARML_P\n
@@@@Fra4			/* Step into func with full info */
^IDENT_P PARML_P (ANY_P line NUM_P)\n
@@@@Fra5			/* Return from func with full info */
^HEX_P in IDENT_P PARML_P (ANY_P line NUM_P)\n
@@@@Fra6			/* Information msg on full info func */
^\\(#NUM\\)  HEX_P in IDENT_P PARML_P (ANY_P line NUM_P)\n
@@@@Fra1			/* Information msg for func w/o line info */
^\\(#NUM\\)  HEX_P in IDENT_P PARML_P\n
@@@@Fra0			/* Information msg for func at top of stack */
^\\(#NUM\\)  IDENT_P PARML_P (ANY_P line NUM_P)\n
@@@@Fra2			/* Information msg for func w/o line info at TOS */
^\\(#NUM\\)  IDENT_P PARML_P\n

/* Various misc state information parsers. */
@@@@StD1
Working directory ANY_P\\.\n
@@@@StD2
 (canonically ANY_P)\\.\n
@@@@StPa
Source directories searched: ANY_P\n
@@@@StS1
Reading symbol data from ANY_P\\.\\.\\.done\\.\n
@@@@StS2
Symbols loaded from \"ANY_P\"\\.\n
@@@@StE1
Starting program: ANY_P\n*
@@@@StE2
Executable file \"ANY_P\"\\.\n
@@@@StC1
Core dump file \"ANY_P\"\\.\n
@@@@StT1
Text segment from ANY_P\\.\n
@@@@Std1
Data segment from ANY_P\\.\n
@@@@Std2
Data segment in executable from ANY_P\\.\n
@@@@Sts1
Stack segment from ANY_P\\.\n

/* A breakpoint */
@@@@BPK1
Bpt NUM_P, IDENT_P .* (.* line NUM)\n

/* Breakpoint information. */
@@@@BPI1
Breakpoint NUM_P at HEX_P: file ANY_P, line NUM_P\\.\n
@@@@BPI2
Breakpoint NUM_P at HEX_P\n
@@@@BPI3
Deleted breakpoint NUM_P\\.*\n
@@@@BPI4
Deleted breakpoints \\([0-9 ]*\\).*\n
@@@@BPI5
breakpoint #NUM_P deleted\n
@@@@BPI6
breakpoint #NUM_P enabled\n
@@@@BPI7
breakpoint #NUM_P disabled\n
@@@@BPI8
breakpoint #NUM_P set\n

/* Parsing breakpoints on the fly. */
@@@@BPP1
\#NUM_P *\\([yn]\\)  HEX_P\n
@@@@BPP2
\#NUM_P *\\([yn]\\)  HEX_P  in IDENT (ANY_P line NUM_P)\n
@@@@BPP3
No breakpoints\\.\n
@@@@BPP4
Breakpoints:\nNum Enb   Address    Where\n

/* Breakpoint exceptions. BPMU = BreakPoint MUltiple. BPBD = BreakPoint BaD. */
@@@@BPMU
Note: breakpoint NUM_P .* at pc [0-9a-fA-Fx]*\n
@@@@BPBD
No line [0-9]* in file \".*\"\\.\n


/* Status queries */
@@@@STQ1
No executable file\n
@@@@STQ2
No core dump file\n
@@@@STQ3
Data segment in executable from 0x0 to 0x0\\.\n
@@@@STQ4
Using the running image of the program, rather than these files\\.\n

/* Source Line Queries */
@@@@SLQ1
Line number 0 is out of range for \"ANY_P\"\\.\n
@@@@SLQ2
No symbol table is loaded\\.  Use the \"symbol-file\" command\\.\n

/* Search parsing. SS is Search Success, SE1-4 are Search Errors. */
@@@@SS
Line NUM_P of \"ANY_P\" starts at .*\n
@@@@SE1
Expression not found\n
@@@@SE2
\\(Premature end of regular expression\\)\n
@@@@SE3
\\(No previous regular expression\\)\n
@@@@SE4
\\([0-9]*\\)\t.*\n

/* Various errors. */
@@@@QST1
\\(^.*\\) (y or n) 
@@@@ERR1
\\(^.*: No such file or directory\\.\\)\n
@@@@ERR2
\\(^.*: Permission denied\\.\\)\n
@@@@ERR3
\\(Warning: .*\\)\n

/* Stack motion exceptions */
@@@@NODN
Bottom (i\\.e\\., innermost) frame selected; you cannot go down\\.\n
@@@@NOUP
Initial frame selected; you cannot go up\\.\n

/* For continue */
@@@@NORN
\\(The program is not being run\\.\\)\n
@@@@CONT
Continuing\\.\n\n

/* For dealing with functions w/o line information */
@@@@NOLI
Current function has no line number information\\.\nSingle stepping until function exit\\.\n

/* A GDB prompt imbeded in the output. */
@@@@GDBP
(gdb)\s
/* stray newline */
@@@@NWLN
\n

/* ASDUMP support for assembly view */

/* ASDUMP components */
@@@@ASDS	/* start */
ASDUMP_START\n

@@@@ASDE	/* end */
ASDUMP_END\n

@@@@ASDX	/* error */
not found\n

@@@@FINI
Run till exit from #NUM\s\s

@@@@FINV
Value returned is $NUM = NUM\n@