mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
430 B
C++
24 lines
430 B
C++
void break_here(void* p) { }
|
|
|
|
struct A {
|
|
__attribute__((noinline))
|
|
void foo(int, int) { break_here(0); }
|
|
|
|
void call_foo() { foo(1, 2); }
|
|
};
|
|
|
|
int main() {
|
|
break_here((void*)main);
|
|
break_here((void*)break_here);
|
|
|
|
// code for issue 1600
|
|
break_here((void*)&A::foo);
|
|
|
|
// just another check for mangled symbols
|
|
break_here((void*)&A::call_foo);
|
|
|
|
// code for issue 752
|
|
A a;
|
|
a.call_foo();
|
|
}
|