mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* gdb.cp/cplusfuncs.cc (class foo): Add operators
new[] and delete[]. * gdb.cp/cplusfuncs.exp (dm_type_void): Change to "void". (probe_demangler): Remove all single-quoting of method and variable names. (info_func_regexp): Remove the word "void" from any occurrence of "(void)". (print_addr_2): Remove all single-quoting of method names. (print_addr_2_kfail): Likewise. (print_addr): Single-quote C function names before passing to print_addr_2. (test_paddr_operator_functions): Remove single-quoting for method names. Add tests for operator new[] and operator delete[].
This commit is contained in:
@ -46,7 +46,9 @@ public:
|
||||
void operator [] (foo&);
|
||||
void operator () (foo&);
|
||||
void* operator new (size_t) throw ();
|
||||
void* operator new[] (size_t) throw ();
|
||||
void operator delete (void *);
|
||||
void operator delete[] (void *);
|
||||
/**/ operator int ();
|
||||
/**/ operator char* ();
|
||||
|
||||
@ -115,7 +117,9 @@ void foo::operator ->* (foo& afoo) { afoo.ifoo = 0; }
|
||||
void foo::operator [] (foo& afoo) { afoo.ifoo = 0; }
|
||||
void foo::operator () (foo& afoo) { afoo.ifoo = 0; }
|
||||
void* foo::operator new (size_t ival) throw () { ival = 0; return 0; }
|
||||
void* foo::operator new[] (size_t ival) throw () { ival = 0; return 0; }
|
||||
void foo::operator delete (void *ptr) { ptr = 0; }
|
||||
void foo::operator delete[] (void *ptr) { ptr = 0; }
|
||||
/**/ foo::operator int () { return 0; }
|
||||
/**/ foo::operator char* () { return 0; }
|
||||
|
||||
|
Reference in New Issue
Block a user