| Summary: | missing instructions when disassemble /m | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Cedric Buissart <cbuissar> |
| Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-tools-bugs |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | gdb-bugs, jan.kratochvil, ohudlick, sergiodj |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-11 19:45:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Cedric Buissart
2016-08-23 13:06:07 UTC
There is disas/s modifier now but not in RHEL, one can use DTS GDB for that. (In reply to Cedric Buissart from comment #0) > 2- if gdb is unsure of the exactitude of the output, then a big warning > should be printed, telling the user not to trust the data. GDB is perfectly sure with the output - it outputs the lines in source line first, instruction address second order. It is just not what the user expects. Keeping the Bug open as GDB could print some warning for /m but I am not sure, debugging -O2 -g code has many problems which is IMO a well known issue. (gdb) help disassemble Disassemble a specified section of memory. Default is the function surrounding the pc of the selected frame. With a /m modifier, source lines are included (if available). This view is "source centric": the output is in source line order, regardless of any optimization that is present. Only the main source file is displayed, not those of, e.g., any inlined functions. This modifier hasn't proved useful in practice and is deprecated in favor of /s. With a /s modifier, source lines are included (if available). This differs from /m in two important respects: - the output is still in pc address order, and - file names and contents for all relevant source files are displayed. Thanks for the quick answer! Yah, a warning might be a good thing, or at the very least backporting the new /m help messages about lack of completeness. Couldn't you use Developer Toolset GDB which already contains the /s option? Please reopen if you really ask for a RHEL backport. https://brewweb.engineering.redhat.com/brew/packageinfo?packageID=58668 -> http://download.eng.bos.redhat.com/brewroot/packages/devtoolset-6-gdb/7.12/29.el7/x86_64/devtoolset-6-gdb-7.12-29.el7.x86_64.rpm |