Jump to content

Recommended Posts

Posted

Hi! I need to debug an armhf app ruunning on aarch64 (like supposed to be) on the T4 rk3399 and I face the same problem, no matter if I compile binutils-gdl of if I use gdb-multiarch from the repo.. it does not do nothing at all...

 

 

it doesnt matter if I set set arch arm.. it's the exact same behavior 

GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from box86...
(gdb) run
Starting program: /usr/local/bin/box86 mb_warband_linux

  
  

 

 

 

this is some output as explanation of my setup so you can check if there is any problem visible

 

pi@arm-64:~$ gdb-multiarch 
GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) set arch arm
The target architecture is assumed to be arm
(gdb) info 
"info" must be followed by the name of an info command.
List of info subcommands:

info address -- Describe where symbol SYM is stored.
info all-registers -- List of all registers and their contents, for selected stack frame.
info args -- All argument variables of current stack frame or those matching REGEXPs.
info auto-load -- Print current status of auto-loaded files.
info auxv -- Display the inferior's auxiliary vector.
info bookmarks -- Status of user-settable bookmarks.
info breakpoints -- Status of specified breakpoints (all user-settable breakpoints if no argument).
info checkpoints -- IDs of currently known checkpoints.
info classes -- All Objective-C classes, or those matching REGEXP.
info common -- Print out the values contained in a Fortran COMMON block.
info copying -- Conditions for redistributing copies of GDB.
info dcache -- Print information on the dcache performance.
info display -- Expressions to display when program stops, with code numbers.
info exceptions -- List all Ada exception names.
info extensions -- All filename extensions associated with a source language.
info files -- Names of targets and files being debugged.
info float -- Print the status of the floating point unit.
info frame -- All about the selected stack frame.
info frame-filter -- List all registered Python frame-filters.
info functions -- All function names or those matching REGEXPs.
info guile -- Prefix command for Guile info displays.
info handle -- What debugger does when program gets various signals.
info inferiors -- Print a list of inferiors being managed.
info line -- Core addresses of the code for a source line.
info locals -- All local variables of current stack frame or those matching REGEXPs.
info macro -- Show the definition of MACRO, and it's source location.
info macros -- Show the definitions of all macros at LINESPEC, or the current source location.
info mem -- Memory region attributes.
info module -- Print information about modules.
info modules -- All module names, or those matching REGEXP.
info os -- Show OS data ARG.
info pretty-printer -- GDB command to list all registered pretty-printers.
info probes -- Show available static probes.
info proc -- Show additional information about a process.
info program -- Execution status of the program.
info record -- Info record options.
info registers -- List of integer registers and their contents, for selected stack frame.
info scope -- List the variables local to a scope.
info selectors -- All Objective-C selectors, or those matching REGEXP.
info set -- Show all GDB settings.
info sharedlibrary -- Status of loaded shared object libraries.
info signals -- What debugger does when program gets various signals.
info skip -- Display the status of skips.
info source -- Information about the current source file.
info sources -- All source files in the program or those matching REGEXP.
info stack -- Backtrace of the stack, or innermost COUNT frames.
info static-tracepoint-markers -- List target static tracepoints markers.
info symbol -- Describe what symbol is at location ADDR.
--Type <RET> for more, q to quit, c to continue without paging-- 
info target -- Names of targets and files being debugged.
info tasks -- Provide information about all known Ada tasks.
info terminal -- Print inferior's saved terminal status.
info threads -- Display currently known threads.
info tracepoints -- Status of specified tracepoints (all tracepoints if no argument).
info tvariables -- Status of trace state variables and their values.
info type-printers -- GDB command to list all registered type-printers.
info types -- All type names, or those matching REGEXP.
info unwinder -- GDB command to list unwinders.
info variables -- All global and static variable names or those matching REGEXPs.
info vector -- Print the status of the vector unit.
info vtbl -- Show the virtual function table for a C++ object.
info warranty -- Various kinds of warranty you do not have.
info watchpoints -- Status of specified watchpoints (all watchpoints if no argument).
info win -- List of all displayed windows.
info xmethod -- GDB command to list registered xmethod matchers.

Type "help info" followed by info subcommand name for full documentation.
Type "apropos word" to search for commands related to "word".
Type "apropos -v word" for full documentation of commands related to "word".
Command name abbreviations are allowed if unambiguous.
(gdb) info set
ada print-signatures:  Whether the output of formal and return types for functions in the overloads selection menu is activated is on.
ada trust-PAD-over-XVS:  Whether an optimization trusting PAD types over XVS types is activated is on.
agent:  Debugger's willingness to use agent in inferior as a helper is off.
annotate:  Annotation_level is 0.
architecture:  The target architecture is assumed to be arm
args:  Argument list to give program being debugged when it is started is "".
arm abi:  The current ARM ABI is "auto" (currently "APCS").
arm apcs32:  Usage of ARM 32-bit mode is on.
arm disassembler:  The disassembly style is "std".
arm fallback-mode:  The current execution mode assumed (when symbols are unavailable) is "auto".
arm force-mode:  The current execution mode assumed (even when symbols are available) is "auto".
arm fpu:  The current ARM floating point model is "auto" (currently "fpa").
auto-connect-native-target:  Whether GDB may automatically connect to the native target is on.
auto-load gdb-scripts:  Auto-loading of canned sequences of commands scripts is on.
auto-load libthread-db:  Auto-loading of inferior specific libthread_db is on.
auto-load local-gdbinit:  Auto-loading of .gdbinit script from current directory is on.
auto-load python-scripts:  Auto-loading of Python scripts is on.
auto-load safe-path:  List of directories from which it is safe to auto-load files is $debugdir:$datadir/auto-load.
auto-load scripts-directory:  List of directories from which to load auto-loaded scripts is $debugdir:$datadir/auto-load.
auto-load-scripts:  Auto-loading of Python scripts is on.
auto-solib-add:  Autoloading of shared library symbols is on.
backtrace limit:  An upper bound on the number of backtrace levels is unlimited.
backtrace past-entry:  Whether backtraces should continue past the entry point of a program is off.
backtrace past-main:  Whether backtraces should continue past "main" is off.
basenames-may-differ:  Whether a source file may have multiple base names is off.
breakpoint always-inserted:  Always inserted breakpoint mode is off.
breakpoint auto-hw:  Automatic usage of hardware breakpoints is on.
breakpoint condition-evaluation:  Breakpoint condition evaluation mode is auto (currently host).
breakpoint pending:  Debugger's behavior regarding pending breakpoints is auto.
c:  range:  Range checking is "auto; currently off".
type:  Strict type checking is on.
can-use-hw-watchpoints:  Debugger's willingness to use watchpoint hardware is 1.
case-sensitive:  Case sensitivity in name search is "auto; currently on".
ch:  range:  Range checking is "auto; currently off".
type:  Strict type checking is on.
charset:  The host character set is "auto; currently ANSI_X3.4-1968".
The target character set is "auto; currently ANSI_X3.4-1968".
The target wide character set is "auto; currently UTF-32".
check range:  Range checking is "auto; currently off".
check type:  Strict type checking is on.
circular-trace-buffer:  Target's use of circular trace buffer is off.
code-cache:  Cache use for code accesses is on.
coerce-float-to-double:  Coercion of floats to doubles when calling functions is on.
compile-args:  Compile command command-line arguments are "-O0 -gdwarf-4 -fPIE -Wall  -Wno-unused-but-set-variable -Wno-unused-variable -fno-stack-protector".
compile-gcc:  Compile command GCC driver filename is "".
complaints:  Max number of complaints about incorrect symbols is 0.
confirm:  Whether to confirm potentially dangerous operations is on.
conv:  $_gdb_minor = 1
$_gdb_major = 9
$_regex = <internal function _regex>
$_streq = <internal function _streq>
--Type <RET> for more, q to quit, c to continue without paging--
$_strlen = <internal function _strlen>
$_memeq = <internal function _memeq>
$_any_caller_matches = <internal function _any_caller_matches>
$_any_caller_is = <internal function _any_caller_is>
$_caller_matches = <internal function _caller_matches>
$_caller_is = <internal function _caller_is>
$_as_string = <internal function _as_string>
$_inferior = 1
$_gdb_maint_setting = <internal function _gdb_maint_setting>
$_gdb_maint_setting_str = <internal function _gdb_maint_setting_str>
$_gdb_setting = <internal function _gdb_setting>
$_gdb_setting_str = <internal function _gdb_setting_str>
$_cimag = <internal function _cimag>
$_creal = <internal function _creal>
$_isvoid = <internal function _isvoid>
$_sdata = void
$_gthread = 0
$_thread = 0
$_probe_arg11 = <error: No frame selected>
$_probe_arg10 = <error: No frame selected>
$_probe_arg9 = <error: No frame selected>
$_probe_arg8 = <error: No frame selected>
$_probe_arg7 = <error: No frame selected>
$_probe_arg6 = <error: No frame selected>
$_probe_arg5 = <error: No frame selected>
$_probe_arg4 = <error: No frame selected>
$_probe_arg3 = <error: No frame selected>
$_probe_arg2 = <error: No frame selected>
$_probe_arg1 = <error: No frame selected>
$_probe_arg0 = <error: No frame selected>
$_probe_argc = <error: No frame selected>
$_siginfo = void
$_exception = <error: No frame selected>
convenience:  $_gdb_minor = 1
$_gdb_major = 9
$_regex = <internal function _regex>
$_streq = <internal function _streq>
$_strlen = <internal function _strlen>
$_memeq = <internal function _memeq>
$_any_caller_matches = <internal function _any_caller_matches>
$_any_caller_is = <internal function _any_caller_is>
$_caller_matches = <internal function _caller_matches>
$_caller_is = <internal function _caller_is>
$_as_string = <internal function _as_string>
$_inferior = 1
$_gdb_maint_setting = <internal function _gdb_maint_setting>
$_gdb_maint_setting_str = <internal function _gdb_maint_setting_str>
$_gdb_setting = <internal function _gdb_setting>
$_gdb_setting_str = <internal function _gdb_setting_str>
$_cimag = <internal function _cimag>
$_creal = <internal function _creal>
--Type <RET> for more, q to quit, c to continue without paging--
$_isvoid = <internal function _isvoid>
$_sdata = void
$_gthread = 0
$_thread = 0
$_probe_arg11 = <error: No frame selected>
$_probe_arg10 = <error: No frame selected>
$_probe_arg9 = <error: No frame selected>
$_probe_arg8 = <error: No frame selected>
$_probe_arg7 = <error: No frame selected>
$_probe_arg6 = <error: No frame selected>
$_probe_arg5 = <error: No frame selected>
$_probe_arg4 = <error: No frame selected>
$_probe_arg3 = <error: No frame selected>
$_probe_arg2 = <error: No frame selected>
$_probe_arg1 = <error: No frame selected>
$_probe_arg0 = <error: No frame selected>
$_probe_argc = <error: No frame selected>
$_siginfo = void
$_exception = <error: No frame selected>
cp-abi:  The currently selected C++ ABI is "auto" (currently "gnu-v3").
cwd:  You have not set the inferior's current working directory.
The inferior will inherit GDB's cwd if native debugging, or the remote
server's cwd if remote debugging.
data-directory:  GDB's data directory is "/usr/share/gdb".
dcache line-size:  Dcache line size is 64.
dcache size:  Number of dcache lines is 4096.
debug aarch64:  AArch64 debugging is off.
debug arch:  Architecture debugging is 0.
debug arm:  ARM debugging is off.
debug auto-load:  Debugging output for files of 'set auto-load ...' is off.
debug bfd-cache:  BFD cache debugging is 0.
debug check-physname:  Whether to check "physname" is off.
debug coff-pe-read:  Coff PE read debugging is 0.
debug compile:  Compile debugging is off.
debug compile-cplus-scopes:  Debugging of C++ compile scopes is off.
debug compile-cplus-types:  Debugging of C++ compile type conversion is off.
debug displaced:  Displace stepping debugging is off.
debug dwarf-die:  Debugging of the DWARF DIE reader is 0.
debug dwarf-line:  Debugging of the dwarf line reader is 0.
debug dwarf-read:  Debugging of the DWARF reader is 0.
debug entry-values:  Entry values and tail call frames debugging is 0.
debug expression:  Expression debugging is 0.
debug frame:  Frame debugging is 0.
debug hppa:  Whether hppa target specific debugging information is displayed is off.
debug index-cache:  Display of index-cache debug messages is off.
debug infrun:  Inferior debugging is 0.
debug jit:  JIT debugging is 0.
debug libthread-db:  libthread-db debugging is 0.
debug lin-lwp:  Debugging of GNU/Linux lwp module is 0.
debug linux-namespaces:  Debugging of GNU/Linux namespaces module is off.
debug mips:  Mips debugging is 0.
--Type <RET> for more, q to quit, c to continue without paging--
debug notification:  Debugging of async remote notification is off.
debug observer:  Observer debugging is 0.
debug overload:  Debugging of C++ overloading is 0.
debug parser:  Parser debugging is off.
debug py-unwind:  Python unwinder debugging is 0.
debug record:  Debugging of process record target is 0.
debug remote:  Debugging of remote protocol is 0.
debug remote-packet-max-chars:  Number of remote packet characters to display is 512.
debug riscv breakpoints:  RiscV debug variable `breakpoints' is set to: 0
debug riscv gdbarch:  RiscV debug variable `gdbarch' is set to: 0
debug riscv infcall:  RiscV debug variable `infcall' is set to: 0
debug riscv unwinder:  RiscV debug variable `unwinder' is set to: 0
debug separate-debug-file:  Printing of separate debug info file search debug is off.
debug serial:  Serial debugging is 0.
debug skip:  Whether the debug output about skipping files and functions is printed is off.
debug stap-expression:  SystemTap Probe expression debugging is 0.
debug symbol-lookup:  Debugging of symbol lookup is 0.
debug symfile:  Symfile debugging is off.
debug symtab-create:  Debugging of symbol table creation is 0.
debug target:  Target debugging is 0.
debug timestamp:  Timestamping debugging messages is off.
debug varobj:  Varobj debugging is 0.
debug xml:  XML debugging is off.
debug-file-directory:  The directory where separate debug symbols are searched for is "/usr/lib/debug".
default-collect:  The list of expressions to collect by default is "".
demangle-style:  The current C++ demangling style is "auto".
detach-on-fork:  Whether gdb will detach the child of a fork is on.
directories:  Source directories searched: $cdir:$cwd
disable-randomization:  Disabling randomization of debuggee's virtual address space is on.
disassemble-next-line:  Debugger's willingness to use disassemble-next-line is off.
disassembler-options:  The current disassembler options are 'reg-names-std'

The following disassembler options are supported for use with the
'set disassembler-options OPTION [,OPTION]...' command:

  reg-names-raw            Select raw register names
  reg-names-gcc            Select register names used by GCC
  reg-names-std            Select register names used in ARM's ISA documentation
  force-thumb              Assume all insns are Thumb insns
  no-force-thumb           Examine preceding label to determine an insn's type
  reg-names-apcs           Select register names used in the APCS
  reg-names-atpcs          Select register names used in the ATPCS
  reg-names-special-atpcs  Select special register names used in the ATPCS
disassembly-flavor:  The disassembly flavor is "att".
disconnected-dprintf:  Whether dprintf continues after GDB disconnects is on.
disconnected-tracing:  Whether tracing continues after GDB disconnects is off.
displaced-stepping:  Debugger's willingness to use displaced stepping to step over breakpoints is auto (currently off).
dprintf-channel:  The channel to use for dynamic printf is "".
dprintf-function:  The function to use for dynamic printf is "printf".
dprintf-style:  The style of usage for dynamic printf is "gdb".
dump-excluded-mappings:  Dumping of mappings marked with the VM_DONTDUMP flag is off.
--Type <RET> for more, q to quit, c to continue without paging--
editing:  Editing of command lines as they are typed is on.
endian:  The target endianness is set automatically (currently little endian)
environment:  SHELL=/bin/bash
SESSION_MANAGER=local/arm-64:@/tmp/.ICE-unix/2597,unix/arm-64:/tmp/.ICE-unix/2597
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu-wayland:/etc/xdg
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LANGUAGE=es_AR:en
LC_ADDRESS=es_AR.UTF-8
GNOME_SHELL_SESSION_MODE=ubuntu
LC_NAME=es_AR.UTF-8
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DESKTOP_SESSION=ubuntu-wayland
LC_MONETARY=es_AR.UTF-8
PWD=/home/pi
LOGNAME=pi
XDG_SESSION_DESKTOP=ubuntu-wayland
XDG_SESSION_TYPE=wayland
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.J12XO0
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
HOME=/home/pi
USERNAME=pi
LC_PAPER=es_AR.UTF-8
LANG=es_AR.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
VTE_VERSION=6001
WAYLAND_DISPLAY=wayland-0
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/34fa478b_91ce_4991_9397_48620f856fc3
GJS_DEBUG_OUTPUT=stderr
GNOME_SETUP_DISPLAY=:1
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=es_AR.UTF-8
LESSOPEN=| /usr/bin/lesspipe %s
USER=pi
GNOME_TERMINAL_SERVICE=:1.86
DISPLAY=:0
SHLVL=1
LC_TELEPHONE=es_AR.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
--Type <RET> for more, q to quit, c to continue without paging--
PAPERSIZE=a4
XDG_RUNTIME_DIR=/run/user/1000
LC_TIME=es_AR.UTF-8
LC_ALL=C
XDG_DATA_DIRS=/usr/share/ubuntu-wayland:/home/pi/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
GDMSESSION=ubuntu-wayland
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FekB0geSxM,guid=1e2f77ed6bf2002a84d1b82f5f2215ae
LC_NUMERIC=es_AR.UTF-8
_=/usr/bin/gdb-multiarch
LINES=52
COLUMNS=190
exec-direction:  Forward.
exec-done-display:  Notification of completion for asynchronous execution commands is off.
exec-wrapper:  The wrapper for running programs is "".
extended-prompt:  The extended prompt is not set.
extension-language:  Mapping between filename extension and source language is "".
filename-display:  Filenames are displayed as "relative".
follow-exec-mode:  Follow exec mode is "same".
follow-fork-mode:  Debugger response to a program call of fork or vfork is "parent".
frame-filter priority:  show frame-filter priority takes exactly two arguments.
gnutarget:  The current BFD target is "auto".
gu:  print-stack:  The mode of Guile exception printing on error is "message".
guile print-stack:  The mode of Guile exception printing on error is "message".
height:  Number of lines gdb thinks are in a page is 52.
heuristic-fence-post:  The distance searched for the start of a function is 0.
history expansion:  History expansion on command input is off.
history filename:  The filename in which to record the command history is "/home/pi/.gdb_history".
history remove-duplicates:  The number of history entries to look back at for duplicates is 0.
history save:  Saving of the history record on exit is off.
history size:  The size of the command history is 256.
host-charset:  The host character set is "auto; currently ANSI_X3.4-1968".
index-cache directory:  The directory of the index cache is "/home/pi/.cache/gdb".
index-cache stats:    Cache hits (this session): 0
Cache misses (this session): 0
inferior-tty:  Terminal for future runs of program being debugged is "".
input-radix:  Default input radix for entering numbers is 10.
interactive-mode:  Debugger's interactive mode is auto (currently on).
language:  The current source language is "auto; currently c".
libthread-db-search-path:  The current search path or libthread_db is "$sdir:$pdir".
listsize:  Number of source lines gdb will list by default is 10.
logging debugredirect:  The logging output mode is off.
logging file:  The current logfile is "gdb.txt".
logging overwrite:  Whether logging overwrites or appends to the log file is off.
logging redirect:  The logging output mode is off.
max-completions:  Maximum number of completion candidates is 200.
max-user-call-depth:  The max call depth for user-defined commands is 1024.
max-value-size:  Maximum value size is 65536 bytes.
may-call-functions:  Permission to call functions in the program is on.
may-insert-breakpoints:  Permission to insert breakpoints in the target is on.
may-insert-fast-tracepoints:  Permission to insert fast tracepoints in the target is on.
--Type <RET> for more, q to quit, c to continue without paging--
may-insert-tracepoints:  Permission to insert tracepoints in the target is on.
may-interrupt:  Permission to interrupt or signal the target is on.
may-write-memory:  Permission to write into target memory is on.
may-write-registers:  Permission to write into registers is on.
mem  inaccessible-by-default:  Unknown memory addresses will be treated as inaccessible.
mi-async:  Whether MI is in asynchronous mode is off.
mips abi:  The MIPS ABI is unknown because the current architecture is not MIPS.
mips compression:  The compressed ISA encoding used is mips16.
mips mask-address:  Zeroing of upper 32 bits of 64-bit addresses is auto.
The 32 bit address mask is set automatically.  Currently disabled
mipsfpu:  The MIPS floating-point coprocessor is unknown because the current architecture is not MIPS.
mpx bound:  Intel Memory Protection Extensions not supported on this target.
multiple-symbols:  How the debugger handles ambiguities in expressions is "all".
non-stop:  Controlling the inferior in non-stop mode is off.
observer:  Observer mode is off.
opaque-type-resolution:  Resolution of opaque struct/class/union types (if set before loading symbols) is on.
osabi:  The current OS ABI is "auto" (currently "GNU/Linux").
The default OS ABI is "GNU/Linux".
output-radix:  Default output radix for printing of values is 10.
overload-resolution:  Overload resolution in evaluating C++ functions is on.
p:  address:  Printing of addresses is on.
array:  Pretty formatting of arrays is off.
array-indexes:  Printing of array indexes is off.
asm-demangle:  Demangling of C++/ObjC names in disassembly listings is off.
demangle:  Demangling of encoded C++/ObjC names when displaying symbols is on.
elements:  Limit on string chars or array elements to print is 200.
entry-values:  Printing of function arguments at function entry is "default".
finish:  Printing of return value after `finish' is on.
frame-arguments:  Printing of non-scalar frame arguments is "scalars".
frame-info:  Printing of frame information is "auto".
inferior-events:  Printing of inferior events is on.
max-depth:  Maximum print depth is 20.
max-symbolic-offset:  The largest offset that will be printed in <symbol+1234> form is unlimited.
null-stop:  Printing of char arrays to stop at first null char is off.
object:  Printing of object's derived type based on vtable info is off.
pascal_static-members:  Printing of pascal static members is on.
pretty:  Pretty formatting of structures is off.
print raw frame-arguments:  Whether to print frame arguments in raw form is off.
raw-frame-arguments:  Whether to print frame arguments in raw form is off.
raw-values:  Whether to print values in raw form is off.
repeats:  Threshold for repeated print elements is 10.
sevenbit-strings:  Printing of 8-bit characters in strings as \nnn is off.
static-members:  Printing of C++ static members is on.
symbol:  Printing of symbols when printing pointers is on.
symbol-filename:  Printing of source filename and line number with <symbol> is off.
symbol-loading:  Printing of symbol loading messages is "full".
thread-events:  Printing of thread events is on.
print type methods:  Printing of methods defined in a class in on
print type nested-type-limit:  Will not print nested types defined in a class
print type typedefs:  Printing of typedefs defined in a class in on
union:  Printing of unions interior to structures is on.
--Type <RET> for more, q to quit, c to continue without paging--
vtbl:  Printing of C++ virtual function tables is off.
pagination:  State of pagination is on.
paths:  Executable and object file path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
powerpc exact-watchpoints:  Use of exact watchpoints is off.
powerpc soft-float:  Whether to use a soft-float ABI is auto.
powerpc vector-abi:  The vector ABI is "auto".
pr:  address:  Printing of addresses is on.
array:  Pretty formatting of arrays is off.
array-indexes:  Printing of array indexes is off.
asm-demangle:  Demangling of C++/ObjC names in disassembly listings is off.
demangle:  Demangling of encoded C++/ObjC names when displaying symbols is on.
elements:  Limit on string chars or array elements to print is 200.
entry-values:  Printing of function arguments at function entry is "default".
finish:  Printing of return value after `finish' is on.
frame-arguments:  Printing of non-scalar frame arguments is "scalars".
frame-info:  Printing of frame information is "auto".
inferior-events:  Printing of inferior events is on.
max-depth:  Maximum print depth is 20.
max-symbolic-offset:  The largest offset that will be printed in <symbol+1234> form is unlimited.
null-stop:  Printing of char arrays to stop at first null char is off.
object:  Printing of object's derived type based on vtable info is off.
pascal_static-members:  Printing of pascal static members is on.
pretty:  Pretty formatting of structures is off.
print raw frame-arguments:  Whether to print frame arguments in raw form is off.
raw-frame-arguments:  Whether to print frame arguments in raw form is off.
raw-values:  Whether to print values in raw form is off.
repeats:  Threshold for repeated print elements is 10.
sevenbit-strings:  Printing of 8-bit characters in strings as \nnn is off.
static-members:  Printing of C++ static members is on.
symbol:  Printing of symbols when printing pointers is on.
symbol-filename:  Printing of source filename and line number with <symbol> is off.
symbol-loading:  Printing of symbol loading messages is "full".
thread-events:  Printing of thread events is on.
print type methods:  Printing of methods defined in a class in on
print type nested-type-limit:  Will not print nested types defined in a class
print type typedefs:  Printing of typedefs defined in a class in on
union:  Printing of unions interior to structures is on.
vtbl:  Printing of C++ virtual function tables is off.
print address:  Printing of addresses is on.
print array:  Pretty formatting of arrays is off.
print array-indexes:  Printing of array indexes is off.
print asm-demangle:  Demangling of C++/ObjC names in disassembly listings is off.
print demangle:  Demangling of encoded C++/ObjC names when displaying symbols is on.
print elements:  Limit on string chars or array elements to print is 200.
print entry-values:  Printing of function arguments at function entry is "default".
print finish:  Printing of return value after `finish' is on.
print frame-arguments:  Printing of non-scalar frame arguments is "scalars".
print frame-info:  Printing of frame information is "auto".
print inferior-events:  Printing of inferior events is on.
print max-depth:  Maximum print depth is 20.
print max-symbolic-offset:  The largest offset that will be printed in <symbol+1234> form is unlimited.
--Type <RET> for more, q to quit, c to continue without paging--
print null-stop:  Printing of char arrays to stop at first null char is off.
print object:  Printing of object's derived type based on vtable info is off.
print pascal_static-members:  Printing of pascal static members is on.
print pretty:  Pretty formatting of structures is off.
print raw frame-arguments:  Whether to print frame arguments in raw form is off.
print raw-frame-arguments:  Whether to print frame arguments in raw form is off.
print raw-values:  Whether to print values in raw form is off.
print repeats:  Threshold for repeated print elements is 10.
print sevenbit-strings:  Printing of 8-bit characters in strings as \nnn is off.
print static-members:  Printing of C++ static members is on.
print symbol:  Printing of symbols when printing pointers is on.
print symbol-filename:  Printing of source filename and line number with <symbol> is off.
print symbol-loading:  Printing of symbol loading messages is "full".
print thread-events:  Printing of thread events is on.
print type methods:  Printing of methods defined in a class in on
print type nested-type-limit:  Will not print nested types defined in a class
print type typedefs:  Printing of typedefs defined in a class in on
print union:  Printing of unions interior to structures is on.
print vtbl:  Printing of C++ virtual function tables is off.
prompt:  Gdb's prompt is "(gdb) ".
python print-stack:  The mode of Python stack printing on error is "message".
radix:  Input and output radices set to decimal 10, hex a, octal 12.
range-stepping:  Debugger's willingness to use range stepping is on.
ravenscar task-switching:  Support for Ravenscar task/thread switching is enabled
rec:  record btrace bts buffer-size:  The record/replay bts buffer size is 65536.
record btrace cpu:  btrace cpu is 'auto'.
record btrace pt buffer-size:  The record/replay pt buffer size is 16384.
record btrace replay-memory-access:  Replay memory access is read-only.
record full insn-number-max:  Record/replay buffer limit is 200000.
record full memory-query:  Whether query if PREC cannot record memory change of next instruction is off.
record full stop-at-limit:  Whether record/replay stops when record/replay buffer becomes full is on.
function-call-history-size:  Number of functions to print in "record function-call-history" is 10.
insn-number-max:  instruction-history-size:  Number of instructions to print in "record instruction-history" is 10.
memory-query:  stop-at-limit:  record btrace bts buffer-size:  The record/replay bts buffer size is 65536.
record btrace cpu:  btrace cpu is 'auto'.
record btrace pt buffer-size:  The record/replay pt buffer size is 16384.
record btrace replay-memory-access:  Replay memory access is read-only.
record full insn-number-max:  Record/replay buffer limit is 200000.
record full memory-query:  Whether query if PREC cannot record memory change of next instruction is off.
record full stop-at-limit:  Whether record/replay stops when record/replay buffer becomes full is on.
record function-call-history-size:  Number of functions to print in "record function-call-history" is 10.
record insn-number-max:  record instruction-history-size:  Number of instructions to print in "record instruction-history" is 10.
record memory-query:  record stop-at-limit:  remote P-packet:  remote TracepointSource-packet:  Support for the `TracepointSource' packet is auto-detected, currently unknown.
remote X-packet:  remote Z-packet:  Support for the `Z0' packet is auto-detected, currently unknown.
Support for the `Z1' packet is auto-detected, currently unknown.
Support for the `Z2' packet is auto-detected, currently unknown.
Support for the `Z3' packet is auto-detected, currently unknown.
Support for the `Z4' packet is auto-detected, currently unknown.
remote access-watchpoint-packet:  Support for the `Z4' packet is auto-detected, currently unknown.
remote agent-packet:  Support for the `QAgent' packet is auto-detected, currently unknown.
remote allow-packet:  Support for the `QAllow' packet is auto-detected, currently unknown.
--Type <RET> for more, q to quit, c to continue without paging--
remote attach-packet:  Support for the `vAttach' packet is auto-detected, currently unknown.
remote binary-download-packet:  Support for the `X' packet is auto-detected, currently unknown.
remote breakpoint-commands-packet:  Support for the `BreakpointCommands' packet is auto-detected, currently unknown.
remote btrace-conf-bts-size-packet:  Support for the `Qbtrace-conf:bts:size' packet is auto-detected, currently unknown.
remote btrace-conf-pt-size-packet:  Support for the `Qbtrace-conf:pt:size' packet is auto-detected, currently unknown.
remote catch-syscalls-packet:  Support for the `QCatchSyscalls' packet is auto-detected, currently unknown.
remote conditional-breakpoints-packet:  Support for the `ConditionalBreakpoints' packet is auto-detected, currently unknown.
remote conditional-tracepoints-packet:  Support for the `ConditionalTracepoints' packet is auto-detected, currently unknown.
remote ctrl-c-packet:  Support for the `vCtrlC' packet is auto-detected, currently unknown.
remote disable-btrace-packet:  Support for the `Qbtrace:off' packet is auto-detected, currently unknown.
remote disable-randomization-packet:  Support for the `QDisableRandomization' packet is auto-detected, currently unknown.
remote enable-btrace-bts-packet:  Support for the `Qbtrace:bts' packet is auto-detected, currently unknown.
remote enable-btrace-pt-packet:  Support for the `Qbtrace:pt' packet is auto-detected, currently unknown.
remote environment-hex-encoded-packet:  Support for the `QEnvironmentHexEncoded' packet is auto-detected, currently unknown.
remote environment-reset-packet:  Support for the `QEnvironmentReset' packet is auto-detected, currently unknown.
remote environment-unset-packet:  Support for the `QEnvironmentUnset' packet is auto-detected, currently unknown.
remote exec-event-feature-packet:  Support for the `exec-event-feature' packet is auto-detected, currently unknown.
remote exec-file:  (null)
remote fast-tracepoints-packet:  Support for the `FastTracepoints' packet is auto-detected, currently unknown.
remote fetch-register-packet:  Support for the `p' packet is auto-detected, currently unknown.
remote fork-event-feature-packet:  Support for the `fork-event-feature' packet is auto-detected, currently unknown.
remote get-thread-information-block-address-packet:  Support for the `qGetTIBAddr' packet is auto-detected, currently unknown.
remote get-thread-local-storage-address-packet:  Support for the `qGetTLSAddr' packet is auto-detected, currently unknown.
remote hardware-breakpoint-limit:  The maximum number of target hardware breakpoints is unlimited.
remote hardware-breakpoint-packet:  Support for the `Z1' packet is auto-detected, currently unknown.
remote hardware-watchpoint-length-limit:  The maximum length (in bytes) of a target hardware watchpoint is unlimited.
remote hardware-watchpoint-limit:  The maximum number of target hardware watchpoints is unlimited.
remote hostio-close-packet:  Support for the `vFile:close' packet is auto-detected, currently unknown.
remote hostio-fstat-packet:  Support for the `vFile:fstat' packet is auto-detected, currently unknown.
remote hostio-open-packet:  Support for the `vFile:open' packet is auto-detected, currently unknown.
remote hostio-pread-packet:  Support for the `vFile:pread' packet is auto-detected, currently unknown.
remote hostio-pwrite-packet:  Support for the `vFile:pwrite' packet is auto-detected, currently unknown.
remote hostio-readlink-packet:  Support for the `vFile:readlink' packet is auto-detected, currently unknown.
remote hostio-setfs-packet:  Support for the `vFile:setfs' packet is auto-detected, currently unknown.
remote hostio-unlink-packet:  Support for the `vFile:unlink' packet is auto-detected, currently unknown.
remote hwbreak-feature-packet:  Support for the `hwbreak-feature' packet is auto-detected, currently unknown.
remote install-in-trace-packet:  Support for the `InstallInTrace' packet is auto-detected, currently unknown.
remote interrupt-on-connect:  Whether interrupt-sequence is sent to remote target when gdb connects to is off.
remote interrupt-sequence:  Send the ASCII ETX character (Ctrl-c) to the remote target to interrupt the execution of the program.
remote kill-packet:  Support for the `vKill' packet is auto-detected, currently unknown.
remote library-info-packet:  Support for the `qXfer:libraries:read' packet is auto-detected, currently unknown.
remote library-info-svr4-packet:  Support for the `qXfer:libraries-svr4:read' packet is auto-detected, currently unknown.
remote memory-map-packet:  Support for the `qXfer:memory-map:read' packet is auto-detected, currently unknown.
remote memory-read-packet-size:  The memory-read-packet-size is 0 (default). The actual limit will be further reduced dependent on the target.
remote memory-write-packet-size:  The memory-write-packet-size is 0 (default). The actual limit will be further reduced dependent on the target.
remote multiprocess-feature-packet:  Support for the `multiprocess-feature' packet is auto-detected, currently unknown.
remote no-resumed-stop-reply-packet:  Support for the `N stop reply' packet is auto-detected, currently unknown.
remote noack-packet:  Support for the `QStartNoAckMode' packet is auto-detected, currently unknown.
remote osdata-packet:  Support for the `qXfer:osdata:read' packet is auto-detected, currently unknown.
remote p-packet:  remote pass-signals-packet:  Support for the `QPassSignals' packet is auto-detected, currently unknown.
remote pid-to-exec-file-packet:  Support for the `qXfer:exec-file:read' packet is auto-detected, currently unknown.
--Type <RET> for more, q to quit, c to continue without paging--
remote program-signals-packet:  Support for the `QProgramSignals' packet is auto-detected, currently unknown.
remote query-attached-packet:  Support for the `qAttached' packet is auto-detected, currently unknown.
remote read-aux-vector-packet:  Support for the `qXfer:auxv:read' packet is auto-detected, currently unknown.
remote read-btrace-conf-packet:  Support for the `qXfer:btrace-conf' packet is auto-detected, currently unknown.
remote read-btrace-packet:  Support for the `qXfer:btrace' packet is auto-detected, currently unknown.
remote read-fdpic-loadmap-packet:  Support for the `qXfer:fdpic:read' packet is auto-detected, currently unknown.
remote read-sdata-object-packet:  Support for the `qXfer:statictrace:read' packet is auto-detected, currently unknown.
remote read-siginfo-object-packet:  Support for the `qXfer:siginfo:read' packet is auto-detected, currently unknown.
remote read-watchpoint-packet:  Support for the `Z3' packet is auto-detected, currently unknown.
remote reverse-continue-packet:  Support for the `bc' packet is auto-detected, currently unknown.
remote reverse-step-packet:  Support for the `bs' packet is auto-detected, currently unknown.
remote run-packet:  Support for the `vRun' packet is auto-detected, currently unknown.
remote search-memory-packet:  Support for the `qSearch:memory' packet is auto-detected, currently unknown.
remote set-register-packet:  Support for the `P' packet is auto-detected, currently unknown.
remote set-working-dir-packet:  Support for the `QSetWorkingDir' packet is auto-detected, currently unknown.
remote software-breakpoint-packet:  Support for the `Z0' packet is auto-detected, currently unknown.
remote startup-with-shell-packet:  Support for the `QStartupWithShell' packet is auto-detected, currently unknown.
remote static-tracepoints-packet:  Support for the `StaticTracepoints' packet is auto-detected, currently unknown.
remote supported-packets-packet:  Support for the `qSupported' packet is auto-detected, currently unknown.
remote swbreak-feature-packet:  Support for the `swbreak-feature' packet is auto-detected, currently unknown.
remote symbol-lookup-packet:  Support for the `qSymbol' packet is auto-detected, currently unknown.
remote system-call-allowed:  Calling host system(3) call from target is not allowed
remote target-features-packet:  Support for the `qXfer:features:read' packet is auto-detected, currently unknown.
remote thread-events-packet:  Support for the `QThreadEvents' packet is auto-detected, currently unknown.
remote threads-packet:  Support for the `qXfer:threads:read' packet is auto-detected, currently unknown.
remote trace-buffer-size-packet:  Support for the `QTBuffer:size' packet is auto-detected, currently unknown.
remote trace-status-packet:  Support for the `qTStatus' packet is auto-detected, currently unknown.
remote traceframe-info-packet:  Support for the `qXfer:traceframe-info:read' packet is auto-detected, currently unknown.
remote unwind-info-block-packet:  Support for the `qXfer:uib:read' packet is auto-detected, currently unknown.
remote verbose-resume-packet:  Support for the `vCont' packet is auto-detected, currently unknown.
remote verbose-resume-supported-packet:  Support for the `vContSupported' packet is auto-detected, currently unknown.
remote vfork-event-feature-packet:  Support for the `vfork-event-feature' packet is auto-detected, currently unknown.
remote write-siginfo-object-packet:  Support for the `qXfer:siginfo:write' packet is auto-detected, currently unknown.
remote write-watchpoint-packet:  Support for the `Z2' packet is auto-detected, currently unknown.
remote-mips64-transfers-32bit-regs:  Compatibility with 64-bit MIPS target that transfers 32-bit quantities is off.
remoteaddresssize:  The maximum size of the address (in bits) in a memory packet is 0.
remotebreak:  remotecache:  Deprecated remotecache flag is off.
remoteflow:  Hardware flow control is off.
remotelogbase:  Numerical base for remote session logging is "ascii".
remotelogfile:  Filename for remote session recording is "".
remotetimeout:  Timeout limit to wait for target to respond is 2.
remotewritesize:  The memory-write-packet-size is 0 (default). The actual limit will be further reduced dependent on the target.
riscv use-compressed-breakpoints:  Debugger's use of compressed breakpoints is set to auto.
schedule-multiple:  Resuming the execution of threads of all processes is off.
scheduler-locking:  Mode for locking scheduler during execution is "replay".
script-extension:  Script filename extension recognition is "soft".
serial baud:  Baud rate for remote serial I/O is -1.
serial parity:  Parity for remote serial I/O is "none".
sh calling-convention:  Calling convention used when calling target functions from GDB is "gcc".
solib-absolute-prefix:  solib-search-path:  The search path for loading non-absolute shared library symbol files is .
stack-cache:  Cache use for stack accesses is on.
--Type <RET> for more, q to quit, c to continue without paging--
startup-with-shell:  Use of shell to start subprocesses is on.
step-mode:  Mode of the step operation is off.
stop-on-solib-events:  Stopping for shared library events is 0.
struct-convention:  The convention for returning small structs is "default".
style address background:  The "address" style background color is: none
style address foreground:  The "address" style foreground color is: blue
style address intensity:  The "address" style display intensity is: normal
style enabled:  CLI output styling is enabled.
style filename background:  The "filename" style background color is: none
style filename foreground:  The "filename" style foreground color is: green
style filename intensity:  The "filename" style display intensity is: normal
style function background:  The "function" style background color is: none
style function foreground:  The "function" style foreground color is: yellow
style function intensity:  The "function" style display intensity is: normal
style highlight background:  The "highlight" style background color is: none
style highlight foreground:  The "highlight" style foreground color is: red
style highlight intensity:  The "highlight" style display intensity is: normal
style metadata background:  The "metadata" style background color is: none
style metadata foreground:  The "metadata" style foreground color is: none
style metadata intensity:  The "metadata" style display intensity is: dim
style sources:  Source code styling is enabled.
style title background:  The "title" style background color is: none
style title foreground:  The "title" style foreground color is: none
style title intensity:  The "title" style display intensity is: bold
style tui-active-border background:  The "tui-active-border" style background color is: none
style tui-active-border foreground:  The "tui-active-border" style foreground color is: cyan
style tui-border background:  The "tui-border" style background color is: none
style tui-border foreground:  The "tui-border" style foreground color is: cyan
style variable background:  The "variable" style background color is: none
style variable foreground:  The "variable" style foreground color is: cyan
style variable intensity:  The "variable" style display intensity is: normal
substitute-path:  List of all source path substitution rules:
sysroot:  The current system root is "target:".
target-async:  target-charset:  The target character set is "auto; currently ANSI_X3.4-1968".
target-file-system-kind:  The assumed file system kind for target reported file names is "auto" (currently "unix").
target-wide-charset:  The target wide character set is "auto; currently UTF-32".
tcp auto-retry:  Auto-retry on socket connect is on.
tcp connect-timeout:  Timeout limit in seconds for socket connection is 15.
tdesc filename:  The target description will be read from the target.
trace-buffer-size:  Requested size of trace buffer is unlimited.
trace-commands:  State of GDB CLI command tracing is off.
trace-notes:  The notes string to use for current and future trace runs is "".
trace-stop-notes:  The notes string to use for future tstop commands is "".
trace-user:  The user name to use for current and future trace runs is "".
trust-readonly-sections:  Mode for reading from readonly sections is off.
tui active-border-mode:  The attribute mode to use for the active TUI window border is "bold-standout".
tui border-kind:  The kind of border for TUI windows is "acs".
tui border-mode:  The attribute mode to use for the TUI window borders is "normal".
tui compact-source:  TUI source window compactness is off.
tui tab-width:  TUI tab width is 8 spaces.
unwind-on-terminating-exception:  Unwind stack if a C++ exception is unhandled while in a call dummy is on.
--Type <RET> for more, q to quit, c to continue without paging--
unwindonsignal:  Unwinding of stack if a signal is received while in a call dummy is off.
use-coredump-filter:  Use of /proc/PID/coredump_filter file to generate corefiles is on.
use-deprecated-index-sections:  Whether to use deprecated gdb_index sections is off.
user:  varsize-limit:  The maximum number of bytes allowed in a variable-size object is 65536.
verbose:  Verbosity is off.
watchdog:  Watchdog timer is 0.
width:  Number of characters gdb thinks are in a line is 190.
write:  Writing into executable and core files is off.
(gdb) 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines