Comments (4)
Related,
MariaDB container for remote debuggging:
$ podman run -d --rm -p 2345 --cap-add CAP_SYS_PTRACE --name mdb-debug -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 quay.io/mariadb-foundation/mariadb-debug:10.2
$ podman port mdb-debug 2345
0.0.0.0:41021
$ podman exec --user mysql -ti mdb-debug gdbserver --attach :2345 1
Attached; pid = 1
Listening on port 2345
Remote debugging from host 10.0.2.100
I used a target remote :41021
on the gdb command line. I explicitly running gdbfrontend from a checked out source directory:
(this uses a gdb-12 debugger that actually fetches the debug info).
Then set the breakpoint, continued. Triggered with $ podman exec -ti mdb-debug mysql -e 'set global innodb_buffer_pool_size=256*10*1024*1024'
resulting in:
However the relative info in the debuginfo can't automatically translate to the PWD as its been changed.
from gdb-frontend.
if i set src path manually, kdbg can know it, and if possible, would gdbfrontend find debug symbol files from relative path as first choice?
from gdb-frontend.
Hi, Thank you for your feedback. Breakpoints are setting by full paths for now. I will check it out to make it to work with relative paths.
Have a nice day.
from gdb-frontend.
Related,
MariaDB container for remote debuggging:
$ podman run -d --rm -p 2345 --cap-add CAP_SYS_PTRACE --name mdb-debug -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 quay.io/mariadb-foundation/mariadb-debug:10.2 $ podman port mdb-debug 2345 0.0.0.0:41021 $ podman exec --user mysql -ti mdb-debug gdbserver --attach :2345 1 Attached; pid = 1 Listening on port 2345 Remote debugging from host 10.0.2.100
I used a
target remote :41021
on the gdb command line. I explicitly running gdbfrontend from a checked out source directory: (this uses a gdb-12 debugger that actually fetches the debug info).Then set the breakpoint, continued. Triggered with
$ podman exec -ti mdb-debug mysql -e 'set global innodb_buffer_pool_size=256*10*1024*1024'
resulting in:
However the relative info in the debuginfo can't automatically translate to the PWD as its been changed.
Helloo, when you click a line gutter, GDBFrontend sets that breakpoint with absolute path of source file. I will find a solution for this.
You can start GDBFrontend on your remote machine and connect to that from your local machine instead of using gdbserver
.
Since gdbserver
limits some functionalities, I think running GDBFrontend on remote machine and connecting that from local machine is more useful. Soooo is there a special reason to use gdbserver
?
from gdb-frontend.
Related Issues (20)
- Maybe something other than tmux is available for Windows? HOT 3
- Failure with Python 3.6: unexpected keyword argument 'capture_output' HOT 3
- gdb prompt is behind bottom status bar HOT 6
- Alert!: Unable to connect to remote host. HOT 22
- sorting files in folder in the sources aids the navigation HOT 3
- GDB executable not found due to $PWD is modified by gdbfrontend HOT 6
- a
- Not support risc-v HOT 3
- How to debug a GDB Python extension (pdb)? HOT 1
- How to debug apps get inputs from TTY? HOT 4
- gdb main thread is bloocking ... HOT 7
- FeatReq: Close windows in right sidebar HOT 5
- Update Ace editor HOT 3
- building gdb on arch failed HOT 2
- Accessing debugger interface from another machine (Access is denied) HOT 2
- Problems encountered during trying out gdb-frontend HOT 2
- macOS Thread no longer exists HOT 7
- RFE: step OUT HOT 1
- Evaluating pointers as arrays HOT 1
- Error message when running on WSL2 Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdb-frontend.