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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
|
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
Fix part of PR gdb/267.
* linespec.c (find_methods): Handle constructors specially for now.
2002-02-14 Corinna Vinschen <vinschen@redhat.com>
* arm-tdep.c (arm_push_arguments): Eliminate special float type
handling.
* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
standard_coerce_float_to_double().
2002-02-14 Christopher Faylor <cgf@redhat.com>
* config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
GDBINIT_FILENAME.
2002-02-14 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Don't call
find_variant_by_name, because it confuses the multiarch
framework. Return NULL if there isn't an architecture with the
user supplied name, instead of forcing a different one without
recording the change with the multiarch machinery.
(find_variant_by_name): Delete.
2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2002-02-13 Martin M. Hunt <hunt@redhat.com>
* stack.c (print_frame_info_base): When calling
print_frame_info_listing_hook, set current_source_symtab.
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
and remove unused $(INCLUDE_DIR).
Add regcache.c to OBS.
Add generated register protocol files to clean target.
Update dependencies for new objects, obsolete old target code.
* gdbserver/linux-low.c: Remove all platform-specific code to
new files. Remove various dead code. Update to use regcache
functionality.
* gdbserver/remote-utils.c (fromhex): Add return statement
to quiet warning.
(putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
constant.
(input_interrupt): Add integer parameter to match prototype
of a signal handler.
(outreg): Use register_data ().
(prepare_resume_reply): Use gdbserver_expedite_regs.
* gdbserver/server.c (main): Dynamically allocate own_buf because
PBUFSIZ is no longer constant. Use registers_to_string () and
registers_from_string ().
* gdbserver/server.h: No longer include "defs.h". Add prototypes
for error (), fatal (), and warning (). Update definition of
PBUFSIZ to use regcache functionality. Add include guard.
* gdbserver/utils.c (fatal): Add missing ``const''.
(warning): New function.
* regformats/regdat.sh: Include "regcache.h" in generated files.
Provide init_registers () function.
* regformats/regdef.h: Add prototype for set_register_cache ().
Add include guard.
* gdbserver/linux-arm-low.c: New file.
* gdbserver/linux-i386-low.c: New file.
* gdbserver/linux-ia64-low.c: New file.
* gdbserver/linux-m68k-low.c: New file.
* gdbserver/linux-mips-low.c: New file.
* gdbserver/linux-ppc-low.c: New file.
* gdbserver/linux-sh-low.c: New file.
* gdbserver/regcache.c: New file.
* gdbserver/regcache.h: New file.
* gdbserver/low-linux.c: Removed obsolete file.
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* config/arm/linux.mt: Update GDBSERVER_DEPFILES.
* config/i386/linux.mt: Likewise.
* config/ia64/linux.mt: Likewise.
* config/m68k/linux.mh: Likewise.
* config/powerpc/linux.mh: Likewise.
* config/mips/linux.mt: Likewise.
* config/sh/linux.mt: Add GDBSERVER_DEPFILES.
* config/i386/i386lynx.mh: Mark gdbserver variables
as (currently) obsolete for this target.
* config/i386/nbsd.mt: Likewise.
* config/i386/nbsdelf.mt: Likewise.
* config/m32r/m32r.mt: Likewise.
* config/m68k/m68klynx.mh: Likewise.
* config/m68k/nbsd.mt: Likewise.
* config/m68k/sun3os4.mh: Likewise.
* config/mips/vr5000.mt: Likewise.
* config/ns32k/nbsd.mt: Likewise.
* config/pa/hppabsd.mh: Likewise.
* config/pa/hppaosf.mh: Likewise.
* config/powerpc/nbsd.mt: Likewise.
* config/rs6000/rs6000lynx.mh: Likewise.
* config/s390/s390.mt: Likewise.
* config/s390/s390x.mt: Likewise.
* config/sparc/sparclynx.mh: Likewise.
* config/sparc/sun4os4.mh: Likewise.
* config/i386/x86-64linux.mt: Likewise.
* config/sparc/linux.mh: Likewise.
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* configure.tgt: Configure gdbserver only for known working
targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
* configure.in: Check ${build_gdbserver}. Put gdbserver/ into
SUBDIRS if it is configured. Update comment for ${nativefile}.
* configure: Regenerated.
2002-02-13 Michael Snyder <msnyder@redhat.com>
* gcore.c (gcore_command): Use gcore_default_target instead of NULL.
(default_gcore_mach): Just return 0, work around a problem in bfd.
(default_gcore_target): OK to return NULL if exec_bfd is null.
(make_mem_sec): Use a cast, avoid a warning.
* procfs.c (find_memory_regions_callback): Use a cast instead of
calling host_pointer_to_address (which complains if
sizeof (host pointer) != sizeof (target pointer)).
(procfs_make_note_section): Avoid overflow in psargs string.
* procfs.c (procfs_make_note_section): Make the default
implementation return an error.
2002-02-13 Rodney Brown <rbrown64@csc.com.au>
* procfs.c (procfs_make_note_section): Provide a default definition
(for alpha-dec-osf4.0f). Fix typos.
2002-02-13 Elena Zannoni <ezannoni@redhat.com>
* linux-proc.c: Add include of regcache.h.
* Makefile.in (linux-proc.o): Add dependency on regcache.h.
2002-02-13 Andrew Cagney <ac131313@redhat.com>
From 2002-01-18 Greg McGary <greg@mcgary.org>:
* memattr.c (create_mem_region): Disallow useless empty region.
Regions are half-open intervals, so allow [A..B) [B..C) as
non-overlapping.
2002-02-13 Michael Chastain <mec@shout.net>
* defs.h: Kill CONST_PTR.
* c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
* c-lang.c (c_builtin_types): Likewise.
* ch-lang.c (ch_builtin_types): Likewise.
* f-lang.c (f_builtin_types): Likewise.
* language.c (unknown_builtin_types): Likewise.
* m2-lang.c (m2_builtin_types): Likewise.
* p-lang.c (pascal_builtin_types): Likewise.
* scm-lang.c (c_builtin_types): Likewise.
2002-02-13 Keith Seitz <keiths@redhat.com>
* arm-tdep.h (arm_get_next_pc): Add declaration.
2002-02-13 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_use_struct_convention): Make static. Move to be
with other related struct-returning functions.
(arm_extract_struct_value_address): New function.
(arm_gdbarch_init): Initialize the above in multi-arch vector. Also
initialize float_format, double_format and long_double_format as
appropriate to the endianness of the target.
* config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
(arm_use_struct_convention): Delete declaration.
(USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2002-02-13 Keith Seitz <keiths@redhat.com>
* defs.h (core_addr_to_string_nz): New function.
2002-02-13 Mark Kettenis <kettenis@gnu.org>
Apply missing bits of 2002-01-15 patch.
* i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
(fill_fpregset): Use i387_fill_fsave.
2002-02-12 Keith Seitz <keiths@redhat.com>
* utils.c (core_addr_to_string): Use phex instead of phex_nz.
(core_addr_to_string_nz): New function.
2002-02-11 Richard Earnshaw <rearnsha@arm.com>
* arm-linux-nat.c: Really include arm-tdep.h.
* config/arm/tm-linux.h (struct type, struct value): Declare.
2002-02-11 Michael Snyder <msnyder@redhat.com>
* procfs.c: Include elf-bfd.h (for elfcore_write functions).
(gcore section): Ifdef for Solaris and Unixware only.
(procfs_do_thread_registers): Unixware needs one lwpstatus
per thread (not one prstatus or pstatus).
(procfs_make_note_section): Iterate only over kernel threads (lwps),
not over all gdb threads. For unixware, call elfcore_write_pstatus
once before iterating over threads.
2002-02-11 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.h: New file.
* arm-tdep.c: Include arm-tdep.h.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Make static.
(arm_software_single_step): Similarly. Fix types in declaration.
(arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
(arm_store_return_value, arm_store_struct_return): New functions.
(arm_gdbarch_init): Register the above functions. Also register
call_dummy_start_offset, sizeof_call_dummy_words,
function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
max_register_virtual_size, register_size. Set up
prologue_cache.saved_regs here, rather than ...
(_initialize_arm_tdep): ... here.
* config/arm/tm-arm.h (struct type, struct value): Delete forward
declarations.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Delete declarations.
(SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
(SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
(DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
(REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
(MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
(SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
(SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
(ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
(arm_get_next_pc): No-longer static -- these are needed by the RDI
interface.
* arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
* remote-rdi.c remote-rdp.c: Likewise.
* Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
(armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
* config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
definition.
* arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
(ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
(ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
from non-ARM_ prefixed definitions.
* arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
all uses of above.
* remote-rdi.c remote-rdp.c: Likewise.
* arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2002-02-11 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_frameless_function_invocation)
(arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
(arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
(arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
(arm_pop_frame, arm_get_next_pc): Make static.
(arm_gdbarch_init): Register above in gdbarch structure.
(arm_read_fp): Renamed from arm_target_read_fp.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
* config/arm/tm-arm.h (arm_frameless_function_invocation)
(arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
(arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
(arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
(arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
(arm_pc_is_thumb_dummy): Delete declarations.
(INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
(FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
(FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
(FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* symtab.c (compare_search_syms): New function.
(sort_search_symbols): New function.
(search_symbols): Sort symbols after searching rather than
before.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* NEWS: Linux -> GNU/Linux.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: For for level one methods, disallow a definition
when partially multi-arched. Add comments explaining rationale.
* gdbarch.h: Re-generate.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
multi-arch partial.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
field. Use diff -u.
* gdbarch.c: Re-generate.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
* gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
partial.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
multi-arch partial.
(PUSH_ARGUMENTS): Switch to using predefault.
* gdbarch.c: Regenerate.
2002-02-10 Andrew Cagney <ac131313@redhat.com>
* valops.c (PUSH_ARGUMENTS): Delete definition.
* gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
partial. Default to default_push_arguments.
* gdbarch.h, gdbarch.c: Regenerate.
2002-02-09 Andrew Cagney <ac131313@redhat.com>
* defs.h (throw_exception): Rename return_to_top_level. Update
comments.
* utils.c (error_stream, internal_verror, quit): Ditto.
* top.c (throw_exception, catcher): Ditto.
* sparclet-rom.c (sparclet_load): Ditto.
* remote.c (interrupt_query, minitelnet): Ditto.
* remote-sds.c (interrupt_query): Ditto.
* remote-mips.c (mips_error, mips_kill): Ditto.
* ocd.c (interrupt_query): Ditto.
* monitor.c (monitor_interrupt_query): Ditto.
* m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
* target.h: Update comment.
* m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2002-02-09 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
default_double_format.
* gdbarch.h, gdbarch.c: Re-generate.
* findvar.c (floatformat_unknown): Delete variable definition.
* doublest.h (floatformat_unknown): Delete variable declaration.
2002-02-09 Jim Blandy <jimb@redhat.com>
* stabsread.c (read_type): Add code to parse Sun's syntax for
prototyped function types.
2002-02-09 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
(SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* xcoffsolib.c (_initialize_xcoffsolib): Renamed from
_initialize_solib. Fixes name clash with solib.c:_initialize_solib,
now _initialize_xcoffsolib gets called again and overrides the
commands from solib.c in a native configuration.
2002-02-09 Mark Kettenis <kettenis@gnu.org>
* doublest.c (store_typed_floating): Don't try to return a value.
Fixes PR gdb/290.
2002-02-08 Jim Blandy <jimb@redhat.com>
* c-typeprint.c (c_type_print_varspec_suffix): If a function type
is prototyped and has no arguments, print its argument list as
`(void)'.
2002-02-08 Chris Demetriou <cgd@broadcom.com>
* MAINTAINERS (write-after-approval): Add myself.
(paper-trail): I've escaped!
2002-02-08 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
changes.
(_initialize_check_for_gdb_ini): Ditto.
2002-02-08 Martin M. Hunt <hunt@redhat.com>
* win32-nat.c (cygwin_pid_to_str): Fix typo.
xaprintf -> xasprintf.
2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c: Remove use of printf and sprintf functions.
2002-02-08 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_frame_chain_valid): Make static.
(arm_push_arguments): Likewise.
(arm_gdbarch_init): New function.
(_initialize_arm_tdep): Call it.
* config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
(TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
(FRAME_CHAIN_VALID): Delete.
(arm_frame_chain_valid): Delete declaration.
(PUSH_ARGUMENTS): Delete.
(arm_push_arguments): Delete declaration.
(CALL_DUMMY_P): Delete.
2002-02-08 Andrew Cagney <ac131313@redhat.com>
Corinna Vinschen <vinschen@redhat.com>
* gdbtypes.c (build_gdbtypes): Disable setting a specific float format
on builtin float types.
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
* utils.c: Include <curses.h> before "bfd.h".
* tui/tui-hooks.c: Likewise.
* tui/tui.c: Likewise.
* tui/tuiCommand.c: Likewise.
* tui/tuiData.c: Likewise.
* tui/tuiDataWin.c: Likewise.
* tui/tuiDisassem.c: Likewise.
* tui/tuiGeneralWin.c: Likewise.
* tui/tuiIO.c: Likewise.
* tui/tuiLayout.c: Likewise.
* tui/tuiRegs.c: Likewise.
* tui/tuiSource.c: Likewise.
* tui/tuiSourceWin.c: Likewise.
* tui/tuiStack.c: Likewise.
* tui/tuiWin.c: Likewise.
2002-02-07 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
to include space for pseudoregs as well. Update loops accordingly.
(sh_fp_frame_init_saved_regs): Ditto.
(sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2002-02-07 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
Add Richard Earnshaw to Arm maintainers.
2002-02-07 Andrew Cagney <ac131313@redhat.com>
* defs.h (warning_begin): Delete declaration.
* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
Delete macro.
2002-02-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Logic bug, remove misplaced else.
2002-02-07 Klee Dienes <klee@apple.com>
* fork-inferior.c (fork_inferior): Add '!' to the list of
characters that need to be quoted when building a string for the
shell. Quote '!' specifically with a backslash, since CSH chokes
when trying to evaluate "str!str".
2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
* rdi-share/host.h: Only provide a typedef for bool if it is not
defined.
2002-02-04 Michael Snyder <msnyder@redhat.com>
* breakpoint.h (enum bptype): Add new overlay event bp type.
(enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
* breakpoint.c (create_internal_breakpoint): New function.
(internal_breakpoint_number): Moved into create_internal_breakpoint.
(create_longjmp_breakpoint): Use create_internal_breakpoint.
(create_thread_event_breakpoint): Ditto.
(create_solib_event_breakpoint): Ditto.
(create_overlay_event_breakpoint): New function.
(enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
(update_breakpoints_after_exec): Delete and re-initialize
overlay event breakpoints after an exec. Add FIXME comment
about longjmp breakpoint.
(print_it_typical): Ignore overlay event breakpoints.
(print_one_breakpoint): Ditto.
(mention): Ditto.
(bpstat_what): Do not stop for overlay event breakpoints.
(delete_breakpoint): Don't delete overlay event breakpoints.
(breakpoint_re_set_one): Delete the overlay event breakpoint.
(breakpoint_re_set): Re-create overlay event breakpoint.
* symfile.c (overlay_auto_command): Enable overlay breakpoints.
(overlay_manual_command): Disable overlay breakpoints.
(overlay_off_command): Disable overlay breakpoints.
2002-02-06 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c: Include elf-bfd.h and coff/internal.h.
(MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
to here from config/tm-arm.h.
(coff_sym_is_thumb): Make static.
(arm_elf_make_msymbol_special): New function.
(arm_coff_make_msymbol_special): New function.
* config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
(coff_sym_is_thumb): Delete declaration.
(arm_elf_make_msymbol_special): Declare.
(arm_coff_make_msymbol_special): Declare.
(ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
(COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2002-02-06 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2002-02-06 Richard Earnshaw <rearnsha@arm.com>
* gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
* gdbarch.c gdbarch.h: Regenerate.
* arch-utils.c (default_print_float_info): New function.
* arch-utils.h (default_print_float_info): Prototype it.
* infcmd.c (float_info): Call PRINT_FLOAT_INFO.
* doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
(PRINT_FLOAT_INFO): Document it.
* arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
* config/arm/tm-arm.h (FLOAT_INFO): Delete.
(PRINT_FLOAT_INFO): Define.
2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (_initialize_check_for_gdb_ini):
Add typecast to sprintf argument to suppress a warning.
2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (last_sig): Changed type of variable to target_signal,
to allow easier handling of pass state.
(DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
that gives exception name and address.
(handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
and set last_sig value to ourstatus->value.sig. Some missing
exceptions added.
(child_continue): Correctly report continue_status.
(get_child_debug_event,do_initial_child_stuff): Set last_sig to
TARGET_SIGNAL_0 (new default value).
(child_resume): consider sig argument passed to decide if
the exception should be passed to debuggee or not.
2002-02-05 Michael Snyder <msnyder@redhat.com>
* regcache.c (fetch_register): Call target_fetch_register
only if we don't call FETCH_PSEUDO_REGISTER.
(store_register): Call target_store_register only if we
don't call STORE_PSEUDO_REGISTER.
2002-02-05 Elena Zannoni <ezannoni@redhat.com>
* gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
ELF_MAKE_MSYMBOL_SPECIAL.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (default_make_msymbol_special): New function.
* arch-utils.h (default_make_msymbol_special): Export.
* elfread.c (elf_symtab_read): Compile use of
ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
multiarched.
* coffread.c (coff_symtab_read): Ditto, for
COFF_MAKE_MSYMBOL_SPECIAL.
2002-02-05 Jim Blandy <jimb@redhat.com>
* solib-svr4.c (svr4_truncate_ptr): New function.
(svr4_relocate_section_addresses): Do the address arithmetic with
the appropriate truncation for target addresses, even when
CORE_ADDR is larger than a target address.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
to (int *).
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (kill_inferior): Remove commented out
code.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: Remove unused include files.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
(read_inferior_memory): Use it.
(write_inferior_memory): Likewise.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (create_inferior): Call strerror instead of
grubbing through sys_errlist.
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2002-02-04 Andrew Cagney <ac131313@redhat.com>
* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
(do_sfunc, set_cmd_sfunc): New functions.
* command.h (struct cmd_list_element): Add field func.
* cli/cli-decode.h (struct cmd_list_element): Ditto.
* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
(help_all, help_cmd_list): Ditto.
(find_cmd, complete_on_cmdlist): Ditto.
* top.c (execute_command): Ditto.
* cli/cli-setshow.c (do_setshow_command): Call func instead of
function.sfunc.
* infcmd.c (notice_args_read): Fix function signature.
* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
* cli/cli-decode.c (add_set_cmd): Ditto.
* utils.c (initialize_utils): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* demangle.c (_initialize_demangler): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* kod.c (_initialize_kod): Ditto.
* valprint.c (_initialize_valprint): Ditto.
* top.c (init_main): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* arch-utils.c (initialize_current_architecture): Ditto.
(_initialize_gdbarch_utils): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
* wince.c (_initialize_inftarg): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto.
2002-02-04 Michael Snyder <msnyder@redhat.com>
* memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
Add rules for building the register data files.
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* regformats/regdat.sh: Add braces to the definition of
expedite_regs_${arch}.
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
* regformats/regdef.h (struct reg): Add comment describing the
requirements for offset and size fields.
2002-02-04 Andreas Schwab <schwab@suse.de>
* config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
* config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2002-02-04 Richard Earnshaw <rearnsha@arm.com>
* gdbarch.sh (copyright): Update years in generated header.
(SMASH_TEXT_ADDRESS): Add rule.
* gdbarch.h, gdbarch.c: Re-generate.
* coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
* dbxread.c: Likewise.
* dwarfread.c: Likewise.
* elfread.c: Likewise.
* somread.c: Likewise.
* arm-tdep.c (arm_smash_text_address): New function.
* config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
Add support for hardware watchpoints on win32 native.
* win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
CONTEXT_DEBUG_REGISTERS.
(dr variable): New variable. Static array containing a local copy
of debug registers.
(debug_registers_changed): New variable. Reflects when debug registers
are changed and need to be written to inferior.
(debug_registers_used): New variable. Reflects when any debug register
was set, used when new threads are created.
(cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
i386-nat code.
(thread_rec): Set dr array if id is the thread of current_event .
(child_continue, child_resume): Change the debug registers for all
threads if debug_registers_changed.
(child_add_thread): Change the debug registers if debug_registers_used.
* config/i386/cygwin.mh: Add use of i386-nat.o file.
Link nm.h to new nm-cygwin.h file.
+ config/i386/nm-cygwin.h: New file. Contains the macros used for use
of hardware registers.
2002-02-03 Andrew Cagney <ac131313@redhat.com>
* valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
Restore behavour broken by 2002-01-20 Andrew Cagney
<ac131313@redhat.com> IEEE_FLOAT removal.
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
* c-valprint.c (c_val_print): Pass a proper valaddr to
cp_print_class_method.
* valops.c (search_struct_method): If there is only one method
and args is NULL, return that method.
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
accessing tag_name directly.
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
* ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
of accessing tag_name directly.
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
PR gdb/280
* gdbtypes.c (replace_type): New function.
* gdbtypes.h (replace_type): Add prototype.
* stabsread.c (read_type): Use replace_type.
2002-02-03 Richard Earnshaw <rearnsha@arm.com>
* Makefile.in (memattr.o): Add missing dependencies rule.
2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* breakpoint.c (break_at_finish_command): Really export.
(break_at_finish_at_depth_command): Ditto.
(tbreak_at_finish_command): Ditto.
* hppa-tdep.c: Include completer.h.
* Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
(COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2002-02-01 Andrew Cagney <ac131313@redhat.com>
* utils.c (do_write): New function.
(error_stream): Rewrite combining the code from error_begin and
verror.
(verror): Rewrite using error_stream.
(error_begin): Delete function.
2002-02-01 Andrew Cagney <ac131313@redhat.com>
* utils.c (error_begin): Make static.
* defs.h (error_begin): Delete declaration.
* linespec.c (cplusplus_error): Replace cplusplus_hint.
(decode_line_1): Use cplusplus_error instead of error_begin,
cplusplus_hint and return_to_top_level.
* coffread.c (coff_symfile_read): Use error instead of error_begin
and return_to_top_level.
* infrun.c (default_skip_permanent_breakpoint): Ditto.
2002-02-01 Andrew Cagney <ac131313@redhat.com>
* language.h (type_error, range_error): Make string parameter
constant.
* language.c (warning_pre_print): Delete extern declaration.
* dwarfread.c (warning_pre_print): Ditto.
* language.c (type_error, range_error): Rewrite to use verror and
vwarning instead of warning_begin.
2002-02-01 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
(set_ignore_count): Move misplaced comment back where it belongs.
2002-02-01 Andrew Cagney <ac131313@redhat.com>
* command.h (NO_FUNCTION): Delete macro.
* cli/cli-decode.h (NO_FUNCTION): Ditto.
* top.c (execute_command): Replace NO_FUNCTION with NULL.
* tracepoint.c (_initialize_tracepoint): Ditto.
* cli/cli-decode.c (add_set_cmd): Ditto.
* cli/cli-cmds.c (init_cli_cmds): Ditto.
2002-02-01 Daniel Jacobowitz <drow@mvista.com>
* gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
Update ``this'' pointer when calling virtual functions.
2002-02-01 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (create_temp_exception_breakpoint): Delete.
* hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2002-02-01 Daniel Jacobowitz <drow@mvista.com>
* regformats/reg-arm.dat: New file.
* regformats/reg-i386.dat: New file.
* regformats/reg-ia64.dat: New file.
* regformats/reg-m68k.dat: New file.
* regformats/reg-mips.dat: New file.
* regformats/reg-ppc.dat: New file.
* regformats/reg-sh.dat: New file.
* regformats/regdef.h: New file.
* regformats/regdat.sh: New file.
2002-02-01 Richard Earnshaw <reanrsha@arm.com>
* arm-tdep.c (arm_frameless_function_invocation): Add some comments.
(arm_frame_args_address, arm_frame_locals_address): New functions.
(arm_frame_num_args): New function.
* config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
(FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
(FRMA_NUM_ARGS): Call arm_frame_num_args.
2002-01-31 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (break_at_finish_command): Export.
(break_at_finish_at_depth_command): Export.
(tbreak_at_finish_command): Export.
(_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
* hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
"tbreak" commands, which are HPPA specific.
* printcmd.c (disassemble_command): Remove an ancient
artifact of an old merge.
* symfile.h (enum overlay_debugging_state):
Define enum constant values for overlay mode.
* symfile.c (overlay_debugging): Use enums instead of literals.
(overlay_is_mapped, overlay_auto_command,
overlay_manual_command): Ditto.
* breakpoint.c (insert_breakpoints, remove_breakpoint,
breakpoint_here_p, breakpoint_inserted_here_p,
breakpoint_thread_match, bpstat_stop_status,
describe_other_breakpoints, check_duplicates, clear_command):
Coding standard fixes.
* target.c (target_xfer_memory): Add spaces, coding standard.
(do_xfer_memory): Add missing line to trust-readonly
code: check bfd SEC_READONLY flag for section.
2002-01-31 Andrew Cagney <ac131313@redhat.com>
* PROBLEMS: Fix typo, 5.1->5.1.1.
2002-01-30 Daniel Jacobowitz <drow@mvista.com>
* symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
data symbols, since we search based on textlow and texthigh.
(find_pc_sect_symtab): Likewise.
2002-01-30 Andrew Cagney <ac131313@redhat.com>
* defs.h (vwarning): Declare.
* utils.c (vwarning): New function.
(warning): Call vwarning.
(warning_begin): Delete function.
* rs6000-nat.c (vmap_ldinfo): Use the function warning to print
the warning message.
* d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
warning_begin.
2002-01-30 Michael Snyder <msnyder@redhat.com>
* NEWS: Mention "set trust-readonly-sections" command.
Mention generate-core-file command.
2002-01-15 Michael Snyder <msnyder@redhat.com>
* target.c: New command, "set trust-readonly-sections on".
(do_xfer_memory): Honor the suggestion to trust readonly sections
by reading them from the object file instead of from the target.
(initialize_targets): Register command "set trust-readonly-sections".
2002-01-29 Andrew Cagney <ac131313@redhat.com>
* parse.c (target_map_name_to_register): Simplify, search regs and
pseudo-regs using a single loop.
2002-01-30 Andrew Cagney <ac131313@redhat.com>
* PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2002-01-15 Rodney Brown <rbrown64@csc.com.au>
* config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
* config/i386/i386v42mp.mh: Add i387-nat.o .
* i386v4-nat.c: Include i387-nat.h.
(supply_fpregset): Use i387_supply_fsave.
(fill_fpregset): Use i387_fill_fsave.
2002-01-30 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_call_dummy_words): Define.
* arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
* config/arm/tm-arm.h (CALL_DUMMY_P): Define.
(CALL_DUMMY_WORDS): Define.
(arm_call_dummy_words): Declare.
* config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
(arm_linux_call_dummy_words): Declare.
2002-01-30 Andreas Schwab <schwab@suse.de>
* m68klinux-nat.c: Fix last change to use regcache_collect
instead of referencing registers[] directly.
2002-01-29 Andrew Cagney <ac131313@redhat.com>
* parse.c (target_map_name_to_register): Delete code wrapped in
#ifdef REGISTER_NAME_ALIAS_HOOK.
2002-01-28 Michael Snyder <msnyder@redhat.com>
* regcache.c (legacy_read_register_gen): Need to be able to
read pseudo-register as well as real register.
(legacy_write_register_gen): Ditto.
2002-01-28 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
* config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
* config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
* config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
* config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
* config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
* config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
* config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
* config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
* config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
* config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
* config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
* config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
* config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
* config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
* config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
* config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
* config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
* config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
* config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2002-01-28 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
(target_byte_order): Initialize to BFD_ENDIAN_BIG.
(initialize_current_architecture): Update target_byte_order using
information from BFD.
* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
* config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2002-01-28 Andrew Cagney <ac131313@redhat.com>
* config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
* vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
* rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
#ifdef INVALID_FLOAT.
* infcmd.c (do_registers_info): Ditto.
* values.c (unpack_double): Ditto. Add comment.
* config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
already commented out.
2002-01-26 Andreas Schwab <schwab@suse.de>
* config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
* m68klinux-nat.c: Update ptrace interface for fetching/storing
registers and add support for PTRACE_GETREGS.
2002-01-24 Andrew Cagney <ac131313@redhat.com>
GDB 5.1.1 released from 5.1 branch.
* NEWS: Add 5.1.1 news.
* README: Sync with 5.1 branch.
2002-01-23 Fred Fish <fnf@redhat.com>
* mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
stabstring on initial malloc. Reallocing will copy it for us,
if necessary.
2002-01-23 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (hpread_h): Delete.
(HFILES_NO_SRCDIR): Remove hpread.h.
(ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
(hpread.o): Update dependencies.
(hp-psymtab-read.o, hp-symtab-read.o): Remove.
* hp-psymtab-read.c: Remove file.
* hp-symtab-read.c: Remove file.
* hpread.h: Remove file.
* hpread.c: Merge all contents of hp-psymtab-read.c,
hp-symtab-read.c and hpread.h into this file, as it was prior to
January 1999.
* config/pa/hpux11w.mh, config/pa/hpux11.mh,
config/pa/hpux1020.mh, config/pa/hppaosf.mh,
config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2002-01-23 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
fill_gregset): Call gdbarch_tdep() just once, assign result to
variable and use that, instead of calling the function several
times.
2002-01-24 Alexandre Oliva <aoliva@redhat.com>
* configure.host: Accept sparcv9 as alias for sparc64.
* configure.tgt: Likewise.
2002-01-22 Kevin Buettner <kevinb@redhat.com>
* solib-aix5.c (build_so_list_from_mapfile)
(aix5_relocate_main_executable): Fix xcalloc() calls so order of
arguments is not reversed.
* solib-sunos.c (sunos_relocate_main_executable): Likewise.
* solib-svr4.c (svr4_relocate_main_executable): Likewise.
2002-01-22 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
modified version of obsolete sh_fetch_pseudo_register.
(sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
(sh4_register_read): New function.
(sh_pseudo_register_write): New function. Renamed and modified
version of obsolete sh_store_pseudo_register.
(sh_store_pseudo_register): Rename to sh_pseudo_register_write.
(sh4_register_write): New function.
(sh_gdbarch_init): Remove setting of gdbarch function
fetch_pseudo_register and store_pseudo_register. Remove setting of
register_convert_to_raw, register_convert_to_virtual,
register_convertible.
(sh_sh4_register_convertible): Delete. No longer needed. All is
taken care by architecture specific functions
register_read/register_write.
(sh_sh4_register_convert_to_virtual): Make static.
(sh_sh4_register_convert_to_raw): Ditto.
2002-01-22 Andrew Cagney <ac131313@redhat.com>
* doublest.c (floatformat_is_negative): Assert FMT is non NULL.
(floatformat_is_nan, floatformat_mantissa): Ditto.
* gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
builtin_type_ieee_double_little,
builtin_type_ieee_double_littlebyte_bigword,
builtin_type_m68881_ext, builtin_type_i960_ext,
builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2002-01-22 Corinna Vinschen <vinschen@redhat.com>
* xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
parameter. Set frameless flag if it exists and depended of
whether the scanned function is frameless or not.
(xstormy16_skip_prologue): If function is frameless, return
result of xstormy16_scan_prologue().
(xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
call.
2002-01-21 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
sh_sh4_register_byte, sh_sh4_register_raw_size,
sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
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): Call
gdbarch_tdep() just once, assign result to variable and use that,
instead of calling the function several times.
2002-01-20 Mark Kettenis <kettenis@gnu.org>
* go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
macros instead of LAST_FPU_CTRL_REGNUM.
(store_register): Likewise.
2002-01-21 Jim Blandy <jimb@redhat.com>
* infcmd.c (run_command): Check that the `exec' target layer's BFD
is up-to-date before running the program, not just when a program
exits.
2002-01-21 Fred Fish <fnf@redhat.com>
* arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
when we have found all instructions we are looking for.
2002-01-21 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_register_name): New function.
(arm_registers_names): Make static.
* config/arm/tm-arm.h (arm_register_names): Delete declaration.
(arm_register_name): Declare.
(REGISTER_NAME): Use it.
2002-01-21 Richard Earnshaw <rearnsha@arm.com>
Kevin Buettner <kevinb@redhat.com>
Convert arm targets to new FRAME interface.
* arm-tdep.c (struct frame_extra_info): Remove fsr.
(arm_frame_find_save_regs): Delete.
(arm_frame_init_saved_regs): New.
(arm_init_extra_frame_info): Alloacte saved_regs as required.
Allocate extra_info as required. Convert all uses of fsr.regs
to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
to use extra_info.
(thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
(arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
(check_prologue_cache, save_prologue_cache): Likewise.
(_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
* config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
(FRAME_FIND_SAVED_REGS): Delete.
(arm_frame_find_saved_regs): Delete prototype.
(arm_frame_init_saved_regs): New prototype.
(FRAME_INIT_SAVED_REGS): Define.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
From Jeff Law <law@redhat.com>:
* infttrace.c: Include <sys/pstat.h>.
(child_pid_to_exec_file): Revamp. Use pstat call to get the
exec file if the ttrace equivalent fails.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
(closeLogFile): Ditto.
2002-01-20 Michael Chastain <mec@shout.net>
* top.c (print_gdb_version): Bump copyright year to 2002.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
Zannoni and Eli Zaretskii.
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* buildsym.c: Update copyright years.
* c-typeprint.c: Likewise.
* dwarf2read.c: Likewise.
* f-typeprint.c: Likewise.
* gdbtypes.c: Likewise.
* gdbtypes.h: Likewise.
* hp-symtab-read.c: Likewise.
* hpread.c: Likewise.
* mdebugread.c: Likewise.
* p-typeprint.c: Likewise.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.c (gdbsim_open): Simplify code testing the macro
TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
byte-order selectable.
* sparc-tdep.c (sparc_target_architecture_hook): Ditto.
* arch-utils.c: Ditto.
(set_endian): Ditto.
(set_endian_from_file): Ditto.
* gdbserver/low-sim.c (create_inferior): Ditto.
* gdbarch.sh: Ditto.
* gdbarch.h: Re-generate.
* config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
* config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
* config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
* config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
* config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
* config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
* config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
macro definition.
* config/mips/tm-wince.h: Remove #undef of macro
TARGET_BYTE_ORDER_SELECTABLE.
* config/sh/tm-wince.h: Ditto.
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct cplus_struct_type): Add is_artificial to
member function fields. Add accessor macro
TYPE_FN_FIELD_ARTIFICIAL.
* dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
* c-typeprint.c (c_type_print_base): Skip artificial member
functions.
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* f-typeprint.c: Delete unused function f_type_print_args.
* p-typeprint.c: Delete unused function pascal_type_print_args.
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct type): Fix whitespace. Remove obsolete
comment. Add ``artificial'' to ``union field_location''.
* dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
* buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (define_symbol): Likewise.
* hp-symtab-read.c (hpread_function_type): Likewise, instead of
initializing TYPE_FIELD_BITPOS to n (obsolete).
(hpread_doc_function_type): Likewise.
* hpread.c (hpread_function_type): Likewise.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* configure.in (host_makefile_frag): Only require a host makefile
fragment when a native build.
* configure: Re-generate.
2002-01-20 Andrew Cagney <ac131313@redhat.com>
* doublest.h (floatformat_from_type): Declare.
* doublest.c (floatformat_from_type): New function.
(convert_typed_floating): Use.
* valprint.c (print_floating): Replace checks for IEEE_FLOAT with
call to function floatformat_from_type.
* gdbarch.sh (IEEE_FLOAT): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
* config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
* config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
* config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
* config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
* config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
* config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
* config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
* config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
* config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
* config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
* config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
* s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
* x86-64-tdep.c (i386_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
2002-01-20 Jiri Smid <smid@suse.cz>
* configure.host, configure.tgt: Support x86-64.
* NEWS: Note new target x86-64.
* config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
* x86-64-linux-nat.c (x86_64_register_u_addr): New function.
* config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
* Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
x86-64-linux-nat.o): Fix dependencies.
2002-01-19 Andrew Cagney <ac131313@redhat.com>
* utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
* config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
* config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
* config/sparc/xm-sun4os4.h: Delete file.
* config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2002-01-19 Andrew Cagney <ac131313@redhat.com>
* config/sparc/sparclynx.mh (XM_FILE): Delete.
* config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
* config/m68k/m68klynx.mh (XM_FILE): Delete.
* config/i386/i386lynx.mh (XM_FILE): Delete.
* config/rs6000/xm-rs6000ly.h: Delete file.
* config/sparc/xm-sparclynx.h: Delete file.
* config/m68k/xm-m68klynx.h: Delete file.
* config/i386/xm-i386lynx.h: Delete file.
* config/xm-lynx.h: Delete file.
* config/djgpp/fnchange.lst: Update.
2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (alpha_register_byte): New function.
(alpha_register_raw_size): Ditto.
(alpha_register_virtual_size): Ditto.
(alpha_skip_prologue_internal): Renamed from
alpha_skip_prologue.
(alpha_skip_prologue): New version that calls
alpha_skip_prologue_internal.
(alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
* config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
second argument from alpha_skip_prologue.
(REGISTER_BYTE): Use alpha_register_byte.
(REGISTER_RAW_SIZE): Use alpha_register_raw_size.
(REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
(FRAMELESS_FUNCTION_INVOCATION): Use
generic_frameless_function_invocation_not.
(FRAME_NUM_ARGS): Use frame_num_args_unknown.
(COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2002-01-19 Andrew Cagney <ac131313@redhat.com>
* config/mips/xm-news-mips.h: Delete file.
* config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
* config/m88k/xm-m88k.h: Delete file.
* config/m88k/xm-dgux.h: Do not include xm-m88k.h.
* config/m88k/xm-delta88v4.h: Ditto.
* config/m88k/xm-delta88.h: Ditto.
* config/alpha/xm-fbsd.h: Delete file.
* config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
* config/sparc/xm-sparc.h: Delete file.
* Makefile.in (xm-sun4os4.h): Delete dependency.
* config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
* config/sparc/xm-sun4os4.h: Ditto.
* config/sparc/xm-linux.h: Ditto.
* config/i386/xm-windows.h: Delete file.
2002-01-19 Andrew Cagney <ac131313@redhat.com>
* utils.c: Include <sys/param.h> for MAXPATHLEN.
(gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (alpha_call_dummy_words): New.
* config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
(CALL_DUMMY_P): Define.
(CALL_DUMMY_WORDS): Define.
(SIZEOF_CALL_DUMMY_WORDS): Define.
2002-01-19 Per Bothner <per@bothner.com>
* gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
isn't NULL, which can happen with some gcj-3.x-produced code.
2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (alpha_register_virtual_type): New function.
(alpha_init_frame_pc_first): Ditto.
(alpha_fix_call_dummy): Ditto.
(alpha_store_struct_return): Ditto.
(alpha_extract_struct_value_address): Ditto.
* config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
alpha_register_virtual_type.
(STORE_STRUCT_RETURN): Use alpha_store_struct_return.
(EXTRACT_STRUCT_VALUE_ADDRESS): Use
alpha_extract_struct_value_address.
(FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
(INIT_FRAME_PC): Use init_frame_pc_noop.
(INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2002-01-19 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c: Include "i386-tdep.h".
(fetch_fpregs): Simplify code dealing with uninitialized floating
point states such that it doesn't require FP7_REGNUM.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (frame_extra_info): New.
(alpha_find_saved_regs): Make static. Use
frame->extra_info.
(alpha_frame_init_saved_regs): New function.
(alpha_frame_saved_pc): Use frame->extra_info.
(temp_saved_regs): Don't declare as struct frame_saved_regs.
(heuristic_proc_desc): Adjust for temp_saved_regs changes.
(init_extra_frame_info): Rename to...
(alpha_init_extra_frame_info): ...this. Use frame->extra_info.
(alpha_print_extra_frame_info): New function.
(alpha_frame_locals_address): Ditto.
(alpha_frame_args_address): Ditto.
(alpha_pop_frame): Use frame->extra_info.
* config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
alpha_frame_args_address.
(FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
(alpha_find_saved_regs): Remove prototype.
(FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
(EXTRA_FRAME_INFO): Remove.
(INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
(PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (alpha_osf_in_sigtramp): New function.
(alpha_cannot_fetch_register): Ditto.
(alpha_cannot_store_register): Ditto.
(alpha_register_convertible): Ditto.
(alpha_use_struct_convention): Ditto.
* config/alpha/tm-alpha.h: Update copyright years.
(IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
(INNER_THAN): Use core_addr_lessthan.
(CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
(CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
(REGISTER_CONVERTIBLE): Use alpha_register_convertible.
(USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
(FRAME_CHAIN): Remove unnecessary cast.
2002-01-18 Andrew Cagney <ac131313@redhat.com>
* NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
obsolete.
2002-01-18 Andrew Cagney <ac131313@redhat.com>
* infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
* monitor.c, remote-array.c, remote-bug.c: Ditto.
* remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
* remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
* remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
* remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
* x86-64-linux-nat.c: Ditto.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (alpha_register_name): New function.
* config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): Define.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c: Update copyright years.
(alpha_next_pc): New function.
(alpha_software_single_step): Ditto.
* config/alpha/tm-alpha.h: Add prototype for
alpha_software_single_step.
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alphabsd-nat.c: Update copyright years.
(fill_gregset): Use regcache_collect.
(fill_fpregset): Likewise.
(fetch_inferior_registers): Only fetch integer registers
if requested to do so.
(store_inferior_registers): Only store integer registers
if requested to do so.
2002-01-17 Andrew Cagney <ac131313@redhat.com>
* config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
* config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
* config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
* config/alpha/alpha-linux.mh (XDEPFILES): Delete.
* config/alpha/fbsd.mh (XDEPFILES): Delete.
* config/arm/linux.mh (XDEPFILES): Delete.
* config/arm/nbsd.mh (XDEPFILES): Delete.
* config/i386/i386dgux.mh (XDEPFILES): Delete.
* config/i386/i386sol2.mh (XDEPFILES): Delete.
* config/i386/i386m3.mh (XDEPFILES): Delete.
(NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
* config/i386/i386gnu.mh (XDEPFILES): Delete.
* config/i386/fbsd.mh (XDEPFILES): Delete.
* config/i386/i386bsd.mh (XDEPFILES): Delete.
* config/i386/i386sco5.mh (XDEPFILES): Delete.
* config/i386/i386v4.mh (XDEPFILES): Delete.
* config/i386/i386v42mp.mh (XDEPFILES): Delete.
* config/i386/i386sco4.mh (XDEPFILES): Delete.
* config/i386/i386aix.mh (XDEPFILES): Delete.
* config/i386/go32.mh (XDEPFILES): Delete.
* config/i386/cygwin.mh (XDEPFILES): Delete.
* config/i386/i386lynx.mh (XDEPFILES): Delete.
* config/i386/i386mach.mh (XDEPFILES): Delete.
* config/i386/i386v32.mh (XDEPFILES): Delete.
* config/i386/linux.mh (XDEPFILES): Delete.
* config/i386/nbsdelf.mh (XDEPFILES): Delete.
* config/i386/ncr3000.mh (XDEPFILES): Delete.
* config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
* config/i386/i386sco.mh (XDEPFILES): Delete.
* config/i386/i386v.mh (XDEPFILES): Delete.
* config/i386/nbsd.mh (XDEPFILES): Delete.
* config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
* config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
* config/i386/symmetry.mh (XDEPFILES): Delete.
* config/i386/obsd.mh (XDEPFILES): Delete.
* config/i386/x86-64linux.mh (XDEPFILES): Delete.
* config/ia64/linux.mh (XDEPFILES): Delete.
* config/ia64/aix.mh (XDEPFILES): Delete.
* config/m68k/apollo68b.mh (XDEPFILES): Delete.
* config/m68k/dpx2.mh (XDEPFILES): Delete.
* config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
* config/m68k/apollo68v.mh (XDEPFILES): Delete.
* config/m68k/hp300bsd.mh (XDEPFILES): Delete.
* config/m68k/linux.mh (XDEPFILES): Delete.
* config/m68k/m68klynx.mh (XDEPFILES): Delete.
* config/m68k/m68kv4.mh (XDEPFILES): Delete.
* config/m68k/nbsd.mh (XDEPFILES): Delete.
* config/m68k/sun2os3.mh (XDEPFILES): Delete.
* config/m68k/sun2os4.mh (XDEPFILES): Delete.
* config/m68k/sun3os3.mh (XDEPFILES): Delete.
* config/m68k/sun3os4.mh (XDEPFILES): Delete.
* config/m88k/delta88.mh (XDEPFILES): Delete.
* config/m88k/delta88v4.mh (XDEPFILES): Delete.
* config/m88k/m88k.mh (XDEPFILES): Delete.
* config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
* config/mips/linux.mh (XDEPFILES): Delete.
* config/mips/irix6.mh (XDEPFILES): Delete.
* config/mips/irix5.mh (XDEPFILES): Delete.
* config/mips/irix4.mh (XDEPFILES): Delete.
* config/mips/irix3.mh (XDEPFILES): Delete.
* config/mips/decstation.mh (XDEPFILES): Delete.
* config/mips/mipsm3.mh (XDEPFILES): Delete.
(NATDEPFILES): Move core-aout.o to here.
* config/ns32k/nbsd.mh (XDEPFILES): Delete.
* config/pa/hpux1020.mh (XDEPFILES): Delete.
* config/pa/hppabsd.mh (XDEPFILES): Delete.
* config/pa/hppahpux.mh (XDEPFILES): Delete.
* config/pa/hpux11w.mh (XDEPFILES): Delete.
* config/pa/hppaosf.mh (XDEPFILES): Delete.
* config/pa/hpux11.mh (XDEPFILES): Delete.
* config/powerpc/aix.mh (XDEPFILES): Delete.
* config/powerpc/nbsd.mh (XDEPFILES): Delete.
* config/powerpc/linux.mh (XDEPFILES): Delete.
* config/romp/rtbsd.mh: Rename XDEPFILES.
* config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
* config/rs6000/aix4.mh (XDEPFILES): Delete.
* config/rs6000/rs6000.mh (XDEPFILES): Delete.
* config/s390/s390.mh (XDEPFILES): Delete.
* config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
* config/sparc/sun4sol2.mh (XDEPFILES): Delete.
* config/sparc/sun4os4.mh (XDEPFILES): Delete.
* config/sparc/sparclynx.mh (XDEPFILES): Delete.
* config/sparc/nbsdelf.mh (XDEPFILES): Delete.
* config/sparc/nbsd.mh (XDEPFILES): Delete.
* config/sparc/linux.mh (XDEPFILES): Delete.
* config/vax/vaxult.mh (XDEPFILES): Delete.
* config/vax/vaxult2.mh (XDEPFILES): Delete.
* Makefile.in (DEPFILES): Remove XDEPFILES.
2002-01-17 Andrew Cagney <ac131313@redhat.com>
* utils.c (internal_verror): Fix comments, default is yes not no.
Update queries to match. Default to quit and dump core.
2002-01-17 Andrew Cagney <ac131313@redhat.com>
* breakpoint.c: Update assuming #if UI_OUT is always true. Update
copyright.
* defs.h, event-top.c, gdbcmd.h: Ditto.
* infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
* source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
* top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
* cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
* mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
* mi/mi-main.c:Ditto.
* stack.c, symfile.c: Update copyright.
2002-01-17 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
gdbserver/low-nbsd.c, gdbserver/low-sim.c,
gdbserver/low-sparc.c, gdbserver/low-sun3.c,
gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2002-01-17 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/low-hppabsd.c (myattach): New function, returning -1.
* gdbserver/low-lynx.c (myattach): Likewise.
* gdbserver/low-nbsd.c (myattach): Likewise.
* gdbserver/low-sim.c (myattach): Likewise.
* gdbserver/low-sparc.c (myattach): Likewise.
* gdbserver/low-sun3.c (myattach): Likewise.
* gdbserver/low-linux.c (myattach): New function.
* gdbserver/server.c (attach_inferior): New function.
(main): Handle "--attach".
2002-01-16 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS (language support): Daniel Jacobwitz is C++
maintainer.
2002-01-15 Daniel Jacobowitz <drow@mvista.com>
* c-typeprint.c (is_type_conversion_operator): Add additional
check for non-conversion operators.
2002-01-15 Michael Snyder <msnyder@redhat.com>
* linux-proc.c: Add "info proc" command, a la procfs.c.
(read_mapping): New function, abstract and re-use code.
(linux_find_memory_regions): Use new func read_mapping.
(linux_info_proc_cmd): New function, implement "info proc".
(_initialize_linux_proc): Add new command "info proc".
2002-01-15 Michael Snyder <msnyder@redhat.com>
* symfile.c (generic_load): Use bfd_map_over_sections method
instead of manipulating bfd structure members directly.
(add_section_size_callback): New function, bfd sections callback
used by generic_load.
(load_sections_callback): New function, bfd sections callback
used by generic_load.
2002-01-15 Elena Zannoni <ezannoni@redhat.com>
[Based on work by Jim Blandy]
* gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
(builtin_type_vec128): Export.
* gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
types.
(builtin_type_vec128): New builtin type for 128 bit vector
registers.
(build_gdbtypes): Initialize builtin_type_v16qi and
builtin_type_v8hi. Create the vec128 register builtin type
structure.
(build_builtin_type_vec128): New function.
(_initialize_gdbtypes): Register builtin_type_v16qi and
builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
* rs6000-tdep.c (rs6000_register_virtual_type): Change type of
AltiVec register to new builtin type.
2001-01-15 Daniel Jacobowitz <drow@mvista.com>
* stabsread.c (read_type): Pass dbx_lookup_type (typenums)
to make_cv_type.
2002-01-14 Andrew Cagney <ac131313@redhat.com>
* config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
CLEAN_UP_REGISTER_VALUE.
* regcache.c (supply_register): Update only call.
2002-01-14 Andrew Cagney <ac131313@redhat.com>
* configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
a29k-*-vxworks* targets as obsolete.
2002-01-14 Michael Snyder <msnyder@redhat.com>
* linux-proc.c (linux_do_thread_registers): Ignore fpxregs
until we can resolve portability issues.
* gregset.h: Remove references to fpxregs.
* gcore.c (gcore_command): Initialize note_sec to NULL.
2002-01-13 Andrew Cagney <ac131313@redhat.com>
* signals.c (target_signal_to_name): Rewrite. Only use
signals[].name when in bounds and non-NULL.
2002-01-13 Andrew Cagney <ac131313@redhat.com>
From Petr Ledvina <ledvinap@kae.zcu.cz>:
* signals.c (target_signal_to_name): Verify that SIG is within the
bounds of the signals array.
2002-01-13 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Remove arm-coff and arm-pe from target list.
2002-01-13 Keith Seitz <keiths@redhat.com>
* stack.c (print_frame_info_base): Print the frame's pc
only if when print_frame_info_listing_hook is not defined.
2002-01-13 Keith Seitz <keiths@redhat.com>
* varobj.c (varobj_set_value): Make sure that there were no
errors evaluating the object before attempting to set its
value.
value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
so this offset adjustment is no longer necessary.
(create_child): Don't set the error flag if the child is
a CPLUS_FAKE_CHILD.
(value_of_child): If value_fetch_lazy fails, return NULL
so that callers will be notified that an error occurred.
(c_value_of_variable): Delay check of variable's validity
until later. We actually want all structs and unions to have
the value "{...}".
Do not return "???" for variables which could not be evaluated.
This error condition must be returned to the caller so that it
can get the error condition from gdb.
(cplus_name_of_child): Adjust index for vptr before figuring
out the name of the child.
(cplus_value_of_child): If a child's (real) parent is not valid,
don't even bother trying to give a value for it. Just return
an error. Change all instances in this function.
(cplus_type_of_child): If our parent is one of the "fake"
parents, we need to get at the type of the real parent, and
derive the child's true type using this information.
2002-01-13 Andrew Cagney <ac131313@redhat.com>
From 2002-01-09 John Marshall <johnm@falch.net>:
* CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
sources.redhat.com, and tweak some related URLs which had
suffered from linkrot.
2002-01-13 Andrew Cagney <ac131313@redhat.com>
From Jeff law:
* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
structures passed in registers.
2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
white space which prevented compilation. Reported by DSK
<dsk@student.unsw.edu.au>.
2002-01-11 Michael Snyder <msnyder@redhat.com>
* symfile.c (build_section_addr_info_from_section_tab):
Use bfd access method instead of manipulating bfd directly.
(syms_from_objfile): Ditto.
(simple_overlay_update_1): Ditto.
(simple_overlay_update): Ditto.
(generic_load): Ditto.
(overlay_unmapped_address): FIXME comment, bfd access methods.
(sections_overlap): FIXME comment, bfd access methods.
(pc_in_mapped_range): FIXME comment, bfd access methods.
(pc_in_unmapped_range): FIXME comment, bfd access methods.
(section_is_mapped): FIXME comment, bfd access methods.
(section_is_overlay): FIXME comment, bfd access methods.
* symfile.c (generic_load): Whitespace and long line cleanups.
Remove duplicate variable, change several local variables to
more appropriate data types.
(print_transfer_performance): Use %lu instead of %ld for ulongs.
2002-01-12 Andrew Cagney <ac131313@redhat.com>
From Peter Schauer:
* language.c (longest_local_hex_string_custom): Use phex_nz to
convert NUM to a hex string.
2002-01-12 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
the function.
Update Copyright year.
2002-01-12 Andrew Cagney <ac131313@redhat.com>
* language.c (longest_raw_hex_string): Delete unused function.
2002-01-11 Petr Sorfa <petrs@caldera.com>
* MAINTAINERS (write-after-approval): Add myself.
* dwarf2read.c (read_tag_string_type): Handling of
DW_AT_byte_size.
(read_tag_string_type): FORTRAN fix to prevent propagation of
first string size.
(set_cu_language): Handling of DW_LANG_Fortran95
2002-01-11 Richard Earnshaw <rearnsha@arm.com>
* armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
GETPID(inferior_ptid).
(store_inferior_registers): Likewise.
2002-01-10 Jason Merrill <jason@redhat.com>
* dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
Fix DW_OP_minus.
2002-01-10 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
and bfd/elf32-sh-nbsd.c.
2002-01-10 Michael Snyder <msnyder@redhat.com>
* NEWS: Mention --pid and corefile/proc-id behavior change.
* Makefile.in: Add rules for gcore.o and linux-proc.o.
* gcore.c: Include cli/cli-decode.h instead of command.h.
* main.c (captured_main): Add new command line option "--pid".
If the second command line argument (following the symbol-file)
begins with a digit, try to attach to it before trying to open
it as a corefile.
(print_gdb_help): Document the "--pid" argument.
2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
* completer.c (command_completer): New function.
* completer.h <command_completer>: Add prototype.
* cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
completer for the "help" command.
2002-01-09 Jason Merrill <jason@redhat.com>
* c-typeprint.c (is_type_conversion_operator): Fix thinko.
2002-01-09 Michael Snyder <msnyder@redhat.com>
* i386-linux-nat.c (fill_fpxregset): Make global.
(store_fpxregset): Ditto.
* gregset.h (gdb_fpxregset_t): Define.
(supply_fpxregset): Prototype.
(fill_fpxregset): Prototype.
* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2002-01-09 Richard Earnshaw <rearnsha@arm.com>
* config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
* config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
* config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2002-01-09 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Update target maintainer rules so that any
Maintainer can approve a tested patch for a maintenance-only
target.
2002-01-09 Richard Earnshaw <rearnsha@arm.com>
* MAINTAINERS (write-after-approval): Add myself.
* arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
IN_SIGTRAMP.
2002-01-08 Michael Snyder <msnyder@redhat.com>
* linux-proc.c (child_pid_to_exec_file): Use readlink to get the
real name of the executable, rather than the /proc name.
2002-01-03 Michael Snyder <msnyder@redhat.com>
Implement a "generate-core-file" command in gdb, save target state.
* gcore.c: New file. Implement new command 'generate-core-file'.
Save a corefile image of the current state of the inferior.
* linux-proc.c: Add linux-specific code for saving corefiles.
* target.h (struct target_ops): Add new target vectors for saving
corefiles; to_find_memory_regions and to_make_corefile_notes.
(target_find_memory_regions): New macro.
(target_make_corefile_notes): New macro.
* target.c (update_current_target): Inherit new target methods.
(dummy_find_memory_regions): New place-holder method.
(dummy_make_corefile_notes): New place-holder method.
(init_dummy_target): Initialize new dummy target vectors.
* exec.c (exec_set_find_memory_regions): New function.
Allow the exec_ops vector for memory regions to be taken over.
(exec_make_note_section): New function, target vector method.
* defs.h (exec_set_find_memory_regions): Export prototype.
* procfs.c (proc_find_memory_regions): New function, corefile method.
(procfs_make_note_section): New function, corefile method.
(init_procfs_ops): Set new target vector pointers.
(find_memory_regions_callback): New function.
(procfs_do_thread_registers): New function.
(procfs_corefile_thread_callback): New function.
* sol-thread.c (sol_find_memory_regions): New function.
(sol_make_note_section): New function.
(init_sol_thread_ops): Initialize new target vectors.
* inftarg.c (inftarg_set_find_memory_regions): New function.
Allow to_find_memory_regions vector to be taken over.
(inftarg_set_make_corefile_notes): New function.
Allow to_make_corefile_notes vector to be taken over.
* thread-db.c (thread_db_new_objfile): Don't activate thread-db
interface layer if not target_has_execution (may be a corefile).
* config/i386/linux.mh: Add gcore.o to NATDEPFILES.
* config/sparc/sun4sol2.mh: Ditto.
* config/alpha/alpha-linux.mh: Ditto.
* config/arm/linux.mh: Ditto.
* config/i386/x86-64linux.mh: Ditto.
* config/ia64/linux.mh: Ditto.
* config/m68k/linux.mh: Ditto.
* config/mips/linux.mh: Ditto.
* config/powerpc/linux.mh: Ditto.
* config/sparc/linux.mh: Ditto.
2002-01-07 Michael Snyder <msnyder@redhat.com>
* arm-linux-nat.c: Remove references to regcache.c internal data
(registers[] and register_valid[]).
2002-01-07 Michael Snyder <msnyder@redhat.com>
* linux-proc.c: New file. Implement child_pid_to_exec_file,
so that attaching to a pid will automatically read the process's
symbol file and shlibs.
* Makefile.in: Add rule for linux-proc.o.
* config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
* config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
* config/arm/linux.mh: Ditto.
* config/i386/linux.mh: Ditto.
* config/i386/x86-64linux.mh: Ditto.
* config/ia64/linux.mh: Ditto.
* config/m68k/linux.mh: Ditto.
* config/mips/linux.mh: Ditto.
* config/powerpc/linux.mh: Ditto.
* config/sparc/linux.mh: Ditto.
2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c: Add i386-tdep.h dependency.
2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
instead of bfd_get_arch_size. Don't bail out just because
there's no exec_bfd.
* cp-valprint.c (cp_print_value): FIXME comment, alloca size.
* p-valprint.c (pascal_object_print_value): Ditto.
* somread.c (som_symtab_read): Ditto.
* symfile.c (simple_free_overlay_region_table): Ditto.
* valops.c (value_assign): Ditto.
* tracepoint.c (tracepoint_save_command): From Klee Dienes --
use tilde_expand and strerror for opening save-tracepoints file.
* thread-db.c (thread_db_new_objfile): Indendation fix.
* infptrace.c (GDB_MAX_ALLOCA): New define.
(child_xfer_memory): Use xmalloc/xfree instead of alloca if the
size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
can be overridden with whatever value is appropriate to the host).
* infttrace.c (child_xfer_memory): Add FIXME warning about use of
alloca to allocate potentially large buffer.
* rs6000-nat.c (child_xfer_memory): Ditto.
* symm-nat.c (child_xfer_memory): Ditto.
* x86-64-linux-nat.c (child_xfer_memory): Ditto.
2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
From Nick Clifton <nickc@redhat.com>
* d10v-tdep.c: Set STACK_START to 0x200bffe.
2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Don't use exec_bfd if it's NULL.
2002-01-06 Mark Kettenis <kettenis@gnu.org>
* valops.c (value_arg_coerce): Fix formatting.
2002-01-06 Andrew Cagney <ac131313@redhat.com>
* hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
* gnu-nat.c: Ditto.
2002-01-06 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
z8k-coff have not been multi-arched. Update z8k-coff build
status.
2002-01-06 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Mark a29k target as obsolete.
* Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
(remote-mm.o, remote-udi.o): Obsolete. Remove references in
comments.
* NEWS: Note that a29k targets are obsolete.
* a29k-tdep.c: Mark as obsolete.
* configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
a29k-*-vxworks* targets as obsolete.
* remote-adapt.c: Obsolete.
* remote-eb.c: Obsolete.
* remote-mm.c: Obsolete.
* remote-udi.c: Obsolete.
* config/a29k/a29k-udi.mt: Obsolete.
* config/a29k/a29k.mt: Obsolete.
* config/a29k/tm-a29k.h: Obsolete.
* config/a29k/tm-vx29k.h: Obsolete.
* config/a29k/vx29k.mt: Obsolete.
2002-01-05 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
with BFD_ENDIAN_BIG.
2002-01-05 Andrew Cagney <ac131313@redhat.com>
* configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
* configure, config.in: Re-generate.
* config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
* defs.h: Do not include <endian.h>.
2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
* acconfig.h (HAVE_PT_GETXMMREGS): New.
* config.in: Regenerate.
* configure.in: Update copyright years.
Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
* configure: Regenerate.
* i386bsd-nat.c: Update copyright years.
(fill_gregset): Use regcache_collect.
(fetch_inferior_registers): Only fetch integer registers
if requested to do so. Add support for XMM registers
using PT_GETXMMREGS.
(store_inferior_registers): Only store integer registers
if requested to do so. Add support for XMM registers
using PT_SETXMMREGS.
* i386nbsd-nat.c (fetch_inferior_registers): Remove.
(store_inferior_registers): Remove.
(fetch_core_registers): Use supply_gregset and i387_supply_fsave.
(fetch_elfcore_registers): New function.
(i386nbsd_elfcore_fns): New.
(_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
* config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
i386bsd-nat.o.
* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
* config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
* config/i386/tm-nbsd.h: Update copyright years.
(HAVE_SSE_REGS): Define.
(IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
(SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
(SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
(SIGCONTEXT_PC_OFFSET): Remove.
(FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2002-01-05 Andrew Cagney <ac131313@redhat.com>
* configure.tgt: Remove powerpc-*-macos* target.
* config/m68k/xm-mpw.h: Delete file.
* config/xm-mpw.h: Delete file.
* ser-mac.c: Delete file.
* mpw-make.sed: Delete file.
* mpw-config.in: Delete file.
* mac-xdep.c: Delete file.
* mac-gdb.r: Delete file.
* mac-defs.h: Delete file.
* mac-nat.c: Delete file.
* config/powerpc/macos.mh: Delete file.
* config/powerpc/macos.mt: Delete file.
* config/powerpc/nm-macos.h: Delete file.
* config/powerpc/tm-macos.h: Delete file.
* source.c (openp, open_source_file): Remove obsolete code.
* top.c (gdb_readline): Ditto.
* utils.c (query): Ditto.
* event-top.c (display_gdb_prompt): Ditto.
* Makefile.in (ser-mac.o): Delete obsolete target.
* NEWS: Update.
2002-01-04 Andrew Cagney <ac131313@redhat.com>
* defs.h (BIG_ENDIAN): Delete macro definition.
* a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
* gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
* gdbarch.c: Re-generate.
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* thread-db.c (thread_db_new_objfile): Do not enable thread_db
for core files.
2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
* config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
2002-01-04 Andrew Cagney <ac131313@redhat.com>
* value.h (value_ptr): Delete typedef.
2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
* i386nbsd-nat.c: Update copyright years.
Include i386-tdep.h.
2002-01-04 Elena Zannoni <ezannoni@redhat.com>
* stabsread.c: Update copyright years.
From Debashis Mahata <debashis.mahata@wipro.com>:
(read_struct_fields): Deal with Sun C compiler erroneous stab
output for structs and unions.
Fix PR gdb/269.
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* p-valprint.c: Include "cp-abi.h" for baseclass_offset
prototype.
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* cp-abi.c: Fix whitespace.
(baseclass_offset): New wrapper function.
* cp-abi.h (baseclass_offset): Add prototype.
(struct cp_abi_ops): Add baseclass_offset pointer.
* valops.c (vb_match): Move to...
* gnu-v2-abi.c (vb_match): here.
* valops.c (baseclass_offset): Move to...
* gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
* gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
* gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
* gnu-v3-abi.c (init_gnuv3_ops): Likewise.
* hpacc-abi.c (init_hpacc_ops): Likewise.
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* valops.c (find_overload_match): Accept obj as a
reference parameter. Update it before returning.
* value.h (find_overload_match): Update prototype.
* eval.c (evaluate_subexp_standard): Pass object to
find_overload_match by reference.
2002-01-03 Andrew Cagney <ac131313@redhat.com>
* valarith.c: Replace value_ptr with struct value pointer. Remove
register attribute from value declarations.
* valops.c: Ditto.
* value.h: Ditto.
* scm-lang.c (scm_lookup_name): Ditto.
2002-01-03 Michael Snyder <msnyder@redhat.com>
Abstract the functionality of iterating over mapped memory
regions into a general purpose iterator function.
* procfs.c (iterate_over_mappings): New function, general purpose
iterator for memory sections.
(proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
(solib_mappings_callback): New function, callback for above.
(info_proc_mappings): Reimpliment using iterate_over_mappings.
(info_mappings_callback): New function, callback for above.
* procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2002-01-01 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
* i386-tdep.c: Include "elf-bfd.h".
(process_note_abi_tag_sections): New function.
(i386_gdbarch_init): Add code to recognize various OS/ABI
combinations.
* maint.c (_initialize_maint_cmds): Add missing \ in
string-literal.
For older changes see ChangeLog-2001
Local Variables:
mode: change-log
left-margin: 8
fill-column: 74
version-control: never
End:
|