Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2007-01-21 04:39:08
Size: 4620
Editor: dsl093-172-095
Revision 7 as of 2007-03-27 01:50:00
Size: 7919
Editor: 219-88-92-118
Deletions are marked like this. Additions are marked like this.
Line 48: Line 48:

'''Reversible Debugging'''
 * Reversible debugging (the ability to "step backwards" through a program) is an obviously powerful tool. GDB does not support it today, but the foundations have been laid, and the GDB maintainers are looking for contributors interested in expanding those foundations. (see [http://sourceware.org/gdb/news/reversible.html here]).

'''More complex GDB scripting'''
 * E.g. to automatically display the value of an STL-container, it would be necessary to have more complex scripting facilities, either by
   * improving on GDBs buildin scripting (control-flow depending on the value of an expression or ptype evaluation would help already a lot), or by
   * connecting GDB with a decent scripting language (see [http://sourceware.org/ml/gdb/2007-01/msg00126.html here]).
 [http://brokering.freewebpages.org/86.html college cock] | [http://emotional.o-f.com/33.html oops tit photo] | [http://jailed.wtcsites.com/58.html gran touring suspension] | [http://yugoslav.1accesshost.com/44.html tamitha sex webcam] | [http://tuckers.freewebpages.org/39.html gaping fucking assholes] | [http://homepage.mac.com/clinically/14.html isabelle sex webcam] | [http://brokering.freewebpages.org/39.html visible panties] | [http://hefting.100freemb.com/73.html panty bloody] | [http://homepage.mac.com/zipping1/63.html amateur lesbian webcam] | [http://homepage.mac.com/hadj3/10.html online lesbian dating] | [http://publicised.wtcsites.com/77.html double penetration creampie] | [http://laniard.150m.com/86.html college models] | [http://attiring.kogaryu.com/32.html huge erected clit] | [http://latakia.00freehost.com/68.html violent sex porno] | [http://targets.g0g.net/81.html naked old grandma] | [http://tunisia.00freehost.com/3.html dick spanking videos] | [http://pewterer.1sweethost.com/57.html mature foot job] | [http://homepage.mac.com/shako1/16.html asian college cuties] | [http://adagios.ibnsites.com/34.html midgets girls] | [http://homepage.mac.com/contemn/85.html webcam exhibitionist] | [http://homepage.mac.com/whereon/48.html bbw huge cock] | [http://sedition.1accesshost.com/90.html twinks in pantyhose] | [http://homepage.mac.com/revelation4/81.html monroe mi webcam] | [http://squad.greatnow.com/55.html hirsute women hairy] | [http://astutely.angelcities.com/3.html rough sex creampie] | [http://unshaved.envy.nu/69.html ebony plumpers] | [http://deviations.dreamstation.com/95.html cartoon grandma] | [http://homepage.mac.com/pope4/55.html webcam sexe gratuit] | [http://homepage.mac.com/humours/13.html adultbouncer lesbian nipple] | [http://defence.1accesshost.com/66.html sexy male lingerie] | [http://rueful.freewebpages.org/63.html teen webcam free] | [http://lapwing.exactpages.com/11.html best female ejaculations] | [http://masturbate.fcpages.com/77.html wet pussies] | [http://homepage.mac.com/pallors1/54.html aiptek webcam driver] | [http://homepage.mac.com/arks2/30.html amateur webcam caps] | [http://reify.1sweethost.com/39.html logitech webcams] | [http://leafstalks.741.com/63.html perfect blow job] | [http://homepage.mac.com/dentifrice1/22.html real teen webcams] | [http://planing.1sweethost.com/12.html hannah webcam sex] | [http://bastille.freecities.com/26.html gay sex shower] | [http://relearn.ibnsites.com/47.html big dick mpeg]

This is a list of project ideas for GDB - potential improvements, new features, et cetera. If you have a large project to add to this list, you may want to put just a brief description and a link to a new Wiki page.


  • There are lots of bugs in the GNATS database. Everyone is welcome to look at them, reproduce them, comment on them, fix them, et cetera!
  • There are testsuite failures running 'make check' on many systems. Each one of these failures should be investigated, and either fixed or the testsuite adjusted.
  • There are many XFAIL (expected failure) and KFAIL (known failure) markers in the testsuite. Some of the XFAIL markers are for environmental problems, for instance known bugs in some compiler versions. But others of them are for bugs in GDB that no one has looked at in a long time. There should be fewer!


  • The GDB internals are filled with multiple ways of doing the same tasks, all subtly different. Pick a module of GDB, look at the interfaces it exports, and think about which ones should really exist.
  • Many internal functions have been deprecated but not removed. Some of the deprecated functions do not have obvious replacements; either replacements should be created or the deprecation markers removed. Others do have obvious replacements, and only await someone to update the old uses. Just search for "deprecated" or "DEPRECATED" in the sources, and you'll find lots of instances of this problem. This is a good introductory project for someone who wants to learn about the GDB internals.

Memory usage

  • A full "struct symbol" is created for enumerators. If we could avoid that, it might save a lot of space. Enumerators are a large chunk of the symbol table in some programs, because they appear in header files (e.g. from glibc, from BFD).


  • A breakpoint should be able to have more than one associated machine address. Some examples of this are:
    • C++ constructors; GNU G++ emits at least two copies of most constructors, one for use in base classes and one for use in derived classes. This is a quality-of-implementation bug in G++, but in the mean time, we should support it.
    • Inlined functions.
    • Template instantiations.

    Some work has been done on this, and preliminary patches posted, for instance [http://sourceware.org/ml/gdb-patches/2005-03/msg00195.html this patch]. The thorniest user interface issues were never worked out, for instance how to display such breakpoints in "info break", how to control individual breakpoint locations, and how to modify the GDB/MI interface for these breakpoints. This is a big project.


  • GDB issues an error if you try to set a hardware watchpoint on an unreadable address (for instance, an address which has not been malloc'd yet). It disables watchpoints when addresses become unreadable. Hardware permitting, it would be great to be able to set watchpoints in advance. With address space randomization turned off, as it still is on many systems, this would let you restart a program and find the first write to a heap data structure.

MI (Machine Interface)

  • The current MI implementation does not follow its own quoting rules, as described in the manual. Many commands delegate to CLI commands and let the CLI support code parse options themselves. We should not change the quoting rules for MI version 2, as currently implemented, but when we switch over to MI version 3 it would be good to get these correct. That means having two code paths for each mishandled command, one which imitates the existing bad quoting behavior and one which gets it right. There's a [http://sourceware.org/ml/gdb/2006-02/msg00283.html description of the current state] in the GDB mailing list archives.

Embedded Debugging

  • Patches have been posted for basic flash memory support, but there is still plenty of room for ["Flash Debugging Improvements"].


  • Gdbserver for GNU/Linux uses timeouts and waits for child processes repeatedly. Try stracing it while running a program to see what this means. GDB uses sigsuspend and catches SIGCHLD instead. It would be more efficient for gdbserver to do the same thing. This requires a bit of reorganization for the backend to handle SIGCHLD.
  • Gdbserver doesn't support tracepoints. A few people have said they would work on this, but no patches for it have ever been submitted to the mailing list. This could be a nice introductory project for someone interested in remote debugging.

Reversible Debugging

  • Reversible debugging (the ability to "step backwards" through a program) is an obviously powerful tool. GDB does not support it today, but the foundations have been laid, and the GDB maintainers are looking for contributors interested in expanding those foundations. (see [http://sourceware.org/gdb/news/reversible.html here]).

More complex GDB scripting

None: ProjectIdeas (last edited 2021-03-10 14:25:22 by TomTromey)

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