dev-manual/common-task.rst: Added documentation for debuginfod support
PATCH 1/1 dev-manual/common-task.rst: Added documentation for debuginfod support
Added documentation on running debuginfod server and using it on the target.
--- documentation/dev-manual/common-tasks.rst | 46 ++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-)
documentation/dev-manual/common-tasks.rst +45 -1
@@ -10023,7 +10023,51 @@ before starting the debugging process. These extra computations place more load on the target system and can alter the characteristics of the program being debugged. -To help get past the previously mentioned constraints, you can use +To help get past the previously mentioned constraints, they're two +methods you can use: running a debuginfod server and using gdbserver. + +Using the debuginfod server Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +debuginfod from elfutils is a way to distribute debuginfo files. +running a debuginfod server makes debug symbols readily available, +which means you don't need to download debugging information +and the binaries of the process being debugged. you can just fetch +debug symbols from the server. + +1. To run a debuginfod server, you need to do the following: + +- Ensure that this variable is set in your ``local.conf`` file: + :: + + PACKAGECONFIG_pn-elfutils-native = "debuginfod libdebuginfod" + + This PACKAGECONFIG option enables debuginfod and libdebuginfod for + elfutils-native. + +- Run the following commands to set up the debuginfod server: + :: + + $ oe-debuginfod +2. To use debuginfod on the target, you need the following: + +- Ensure that these variable is set in your ``local.conf`` file: + :: + + DEBUGINFOD_URLS = "http://localhost:port" + + This option does the client configuration by setting DEBUGINFOD_URLS + to point at the server running debuginfod. Such that for every lookup, + the debuginfod client will query the server and return the requested information. + :: + + PACKAGECONFIG_pn-gdb = "debuginfod" + + This PACKAGECONFIG option enables debuginfod for gdb. + +Using the gdbserver Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + gdbserver, which runs on the remote target and does not load any debugging information from the debugged process. Instead, a GDB instance processes the debugging information that is run on a remote computer -
Signature · 1 line
2.17.1
Hi Dorinda,
Mainly nitpicks.
Quoted 12 lines · Dorinda
Added documentation on running debuginfod server and using it on the target.
Signed-off-by Dorinda Bassey <[email protected]>--- documentation/dev-manual/common-tasks.rst | 46 ++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-)documentation/dev-manual/common-tasks.rst +0
-0
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10026
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +1
-1@@ -10023,7 +10023,51 @@ before starting the debugging process. These extra computations place more load on the target system and can alter the characteristics of the program being debugged. -To help get past the previously mentioned constraints, you can use +To help get past the previously mentioned constraints, they're two
s/they're/there are/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10031
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+methods you can use: running a debuginfod server and using gdbserver. + +Using the debuginfod server Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +
s/Method/method/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10032
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+debuginfod from elfutils is a way to distribute debuginfo files.
I'd probably double tick quote debuginfod, debuginfo and elfutils.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10033
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+running a debuginfod server makes debug symbols readily available,
s/running/Running/
Quoting debuginfod.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10035
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+which means you don't need to download debugging information +and the binaries of the process being debugged. you can just fetch
s/you/You/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10040
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+debug symbols from the server. + +1. To run a debuginfod server, you need to do the following: + +- Ensure that this variable is set in your ``local.conf`` file:
Not sure a numbered item list followed by a "simple" list works fine, have you compiled the docs with your patch? Does it render weird?
Thinking about it, you might be missing a three space indentation on the "simple" list?
Just throwing out my lack of knowledge in the conversation right now :D
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10045
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+ :: + + PACKAGECONFIG_pn-elfutils-native = "debuginfod libdebuginfod" + + This PACKAGECONFIG option enables debuginfod and libdebuginfod for
s/PACKAGECONFIG/:term:PACKAGECONFIG/
Quoting debuginfod and libdebuginfod.
I've missed most of the discussion around debuginfo feature/support so forgive me if it's complete non-sense, but... do we really want to tell people to put PACKAGECONFIG_pn-elfutils-native in their local.conf instead of creating a bbappend for elfutils in their own layer? Or add that line to their distro conf file and not local.conf?
For me, local.conf is for temporary use but it might make sense for some people/company to always have debuginfo enabled in their builds?
Just asking, being curious right now :)
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10048
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+ elfutils-native. + +- Run the following commands to set up the debuginfod server:
Quoting debuginfod and elfutils-native.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10051
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+ :: + + $ oe-debuginfod
Probably missing at least a newline if not two to end the code blocks IIRC from my experience.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10054
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+2. To use debuginfod on the target, you need the following: + +- Ensure that these variable is set in your ``local.conf`` file:
s/these/this/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10059
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+ :: + + DEBUGINFOD_URLS = "http://localhost:port" + + This option does the client configuration by setting DEBUGINFOD_URLS
I'd add an entry in the variable glossary for DEBUGINFOD_URLS and then:
s/DEBUGINFOD_URLS/:term:DEBUGINFOD_URLS/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10066
Quoted 7 lines
documentation/dev-manual/common-tasks.rst +7
-0+ to point at the server running debuginfod. Such that for every lookup, + the debuginfod client will query the server and return the requested information. + :: + + PACKAGECONFIG_pn-gdb = "debuginfod" + + This PACKAGECONFIG option enables debuginfod for gdb.
s/PACKAGECONFIG/:term:PACKAGECONFIG/
Quoting debuginfod and gdb the few instances above.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10070
Quoted 4 lines
documentation/dev-manual/common-tasks.rst +4
-0+ +Using the gdbserver Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +
s/Method/method/
Thanks,
Quentin
Hi Quentin,
Thanks for the review, noted your points and putting them into consideration.
have
you compiled the docs with your patch? Does it render weird? This was an oversight, I didn't know docs were compiled separately, Currently looking at the documentation readme now.
About the PACKAGECONFIG_pn-elfutils-native in local.conf, the intent there was for it to be an optional configuration option, since not everyone might want to use a debuginfod server.
Thanks,
Dorinda.
On Mar 1, 2021 7:18 PM, "Quentin Schulz" <[email protected]> wrote:
Hi Dorinda,
Mainly nitpicks.
Quoted 1 line · Dorinda
Added documentation on running debuginfod server and using it on the
target.
Review
Quoted 7 lines
Signed-off-by Dorinda Bassey <[email protected]>--- documentation/dev-manual/common-tasks.rst | 46 ++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/documentation/dev-manual/common-tasks.rst
documentation/dev-manual/common-tasks.rst before starting the debugging process. These
Quoted 4 lines
index
65db4aed33..d4a2b2f28d100644documentation/dev-manual/common-tasks.rst +0
-0@@ -10023,7 +10023,51 @@ before starting the debugging process. These
extra computations place
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10026
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +1
-1more load on the target system and can alter the characteristics of the program being debugged. -To help get past the previously mentioned constraints, you can use +To help get past the previously mentioned constraints, they're two
s/they're/there are/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10031
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+methods you can use: running a debuginfod server and using gdbserver. + +Using the debuginfod server Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +
s/Method/method/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10032
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+debuginfod from elfutils is a way to distribute debuginfo files.
I'd probably double tick quote debuginfod, debuginfo and elfutils.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10033
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+running a debuginfod server makes debug symbols readily available,
s/running/Running/
Quoting debuginfod.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10035
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+which means you don't need to download debugging information +and the binaries of the process being debugged. you can just fetch
s/you/You/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10040
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+debug symbols from the server. + +1. To run a debuginfod server, you need to do the following: + +- Ensure that this variable is set in your ``local.conf`` file:
Not sure a numbered item list followed by a "simple" list works fine, have you compiled the docs with your patch? Does it render weird?
Thinking about it, you might be missing a three space indentation on the "simple" list?
Just throwing out my lack of knowledge in the conversation right now :D
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10045
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+ :: + + PACKAGECONFIG_pn-elfutils-native = "debuginfod libdebuginfod" + + This PACKAGECONFIG option enables debuginfod and libdebuginfod for
s/PACKAGECONFIG/:term:PACKAGECONFIG/
Quoting debuginfod and libdebuginfod.
I've missed most of the discussion around debuginfo feature/support so forgive me if it's complete non-sense, but... do we really want to tell people to put PACKAGECONFIG_pn-elfutils-native in their local.conf instead of creating a bbappend for elfutils in their own layer? Or add that line to their distro conf file and not local.conf?
For me, local.conf is for temporary use but it might make sense for some people/company to always have debuginfo enabled in their builds?
Just asking, being curious right now :)
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10048
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+ elfutils-native. + +- Run the following commands to set up the debuginfod server:
Quoting debuginfod and elfutils-native.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10051
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+ :: + + $ oe-debuginfod
Probably missing at least a newline if not two to end the code blocks IIRC from my experience.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10054
Quoted 3 lines
documentation/dev-manual/common-tasks.rst +3
-0+2. To use debuginfod on the target, you need the following: + +- Ensure that these variable is set in your ``local.conf`` file:
s/these/this/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10059
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+ :: + + DEBUGINFOD_URLS = "http://localhost:port" + + This option does the client configuration by setting DEBUGINFOD_URLS
I'd add an entry in the variable glossary for DEBUGINFOD_URLS and then:
s/DEBUGINFOD_URLS/:term:DEBUGINFOD_URLS/
documentation/dev-manual/common-tasks.rst before starting the debugging process. These · line 10060
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+ to point at the server running debuginfod. Such that for every
lookup,
documentation/dev-manual/common-tasks.rst before starting the debugging process. These · line 10061
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+ the debuginfod client will query the server and return the requested
information.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10066
Quoted 5 lines
documentation/dev-manual/common-tasks.rst +5
-0+ :: + + PACKAGECONFIG_pn-gdb = "debuginfod" + + This PACKAGECONFIG option enables debuginfod for gdb.
s/PACKAGECONFIG/:term:PACKAGECONFIG/
Quoting debuginfod and gdb the few instances above.
documentation/dev-manual/common-tasks.rst before starting the debugging process. These extra computations place · line 10070
Quoted 4 lines
documentation/dev-manual/common-tasks.rst +4
-0+ +Using the gdbserver Method +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +
s/Method/method/
Thanks,
Quentin