[llvm-dev] Introducing debugger tuning for dbx

40 views
Skip to first unread message

Zheng CZ Chen via llvm-dev

unread,
Mar 26, 2021, 9:16:54 AM3/26/21
to llvm-dev, paul_r...@playstation.sony.com

Hi,

As some of you may know [1],we are working on AIX support. Part of the AIX support is debug support, supporting dbx as the consumer of clang DWARF information [2].

While the dbx team is also working on improving its dwarf support, there are limitations in foreseeable future. Also there are situations on AIX that end user may not get up to date debugger.

So we are considering doing some compatibly work in clang/llvm to help improving user experience.

There are some limitations in dbx we know so far:

  • .dwstr section is not supported for now;
  • column-info in the line table not supported for now;
  • sub-optimal handling of unsupported dwarf tags. Eg: dbx support dwarf 3, but misbehaving with new DWARF 5 tags DW_LANG_C_plus_plus_14 [3].

As discussed with the reviewers in patch [3], we are considering introducing a new tuning debugger tuning option for dbx, -debugger-tuning=dbx [4], so that we can change some option
default on AIX for dbx to accommodate its limitations, eg; -gno-column-info.

Any thoughts about the direction here? Reviews and feedback to [3][4] are also appreciated.

[1]: https://lists.llvm.org/pipermail/llvm-dev/2019-February/130175.html
[2]:
https://reviews.llvm.org/rGafa76fe67a42f6d40d83a4f7d0cb03373045f3f4
[3]:
https://reviews.llvm.org/D99250
[4]:
https://reviews.llvm.org/D99400

Thanks!

BRS//
Chen Zheng
Power Compiler Backend Developer

Franz Fehringer via llvm-dev

unread,
Mar 26, 2021, 10:05:12 AM3/26/21
to llvm...@lists.llvm.org
While i have no fruitful input regarding your question(s), just out of curiosity: What ist the state of affairs for lldb on AIX?
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Adrian Prantl via llvm-dev

unread,
Mar 26, 2021, 11:27:09 AM3/26/21
to Zheng CZ Chen, llvm-dev, paul_r...@playstation.sony.com
A dbx debugger tuning option sounds like the appropriate solution here. I support this.

thanks,
adrian

Jinsong Ji via llvm-dev

unread,
Mar 26, 2021, 12:22:48 PM3/26/21
to Franz Fehringer, llvm...@lists.llvm.org

Hi Franz:

There is currently no plan of supporting lldb on AIX as far as I know.


Best,

Jinsong Ji (纪金松), PhD.

XL/LLVM on Power Compiler Development
E-mail: j...@us.ibm.com


Inactive hide details for Franz Fehringer via llvm-dev ---03/26/2021 10:05:21 AM---While i have no fruitful input regarding youFranz Fehringer via llvm-dev ---03/26/2021 10:05:21 AM---While i have no fruitful input regarding your question(s), just out of curiosity: What ist the stat

Franz Fehringer via llvm-dev

unread,
Mar 26, 2021, 1:28:25 PM3/26/21
to llvm...@lists.llvm.org
Thats unfortunate but thx nevertheless.
But debugging clang generated executables with gdb should or will be possible (on AIX)?

Jinsong Ji via llvm-dev

unread,
Mar 26, 2021, 2:36:45 PM3/26/21
to Franz Fehringer, llvm...@lists.llvm.org

Yes.
gdb v8.11 or later (eg: the one from AIX Toolbox https://www.ibm.com/support/pages/aix-toolbox-linux-applications-overview) should be able to debug them.




Best,

Jinsong Ji (纪金松), PhD.

XL/LLVM on Power Compiler Development
E-mail: j...@us.ibm.com


Inactive hide details for Franz Fehringer via llvm-dev ---03/26/2021 01:28:32 PM---Thats unfortunate but thx nevertheless. But Franz Fehringer via llvm-dev ---03/26/2021 01:28:32 PM---Thats unfortunate but thx nevertheless. But debugging clang generated executables with gdb should or

Franz Fehringer via llvm-dev

unread,
Mar 26, 2021, 3:01:15 PM3/26/21
to llvm...@lists.llvm.org
Thx again
Reply all
Reply to author
Forward
0 new messages