2001-07-07 Ben Elliston <bje@redhat.com>
[deliverable/binutils-gdb.git] / gdb / TODO
CommitLineData
c906108c 1If you find inaccuracies in this list, please send mail to
2a00c9ce
AC
2gdb-patches@sourceware.cygnus.com. If you would like to work on any
3of these, you should consider sending mail to the same address, to
4find out whether anyone else is working on it.
c906108c 5
138f88c0 6
552054a8
AC
7 GDB 5.1 - Fixes
8 ===============
138f88c0 9
bc9e5bbf 10Below is a list of problems identified during the GDB 5.0 release
552054a8 11cycle. People hope to have these problems fixed in 5.1.
4fd99b5a
AC
12
13--
14
a50c34dc
AC
15Wow, three bug reports for the same problem in one day! We should
16probably make fixing this a real priority :-).
138f88c0 17
a50c34dc
AC
18Anyway, thanks for reporting.
19
20The following patch will fix the problems with setting breakpoints in
21dynamically loaded objects:
22
23 http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00230.html
24
25This patch isn't checked in yet (ping Michael/JimB), but I hope this
26will be in the next GDB release.
27
28There should really be a test in the testsuite for this problem, since
29it keeps coming up :-(. Any volunteers?
30
31Mark
bc9e5bbf 32
138f88c0
AC
33--
34
67edb2c6
AC
35x86 linux GDB and SIGALRM (???)
36http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00803.html
37
37d4dc74
MK
38This problem has been fixed, but a regression test still needs to be
39added to the testsuite:
40http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00309.html
67edb2c6 41
bc9e5bbf 42Mark
67edb2c6 43
a50c34dc 44[The test has been submitted for approval - cagney]
b2f4b24d 45
6bc37a96
AC
46--
47
a50c34dc
AC
48RFD: infrun.c: No bpstat_stop_status call after proceed over break?
49http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00665.html
6bc37a96 50
a50c34dc
AC
51GDB misses watchpoint triggers after proceeding over a breakpoint on
52x86 targets.
b2f4b24d 53
26099b4a
AC
54--
55
56GDB 5.0 doesn't work on Linux/SPARC
57
a50c34dc 58There are two parts to this.
552054a8 59
a50c34dc 60 o GDB 5.0 doesn't work on GNU/Linux/SPARC32
552054a8 61
a50c34dc
AC
62 o GDB 5.0 doesn't work on the new target
63 GNU/Linux/SPARC64
552054a8 64
a50c34dc 65GDB does build on both these targets.
552054a8 66
a50c34dc 67The first problem is the one that should be fixed.
4afc966c 68
552054a8
AC
69--
70
71 GDB 5.1 - New features
72 ======================
73
74The following new features should be included in 5.1.
75
76--
77
552054a8
AC
78Pascal (Pierre Muller, David Taylor)
79
80Pierre Muller has contributed patches for adding Pascal Language
81support to GDB.
82
832 pascal language patches inserted in database
84http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00521.html
85
86Indent -gnu ?
87http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00496.html
88
a50c34dc
AC
89[I think this has been merged, need to confirm - cagney]
90
552054a8
AC
91--
92
93Java (Anthony Green, David Taylor)
94
95Anthony Green has a number of Java patches that did not make it into
96the 5.0 release. The first two are in cvs now, but the third needs
97some fixing up before it can go in.
98
99Patch: java tests
100http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00512.html
101
102Patch: java booleans
103http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00515.html
104
105Patch: handle N_MAIN stab
106http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00527.html
107
a50c34dc 108-- 2001-03-08
552054a8 109
a50c34dc 110Add CRIS target.
552054a8 111
a50c34dc
AC
112A predicate to this is the multi-arching of SOFTWARE_SINGLE_STEP(). A
113patch has been submitted.
552054a8
AC
114
115--
116
117 GDB 5.1 - Cleanups
118 ==================
119
120The following code cleanups will hopefully be applied to GDB 5.1.
121
122--
123
78566ebe
AC
124Fix copyright notices.
125
126Turns out that ``1998-2000'' isn't considered valid :-(
127
128http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00467.html
129
1ba607ad
AC
130--
131
a50c34dc
AC
132 GDB 5.1 - Known Problems
133 ========================
eccbb20d
AC
134
135--
136
137z8k
138
139The z8k has suffered bit rot and is known to not build. The problem
140was occuring in the opcodes directory.
141
cfc046cf
AC
142--
143
1a5cef06
AC
144m88k
145
146The m88k has suffered bit rot and is known to not build.
147
148--
149
cfc046cf
AC
150Solaris 8 x86 CURSES_H problem
151http://sources.redhat.com/ml/gdb/2000-07/msg00038.html
152
153The original problem was worked around with:
154
155 2000-06-06 Michael Snyder <msnyder@cygnus.com>
156
157 * configure.in: Enable autoconf to find curses.h on Solaris 2.8.
158 * configure: Regenerate.
159
160When building both GDB and SID using the same source tree the problem
161will still occure. sid/component/configure.in mis-configures
162<curses.h> and leaves wrong information in the config cache.
163
552054a8
AC
164--
165
166 GDB 5.2 - Fixes
167 ===============
168
552054a8
AC
169--
170
171 GDB 5.2 - New features
172 ======================
173
174--
175
0db23c95
AC
176GCC 3.0 ABI support (but hopefully sooner...).
177
178--
179
180Objective C/C++ support (but hopefully sooner...).
552054a8 181
77467810
EZ
182--
183
184Import of readline 4.2
185
552054a8
AC
186--
187
188 GDB 5.2 - Cleanups
189 ==================
190
191The following cleanups have been identified as part of GDB 5.2.
192
193--
194
dafc8383 195Remove old code that does not use ui_out functions and all the related
0db23c95
AC
196"ifdef"s. This also allows the elimination of -DUI_OUT from
197Makefile.in and configure.in.
dafc8383
FN
198
199--
200
a50c34dc
AC
201Compiler warnings.
202
ee055267
AC
203Eliminate warnings for all targets on at least one host for one of the
204-W flags. Flags up for debate include: -Wswitch -Wcomment -trigraphs
205-Wtrigraphs -Wunused-function -Wunused-label -Wunused-variable
206-Wunused-value -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
207-Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
208-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
209-Woverloaded-virtual -Winline
552054a8
AC
210
211--
212
61a0eb5b
AC
213Deprecate, if not delete, the following:
214
215 register[]
216 register_valid[]
217 register_buffer()
218 REGISTER_BYTE()
219 Replaced by, on the target side
220 supply_register()
221 and on core-gdb side:
222 {read,write}_register_gen()
223 Remote.c will need to use something
224 other than REGISTER_BYTE() and
225 REGISTER_RAW_SIZE() when unpacking
226 [gG] packets.
227
228 STORE_PSEUDO_REGISTER
229 FETCH_PSEUDO_REGISTER
230 Now handed by the methods
231 gdbarch_{read,write}_register()
232 which sits between core GDB and
233 the register cache.
234
235 REGISTER_CONVERTIBLE
236 REGISTER_CONVERT_TO_RAW
237 REGISTER_CONVERT_TO_VIRTUAL
238 I think these three are redundant.
239 gdbarch_register_{read,write} can
240 do any conversion it likes.
241
242 REGISTER_VIRTUAL_SIZE
243 MAX_REGISTER_VIRTUAL_SIZE
244 REGISTER_VIRTUAL_TYPE
245 I think these can be replaced by
246 the pair:
247 FRAME_REGISTER_TYPE(frame, regnum)
248 REGISTER_TYPE(regnum)
249
250 DO_REGISTERS_INFO
251 Replace with
252 FRAME_REGISTER_INFO (frame, ...)
253
254 REGISTER_SIM_REGNO()
255 If nothing else rename this so that
256 how it relates to rawreg and the
257 regnum is clear.
258
259 REGISTER_BYTES
260 The size of the cache can be computed
261 on the fly.
262
ee055267
AC
263 IS_TRAPPED_INTERNALVAR
264 The pseudo registers should eventually make
265 this redundant.
266
267--
268
269Obsolete the targets.
270
271arm*-wince-pe
272mips*-*-pe
273sh*-*-pe
274
275Obsolete the protocols:
276
277RDB
278
279``As of version 5.3, WindRiver has removed the RDB server (RDB
280protocol support is built into gdb).'' -- Till.
281
61a0eb5b
AC
282--
283
552054a8
AC
284Restructure gdb directory tree so that it avoids any 8.3 and 14
285filename problems.
286
287--
288
289Convert GDB build process to AUTOMAKE.
290
291See also sub-directory configure below.
292
293The current convention is (kind of) to use $(<header>_h) in all
294dependency lists. It isn't done in a consistent way.
295
a50c34dc
AC
296--
297
298 GDB 5.2 - Known Problems
299 ========================
300
4afc966c
AC
301--
302
303 Code Cleanups: General
304 ======================
305
306The following are more general cleanups and fixes. They are not tied
307to any specific release.
bc9e5bbf
AC
308
309--
310
4a1968f4
AC
311Investigate changing --target=a29k-amd-udi to a29k-*-coff* and
312rationalize *.mt files. The got-ya is in remote-eb.c - it has its own
313custom tty manipulation - it should be using the serial object.
314
315--
316
a2061976 317Rename read_register{,_pid}() to read_unsigned_register{,_pid}().
a50c34dc
AC
318
319--
320
a50c34dc
AC
321Problem with weak functions
322http://sourceware.cygnus.com/ml/gdb/2000-05/msg00060.html
323
324Dan Nicolaescu writes:
325> It seems that gdb-4.95.1 does not display correctly the function when
326> stoping in weak functions.
327>
328> It stops in a function that is defined as weak, not in the function
329> that is actually run...
330
331--
332
333Follow through `make check' with --enable-shared.
334
335When the srcware tree is configured with --enable-shared, the `expect'
336program won't run properly. Jim Wilson found out gdb has a local hack
337to set LD_LIBRARY_PATH, but, AFAIK, no other project has been hacked
338similarly.
339
340http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00845.html
341
342--
343
344Delete macro TARGET_BYTE_ORDER_SELECTABLE.
345
346Patches in the database.
347
348--
349
350printcmd.c (print_address_numeric):
351
352NOTE: This assumes that the significant address information is kept in
353the least significant bits of ADDR - the upper bits were either zero
354or sign extended. Should ADDRESS_TO_POINTER() or some
355ADDRESS_TO_PRINTABLE() be used to do the conversion?
356
357--
358
552054a8
AC
359The BFD directory requires bug-fixed AUTOMAKE et.al.
360
361AUTOMAKE 1.4 incorrectly set the TEXINPUTS environment variable. It
362contained the full path to texinfo.tex when it should have only
363contained the directory. The bug has been fixed in the current
364AUTOMAKE sources. Automake snapshots can be found in:
365 ftp://sourceware.cygnus.com/pub/gdb/snapshots
366and ftp://sourceware.cygnus.com/pub/binutils
367
368--
369
370Find something better than DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC to
371determine the default isa/byte-order.
372
373--
374
e26cc349 375Rely on BFD_BIG_ENDIAN and BFD_LITTLE_ENDIAN instead of host dependent
552054a8
AC
376BIG_ENDIAN and LITTLE_ENDIAN.
377
378--
379
d8038014
AC
380Eliminate more compiler warnings.
381
382Of course there also needs to be the usual debate over which warnings
383are valid and how to best go about this.
384
385One method: choose a single option; get agreement that it is
386reasonable; try it out to see if there isn't anything silly about it
387(-Wunused-parameters is an example of that) then incrementally hack
388away.
389
390The other method is to enable all warnings and eliminate them from one
391file at a time.
392
393--
394
4afc966c 395Elimination of ``(catch_errors_ftype *) func''.
bc9e5bbf 396
4afc966c 397Like make_cleanup_func it isn't portable.
6ecce94d
AC
398http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00791.html
399http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00814.html
400
4afc966c
AC
401--
402
e255d535
AC
403Nuke #define CONST_PTR.
404
405--
406
4afc966c
AC
407Nuke USG define.
408
409--
410
411[PATCH/5] src/intl/Makefile.in:distclean additions
412http://sourceware.cygnus.com/ml/gdb-patches/2000-04/msg00363.html
413
414Do not forget to merge the patch back into the trunk.
415
416--
417
418Rationalize the host-endian code (grep for HOST_BYTE_ORDER).
419
420At present defs.h includes <endian.h> (which is linux specific) yet
421almost nothing depends on it. Suggest "gdb_endian.h" which can also
422handle <machine/endian.h> and only include that where it is really
423needed.
424
425--
426
4afc966c
AC
427Replace savestring() with something from libiberty.
428
429An xstrldup()? but that would have different semantics.
430
431--
432
433Rationalize use of floatformat_unknown in GDB sources.
434
435Instead of defaulting to floatformat_unknown, should hosts/targets
436specify the value explicitly?
437
438http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00447.html
439
440--
441
442Add a ``name'' member to include/floatformat.h:struct floatformat.
443Print that name in gdbarch.c.
444
445--
446
447Sort out the harris mess in include/floatformat.h (it hardwires two
448different floating point formats).
449
450--
451
452See of the GDB local floatformat_do_doublest() and libiberty's
453floatformat_to_double (which was once GDB's ...) can be merged some
454how.
455
456--
457
4fcf66da 458Eliminate mmalloc(), mstrsave() et.al. from GDB.
4afc966c
AC
459
460Also eliminate it from defs.h.
461
462--
463
464Eliminate PTR. ISO-C allows ``void *''.
465
466--
467
468Eliminate abort ().
469
470GDB should never abort. GDB should either throw ``error ()'' or
471``internal_error ()''. Better still GDB should naturally unwind with
472an error status.
473
474--
475
476GDB probably doesn't build on FreeBSD pre 2.2.x
477http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00378.html
478
479Fixes to get FreeBSD working on 2.2.x, 3.x and 4.x caused the code to
480suffer bit rot.
bc9e5bbf
AC
481
482--
483
78566ebe
AC
484Deprecate "fg". Apparently ``fg'' is actually continue.
485
486http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00417.html
487
488--
489
490Deprecate current use of ``floatformat_unknown''.
491
492Require all targets to explicitly provide their float format instead
493of defaulting to floatformat unknown. Doing the latter leads to nasty
494bugs.
495
496http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00447.html
bc9e5bbf
AC
497
498--
499
78566ebe
AC
500Rationalize floatformat_to_double() vs floatformat_to_doublest().
501
502Looks like GDB migrated floatformat_to_double() to libiberty but then
503turned around and created a ..._to_doublest() the latter containing
504several bug fixes.
505
506http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00472.html
507
508--
509
510Move floatformat_ia64_ext to libiberty/include floatformat.[ch].
511
512http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00466.html
513
514--
515
b4a20239
AC
516The ``maintenance deprecate set endian big'' command doesn't notice
517that it is deprecating ``set endian'' and not ``set endian big'' (big
518is implemented using an enum). Is anyone going to notice this?
519
520--
521
522When tab expanding something like ``set arch<tab>'' ignore the
523deprecated ``set archdebug'' and expand to ``set architecture''.
524
78566ebe
AC
525--
526
53904c9e
AC
527Eliminate ``arm_register_names[j] = (char *) regnames[j]'' and the
528like from arm-tdep.c.
529
530--
531
532Fix uses of ->function.cfunc = set_function().
533
534The command.c code calls sfunc() when a set command. Rather than
535change it suggest fixing the callback function so that it is more
536useful. See:
537
538http://sourceware.cygnus.com/ml/gdb-patches/2000-06/msg00062.html
539
540See also ``Fix implementation of ``target xxx''.'' below.
541
bf64bfd6
AC
542--
543
544IRIX 3.x support is probably broken.
545
5d35f0ac
AC
546--
547
548Delete sim/SIM_HAVE_BREAKPOINTS and gdb/SIM_HAS_BREAKPOINTS.
549http://sourceware.cygnus.com/ml/gdb-patches/2000-07/msg00042.html
550
551Apart from the d30v, are there any sim/common simulators that make use
552of this?
553
e26cc349 554A brief summary of what happened is that sim/common/sim-break.c was
5d35f0ac
AC
555created as a good idea. It turned out a better idea was to use
556SIM_SIGBREAK and have GDB pass back sim_resume (..., SIGBREAK).
557
d471ea57
AC
558--
559
560Move remote_remove_hw_breakpoint, remote_insert_hw_breakpoint,
561remote_remove_watchpoint, remote_insert_watchpoint into target vector.
562
896f1867
AC
563--
564
565Eliminate ``extern'' from C files.
566
567--
568
569Replace ``STREQ()'' et.al. with ``strcmp() == 0'' et.al.
570
571Extreme care is recommeded - perhaps only modify tests that are
572exercised by the testsuite (as determined using some type of code
573coverage analysis).
574
2126d5fb
AC
575--
576
577Replace the file gdb/CONTRIBUTE with a file that is generated from the
578gdb/doc/*.texinfo directory.
579
ee055267
AC
580--
581
582Rewrite/break up sparcl-tdep.c so that it uses ser*.c as the mechanism
583for accessing either the serial or UDP port.
584
53904c9e 585--
78566ebe 586
4afc966c
AC
587 New Features and Fixes
588 ======================
bc9e5bbf 589
4afc966c
AC
590These are harder than cleanups but easier than work involving
591fundamental architectural change.
bc9e5bbf
AC
592
593--
594
0db23c95 595Hardware watchpoint problems on x86 OSes, including Linux:
0a9c3cb6
AC
596
5971. Delete/disable hardware watchpoints should free hardware debug
598registers.
5992. Watch for different values on a viariable with one hardware debug
600register.
601
602According to Eli Zaretskii <eliz@delorie.com>:
603
604These are not GDB/ia32 issues per se: the above features are all
605implemented in the DJGPP port of GDB and work in v5.0. Every
606x86-based target should be able to lift the relevant parts of
607go32-nat.c and use them almost verbatim. You get debug register
608sharing through reference counts, and the ability to watch large
609regions (up to 16 bytes) using multiple registers. (The required
610infrastructure in high-level GDB application code, mostly in
611breakpoint.c, is also working since v5.0.)
612
613--
614
4afc966c
AC
615Add built-by, build-date, tm, xm, nm and anything else into gdb binary
616so that you can see how the GDB was created.
bc9e5bbf 617
bc9e5bbf
AC
618--
619
4afc966c
AC
620Add an "info bfd" command that displays supported object formats,
621similarly to objdump -i.
5683e87a 622
4afc966c 623Is there a command already?
5683e87a
AC
624
625--
626
4afc966c 627Fix ``I'm sorry, Dave, I can't do that.'' from symfile.c.
bc9e5bbf 628
4afc966c 629This requires internationalization.
bc9e5bbf 630
4afc966c 631--
bc9e5bbf 632
2e4e9e68
AC
633Add support for:
634
635(gdb) p fwprintf(stdout,L"%S\n", f)
636No symbol "L" in current context.
637
638--
639
4afc966c 640Cleanup configury support for optional sub-directories.
7ae38352 641
4afc966c
AC
642Check how GCC handles multiple front ends for an example of how things
643could work. A tentative first step is to rationalize things so that
644all sub directories are handled in a fashion similar to gdb/mi.
645
646See also automake above.
7ae38352
AC
647
648--
649
4afc966c
AC
650Add a transcript mechanism to GDB.
651
652Such a mechanism might log all gdb input and output to a file in a
653form that would allow it to be replayed. It could involve ``gdb
654--transcript=FILE'' or it could involve ``(gdb) transcript file''.
67edb2c6
AC
655
656--
657
4afc966c 658Can the xdep files be replaced by autoconf?
bc9e5bbf 659
4afc966c 660--
bc9e5bbf 661
4afc966c 662Document trace machinery
bc9e5bbf 663
4afc966c
AC
664--
665
78566ebe
AC
666Document ui-out and ui-file.
667
668http://sourceware.cygnus.com/ml/gdb/2000-04/msg00121.html
669
670--
671
672Update texinfo.tex to latest?
673
78566ebe
AC
674--
675
676Incorporate agentexpr.texi into gdb.texinfo
677
678agentexpr.texi mostly describes the details of the byte code used for
679tracepoints, not the internals of the support for this in GDB. So it
680looks like gdb.texinfo is a better place for this information.
681
682http://sourceware.cygnus.com/ml/gdb-patches/2000-04/msg00566.html
683
684--
685
4afc966c 686Document overlay machinery.
bc9e5bbf 687
7ae38352
AC
688--
689
4afc966c 690``(gdb) catch signal SIGNAL''
7ae38352 691
e26cc349 692Overlaps with ``handle SIGNAL'' but the implied behavior is different.
4afc966c
AC
693You can attach commands to a catch but not a handle. A handle has a
694limited number of hardwired actions.
7ae38352
AC
695
696--
697
1c5b31ef
AC
698Fix TUI
699
700 o readline/*.h bitrot
701
702 The TUI isn't up-to-date with
703 respect to the readline currently
704 bundled with GDB. Importing a
705 new readline is on the 5.1 wish
706 list so this can only get worse.
707
708 Grep for things like term_cursor_move.
709
710 (To be honest, I don't see anyone
711 importing a new readline before 5.1 is
712 out)
713
714 o tui.c:va_catch_errors() bitrot
715
716 This nasty piece of work used knowledge
717 of the internals of GDBs error functions :-(
718 Ever since those internals were cleaned
719 up this code has been broken. :-(
720
721 o tuiWin.c:c_makeVisibleWithNewHeight() broken
722 tuiLayout.c:_extractDisplayStartAddr() broken
723
724 Both these function call find_line_pc()
725 incorrectly (wrong args, wrong return value).
726
727 I suspect this bug has always been there!
728 It had been hidden because those files
729 didn't include the necessary header files
730 from gdb proper :-(
731
732 o tuiRegs() host dependant
733
734 Not suprisingly, this isn't a very portable
735 section of code. However, I'm sure people
736 could live with no regs in the short to
737 medium term.
738
739 o defs.h: #include "tui.h" et.al.
740
741 I'm not sure where this came from.
742 It was a really bad idea.
743
744 To get things to compile I did a nasty
745 hack (Just declare what was needed and
746 replace any expressions like xx->y.z()
747 in GDB proper with function calls). I
748 could commit it slightly cleaned up if
749 you like.
750
751 Medium Term. the #ifdef TUI and TuiDo()
752 should be changed to hooks (like GDBTK).
753 The gdb-events.[hc] is there for that
754 purpose (1)
755
756 o tui.c:_tuiReset() host dependant
757
758 tui.c contains a lump of termio[s]
759 I suspect an equivalent block of
760 code can be lifted from readline.
761 An equivalent readline function may
762 even be available.
763
764 o curses.h vs ncurses.h.
765
766 Simple portability problem.
767
768 o subsetCompare()
769
770 This function is a mystery - where is it?
771
772 o tui-file.[hc] cleanup
773
774 This can be significantly simplified.
775
776 o The code should be pacified. (-Werror -W...)
777
778 There are plenty of #includes,
779 duplicate #includes, missing function decls
780 and the like.
781
782 Some of the problems I found were through
783 fixing a few of the warnings.
784
785 o The code should be GNUtified.
786
787 It would be very nice to have this code
788 look like the rest of GDB. That way people
789 would be more accepting of it as a true
790 gdb component.
791
792 Until it is GNUtified it is going to stick
793 out like a sore thumb to the programmer.
794
795 o The code should be clearly copyrighted
796
797 (FSF, with due credit to HP)
7ae38352 798
bc9e5bbf
AC
799--
800
4afc966c
AC
801Add support for ``gdb --- PROGRAM ARGS ...''.
802Add support for ``gdb -cmd=...''
9debab2f 803
4afc966c
AC
804Along with many variations. Check:
805
806????? for a full discussion.
807
808for a discussion.
9debab2f
AC
809
810--
811
4afc966c 812Implement ``(gdb) !ls''.
e55e8cee 813
4afc966c
AC
814Which is very different from ``(gdb) ! ls''. Implementing the latter
815is trivial.
816
817http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00034.html
e55e8cee
AC
818
819--
820
b4a20239
AC
821Change the (char *list[]) to (const char (*)[]) so that dynamic lists can
822be passed.
823
824--
825
826When tab expanding something like ``set arch<tab>'' ignore the
827deprecated ``set archdebug'' and expand to ``set architecture''.
828
829--
830
4afc966c
AC
831Replace the code that uses the host FPU with an emulator of the target
832FPU.
7ae38352 833
4930751a
C
834--
835
836The "ocd reset" command needs to flush the dcache, which requires breaking
837the abstraction layer between the target independent and target code. One
838way to address this is provide a generic "reset" command and target vector.
839
840http://sources.redhat.com/ml/gdb-patches/2000-10/msg00011.html
841
7ae38352
AC
842--
843
4afc966c
AC
844 Language Support
845 ================
7ae38352 846
4afc966c 847New languages come onto the scene all the time.
7ae38352
AC
848
849--
850
4afc966c
AC
851Re: Various C++ things
852
26099b4a
AC
853value_headof/value_from_vtable_info are worthless, and should be
854removed. The one place in printcmd.c that uses it should use the RTTI
855functions.
4afc966c 856
26099b4a
AC
857RTTI for g++ should be using the typeinfo functions rather than the
858vtables. The typeinfo functions are always at offset 4 from the
859beginning of the vtable, and are always right. The vtables will have
860weird names like E::VB sometimes. The typeinfo function will always
861be "E type_info function", or somesuch.
4afc966c 862
26099b4a
AC
863value_virtual_fn_field needs to be fixed so there are no failures for
864virtual functions for C++ using g++.
4afc966c 865
26099b4a
AC
866Testsuite cases are the major priority right now for C++ support,
867since i have to make a lot of changes that could potentially break
868each other.
7ae38352
AC
869
870--
871
4afc966c 872Add support for Modula3
7ae38352 873
4afc966c 874Get DEC/Compaq to contribute their Modula-3 support.
7ae38352
AC
875
876--
877
4afc966c
AC
878 Remote Protocol Support
879 =======================
7ae38352
AC
880
881--
882
a2061976
AC
883Revised UDP support (was: Re: [Fwd: [patch] UDP transport support])
884http://sourceware.cygnus.com/ml/gdb-patches/2000-04/msg00000.html
885
886(Broken) support for GDB's remote protocol across UDP is to be
887included in the follow-on release.
888
889It should be noted that UDP can only work when the [Gg] packet fits in
890a single UDP packet.
891
892There is also much debate over the merit of this.
893
894--
895
896Migrate qfThreadInfo packet -> qThreadInfo. (Andrew Cagney)
897
898Add support for packet enable/disable commands with these thread
899packets. General cleanup.
900
901[PATCH] Document the ThreadInfo remote protocol queries
902http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00832.html
903
904[PATCH] "info threads" queries for remote.c
905http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00831.html
906
907--
908
7ae38352
AC
909Remote protocol doco feedback.
910
911Too much feedback to mention needs to be merged in (901660). Search
912for the word ``remote''.
913
4afc966c
AC
914
915http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00023.html
916http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00056.html
917http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00382.html
918
7ae38352
AC
919--
920
4afc966c 921GDB doesn't recover gracefully from remote protocol errors.
7ae38352 922
4afc966c
AC
923GDB wasn't checking for NAKs from the remote target. Instead a NAK is
924ignored and a timeout is required before GDB retries. A pre-cursor to
925fixing this this is making GDB's remote protocol packet more robust.
926
927While downloading to a remote protocol target, gdb ignores packet
d471ea57 928errors in so far as it will continue to download with chunk N+1 even
4afc966c
AC
929if chunk N was not correctly sent. This causes gdb.base/remote.exp to
930take a painfully long time to run. As a PS that test needs to be
931fixed so that it builds on 16 bit machines.
7ae38352
AC
932
933--
934
a2061976
AC
935Fix the ``!'' packet.
936
937JT reported that the existing targets do, in fact return ``OK'' so it
938is possible to merge remote and extended-remote targets.
939
940--
941
942Drop ``<address>'' from the [SsCc] packets.
943
944I don't think that GDB generates them so having it in the protocol is
945silly.
946
947--
948
949Fix doco on the ``q'' packet.
950
951It has evolved into a generic RPC. The notes should reflect this and,
952perhaps, the ``Q'' packet can be deprecated.
953
954The doco should mention that ``OK'' is a valid packet response.
955
956The doco should explain why ``OK'' needs to be a valid packet
957response.
958
959--
960
4afc966c 961Add the cycle step command.
7ae38352 962
4afc966c 963http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00237.html
7ae38352 964
26099b4a
AC
965--
966
967Resolve how to scale things to support very large packets.
968
969--
970
971Resolve how to handle a target that changes things like its endianess
972on the fly - should it be returned in the ``T'' packet?
973
974Underlying problem is that the register file is target endian. If the
975target endianess changes gdb doesn't know.
976
ee055267
AC
977Suggest encoding registers as NN!VALUE.
978
979--
980
981GDB should allow incomming packets to be larger than outgoing ones. A
982fully loaded T packet (containing all registers) can be very large -
983definitly larger than a corresponding Gg packet.
984
7ae38352
AC
985--
986
4afc966c
AC
987 Symbol Support
988 ==============
7ae38352 989
4afc966c
AC
990If / when GDB starts to support the debugging of multi-processor
991(rather than multi-thread) applications the symtab code will need to
e26cc349 992be updated a little so that several independent symbol tables are
4afc966c
AC
993active at a given time.
994
995The other interesting change is a clarification of the exact meaning
996of CORE_ADDR and that has had consequences for a few targets (that
997were abusing that data type).
7ae38352 998
d8038014
AC
999--
1000
4afc966c 1001Investiagate ways of reducing memory.
d8038014
AC
1002
1003--
1004
4afc966c 1005Investigate ways of improving load time.
d8038014 1006
4afc966c
AC
1007--
1008
1009Get the d10v to use POINTER_TO_ADDRESS and ADDRESS_TO_POINTER.
1010
1011Consequence of recent symtab clarification. No marks for figuring out
1012who maintains the d10v.
d8038014 1013
0aaf65d7
AC
1014--
1015
4afc966c
AC
1016Get the MIPS to correctly sign extend all address <-> pointer
1017conversions.
0aaf65d7 1018
4afc966c
AC
1019Consequence of recent symtab clarification. No marks for figuring out
1020who maintains the MIPS.
0aaf65d7 1021
5d35f0ac
AC
1022--
1023
1024GDB truncates 64 bit enums.
1025
1026http://sourceware.cygnus.com/ml/gdb-patches/2000-06/msg00290.html
1027
26099b4a
AC
1028--
1029
1030 Testsuite Support
1031 =================
1032
1033There are never to many testcases.
1034
1035--
1036
1037Better thread testsuite.
1038
1039--
1040
1041Better C++ testsuite.
1042
1043--
1044
1045Look at adding a GDB specific testsuite directory so that white box
1046tests of key internals can be added (eg ui_file).
1047
1048--
1049
1050Separate out tests that involve the floating point (FP).
1051
1052(Something for people brining up new targets). FP and non-fp tests
1053are combined. I think there should be set of basic tests that
1054exercise pure integer support and then a more expanded set that
1055exercise FP and FP/integer interactions.
1056
1057As an example, the MIPS, for n32 as problems with passing FP's and
1058structs. Since most inferior call tests include FP it is difficult to
1059determine of the integer tests are ok.
1060
7ae38352
AC
1061--
1062
4afc966c
AC
1063 Architectural Changes: General
1064 ==============================
7ae38352
AC
1065
1066These are harder than simple cleanups / fixes and, consequently
1067involve more work. Typically an Architectural Change will be broken
1068down into a more digestible set of cleanups and fixes.
1069
1070--
1071
4afc966c
AC
1072Cleanup software single step.
1073
1074At present many targets implement software single step by directly
1075blatting memory (see rs6000-tdep.c). Those targets should register
1076the applicable breakpoints using the breakpoint framework. Perhaphs a
1077new internal breakpoint class ``step'' is needed.
1078
1079--
1080
7ae38352
AC
1081Replace READ_FP() with FRAME_HANDLE().
1082
1083READ_FP() is a hangover from the days of the vax when the ABI really
1084did have a frame pointer register. Modern architectures typically
1085construct a virtual frame-handle from the stack pointer and various
1086other bits of string.
1087
e26cc349 1088Unfortunately GDB still treats this synthetic FP register as though it
7ae38352
AC
1089is real. That in turn really confuses users (arm and ``print $fp'' VS
1090``info registers fp''). The synthetic FP should be separated out of
1091the true register set presented to the user.
1092
1093--
1094
2a00c9ce
AC
1095Register Cache Cleanup (below from Andrew Cagney)
1096
1097I would depict the current register architecture as something like:
1098
1099 High GDB --> Low GDB
1100 | |
1101 \|/ \|/
1102 --- REG NR -----
1103 |
1104 register + REGISTER_BYTE(reg_nr)
1105 |
1106 \|/
1107 -------------------------
1108 | extern register[] |
1109 -------------------------
1110
1111where neither the high (valops.c et.al.) or low gdb (*-tdep.c) are
1112really clear on what mechanisms they should be using to manipulate that
1113buffer. Further, much code assumes, dangerously, that registers are
1114contigious. Having got mips-tdep.c to support multiple ABIs, believe
1115me, that is a bad assumption. Finally, that register cache layout is
1116determined by the current remote/local target and _not_ the less
1117specific target ISA. In fact, in many cases it is determined by the
1118somewhat arbitrary layout of the [gG] packets!
1119
1120
1121How I would like the register file to work is more like:
1122
1123
1124 High GDB
1125 |
1126 \|/
1127 pseudo reg-nr
1128 |
1129 map pseudo <->
1130 random cache
1131 bytes
1132 |
1133 \|/
1134 ------------
1135 | register |
1136 | cache |
1137 ------------
1138 /|\
1139 |
1140 map random cache
1141 bytes to target
e26cc349 1142 dependent i-face
2a00c9ce
AC
1143 /|\
1144 |
e26cc349 1145 target dependent
2a00c9ce
AC
1146 such as [gG] packet
1147 or ptrace buffer
1148
1149The main objectives being:
1150
1151 o a clear separation between the low
1152 level target and the high level GDB
1153
1154 o a mechanism that solves the general
1155 problem of register aliases, overlaps
1156 etc instead of treating them as optional
1157 extras that can be wedged in as an after
1158 thought (that is a reasonable description
1159 of the current code).
1160
1161 Identify then solve the hard case and the
1162 rest just falls out. GDB solved the easy
1163 case and then tried to ignore the real
1164 world :-)
1165
1166 o a removal of the assumption that the
1167 mapping between the register cache
1168 and virtual registers is largely static.
1169 If you flip the USR/SSR stack register
1170 select bit in the status-register then
1171 the corresponding stack registers should
1172 reflect the change.
1173
1174 o a mechanism that clearly separates the
1175 gdb internal register cache from any
e26cc349 1176 target (not architecture) dependent
2a00c9ce
AC
1177 specifics such as [gG] packets.
1178
1179Of course, like anything, it sounds good in theory. In reality, it
1180would have to contend with many<->many relationships at both the
1181virt<->cache and cache<->target level. For instance:
1182
1183 virt<->cache
1184 Modifying an mmx register may involve
1185 scattering values across both FP and
1186 mmpx specific parts of a buffer
1187
1188 cache<->target
1189 When writing back a SP it may need to
1190 both be written to both SP and USP.
1191
1192
1193Hmm,
1194
1195Rather than let this like the last time it was discussed, just slip, I'm
1196first going to add this e-mail (+ references) to TODO. I'd then like to
1197sketch out a broad strategy I think could get us there.
1198
1199
1200First thing I'd suggest is separating out the ``extern registers[]''
1201code so that we can at least identify what is using it. At present
1202things are scattered across many files. That way we can at least
1203pretend that there is a cache instead of a global array :-)
1204
1205I'd then suggest someone putting up a proposal for the pseudo-reg /
1206high-level side interface so that code can be adopted to it. For old
1207code, initially a blanket rename of write_register_bytes() to
1208deprecated_write_register_bytes() would help.
1209
1210Following that would, finaly be the corresponding changes to the target.
bc9e5bbf
AC
1211
1212--
1213
67edb2c6
AC
1214Check that GDB can handle all BFD architectures (Andrew Cagney)
1215
1216There should be a test that checks that BFD/GDB are in sync with
1217regard to architecture changes. Something like a test that first
1218queries GDB for all supported architectures and then feeds each back
1219to GDB.. Anyone interested in learning how to write tests? :-)
1220
1221--
1222
4afc966c
AC
1223 Architectural Change: Multi-arch et al.
1224 =======================================
2a00c9ce 1225
4afc966c
AC
1226The long term objective is to remove all assumptions that there is a
1227single target with a single address space with a single instruction
1228set architecture and single application binary interface.
2a00c9ce 1229
4afc966c
AC
1230This is an ongoing effort. The first milestone is to enable
1231``multi-arch'' where by all architectural decisions are made at
1232runtime.
7ae38352 1233
4afc966c
AC
1234It should be noted that ``gdbarch'' is really ``gdbabi'' and
1235``gdbisa''. Once things are multi-arched breaking that down correctly
1236will become much easier.
7ae38352
AC
1237
1238--
1239
4afc966c 1240GDBARCH cleanup (Andrew Cagney)
7ae38352 1241
4afc966c
AC
1242The non-generated parts of gdbarch.{sh,h,c} should be separated out
1243into arch-utils.[hc].
1244
1245Document that gdbarch_init_ftype could easily fail because it didn't
1246identify an architecture.
ed952ac5
AC
1247
1248--
1249
4afc966c 1250Fix BELIEVE_PPC_PROMOTION. Change it to BELIEVE_PPC_PROMOTION_P?
ed952ac5 1251
4afc966c
AC
1252At present there is still #ifdef BELIEVE_PPC_PROMOTION code in the
1253symtab file.
ed952ac5 1254
4afc966c
AC
1255--
1256
8e6a3c35
AC
1257Fix target_signal_from_host() etc.
1258
1259The name is wrong for starters. ``target_signal'' should probably be
1260``gdb_signal''. ``from_host'' should be ``from_target_signal''.
e26cc349 1261After that it needs to be multi-arched and made independent of any
8e6a3c35
AC
1262host signal numbering.
1263
ee055267
AC
1264Once this is done, the signal enum can probably be moved to
1265include/gdb so that it is available to embedded stubs.
1266
8e6a3c35
AC
1267--
1268
4afc966c
AC
1269Update ALPHA so that it uses ``struct frame_extra_info'' instead of
1270EXTRA_FRAME_INFO.
1271
1272This is a barrier to replacing mips_extra_func_info with something
1273that works with multi-arch.
7ae38352
AC
1274
1275--
1276
4afc966c
AC
1277Multi-arch mips_extra_func_info.
1278
1279This first needs the alpha to be updated so that it uses ``struct
1280frame_extra_info''.
7ae38352
AC
1281
1282--
1283
4afc966c 1284Rationalize TARGET_SINGLE_FORMAT and TARGET_SINGLE_BIT et al.
7ae38352 1285
4afc966c 1286Surely one of them is redundant.
7ae38352
AC
1287
1288--
1289
4afc966c 1290Convert ALL architectures to MULTI-ARCH.
7ae38352
AC
1291
1292--
1293
1294Select the initial multi-arch ISA / ABI based on --target or similar.
1295
1296At present the default is based on what ever is first in the BFD
1297archures table. It should be determined based on the ``--target=...''
1298name.
1299
1300--
1301
bf64bfd6
AC
1302Make MIPS pure multi-arch.
1303
1304It is only at the multi-arch enabled stage.
1305
1306--
1307
7ae38352
AC
1308Truly multi-arch.
1309
1310Enable the code to recognize --enable-targets=.... like BINUTILS does.
1311
4afc966c
AC
1312Can the tm.h and nm.h files be eliminated by multi-arch.
1313
7ae38352
AC
1314--
1315
4afc966c
AC
1316 Architectural Change: MI, LIBGDB and scripting languages
1317 ========================================================
7ae38352 1318
4afc966c
AC
1319See also architectural changes related to the event loop. LIBGDB
1320can't be finished until there is a generic event loop being used by
1321all targets.
1322
1323The long term objective is it to be possible to integrate GDB into
1324scripting languages.
7ae38352
AC
1325
1326--
1327
4afc966c 1328Implement generic ``(gdb) commmand > file''
7ae38352 1329
4afc966c
AC
1330Once everything is going through ui_file it should be come fairly
1331easy.
1332
1333http://sourceware.cygnus.com/ml/gdb/2000-04/msg00104.html
1334
1335--
1336
1337Replace gdb_stdtarg with gdb_targout (and possibly gdb_targerr).
1338
1339gdb_stdtarg is easily confused with gdb_stdarg.
1340
1341--
1342
1343Extra ui_file methods - dump.
1344
26099b4a 1345Very useful for whitebox testing.
4afc966c
AC
1346
1347--
1348
1349Eliminate error_begin().
1350
1351With ui_file, there is no need for the statefull error_begin ()
1352function.
1353
1354--
1355
1356Send normal output to gdb_stdout.
1357Send error messages to gdb_stderror.
1358Send debug and log output log gdb_stdlog.
1359
1360GDB still contains many cases where (f)printf or printf_filtered () is
1361used when it should be sending the messages to gdb_stderror or
1362gdb_stdlog. The thought of #defining printf to something has crossed
1363peoples minds ;-)
7ae38352
AC
1364
1365--
1366
1367Re-do GDB's output pager.
1368
1369GDB's output pager still relies on people correctly using *_filtered
1370for gdb_stdout and *_unfiltered for gdb_stdlog / gdb_stderr.
1371Hopefully, with all normal output going to gdb_stdout, the pager can
1372just look at the ui_file that the output is on and then use that to
1373decide what to do about paging. Sounds good in theory.
1374
1375--
1376
4afc966c
AC
1377Check/cleanup MI documentation.
1378
1379The list of commands specified in the documentation needs to be
1380checked against the mi-cmds.c table in a mechanical way (so that they
1381two can be kept up-to-date).
1382
1383--
1384
1385Convert MI into libgdb
1386
1387MI provides a text interface into what should be many of the libgdb
1388functions. The implementation of those functions should be separated
1389into the MI interface and the functions proper. Those functions being
1390moved to gdb/lib say.
1391
1392--
1393
1394Create libgdb.h
1395
1396The first part can already be found in defs.h.
1397
1398--
1399
1400MI's input does not use buffering.
1401
1402At present the MI interface reads raw characters of from an unbuffered
1403FD. This is to avoid several nasty buffer/race conditions. That code
1404should be changed so that it registers its self with the event loop
1405(on the input FD) and then push commands up to MI as they arrive.
1406
1407The serial code already does this.
1408
1409--
1410
e26cc349 1411Make MI interface accessible from existing CLI.
4afc966c
AC
1412
1413--
1414
1415Add a breakpoint-edit command to MI.
1416
1417It would be similar to MI's breakpoint create but would apply to an
1418existing breakpoint. It saves the need to delete/create breakpoints
1419when ever they are changed.
1420
1421--
1422
1423Add directory path to MI breakpoint.
1424
1425That way the GUI's task of finding the file within which the
1426breakpoint was set is simplified.
1427
1428--
1429
1430Add a mechanism to reject certain expression classes to MI
7ae38352
AC
1431
1432There are situtations where you don't want GDB's expression
1433parser/evaluator to perform inferior function calls or variable
4afc966c
AC
1434assignments. A way of restricting the expression parser so that such
1435operations are not accepted would be very helpful.
7ae38352
AC
1436
1437--
1438
1439Remove sideffects from libgdb breakpoint create function.
1440
1441The user can use the CLI to create a breakpoint with partial
1442information - no file (gdb would use the file from the last
1443breakpoint).
1444
1445The libgdb interface currently affects that environment which can lead
1446to confusion when a user is setting breakpoints via both the MI and
1447the CLI.
1448
1449This is also a good example of how getting the CLI ``right'' will be
1450hard.
1451
1452--
1453
4afc966c 1454Move gdb_lasterr to ui_out?
7ae38352 1455
4afc966c
AC
1456The way GDB throws errors and records them needs a re-think. ui_out
1457handles the correct output well. It doesn't resolve what to do with
1458output / error-messages when things go wrong.
7ae38352 1459
97c3646f
AC
1460--
1461
1462do_setshow_command contains a 1024 byte buffer.
1463
1464The function assumes that there will never be any more than 1024 bytes
1465of enum. It should use mem_file.
1466
1467--
1468
1469Should struct cmd_list_element . completer take the command as an
1470argument?
1471
1472--
1473
1474Should the bulk of top.c:line_completion_function() be moved to
1475command.[hc]? complete_on_cmdlist() and complete_on_enums() could
1476then be made private.
1477
1478--
1479
1480top.c (execute_command): Should a command being valid when the target
1481is running be made an attribute (predicate) to the command rather than
1482an explicit set of tests.
1483
1484--
1485
1486top.c (execute_command): Should the bulk of this function be moved
1487into command.[hc] so that top.c doesn't grub around in the command
1488internals?
1489
4afc966c
AC
1490--
1491
1492 Architectural Change: Async
1493 ===========================
1494
1495While GDB uses an event loop when prompting the user for input. That
1496event loop is not exploited by targets when they allow the target
1497program to continue. Typically targets still block in (target_wait())
1498until the program again halts.
1499
1500The closest a target comes to supporting full asynchronous mode are
1501the remote targets ``async'' and ``extended-async''.
7ae38352
AC
1502
1503--
1504
4afc966c 1505Asynchronous expression evaluator
7ae38352 1506
4afc966c 1507Inferior function calls hang GDB.
7ae38352
AC
1508
1509--
1510
1511Fix implementation of ``target xxx''.
1512
1513At present when the user specifies ``target xxxx'', the CLI maps that
1514directly onto a target open method. It is then assumed that the
1515target open method should do all sorts of complicated things as this
1516is the only chance it has. Check how the various remote targets
1517duplicate the target operations. Check also how the various targets
1518behave differently for purely arbitrary reasons.
1519
1520What should happen is that ``target xxxx'' should call a generic
1521``target'' function and that should then co-ordinate the opening of
1522``xxxx''. This becomes especially important when you're trying to
1523open an asynchronous target that may need to perform background tasks
1524as part of the ``attach'' phase.
1525
e26cc349 1526Unfortunately, due to limitations in the old/creaking command.h
7ae38352
AC
1527interface, that isn't possible. The function being called isn't told
1528of the ``xxx'' or any other context information.
1529
1530Consequently a precursor to fixing ``target xxxx'' is to clean up the
1531CLI code so that it passes to the callback function (attatched to a
1532command) useful information such as the actual command and a context
1533for that command. Other changes such as making ``struct command''
1534opaque may also help.
1535
53904c9e
AC
1536See also:
1537http://sourceware.cygnus.com/ml/gdb-patches/2000-06/msg00062.html
1538
7ae38352
AC
1539--
1540
4afc966c
AC
1541Make "target xxx" command interruptible.
1542
1543As things become async this becomes possible. A target would start
1544the connect and then return control to the event loop. A cntrl-c
1545would notify the target that the operation is to be abandoned and the
1546target code could respond.
7ae38352
AC
1547
1548--
1549
4afc966c
AC
1550Add a "suspend" subcommand of the "continue" command to suspend gdb
1551while continuing execution of the subprocess. Useful when you are
1552debugging servers and you want to dodge out and initiate a connection
1553to a server running under gdb.
1554
1555[hey async!!]
7ae38352 1556
2a00c9ce
AC
1557--
1558
26099b4a
AC
1559 TODO FAQ
1560 ========
1561
1562Frequently requested but not approved requests.
1563
1564--
1565
1566Eliminate unused argument warnings using ATTRIBUTE_UNUSED.
1567
1568The benefits on this one are thought to be marginal - GDBs design
1569means that unused parameters are very common. GCC 3.0 will also
1570include the option -Wno-unused-parameter which means that ``-Wall
1571-Wno-unused-parameters -Werror'' can be specified.
1572
1573--
1574
1575
1576
2a00c9ce
AC
1577 Legacy Wish List
1578 ================
1579
1580This list is not up to date, and opinions vary about the importance or
1581even desirability of some of the items. If you do fix something, it
1582always pays to check the below.
1583
1584--
c906108c 1585
b83266a0
SS
1586@c This does not work (yet if ever). FIXME.
1587@c @item --parse=@var{lang} @dots{}
1588@c Configure the @value{GDBN} expression parser to parse the listed languages.
1589@c @samp{all} configures @value{GDBN} for all supported languages. To get a
1590@c list of all supported languages, omit the argument. Without this
1591@c option, @value{GDBN} is configured to parse all supported languages.
1592
7ae38352 1593--
c906108c
SS
1594
1595START_INFERIOR_TRAPS_EXPECTED need never be defined to 2, since that
1596is its default value. Clean this up.
1597
7ae38352
AC
1598--
1599
c906108c
SS
1600It should be possible to use symbols from shared libraries before we know
1601exactly where the libraries will be loaded. E.g. "b perror" before running
1602the program. This could maybe be done as an extension of the "breakpoint
1603re-evaluation" after new symbols are loaded.
1604
7ae38352
AC
1605--
1606
c906108c
SS
1607Make single_step() insert and remove breakpoints in one operation.
1608
26099b4a
AC
1609[If this is talking about having single_step() insert the breakpoints,
1610run the target then pull the breakpoints then it is wrong. The
1611function has to return as control has to eventually be passed back to
1612the main event loop.]
1613
7ae38352
AC
1614--
1615
c906108c
SS
1616Speed up single stepping by avoiding extraneous ptrace calls.
1617
7ae38352
AC
1618--
1619
c906108c
SS
1620Speed up single stepping by not inserting and removing breakpoints
1621each time the inferior starts and stops.
1622
1623Breakpoints should not be inserted and deleted all the time. Only the
1624one(s) there should be removed when we have to step over one. Support
1625breakpoints that don't have to be removed to step over them.
1626
7ae38352 1627[this has resulted in numerous debates. The issue isn't clear cut]
c906108c 1628
7ae38352 1629--
c906108c
SS
1630
1631Provide "voodoo" debugging of core files. This creates a zombie
1632process as a child of the debugger, and loads it up with the data,
1633stack, and regs of the core file. This allows you to call functions
1634in the executable, to manipulate the data in the core file.
1635
7ae38352 1636[you wish]
c906108c 1637
7ae38352 1638--
c906108c 1639
7ae38352 1640GDB reopens the source file on every line, as you "next" through it.
c906108c 1641
7ae38352 1642[still true? I've a memory of this being fixed]
c906108c 1643
7ae38352 1644--
c906108c
SS
1645
1646Perhaps "i source" should take an argument like that of "list".
1647
7ae38352 1648--
c906108c
SS
1649
1650Remove "at 0xnnnn" from the "b foo" response, if `print address off' and if
1651it matches the source line indicated.
1652
7ae38352 1653--
c906108c 1654
7ae38352 1655The prompt at end of screen should accept space as well as CR.
c906108c 1656
7ae38352 1657--
c906108c
SS
1658
1659Backtrace should point out what the currently selected frame is, in
1660its display, perhaps showing "@3 foo (bar, ...)" or ">3 foo (bar,
1661...)" rather than "#3 foo (bar, ...)".
1662
7ae38352
AC
1663--
1664
c906108c
SS
1665"i program" should work for core files, and display more info, like what
1666actually caused it to die.
1667
7ae38352
AC
1668--
1669
c906108c
SS
1670"x/10i" should shorten the long name, if any, on subsequent lines.
1671
7ae38352 1672--
c906108c
SS
1673
1674"next" over a function that longjumps, never stops until next time you happen
1675to get to that spot by accident. E.g. "n" over execute_command which has
1676an error.
1677
7ae38352
AC
1678--
1679
c906108c
SS
1680"set zeroprint off", don't bother printing members of structs which
1681are entirely zero. Useful for those big structs with few useful
1682members.
1683
7ae38352
AC
1684--
1685
c906108c
SS
1686GDB does four ioctl's for every command, probably switching terminal modes
1687to/from inferior or for readline or something.
1688
7ae38352
AC
1689--
1690
c906108c
SS
1691terminal_ours versus terminal_inferior: cache state. Switch should be a noop
1692if the state is the same, too.
1693
7ae38352 1694--
c906108c
SS
1695
1696"i frame" shows wrong "arglist at" location, doesn't show where the args
1697should be found, only their actual values.
1698
7ae38352
AC
1699--
1700
c906108c
SS
1701There should be a way for "set" commands to validate the new setting
1702before it takes effect.
1703
7ae38352 1704--
c906108c
SS
1705
1706"ena d" is ambiguous, why? "ena delete" seems to think it is a command!
1707
7ae38352 1708--
c906108c
SS
1709
1710i line VAR produces "Line number not known for symbol ``var''.". I
1711thought we were stashing that info now!
1712
7ae38352
AC
1713--
1714
c906108c
SS
1715We should be able to write to random files at hex offsets like adb.
1716
7ae38352
AC
1717--
1718
7ae38352
AC
1719[elena - delete this]
1720
c906108c
SS
1721Handle add_file with separate text, data, and bss addresses. Maybe
1722handle separate addresses for each segment in the object file?
1723
7ae38352
AC
1724--
1725
1726[Jimb/Elena delete this one]
1727
c906108c
SS
1728Handle free_named_symtab to cope with multiply-loaded object files
1729in a dynamic linking environment. Should remember the last copy loaded,
1730but not get too snowed if it finds references to the older copy.
1731
7ae38352
AC
1732--
1733
1734[elena delete this also]
c906108c
SS
1735
1736Remove all references to:
1737 text_offset
1738 data_offset
1739 text_data_start
1740 text_end
1741 exec_data_offset
1742 ...
1743now that we have BFD. All remaining are in machine dependent files.
1744
7ae38352 1745--
c906108c
SS
1746
1747Re-organize help categories into things that tend to fit on a screen
1748and hang together.
1749
7ae38352 1750--
c906108c
SS
1751
1752Add in commands like ADB's for searching for patterns, etc. We should
1753be able to examine and patch raw unsymboled binaries as well in gdb as
1754we can in adb. (E.g. increase the timeout in /bin/login without source).
1755
7ae38352
AC
1756[actually, add ADB interface :-]
1757
1758--
c906108c
SS
1759
1760When doing "step" or "next", if a few lines of source are skipped between
1761the previous line and the current one, print those lines, not just the
1762last line of a multiline statement.
1763
7ae38352 1764--
c906108c
SS
1765
1766Handling of "&" address-of operator needs some serious overhaul
1767for ANSI C and consistency on arrays and functions.
1768 For "float point[15];":
1769ptype &point[4] ==> Attempt to take address of non-lvalue.
1770 For "char *malloc();":
1771ptype malloc ==> "char *()"; should be same as
1772ptype &malloc ==> "char *(*)()"
1773call printf ("%x\n", malloc) ==> weird value, should be same as
1774call printf ("%x\n", &malloc) ==> correct value
1775
7ae38352
AC
1776--
1777
c906108c
SS
1778Fix dbxread.c symbol reading in the presence of interrupts. It
1779currently leaves a cleanup to blow away the entire symbol table when a
1780QUIT occurs. (What's wrong with that? -kingdon, 28 Oct 1993).
1781
7ae38352
AC
1782[I suspect that the grype was that, on a slow system, you might want
1783to cntrl-c and get just half the symbols and then load the rest later
1784- scary to be honest]
1785
1786--
1787
c906108c
SS
1788Mipsread.c reads include files depth-first, because the dependencies
1789in the psymtabs are way too inclusive (it seems to me). Figure out what
1790really depends on what, to avoid recursing 20 or 30 times while reading
1791real symtabs.
1792
7ae38352
AC
1793--
1794
c906108c
SS
1795value_add() should be subtracting the lower bound of arrays, if known,
1796and possibly checking against the upper bound for error reporting.
1797
7ae38352 1798--
c906108c
SS
1799
1800When listing source lines, check for a preceding \n, to verify that
1801the file hasn't changed out from under us.
1802
7ae38352
AC
1803[fixed by some other means I think. That hack wouldn't actually work
1804reliably - the file might move such that another \n appears. ]
c906108c 1805
7ae38352 1806--
c906108c
SS
1807
1808Get all the remote systems (where the protocol allows it) to be able to
1809stop the remote system when the GDB user types ^C (like remote.c
1810does). For ebmon, use ^Ak.
1811
7ae38352
AC
1812--
1813
c906108c
SS
1814Possible feature: A version of the "disassemble" command which shows
1815both source and assembly code ("set symbol-filename on" is a partial
1816solution).
1817
7ae38352
AC
1818[has this been done? It was certainly done for MI and GDBtk]
1819
1820--
1821
c906108c
SS
1822investigate "x/s 0" (right now stops early) (I think maybe GDB is
1823using a 0 address for bad purposes internally).
1824
7ae38352
AC
1825--
1826
c906108c
SS
1827Make "info path" and path_command work again (but independent of the
1828environment either of gdb or that we'll pass to the inferior).
1829
7ae38352
AC
1830--
1831
c906108c
SS
1832Make GDB understand the GCC feature for putting octal constants in
1833enums. Make it so overflow on an enum constant does not error_type
1834the whole type. Allow arbitrarily large enums with type attributes.
1835Put all this stuff in the testsuite.
1836
7ae38352
AC
1837--
1838
c906108c
SS
1839Make TYPE_CODE_ERROR with a non-zero TYPE_LENGTH more useful (print
1840the value in hex; process type attributes). Add this to the
1841testsuite. This way future compilers can add new types and old
1842versions of GDB can do something halfway reasonable.
1843
7ae38352 1844--
c906108c
SS
1845
1846Fix mdebugread.c:parse_type to do fundamental types right (see
1847rs6000_builtin_type in stabsread.c for what "right" is--the point is
1848that the debug format fixes the sizes of these things and it shouldn't
1849depend on stuff like TARGET_PTR_BIT and so on. For mdebug, there seem
1850to be separate bt* codes for 64 bit and 32 bit things, and GDB should
1851be aware of that). Also use a switch statement for clarity and speed.
1852
7ae38352
AC
1853--
1854
c906108c
SS
1855Investigate adding symbols in target_load--some targets do, some
1856don't.
1857
7ae38352
AC
1858--
1859
c906108c
SS
1860Put dirname in psymtabs and change lookup*symtab to use dirname (so
1861/foo/bar.c works whether compiled by cc /foo/bar.c, or cd /foo; cc
1862bar.c).
1863
7ae38352
AC
1864--
1865
c906108c
SS
1866Merge xcoffread.c and coffread.c. Use breakpoint_re_set instead of
1867fixup_breakpoints.
1868
7ae38352 1869--
c906108c
SS
1870
1871Make a watchpoint which contains a function call an error (it is
1872broken now, making it work is probably not worth the effort).
1873
7ae38352 1874--
c906108c
SS
1875
1876New test case based on weird.exp but in which type numbers are not
1877renumbered (thus multiply defining a type). This currently causes an
1878infinite loop on "p v_comb".
1879
7ae38352 1880--
c906108c 1881
7ae38352 1882[Hey! Hint Hint Delete Delete!!!]
c906108c
SS
1883
1884Fix 386 floating point so that floating point registers are real
1885registers (but code can deal at run-time if they are missing, like
1886mips and 68k). This would clean up "info float" and related stuff.
1887
7ae38352 1888--
c906108c
SS
1889
1890gcc -g -c enummask.c then gdb enummask.o, then "p v". GDB complains
1891about not being able to access memory location 0.
1892
1893-------------------- enummask.c
1894enum mask
1895{
1896 ANIMAL = 0,
1897 VEGETABLE = 1,
1898 MINERAL = 2,
1899 BASIC_CATEGORY = 3,
1900
1901 WHITE = 0,
1902 BLUE = 4,
1903 GREEN = 8,
1904 BLACK = 0xc,
1905 COLOR = 0xc,
1906
1907 ALIVE = 0x10,
1908
1909 LARGE = 0x20
1910} v;
1911
7ae38352
AC
1912--
1913
c906108c
SS
1914If try to modify value in file with "set write off" should give
1915appropriate error not "cannot access memory at address 0x65e0".
1916
7ae38352 1917--
c906108c 1918
c906108c
SS
1919Allow core file without exec file on RS/6000.
1920
7ae38352
AC
1921--
1922
c906108c
SS
1923Make sure "shell" with no arguments works right on DOS.
1924
7ae38352
AC
1925--
1926
c906108c
SS
1927Make gdb.ini (as well as .gdbinit) be checked on all platforms, so
1928the same directory can be NFS-mounted on unix or DOS, and work the
1929same way.
1930
7ae38352
AC
1931--
1932
1933[Is this another delete???]
c906108c
SS
1934
1935Get SECT_OFF_TEXT stuff out of objfile_relocate (might be needed to
1936get RS/6000 to work right, might not be immediately relevant).
1937
7ae38352 1938--
c906108c
SS
1939
1940Work out some kind of way to allow running the inferior to be done as
1941a sub-execution of, eg. breakpoint command lists. Currently running
1942the inferior interupts any command list execution. This would require
1943some rewriting of wait_for_inferior & friends, and hence should
1944probably be done in concert with the above.
1945
7ae38352
AC
1946--
1947
c906108c
SS
1948Add function arguments to gdb user defined functions.
1949
7ae38352
AC
1950--
1951
c906108c
SS
1952Add convenience variables that refer to exec file, symbol file,
1953selected frame source file, selected frame function, selected frame
1954line number, etc.
1955
7ae38352
AC
1956--
1957
c906108c
SS
1958Modify the handling of symbols grouped through BINCL/EINCL stabs to
1959allocate a partial symtab for each BINCL/EINCL grouping. This will
1960seriously decrease the size of inter-psymtab dependencies and hence
1961lessen the amount that needs to be read in when a new source file is
1962accessed.
1963
7ae38352 1964--
c906108c 1965
c906108c
SS
1966Add a command for searching memory, a la adb. It specifies size,
1967mask, value, start address. ADB searches until it finds it or hits
1968an error (or is interrupted).
1969
7ae38352
AC
1970--
1971
b83266a0
SS
1972Remove the range and type checking code and documentation, if not
1973going to implement.
1974
c906108c
SS
1975# Local Variables:
1976# mode: text
1977# End:
This page took 0.175085 seconds and 4 git commands to generate.