gdb tag

10 questions


2 answers
96 views
0
Differences Between GDB and LLDB

What is the difference between GDB and LLDB?In particular, I would like to know about things that can be made into GDB and cannot be made into LLDB, or vice versa.

gdb
2 years ago

1 answers
113 views
0
program does not work on gdb

Running to debug with gdb (gdb)breakmainBreakpoint 1 at 0x100000f3f: file hello world.c, line 4.(gdb)runStarting program: /Users/RS/Desktop/prog/a.out New Thread 0x1903 of process 28784New Thread 0x1c...

2 years ago

1 answers
94 views
0
About gdb attach

os: Linux version 4.15.0-38-generic (buildd@lcy01-amd64-023) (gcc version 7.3.0 (Ubuntu7.3.0-16ubuntu3)Attempting to attach a self-made program with a different pts number to a user's input waiting st...

2 years ago

1 answers
113 views
0
What command do you all use in the gdb debugger?

I just started gdb, but it's still very difficult.I don't know how it works.Can you tell me what other developers usually use?

2 years ago

1 answers
105 views
0
I'd like to print out all the long strings on the GDB

Is there any way to see the entire string in GDB?It keeps getting shorterI need a whole long sentence

2 years ago

2 answers
150 views
0
How to redirect stdin to a file while passing a factor in gdb

I usually./a.out arg1 arg2 <fileI'd like to use gdb to debug the program together.How do I give commands or options?

2 years ago

1 answers
117 views
0
Linux Core Dump... I will attach the result of gdb.

It's almost done, but I suddenly see an error saying what I deleted. Program received signal SIGSEGV, Segmentation fault.__strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned...

2 years ago

1 answers
101 views
0
Exception thrown: read access violation. Head was nullptr.

typedef struct node { int value; struct node* next;} } node;int ll_has_cycle(node* first) { node* head = first; while (head->next) { head = head->next; if (head == first) return 1; } return ...


1 answers
70 views
0
Curious about changes in esp while looking at assembly language with gdb

This is a simple code from Hackers School FTZ level 15.I tried gdb. The left square is the brake gun points to check esp.Minus 0x38 4604 minus 45cthe point of trouble… I can't see the code touching es...

2 years ago

1 answers
132 views
0
Curious about memory structure among gdb (code area or data area)

Code with an if statement.I thought that 0xdeadbeef was a constant that shouldn't be changed, so I thought it would be in the data area.But when I tried gdb,The assembly code is in the code area, righ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.