Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Way to break when using a piped input #80

Open
GanbaruTobi opened this issue Sep 25, 2022 · 1 comment
Open

Way to break when using a piped input #80

GanbaruTobi opened this issue Sep 25, 2022 · 1 comment

Comments

@GanbaruTobi
Copy link

GanbaruTobi commented Sep 25, 2022

Hello,

my program takes input via a pipe, for example:

cat input | heaptrace ./program

This works without --break. When i try to --break, gdb instantly takes the input as commands (probably the remaining of input), and does quit out from the debugger.
Is there a way to keep the debugger alive, or to not parse the piped input as gdb commands?
Normaly there would be the run < input command in gdb, but this is not realy the value which would be provided by heaptrace breakpoints.

Thanks for your help

@Arinerron
Copy link
Owner

Sorry, I didn't get an email about this issue for some reason.

That's an interesting problem. I'm trying to think of a clean solution. Lmk if you have any ideas!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants