-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell/?: gdb error #46
Comments
gcc 6.3 with gdb.unwrapped seems to work ... ?? |
Can you try adding the readline pkg to the code dependencies of the shell? EDIT: I can't reproduce this within the bsys labshell. Which environment does this happen in? |
hmmm, now it works I cannot reproduce it anymore ... maybe with my next examples, which I will try tomorrow ... |
now i can debug programs compiled with"export hardeningDisable=all" step by step. Couldn't do it without "export hardeningDisable=all" |
I understand that for specific cases, but the symbol lookup error is not explained by optimized code. |
than I ran into other troubles before ... |
I meant step-by-step with step=line in code. |
I had this trouble even when I compiled with -g or -O0 .... |
I think if you passed I'm confused about the state of this now. Do you still have any issues after setting |
I'm also confused but with |
(gdb) list
1 int main(int argc, char const *argv[])
2 {
3 int *x = 0;
4 int y = *x + 1;
5 return 0;
6 }
(gdb) b 3
Breakpoint 1 at 0x400540: file null.c, line 3.
(gdb) run
Starting program: /home/maechtel/tmp/null
/nix/store/pbs5sfnp9bfv27vz9m7h64w3zgkavfqd-perl-5.22.2/bin/perl: symbol lookup error: /nix/store/pbs5sfnp9bfv27vz9m7h64w3zgkavfqd-perl-5.22.2/bin/perl: undefined symbol: rm
[Inferior 1 (process 2263) exited with code 0177]
(gdb)
The text was updated successfully, but these errors were encountered: