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