forked from gbenson/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog-2000
8204 lines (6216 loc) · 311 KB
/
ChangeLog-2000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2000-12-20 Michael Snyder <[email protected]>
* arch-utils.c (default_frame_address): New function. Default
implementation of frame_args_address and frame_locals_address.
* arch-utils.h (default_frame_address): Export.
* d10v-tdep.c (d10v_gdbarch_init): Use default_frame_address.
(d10v_frame_args_address, d10v_frame_locals_address): Delete.
* sh-tdep.c (sh_gdbarch_init): Use default_frame_address.
(sh_frame_args_address, sh_frame_locals_address): Delete.
* sparc-tdep.c (sparc_gdbarch_init): Use default_frame_address.
(sparc_frame_address): Delete.
2000-12-27 Mark Kettenis <[email protected]>
Fix debugging programs statically linked against the thread library.
* thread-db.c: Various comment fixes and additions.
Include "bfd.h", "symfile.h" and "objfiles.h".
(keep_thread_db): New variable.
(find_new_threads_callback): Remove prototype.
(thread_db_find_new_threads): New prototype.
(thread_db_push_target, thread_db_unpush_target): Remove
functions.
(deactivate_target): New function.
(thread_db_new_objfile): If OBJFILE == NULL, force deactivation of
target vector. Activate target vector directly instead of calling
thread_db_push_target. Set keep_thread_db if thread library is
detected in the main symbol file. Only enable thread event
reporting if there actually is a child process. Likewise for
detecting new threads, done by calling thread_db_find_new_threads
instead of iterating over the threads ourselves.
(thread_db_detach): Call deactivate_target instead of
thread_db_unpush_target.
(thread_db_wait): Bail out early if we're not debugging the
multi-threaded child process yet.
(thread_db_post_startup_inferior): New function.
(thread_db_mourn_inferior): Call deactivate_target instead of
thread_db_unpush_target.
(init_thread_db_ops): Add thread_db_post_startup_inferior to
thread_db_ops.
2000-12-22 Mark Kettenis <[email protected]>
* solib.c (solib_open): If path is relative, look for it
literally. This matches the behaviour of the GNU dynamic linker
more closely.
2000-12-22 Fernando Nasser <[email protected]>
* README: Suggest building in an empty directory.
2000-12-21 Mark Kettenis <[email protected]>
* i386-tdep.c: Add missing ')' in comment.
(i386_extract_return_value): Return directly after issuing the
warning and filling *VALBUF with zeroes if we cannot get at the
floating-point registers.
(i386_store_return_value): New function.
* config/i386/tm-i386.h (STORE_RETURN_VALUE): Simply call
i386_store_return_value.
Add prototype for i386_store_return_value.
* i386-linux-nat.c (store_fpxregs): Add code to detect support for
the PTRACE_GETFPXREGS request, and return zero if it's not.
2000-12-21 Fernando Nasser <[email protected]>
* TODO: Add pre-uiout code removal to 5.2 cleanups.
2000-12-20 Fernando Nasser <[email protected]>
* configure.in: Rename CONFIG_LOBS to CONFIG_LIB_OBS.
* Makefile.in: Ditto.
* configure: Regenerate.
2000-12-20 Fernando Nasser <[email protected]>
* command.h: Register date when it was deprecated.
* call-cmds.h: Ditto.
2000-12-20 Fernando Nasser <[email protected]>
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code
to be compiled. Defines UI_OUT.
(SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT.
(INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS.
* configure.in (UIOUT_CFLAGS): New configuration variable.
(--with-uiout): New configuration option. Causes uiout code to
be compiled, instead of the old *printf one.
* configure: Regenerate.
* top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT.
2000-12-20 Fernando Nasser <[email protected]>
* complaints.c (complain): Call warning_hook if defined, instead of
writting to gdb_stderr.
(clear_complaints): Do not write anything to gdb_stderr if warning_hook
is defined.
2000-12-19 Elena Zannoni <[email protected]>
* sh-tdep.c (sh_print_register): Don't leave regnum 0 out of the
non-pseudo-regs group.
2000-12-19 Elena Zannoni <[email protected]>
* sh-tdep.c (sh_gdbarch_init): Move setting of breakpoint_from_pc
to before switch statement.
2000-12-17 Elena Zannoni <[email protected]>
* sh-tdep.c (sh_gdbarch_init): Initialize do_registers_info.
* config/sh/tm-sh.h: Don't remove SR_REGNUM from enum.
(DO_REGISTERS_INFO): Remove macro. Use multiarch version instead.
Fri Dec 15 23:12:15 2000 Andrew Cagney <[email protected]>
* i386gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
(gnu_store_registers): Replace assert with gdb_assert.
2000-12-15 Elena Zannoni <[email protected]>
* sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): SR_REGNUM is
now part of gdbarch_tdep structure.
(sh_gdbarch_init): Initialize SR_REGNUM.
* config/sh/tm-sh.h (struct gdbarch_tdep): Add field SR_REGNUM.
* sh-tdep.c (sh_do_pseudo_register): Indent properly. Call
do_dr_register_info() only for DR registers.
(sh_sh4_register_name): Add comments with numbers.
(_initialize_sh_tdep): Move assignment to disassemble printing
function from here...
(sh_gdbarch_init):...to here. Move some more general settings to
before the architecture is recognized.
Fri Dec 15 23:27:56 2000 Andrew Cagney <[email protected]>
* remote.c (remote_fetch_registers): Replace #ifdef
REGISTER_BYTES_OK with REGISTER_BYTES_OK_P.
* gdbarch.sh (REGISTER_BYTES_OK): Multi-arch.
* gdbarch.h, gdbarch.c: Re-generate.
Fri Dec 15 22:58:59 2000 Andrew Cagney <[email protected]>
* serial.c (serial_printf): Call xvasprintf instead of vasprintf.
2000-12-14 Matthew Green <[email protected]>
* solib-svr4.c (solib_break_names): Add NetBSD's `_rtld_debug_state'.
2000-12-14 Kevin Buettner <[email protected]>
* defs.h, utils.c (xfree): New function.
* alpha-tdep.c, altos-xdep.c, arch-utils.c, arm-xdep.c,
ax-general.c, bcache.c, blockframe.c, breakpoint.c,
buildsym.c, c-typeprint.c, coffread.c, completer.c,
convex-tdep.c, convex-xdep.c, corefile.c, corelow.c,
cp-valprint.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
dbxread.c, dcache.c, defs.h, demangle.c, dstread.c,
dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
environ.c, event-loop.c, event-top.c, exec.c, f-lang.c,
gdb-events.c, gdbarch.c, gdbtypes.c, gnu-nat.c, h8500-tdep.c,
hp-psymtab-read.c, hppah-nat.c, infcmd.c, inflow.c, infrun.c,
infttrace.c, irix5-nat.c, jv-typeprint.c, kod-cisco.c, kod.c,
language.c, lin-lwp.c, lin-thread.c, linespec.c,
linux-thread.c, main.c, maint.c, mdebugread.c, minsyms.c,
mips-tdep.c, monitor.c, nlmread.c, objfiles.c, osfsolib.c,
p-valprint.c, pa64solib.c, parse.c, printcmd.c,
proc-service.c, procfs.c, pyr-xdep.c, remote-adapt.c,
remote-bug.c, remote-eb.c, remote-es.c, remote-mips.c,
remote-mm.c, remote-nindy.c, remote-rdi.c, remote-rdp.c,
remote-udi.c, remote-vx.c, remote.c, rs6000-nat.c, ser-pipe.c,
serial.c, solib-svr4.c, solib.c, somread.c, somsolib.c,
source.c, sparcl-tdep.c, stabsread.c, stack.c, sun386-nat.c,
symfile.c, symmisc.c, symtab.c, target.c, thread-db.c,
thread.c, top.c, tracepoint.c, ui-file.c, ui-out.c,
umax-xdep.c, utils.c, valops.c, valprint.c, values.c,
varobj.c, win32-nat.c, wince.c, xcoffread.c, cli/cli-cmds.c,
cli/cli-decode.c, cli/cli-script.c, cli/cli-setshow.c:
Replace occurrences of free() with xfree().
2000-12-14 J.T. Conklin <[email protected]>
* configure.tgt (hppa*-*-bsd*, hppa*-*-osf*, m68*-*-sunos4*,
rs6000-*-lynxos*, sparc-*-sunos4*): Add gdbserver to configdirs.
2000-12-13 Michael Chastain <[email protected]>
* MAINTAINERS: Add Michael Chastain to Write After Approval list.
2000-12-11 Fernando Nasser <[email protected]>
* Makefile.in (CONFIG_LOBS): New macro. Configured to the files
that must be added to the gdblib itself.
(DEPFILES): Use CONFIG_LOBS, not CONFIG_OBS.
(INIT_FILES): Include CONFIG_OBS.
(gdb$(EXEEXT)): Depend on CONFIG_OBS and link with it.
(kdb): Ditto.
* configure.in (CONFIG_LOBS): New variable. Object files that must
be added to gdblib for the specific configuration.
* configure: Regenerate.
2000-12-11 Michael Snyder <[email protected]>
* sh-tdep.c (sh_extract_struct_value_address): Protoize.
2000-12-11 Michael Snyder <[email protected]>
* blockframe.c (get_prev_frame): Add missing paren omitted in
last check-in.
2000-12-11 Fernando Nasser <[email protected]>
* Makefile.in (SUBDIR_GDBTK_OBS, SUBDIR_GDBTK_SRCS,
SUBDIR_GDBTK_DEPS, SUBDIR_GDBTK_INITS, SUBDIR_GDBTK_LDFLAGS,
SUBDIR_GDBTK_CFLAGS): New macros. For gdbtk subdir.
* configure.in: Fix typo. It is CONFIG_OBS not CONFIG_OJS.
Use the SUBDIR_GDBTK_* macros instead of hard coded file names.
* configure: Regenerate.
2000-12-11 Michael Snyder <[email protected]>
* blockframe.c (get_prev_frame): Zero all fields of prev by
default using memset (instead of one at a time).
2000-12-11 Michael Snyder <[email protected]>
* sh-tdep.c (sh_extract_struct_value_address): For consistancy,
change decl from "CORE_ADDR static" to "static CORE_ADDR".
2000-12-11 Fernando Nasser <[email protected]>
* configure.in: Fix typos. It is CONFIG_SRCS not CONFIG_SRS.
* configure: Regenerate.
2000-12-11 Fernando Nasser <[email protected]>
* configure.in: Fix a couple of typos in the handling of the
enable_gdbcli option. Make it check enableval for the result
of AC_ARG_ENABLE.
* configure: Regenerate.
2000-12-08 Michael Snyder <[email protected]>
* dwarf2read.c (DWARF2_REG_TO_REGNUM): New macro. Provide default
definition. Will be used to translate between the compiler's
register numbering and GDB's (for register variables etc).
(new_symbol): Use DWARF2_REG_TO_REGNUM to translate register ids.
* alpha-tdep.c: Fix typo in comment.
* dbxread.c: Fix typo in comment.
* fr30-tdep.c: Fix typo: newline missing after comment.
* mcore-tdep.c: Fix typo in comment.
2000-12-07 J.T. Conklin <[email protected]>
* gdbserver/low-hppabsd.c (buf2, environ, quit, quit_flag):
Removed unused variables and declarations.
* gdbserver/low-linux.c (buf2, environ, query, quit, quit_flag):
Likewise.
* gdbserver/low-nbsd.c (buf2, environ, quit, quit_flag):
Likewise.
* gdbserver/low-sparc.c (buf2, environ, query, quit, quit_flag):
Likewise.
* gdbserver/low-sun.c (buf2, environ, query, quit, quit_flag):
Likewise.
* gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
gdbserver/low-nbsd.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
(create_inferior): Update comment.
* gdbserver/low-nbsd.c (initialize_arch, fetch_inferior_registers,
store_inferior_registers): Provide implementations for the m68k
and ns32k.
* config/m68k/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o
* config/ns32k/nbsd.mt (GDBSERVER_DEPFILES): Likewise.
* configure.tgt (m68*-*-netbsd*, ns32k-*-netbsd*): Add gdbserver
to configdirs.
2000-12-07 Elena Zannoni <[email protected]>
* config/sh/tm-sh.h (struct gdbarch_tdep): Rename fields
{FP15,DR14,FV12}_REGNUM to {FP,DR,FV}_LAST_REGNUM.
* sh-tdep.c (sh_sh3e_register_virtual_type,
sh_sh4_register_virtual_type, sh_do_registers_info,
sh_gdbarch_init, sh_sh4_register_byte, sh_sh4_register_raw_size,
sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
sh_store_pseudo_register, sh_do_pseudo_register): Ditto.
* sh-tdep.c (sh_gdbarch_init): Use a function pointer to set the
disassembly print function.
(_initialize_sh_tdep): Initialize tm_print_insn using the function
pointer.
2000-12-07 Mark Kettenis <[email protected]>
From Richard Henderson <[email protected]>:
* alpha-nat.c (supply_gregset, fill_gregset): Use gdb_gregset_t.
(supply_fpregset, fill_fpregset): Use gdb_fpregset_t.
2000-12-06 Fernando Nasser <[email protected]>
* cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying
that is not currently used.
2000-12-06 Fernando Nasser <[email protected]>
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
2000-12-06 Fernando Nasser <[email protected]>
* cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine
which was not being used for quite some time.
2000-12-05 Mark Kettenis <[email protected]>
* gdb-stabs.h (SECT_OFF_MAX): Increase to 64.
* symfile.h (MAX_SECTIONS): Increase to 64.
2000-12-05 Elena Zannoni <[email protected]>
* config/sh/tm-sh.h (struct gdbarch_tdep): Get rid of
DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM, they are not used
anywhere.
* sh-tdep.c (sh_gdbarch_init): Don't initialize
DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM.
2000-12-04 Michael Snyder <[email protected]>
* utils.c (internal_verror): Fix typo in error msg.
2000-12-03 Mark Kettenis <[email protected]>
* Makefile.in (symfile.o): Add gdb-stabs.h to dependencies list.
2000-12-04 Kevin Buettner <[email protected]>
* elfread.c (record_minimal_symbol_and_info): Don't guess
at the section index; instead just always use the bfd index.
(elf_symtab_read): Handle weak symbols appearing in data
sections.
Mon Dec 4 14:36:39 2000 Andrew Cagney <[email protected]>
* gdbarch.sh (STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM):
Add.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (no_op_reg_to_regnum): New function.
* arch-utils.h (no_op_reg_to_regnum): Declare.
* dwarfread.c (DWARF_REG_TO_REGNUM), coffread.c
(SDB_REG_TO_REGNUM), stabsread.h (STAB_REG_TO_REGNUM),
mdebugread.c (ECOFF_REG_TO_REGNUM): Delete macro.
* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM, STAB_REG_TO_REGNUM):
Delete. Moved to mips-tdep.c.
* mips-tdep.c (mips_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
New functions.
(mips_gdbarch_init): Add ``mips_ecoff_reg_to_regnum'' and
``mips_stab_reg_to_regnum'' to multi-arch vector.
2000-12-03 Stephane Carrez <[email protected]>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup.
(gdbarch_tdep): Likewise.
2000-12-03 Stephane Carrez <[email protected]>
* m68hc11-tdep.c (SOFT_D1_REGNUM): Soft registers start at 14.
(m68hc11_register_names): Add null for register 13.
2000-12-03 Stephane Carrez <[email protected]>
* m68hc11-tdep.c (m68hc11_frame_args_address): Fix args address
computation.
(m68hc11_frame_init_saved_regs): Frame pointer is saved only if
the symbol exist.
(m68hc11_analyze_instruction): New function.
(m6811_prologue, m6812_prologue): New prologue description tables.
(m68hc11_guess_from_prologue): Use the above.
(m68hc11_gdbarch_init): Setup gdbarch_tdep for the prologue
descriptions.
Sun Dec 3 02:28:26 2000 Andrew Cagney <[email protected]>
* ser-pipe.c (pipe_open): Only use vfork when available.
* fork-child.c (fork_inferior): Fix #ifdef HAVE_VFORK test.
(clone_and_follow_inferior): Ditto.
* configure.in (AC_CHECK_FUNCS): Check for vfork.
* configure, config.in: Regenerate.
Sun Dec 3 01:54:49 2000 Andrew Cagney <[email protected]>
* ser-unix.c (wait_for): Initialize the FD_SET before every select
call.
(ser_unix_wait_for): Ditto.
Sun Dec 3 01:01:02 2000 Andrew Cagney <[email protected]>
* Makefile.in (varobj.o): Delete special .c.o rule supressing
-Werror flag.
Sun Dec 3 00:29:31 2000 Andrew Cagney <[email protected]>
* m32r-rom.c (m32r_load_section): Update to match
bfd_map_over_sections's ``func'' arg.
Thu Nov 30 01:24:37 2000 Andrew Cagney <[email protected]>
* mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
``fmt''. Make ``offset'' a CORE_ADDR.
(print_unpack): Delete.
(extended_offset): Construct and return a CORE_ADDR.
(fetch_mips_16): Return an int. Don't assume short is 16 bits.
(unpack_mips16): Rewrite. Add ``extension'' parameter instead of
incorrectly guessing if the instruction had an extension.
(map16): Delete array.
(mips16_op): Delete macro.
(extended_mips16_next_pc): Rewrite of old mips16_next_pc function.
When an extended instruction do a recursive call.
(mips16_next_pc): Call extended_mips16_next_pc.
(mips_next_pc): Cleanup.
Sat Dec 2 10:40:16 2000 Andrew Cagney <[email protected]>
* ser-e7kpc.c (e7000pc_setstopbits): New function.
(e7000pc_ops): Add e7000pc_setstopbits.
* remote-e7000.c (e7000_detach, e7000_resume,
e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info,
e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill):
Update function signature to match target vector.
* h8300-tdep.c (h8300_command, h8300h_command, h8300s_command):
h8500-tdep.c (small_command, big_command, medium_command,
compact_command): Update function signature to match add_cmd.
2000-12-01 Fernando Nasser <[email protected]>
* p-exp.y: Define strncasecmp as strnicmp for MSVC.
(yylex): Use strncasecmp, not strnicmp.
2000-12-01 Fernando Nasser <[email protected]>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-10-27 Pierre Muller <[email protected]>
* p-exp.y (yylex): avoid problem with symbol name
starting as a operator name.
2000-11-30 Fernando Nasser <[email protected]>
* linespec.h: New file. Declarations for linespec.c.
* linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c,
symtab.c, tracepoint.c: Include the above.
* completer.c: New file. Line completion stuff for GDB.
(get_gdb_completer_word_break_characters,
get_gdb_completer_quote_characters): New functions. Accessors for
useful completer internal data.
(filename_completer, line_completion_function, skip_quoted): Moved
here from top.c.
* completer.h: New file. Declarations for the above.
* linespec.c (decode_line_1): Use
get_gdb_completer_word_break_characters and
get_gdb_completer_quote_characters.
* top.c: Include completer.h.
(filename_completer, line_completion_function, skip_quoted):
Moved to completer.c.
* corefile.c, exec.c, source.c, symfile.c, linespec.c: Include
completer.h.
* Makefile.in (SFILES): Add completer.c.
(COMMON_OBS): Add completer.o.
(completer.o): New target.
(linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o,
symtab.o, tracepoint.o): Add linespec.h to dependencies list.
(corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h
to dependencies list.
Thu Nov 30 13:19:16 2000 Andrew Cagney <[email protected]>
* gdbarch.c: Regenerate.
Thu Nov 30 01:14:21 2000 Andrew Cagney <[email protected]>
* varobj.c (varobj_create): Initialize ``old_fi''.
(varobj_update): Initialize ``templist''.
* kod-cisco.c (cisco_kod_request): Simplify allocation of
``sync_ids'' eliminating uninitialized variable.
2000-11-28 Mark Salter <[email protected]>
* MAINTAINERS: Add Mark Salter to Write After Approval list.
Tue Nov 28 12:24:43 2000 Christopher Faylor <[email protected]>
* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.
Mon Nov 27 11:45:52 2000 Andrew Cagney <[email protected]>
* remote.c (remote_write_bytes): Add default case to switch
initializing ``todo''. Ditto for ``nr_bytes''.
* top.c (catch_errors): Always initialize ``val''.
* solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size
returning an unknown size.
* gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''.
* breakpoint.c (break_at_finish_at_depth_command_1): Initialise
extra_args to NULL.
(break_at_finish_command_1): Ditto.
Mon Nov 27 11:27:06 2000 Andrew Cagney <[email protected]>
* TODO: Add GFDL updates to 5.1 release criteria.
2000-11-26 Nick Clifton <[email protected]>
* configure.tgt (xscale-*): Add.
* configure.host (xscale-*): Add.
2000-11-24 Stephane Carrez <[email protected]>
* m68hc11-tdep.c (gdb_print_insn_m68hc11): New function.
(_initialize_m68hc11_tdep): Install it. Register bfd_arch_m68hc12.
2000-11-24 Stephane Carrez <[email protected]>
* m68hc11-tdep.c (gdbarch_tdep): Move stack_correction global to here.
(STACK_CORRECTION): Get stack correction using gdbarch_tdep.
(m68hc11_saved_pc_after_call): Use STACK_CORRECTION.
(m68hc11_frame_chain): Likewise.
(m68hc11_frame_init_saved_regs): Likewise.
(m68hc11_init_extra_frame_info): Likewise.
(m68hc11_push_arguments): Likewise.
(m68hc11_push_arguments): Likewise.
(m68hc11_store_struct_return): Likewise.
(m68hc11_push_return_address): Likewise.
(m68hc11_gdbarch_init): Setup stack_correction according to arch.
Mon Nov 20 13:59:29 2000 Andrew Cagney <[email protected]>
* configure.in: Add support for configure option
--enable-gdb-build-warnings. Mention need to update doco.
* configure: Regenerate.
2000-11-21 Peter Schauer <[email protected]>
* target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.
* target.c (target_signal_from_host, do_target_signal_to_host):
Handle TARGET_SIGNAL_REALTIME_64.
2000-11-21 Kevin Buettner <[email protected]>
* solib.c (solib_open): Handle the case where
solib_absolute_prefix is NULL.
2000-11-20 Michael Snyder <[email protected]>
* solist.h: Declare new function solib_open.
* solib.c (solib_open): New function. Abstracts some of the
code from solib_map_sections, for finding the binary solib file.
(solib_map_sections): Call solib_open.
* solib-svr4.c (enable_break): Call solib_open.
2000-11-20 J.T. Conklin <[email protected]>
* gdbserver/low-nbsd.c (fetch_inferior_registers,
store_inferior_registers): Support older NetBSD/powerpc systems
from before fp reg support was added. Adapt to register number
changes caused when powerpc target was multi-arched.
2000-11-20 H.J. Lu <[email protected]>
* ia64-tdep.c (gdbarch_tdep): Change reference from
ELFOSABI_MONTEREY to ELFOSABI_AIX.
2000-11-20 Peter Schauer <[email protected]>
* c-valprint.c (print_function_pointer_address): New function
to automatically dereference a function pointer for printing
if necessary.
(c_val_print): Use print_function_pointer_address when printing
function pointer addresses.
2000-11-20 J.T. Conklin <[email protected]>
* gdbserver/low-nbsd.c: Fix typos.
2000-11-20 Jeffrey A Law ([email protected])
* pa64solib.c (add_to_solib): Pass TARGET to pa64_solib_load_symbols.
Mon Nov 20 23:21:53 2000 Andrew Cagney <[email protected]>
* MAINTAINERS: Peter Schauer and Kevin Buettner maintain AIX. Jim
Blandy, Kevin Buettner and Peter Schauer share shared libs.
From Nick Duffek:
* MAINTAINERS: Share responsibility for
Solaris/x86 between co-maintainers.
* MAINTAINERS: Add linespec as a separate component.
Mon Nov 20 14:29:39 2000 Andrew Cagney <[email protected]>
* command.h (error_no_arg): Add noreturn attribute to declaration.
Fri Nov 17 16:07:23 2000 Andrew Cagney <[email protected]>
* utils.c (xvasprintf, xasprintf): New functions.
* defs.h (xvasprintf, xasprintf): Add declarations.
* remote.c (add_packet_config_cmd): Use function xasprintf instead
of asprintf.
* utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Use
function xvasprintf instead of vasprintf.
* TODO (xasprintf): Update.
Mon Nov 20 12:22:32 2000 Andrew Cagney <[email protected]>
* TODO: Mention ``extern'' and ``STREQ'' cleanups.
2000-11-19 Jim Blandy <[email protected]>
* symtab.c (no_symtab_msg): Remove definition.
(sources_info): Replace use of no_symtab_msg with the string
itself.
* linespec.c (no_symtab_msg): Remove declaration.
(decode_line_1): Replace uses of no_symtab_msg with the string
itself.
2000-11-17 Kevin Buettner <[email protected]>
* rs6000-tdep.c (refine_prologue_limit): New function.
(skip_prologue): When zero, attempt to obtain value for
lim_pc by calling refine_prologue_limit(). Also, fix
fencepost error regarding the limit in the loop.
From Peter Schauer:
* rs6000-tdep.c (skip_prologue): Handle optimizer code motions into
the prologue by continuing the prologue search, if we have no valid
frame yet or if the return address is not yet saved in the frame.
2000-11-17 Kevin Buettner <[email protected]>
* wrapper.c (gdb_value_assign, wrap_value_assign): Protoize.
2000-11-16 Christopher Faylor <[email protected]>
* thread.c (thread_apply_all_command): Save the command before
executing it because it may be modified. Restore the saved command so
that the same command is executed on next thread.
(thread_apply_command): Same correction.
2000-11-16 Michael Snyder <[email protected]>
* regcache.c (read_register_bytes): Failing to set register_valid
is not necessarily an error, if the register is a pseudo-register.
Some pseudo-registers are never marked as valid, so that they will
be read anew every time. Determining if a pseudo-register is valid
(or should be marked invalid) may be difficult, whereas just
recomputing it may be cheap.
Thu Nov 16 09:47:57 2000 David Taylor <[email protected]>
* tracepoint.c (trace_find_tracepoint_command): Replace call to
parse_and_eval_address with a call to parse_and_eval_long as
we are evaluating an integer, not an address.
* top.c (show_commands): Ditto.
2000-11-15 Kevin Buettner <[email protected]>
* xcoffread.c (arrange_linetable, xcoff_initial_scan): Protoize.
Wed Nov 15 09:31:39 2000 David Taylor <[email protected]>
* utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,
not TARGET_PTR_BIT, since we are dealing with addresses, not
pointers.
2000-11-14 Daniel Berlin <[email protected]>
From Kenneth Block <[email protected]>
* demangle.c : Use libibery list of demanglers instead of out of
date local copy.
Wed Nov 15 00:29:46 2000 Andrew Cagney <[email protected]>
From Klaus Espenlaub <[email protected]>
* remote.c (_initialize_remote): Call
show_memory_write_packet_size when ``show remotewritesize''
command.
2000-11-13 Eli Zaretskii <[email protected]>
* config/djgpp/config.sed: Fix tweaking "VPATH=.:foo", and handle
the gettext's posrcprefix correctly with drive letters.
2000-11-10 Jim Blandy <[email protected]>
* stabsread.c (read_range_type): Properly construct complex
type nodes.
2000-11-10 Fernando Nasser <[email protected]>
* symtab.c (decode_line_1, total_number_of_methods, find_methods,
build_command_line_spec, find_toplevel_char, decode_line_2):
Move to linespec.c.
* linespec.c: New file. Routines that handle linespecs, formerly
in symtab.c.
* symtab.h: Export find_line_symtab and find_function_start_sal.
* Makefile.in (SFILES): Add linespec.c.
(COMMON_OBS): Add linespec.o.
(linespec.o): New target.
2000-11-10 Christopher Faylor <[email protected]>
* inferior.h (step_over_calls_kind): New enum to clarify values in
step_over_calls.
* infcmd.c (step_over_calls): Change definition.
(step_1): Use new enum values in relation to step_over_calls.
(step_once): Ditto.
(until_next_command): Ditto.
* infrun.c (clear_proceed_status): Ditto.
(handle_inferior_event): Ditto.
2000-11-10 Stephane Carrez <[email protected]>
* inferior.h (step_stop_if_no_debug): New variable.
* infrun.c (step_stop_if_no_debug): Declare.
(handle_inferior_event): Stop the step command if we entered a function
without line info.
(_initialize_infrun): New command 'set step-mode' to control the step
command.
* infcmd.c (step_once): Switch to stepi mode if there is no line info
(and switching is enabled).
2000-11-10 J.T. Conklin <[email protected]>
* target.c (do_xfer_memory): Only perform a single memory transfer
instead of iterating to tranfer the entire region. Higher layers
are expected to call this function multiple times for partial
transfers.
(target_xfer_memory_partial): Remove unused local variables.
2000-11-10 Nick Duffek <[email protected]>
* target.c (target_xfer_memory_partial): Return bytes transferred
instead of 0.
2000-11-09 Kevin Buettner <[email protected]>
* values.c (value_being_returned, using_struct_return): Protoize.
* varobj.c (child_exists, cplus_class_num_children): Protoize.
2000-11-09 Kevin Buettner <[email protected]>
Changes based on a patch from Ulrich Drepper:
* solib-svr4.c (svr4_relocate_main_executable): New function.
(svr4_solib_create_inferior_hook): Call
svr4_relocate_main_executable.
2000-11-09 J.T. Conklin <[email protected]>
* config/i386/nbsd.mh: Remove solib.o, solib-svr4.o from NATDEPFILES.
* config/i386/nbsdelf.mh: Likewise.
* config/m68k/nbsd.mh: Likewise.
* config/ns32k/nbsd.mh: Likewise.
* config/powerpc/nbsd.mh: Likewise.
* config/sparc/nbsd.mh: Likewise.
* config/sparc/nbsdelf.mh: Likewise.
* config/i386/nbsd.mt: Add solib.o, solib-svr4.o to TDEPFILES.
* config/i386/nbsdelf.mt: Likewise.
* config/m68k/nbsd.mt: Likewise.
* config/ns32k/nbsd.mt: Likewise.
* config/powerpc/nbsd.mt: Likewise.
* config/sparc/nbsd.mt: Likewise.
2000-11-09 Peter Schauer <[email protected]>
Add auto-solib-add support for AIX, remove obsolete and unused
SOLIB_SYMBOLS_MANUAL code, cleanup of AIX shared library handling code.
* rs6000-nat.c (vmap_symtab): Do not try to modify offsets
if symbols are not yet loaded.
(vmap_add_symbols): New function to add symbols for a vmap entry.
(add_vmap): Turn errors into warnings, return NULL vmap upon
failure. Add symbols via vmap_add_symbols only if requested.
(xcoff_relocate_core): Allow debugging of core files without an
executable file. Handle NULL returns from add_vmap gracefully.
* xcoffsolib.c (solib_add): Remove, no longer needed.
(solib_info): Do not check for new shared libraries if there is no
inferior process.
(sharedlibrary_command): Made static.
Do not check for new shared libraries if there is no inferior process.
Add symbols for requested shared libraries via vmap_add_symbols.
(_initialize_solib): Add `set auto-solib-add' command.
* xcoffsolib.h (vmap_add_symbols): Add prototype declaration.
* config/rs6000/tm-rs6000.h (PC_LOAD_SEGMENT): Move from here ...
* config/rs6000/nm-rs6000.h: ... to here, this is an AIX native
feature.
* config/powerpc/tm-macos.h, config/powerpc/tm-ppc-eabi.h,
config/powerpc/tm-ppc-nw.h, config/rs6000/tm-rs6000ly.h:
Remove #undef PC_LOAD_SEGMENT.
* config/powerpc/aix.mt, config/rs6000/aix4.mt, config/rs6000/rs6000.mt
(TDEPFILES): Move xcoffsolib.o from here ...
* config/powerpc/aix.mh, config/rs6000/aix4.mh, config/rs6000/rs6000.mh
(NATDEPFILES): ... to here, xcoffsolib.o contains AIX native code
only.
* rs6000-tdep.c: Remove #include xcoffsolib.h, no longer needed.
* xcoffsolib.h (xcoff_relocate_symtab_hook): Remove declaration.
* rs6000-nat.c (_initialize_core_rs6000): Remove setting of
xcoff_relocate_symtab_hook, no longer needed.
* xcoffsolib.c (solib_info, sharedlibrary_command): Remove
xcoff_relocate_symtab_hook indirection, call xcoff_relocate_symtab
directly, as xcoffsolib.c is now compiled in native AIX configurations
only.
* Makefile.in: Update dependencies for rs6000-tdep.o, rs6000-nat.o
and xcoffsolib.o.
Thu Nov 9 17:16:29 2000 Andrew Cagney <[email protected]>
* MAINTAINERS: Specify the vax-dec-vms5.5 target tupple.
* vax-tdep.c: Include "gdbcore.h", "frame.h" and "value.h".
(vax_print_insn): Change ``d'' to a const char pointer.
2000-11-08 Michael Snyder <[email protected]>
* gdbarch.sh: Spelling correction: registrary -> registry.
* gdbarch.c: Ditto.
Wed Nov 8 23:08:48 2000 Andrew Cagney <[email protected]>
* m68k-tdep.c (m68k_get_longjmp_target): Work around targets that
don't define JB_PC or JB_ELEMENT_SIZE.
Wed Nov 8 22:46:43 2000 Andrew Cagney <[email protected]>
* m68k-tdep.c (m68k_get_longjmp_target): Rename function
get_longjmp_target. Remove wrapping #ifdef GET_LONGJMP_TARGET.
* config/m68k/tm-m68k.h (m68k_get_longjmp_target): Add function
declaration.
* config/m68k/tm-vx68.h, config/m68k/tm-sun3.h,
config/m68k/tm-m68kv4.h, config/m68k/tm-linux.h,
config/m68k/tm-es1800.h, config/m68k/tm-cisco.h: Update definition
of GET_LONGJMP_TARGET. Delete get_longjmp_target function
declaratation.
Wed Nov 8 15:32:23 2000 Andrew Cagney <[email protected]>
* gdbserver/configure.in (files): Don't link nm-empty.h when a
non-native target.
* gdbserver/configure: Regenerate.
2000-11-07 Kevin Buettner <[email protected]>
* valops.c (typecmp): Protoize.
* valprint.c (strcat_longest): Protoize.
2000-11-07 Kevin Buettner <[email protected]>
* ia64-tdep.c (native_find_global_pointer): New global variable.
(struct gdbarch_tdep): Add member find_global_pointer.
(ia64_gdbarch_init): Initialize find_global_pointer member. Also,
tell the gdbarch machinery that we have floating point registers.
(FIND_GLOBAL_POINTER): New macro.
(generic_elf_find_global_pointer): Renamed from find_global_pointer.
(find_func_descr, ia64_push_return_address): Call
FIND_GLOBAL_POINTER instead of find_global_pointer.
(process_note_abi_tag_sections): Enable code previously disabled
by #if 0.
2000-11-07 Daniel Berlin <[email protected]>
* dwarf2read.c: Revert June 5th change for caching of types,
as per Jim Blandy's request.
2000-11-06 Fernando Nasser <[email protected]>
* wrapper.c (gdb_value_assign): New function. Longjump-free
version of value_assign.
(wrap_value_assign): New function. Wrapper for value_assign.
* wrapper.h: Add declaration for the above.
* varobj.c (varobj_set_value): Use gdb_value_assign, not
value_assign which can longjump. Do not change varobj value if
assign fails.
2000-11-06 Fernando Nasser <[email protected]>
From Steven Johnson <[email protected]>:
This set of changes add "hookpost-" as an expansion on the original
hooking of commands to GDB. A Hook may now be run "AFTER" execution of
a command as well as before.
* command.h (struct cmd_list_element): Changed elements hook and hookee
to hook_pre and hookee_pre respectively. Added hook_post and hookee_post
for the post hook command operation. Added hook_in so that an executing
hook can be flagged to prevent recursion.
* command.c (add_cmd): Changed initilization of cmd_list_element to
reflect above changes.
(delete_cmd): Remove both pre and post hooks.
(help_cmd): Notify that the command has pre and/or post hooks.
* infrun.c (normal_stop): Change references to hook_pre from hook.
* top.c (execute_command): Run both pre and post hooks.
(define_command): Allow definition of both pre and post hooks.
The definition of pre-hooks is done as before, with the "hook-"
prefix for backward compatibility.
2000-11-06 Peter Schauer <[email protected]>
* stack.c (return_command): Pop dummy frame if we just returned from
a stop in a call dummy.
2000-11-05 Kevin Buettner <[email protected]>
* v850-tdep.c (handle_prepare, handle_pushm): Remove extraneous
blank line after function declarator.
* v850ice.c (v850ice_xfer_memory, do_gdb): Protoize.
2000-11-03 Kevin Buettner <[email protected]>
* utils.c (add_continuation, add_intermediate_continuation,
printchar): Protoize.
2000-11-03 Kevin Buettner <[email protected]>
* dwarf2read.c (new_symbol): Relocate address of symbol by the