[gnu.gdb.bug] regular expressions broke for "info method"

glenne@HPLSLA.HP.COM (Glenn Engel) (01/08/90)

gdb version 3.4 compiled for hp-ux 6.5

I am unable to get the info methods command to print any info.

Using the attached c++ program, the following forms all fail to 
list the Blob::print() method:

i meth Blob::.*
i meth Blob::pri.*
i meth Blob::*

================ cut here ----------------

class Blob
{
public:
  int i;
  int j;

  Blob() {i = 1, j=2;};

  virtual void print() { printf("blob print\n"); };
};

class Blob2 : public Blob
{

public:
  static int i;
  virtual void print() ;
};
void Blob2::print() { printf("i=%d, j=%d\n",i,j); };

main()
{

Blob2 aBlob;
Blob2 anotherBlob;

aBlob.i = 99;
aBlob.print();
anotherBlob.print();
}

tiemann@AI.MIT.EDU (Micheal Tiemann) (01/08/90)

info methods was never implemented.

Michael