GDBServer wont start on host machine
I migrated from my old Linux Mint to the new Ubuntu 18.04. and doing this I am trying a "newer" version of Eclipse. Therefore I installed Eclipse Photon and set up my remote application debugging like I did for Eclipse 3.8., using the Oselas Toolchain and a CortexA8.
The problem I am facing is, that the GDBServer on the host machine won't start automatically. After a successful connection I have to start it on my own:
Is there any new feature that exits the server immediately after starting?
See also questions close to this topic
-
GDB ELF File not in executable format
I am an extreme novice at GDB and I am trying to run GDB with a file to recover a truncated string. However it does not recognize it as either a core dump or an executable file. I ran chmod on the file and also ran the file command on it:
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=4f3f5a7bdbc709eab630652df71d16ed3f36743f, not stripped
I tried using GDB on both an Ubuntu VM and MACOS. Also, how would I go about recovering a truncated string? The file contains some base64.
When entering gdb with no files, I ran core and file and it did not detect it as a core dump, and could not run it respectively.
:not in executable format: File format not recognized :is not a core dump: File format not recognized
-
gdb print file being debugged
I want gdb to print the name of file being debugged every time I start debugging. For example if I do,
gdb -q filename
I should get the following message:
============================================ ============================================ filename ============================================ ============================================ Reading symbols from pointer...done. (gdb)
I have these lines in
.gdbinit
:echo ============================================\n echo ============================================\n echo SOMETEXT\n echo ============================================\n echo ============================================\n
So
gdb -q filename
gives me:============================================ ============================================ SOMETEXT ============================================ ============================================ Reading symbols from pointer...done. (gdb)
Pretty close to what I want... but still I don't know how to print the current file being debugged. Any suggestion? I have tried
echo $1
in gdb but this doesn't work. -
How can I make GDB print 64 bit variables?
I'm using GDB to debug code that was assembled with
nasm -felf64 -Fdwarf
when I want to examine the value at a label symbol, say
var_h: dq -1
using
print var_h
GDB assumes that the value is 32-bit and only gives me the lowest 4 bytes
x \1gx $var_h
gives an error along the lines of "cannot convert value to integer'
Very grateful for any ideas!
-
RapidIO linux user space application
Does anybody have user space application code example for RapidIO sybsystem Channelized Messaging character driver (rio_cm.c) and RapidIO subsystem mport character device driver (rio_mport_cdev.c)? They should be available from rapidIO.org, but looks like only members can get it.
-
Trigger callback if time expires without being 'kicked' first
I have a Linux application that needs to perform an action after 5 seconds if the same application doesn't 'kick' or reset the 5 second timer before it expires. What mechanism is best for this?
I was considering using
alarm(5)
and 'kick' it withalarm(5)
when needed but I was hoping to avoid needing to handle aSIGALRM
.I was reading up on
timer_create()
as well but I'm not seeing a way to configure a callback or reset the timer.I'm looking for something similar to a watchdog timer but within my application only.
-
install keyword significance in yocto recipe
I am trying to understand recipes in Yocto and I have seen this keyword 'install' used everywhere. Project Reference Manual do not say anything about this keyword
what is the significance of 'install' keyword in yocto recipes.. what is the benefit of using it in compare to touch for creating file and mkdir
do_install () { autotools_do_install install -d ${D}${base_bindir} mv ${D}${bindir}/sed ${D}${base_bindir}/sed rmdir ${D}${bindir}/ }
-
Error when Visual Studio Remote Debugging with GDB
I have a sample c++ application which builds and runs fine in a Red Hat installation.
I wanted to have the source code of this application in my windows machine so I can create a Visual Studio project and use Visual Studio 2017's new features which makes it possible to build and debug programs on a Linux server.
I successfully managed the following
- Create a 'make file' project using Visual Studio CE 2017
- Connect to the remote server and build by invoking make command at the server
My remote debugger settings are as follows
However, when I try to debug the program via Visual Studio (using gdb in the server) following error occurs
Since this doesn't reveal much, I enabled verbose mode (in GDB) and following is the verbose output. Apparently, GDB crashes after loading symbols for one of the source files.
Furthermore, I can manually GDB the binary in the Linux Server without any problems
-
Intellij Idea Remote Debug don't show logs in Idea's console
I use IDEA to remote debug my program on a remote server, I can use breakpoint to step the code, but there is no log output to the console. My program is run in a kubernetes pod, and it use logback to output log to both stdout and log file(/var/log/program.log)
Is there any way that I can output the log file in the pod to my local IDEA console?
thanks.