GDB BoF at the 2010 GCC Summit.

Minutes of the GDB BoF - Tuesday October 26th, 2010

Tom Tromey hosted a BoF on GDB. To be added later are Tom's note taken during that session.

GDB Meeting - Wednesday October 27th, 2010

We tried to gather most of the GDB contributors present at the Summit in order to have an informal technical discussion on various topics related to GDB.

Present at the meeting (from memory):

Commands and Parameters shipped with Python: Should they be loaded automatically, and how?

Decision: Load all commands by default, give option to turn them off

What about user-provided python scripts/commands?

It would probably be convenient to design a user-writable area where the user could put his own scripts and have GDB automatically load them. But it's just as easy for people to auto-load their scripts via the .gdbinit file.

To be discussed on the development mailing list whether it's desirable, and if yes, then how.

Do we want to make Python a mandatory feature?

The question comes from the fact that we are about to start developing more and more features in Python. Is a GDB without Python going to make sense in the long run?

Most of us don't want to force Python as a mandatory dependency.

Some features are going only ever going to be done in Python, but most of the time, the feature is not going to be essential enough that people will want to rewrite them directly in C.

Problem: Testing when built without Python. Perhaps have a build bot do the testing regularly.

GDB - GDBserver split (code duplication). Do we want to share the code as opposed to duplicate it?

Target code duplicated. Often actually quite complicated, so it's bad to have two copies. We should make the code common, it's just a matter of doing the job (which is likely to be quite complex...)

How about moving GDB to git?

Moving to any versioning system, whether it is SVN or git, is so much harder because of the fact that we are dependent on other projects, and on the partial-checkout feature in CVS.

We have a git mirror that is currently read-only. Perhaps we should allow development branches on it (to help people share some changes through feature branches, for instance).

The htdocs & Savanah GDB Web duplication

Currently, we have two copies of the GDB Web pages: One under htdocs for sourceware.org, and another on Savannah for gnu.org. This is highly inconvenient, because changes to one side (typically htdocs) need to be duplicated on the gnu.org side. This is even more difficult as write access priviledges require a savannah account and then sending a request to someone who is no longer actively maintaining GDB. The bottom line is that most of the changes are made by Joel.

The C++ Parser in GDB

Can we re-use the C++ frontend in GCC? The C++ parser in GDB is not complete and working on completing it might be more work than re-using another parser. RH has started a research project on that.

Scalability

Architectures with large number of CPUs/cores are becoming more and more predominant. Are there ways we can improve GDB to help the developers debug more effectively on these architectures? For instance, in the slightly longer range, we want to be able to do cluster debugging

[Note from the minutes taker: I don't remember if some other ideas came up]

At the internals level, are there areas where areas in the GDB code (besides debug-info reading) where threads would be useful to improve performance?

Having design discussion

When working on a change that becomes larger than usual, a developer can become nervous about it not being well received. The worry is that the change itself being either rejected, or having to be heavily reworked.

The best way to avoid this from happening is to start an early discussion in orderto make sure that we agree on the idea before going through the process of making the changes. But sometimes, little or no feedback is received. More involvement in the discussion would be nice.

GDB multiplexer

One idea that came up in the past was to write a tool that would allow a user to control several GDB instances at the same time, instead of having GDB handle multiple targets/inferiors. But experiments suggest that this is not the best approach, and having one single GDB process makes more sense.

This confirms the direction that has been taken in GDB, where the goal is to be multi-target/multi-inferior.

None: 2010_GCC_Summit_BoF (last edited 2010-10-28 23:32:09 by JanKratochvil)

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.