Hey, so I'm just writing a small little c program here and trying to get the break points working but I can't seem to get it to break on a shared library.
here's my program: #include <stdio.h> #include <string.h> int main() { char str_a[20]' strcpy(str_a, "hello"); printf(str_a); } thats all there is to the program, and i am using gdb by command line on the newest version of openSUSE. so here's what i'm trying: gdb -q ./char_array2 (gdb) break strcpy Function "strcpy" not defined. Make breakpoint pending on future shared library load? (y or n) y Breakpoint 1 (strcpy) pending. (gdb) run Starting program: /home/rob/code/char_array2 hello Program exited with code 016. (gdb) I can't figure out what the problem is here. Seems like it should work but it won't let me break on strcpy. Even if I break on main and then try to set a break on strcpy and then continue, it still goes right through and does not break. According to the docs and other examples i've seen this should work fine so what is going on? am i missing something really simple here? -- View this message in context: http://www.nabble.com/Break-point-on-shared-library-function-not-working...--tp21700134p21700134.html Sent from the Gnu - gdb - General mailing list archive at Nabble.com.