Skip to content
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

the promp "Make breakpoint pending on future shared library load? (y or [n]) y" didn't show #1157

Closed
1 of 9 tasks
fadhil-riyanto opened this issue Nov 26, 2024 · 2 comments
Closed
1 of 9 tasks

Comments

@fadhil-riyanto
Copy link

GEF+GDB version

GEF: (Standalone)
Blob Hash(/home/fadhil_riyanto/.gdbinit-gef.py): 166aa230260671bd29b675c99cc9a467cbeb678d
SHA256(/home/fadhil_riyanto/.gdbinit-gef.py): cde0ca3ff9aa51c2346cb515cadcde205c761cac77e088738c78e19bba80df03
GDB: 15.2
GDB-Python: 3.12

Operating System

Archlinux

Describe the issue you encountered

Hi, this promp didn't showing while I use gef, I think its GDB bug or something, after I realize when using LLDB and using pure GDB the promp showed

its make me a littebit confusing while debugging, until I found it.

here the screenshoof of lldb

200

and this is pure gdb (no gef), its show the promp
200

and this is what happen on gef, the promp not showed
200

Do you read the docs and look at previously closed issues/PRs for similar cases?

Yes

Architecture impacted

  • X86
  • X64
  • ARM
  • ARM64
  • MIPS
  • MIPS64
  • PPC
  • PPC64
  • RISCV

Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.

reproduce step

/* main.c */
#include "second.h"

int main()
{
        int a = 10;
        abc();
        return 0;
}
/* second.c */
#include "second.h"

int abc()
{
        return 99;
}
/* header file second.h */
int abc();
# makefile
main: main.o second.o
	gcc main.o second.o -o realmain

main.o: main.c 
	gcc main.c -o main.o -c 

second.o: second.c
	gcc second.c -o second.o -c -g 

clean:
	rm main.o
	rm second.o

Minimalist test case

compile using make main
make sure gef installed. run gdb ./realmain
then b main.c:5

and the original gdb promp didn't showing

Additional context?

No response

@hugsy
Copy link
Owner

hugsy commented Nov 26, 2024

That's a GDB specific warning, not GEF related, even less a bug. A Google search says that set breakpoint pending on fixes it.

Closing.

@hugsy hugsy closed this as completed Nov 26, 2024
@Grazfather
Copy link
Collaborator

OP showed that the issue disappears if he doesn't load GEF, so it seems that GEF is doing something wrong here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants