forked from davea42/libdwarf-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog2023
8145 lines (6155 loc) · 260 KB
/
ChangeLog2023
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
2023-12-19: David Anderson
commit e08f6bc975c87f27da0699cd6c232d3ccf04880e
New information.
modified: READMEwin-msys2.md
2023-12-19: David Anderson
commit ae5a7cd3ab524c5abe9f990b1c6983b4cc75bce3
More clarifications.
modified: READMEcmake.md
2023-12-19: David Anderson
commit 129b8b359dc9e168cf473852f95ccce3e92d938f
To make it look right.
modified: READMEcmake.md
2023-12-19: David Anderson
commit 66f16a565b500bef2bb4e66ff39d946fe7d9fcb9
modified: READMEcmake.md
Some clarifications and one error fixed.
2023-12-19: David Anderson
commit e12149c819f9436fb92a32c273d0d8035224b7b0
Now with GNUInstallDirs in CMakeLists.txt
modified: ChangeLog
2023-12-19: David Anderson
commit 7e22b9711fd7804187b681fb80fd315b13de6198
Merge: fe1a067e 028de444
Merge branch 'install' of https://github.com/flagarde/libdwarf-code into flagarde-install
Testing pull request
The branch updates and simplifies all the CMakeLists.txt files
to use include(GNUInstallDirs) and take advantage of all it does.
Works fine in all test environments (including VS).
2023-12-18: David Anderson
commit fe1a067ec073729ad9e1001db4498f3887c33d18
Up to date with git log
modified: ChangeLog
2023-12-18: David Anderson
commit 22c352276446ac0c42e73f04573dc6cae50ca94b
Due to a change signed to unsigned and an oversight
printing of DW_OP_ DWARF data could print ESB_ERR
at times Just a two line error.
Fixed.
modified: src/bin/dwarfdump/print_die.c
2023-12-18: David Anderson
commit 1dcc86df64507889f85a93004e6ffb0381adc04c
Avoid warning from VS C.
modified: src/bin/dwarfdump/print_die.c
2023-12-18: David Anderson
commit 61d824c2897de83dde230be667989467f868c8f2
Remove VS C warnings by adding safe casts.
modified: src/bin/dwarfdump/dwarfdump.c
Remove VS C warnings by changing a local variable type.
Rename file-local struct member names to have a common prefix bh_.
modified: src/bin/dwarfdump/print_die.c
Harmless cast of argument to static function print_line_detail()
modified: src/lib/libdwarf/dwarf_line_table_reader_common.h
2023-12-18: David Anderson
commit 4a72b17e80f10458944dae4b2031d580804e045f
Added appropriate casts in 3 places
to silence VS C warnings.
These are an improvement for the human reader, too.
modified: src/lib/libdwarf/dwarf_crc32.c
modified: src/lib/libdwarf/dwarf_line_table_reader_common.h
modified: src/lib/libdwarf/dwarf_xu_index.c
2023-12-18: David Anderson
commit 0948a0042285e5b1b611c0f778eac26d33197a1a
Warnings from VS C provoked another
nice change to macro READ_UNALIGNED_CK()
which is used all over the place.
modified: src/lib/libdwarf/dwarf_util.h
2023-12-18: David Anderson
commit 1e8b7bdc4c6d5c45b7218098e9d74f158f6d5763
Small adjustmets (mainly casts) to avoid warnings
from VS C compiler.
modified: src/lib/libdwarf/dwarf_elf_load_headers.c
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_line.c
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_locationop_read.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_query.c
modified: src/lib/libdwarf/dwarf_rnglists.c
modified: src/lib/libdwarf/dwarf_str_offsets.c
2023-12-18: David Anderson
commit f91eddc2ac7c2719e99e06006c7501995e346c01
The BIGGEST_UINT #define and its uses are now gone.
It was never necessary in the macros it
was used in and it was arbitrary.
Should have been removed years ago.
modified: src/lib/libdwarf/dwarf_gdbindex.c
modified: src/lib/libdwarf/dwarf_util.h
2023-12-17: David Anderson
commit e2730f58ade299fd5aa29d0dfcb7b14d92790eed
These remove the remaining type warnings from VS C
in dwarfdump.
modified: src/bin/dwarfdump/dwarfdump.c
modified: src/bin/dwarfdump/print_abbrevs.c
modified: src/bin/dwarfdump/print_die.c
2023-12-17: David Anderson
commit 0a24f82f08da94bb0bc5994efa277f20a7adb09c
Added a comment for doxygen.
on dwarf_get_section_info_by_index_a()
modified: src/lib/libdwarf/libdwarf.h
2023-12-17: David Anderson
commit fdcf13474576cd9c94197d2bf9cf80d0cd05baf2
Changes to be committed:
more type changes and casts to remove
VS warnings.
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_frame.h
modified: src/lib/libdwarf/dwarf_frame2.c
2023-12-17: David Anderson
commit b90d83d5f8d02dc448468447e96db3228108e17e
Fixing many compiler warnings.
Changing the return type of another function
to Dwarf_Unsigned
so it actually makes sense.
Which will not break anyone's code.
(from VS)
modified: doc/libdwarf.dox
modified: src/lib/libdwarf/dwarf_crc32.c
modified: src/lib/libdwarf/dwarf_frame.h
modified: src/lib/libdwarf/dwarf_frame2.c
modified: src/lib/libdwarf/dwarf_global.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_line.c
modified: src/lib/libdwarf/dwarf_line_table_reader_common.h
modified: src/lib/libdwarf/dwarf_locationop_read.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_opaque.h
modified: src/lib/libdwarf/libdwarf.h
2023-12-17: David Anderson
commit dc6a96ef8756a328dc3bf10d80c054aa9217ebcd
Changed library-internal data types (and added a very few casts)
to avoid type warnings by a compiler.
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_loc.h
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/dwarf_macro.c
modified: src/lib/libdwarf/dwarf_macro5.c
modified: src/lib/libdwarf/dwarf_object_detector.c
modified: src/lib/libdwarf/dwarf_object_read_common.c
modified: src/lib/libdwarf/dwarf_peread.c
2023-12-17: David Anderson
commit 49b5a83026a119ecba524b07841c87bd5a035ebf
Altering (mostly by making internal data Dwarf_Unsigned)
so that we avoid many warnings.
modified: src/lib/libdwarf/dwarf_opaque.h
modified: src/lib/libdwarf/dwarf_query.c
modified: src/lib/libdwarf/dwarf_rnglists.c
modified: src/lib/libdwarf/dwarf_setup_sections.c
modified: src/lib/libdwarf/dwarf_str_offsets.c
modified: src/lib/libdwarf/dwarf_util.c
Fixed a mistaken return-value type from int to Dwarf_Unsigned.
See Changes in doc/libdwarf.dox
modified: src/lib/libdwarf/dwarf_query.c
modified: doc/libdwarf.dox
modified: src/lib/libdwarf/libdwarf.h
2023-12-17: David Anderson
commit def4e90753d756192359ef580cbd331631f87d26
Fixing many instances of unecessarily truncating integers
to not truncate by changing declared size to be appropriate.
Fixing a few (library-private) argument lists
to avoid integer truncation by using the right
data type.
modified: src/bin/dwarfdump/print_abbrevs.c
modified: src/lib/libdwarf/dwarf_line.h
modified: src/lib/libdwarf/dwarf_line_table_reader_common.h
modified: src/lib/libdwarf/dwarf_opaque.h
modified: src/lib/libdwarf/dwarf_print_lines.c
modified: src/lib/libdwarf/dwarf_util.c
modified: src/lib/libdwarf/dwarf_xu_index.c
2023-12-17: David Anderson
commit d58a0dcd9a3aad87c437a73e3f2fe9c37ea2cf38
Fixing some compiler warnings.
modified: dd_macrocheck.c
modified: dwarfdump.c
modified: print_die.c
2023-12-16: David Anderson
commit 320e8c3b4a28cc1ffb7df55da8a10f06d016aaee
Dealing with compiler warnings. A few required
actual correction of the source, most just
required casting.
modified: src/bin/dwarfdump/dd_getopt.c
modified: src/bin/dwarfdump/dd_macrocheck.c
modified: src/bin/dwarfdump/print_abbrevs.c
modified: src/bin/dwarfdump/print_debug_names.c
modified: src/bin/dwarfdump/print_die.c
modified: src/bin/dwarfdump/print_frames.c
modified: src/bin/dwarfdump/print_gdbindex.c
modified: src/bin/dwarfdump/print_lines.c
modified: src/bin/dwarfdump/print_loclists.c
modified: src/bin/dwarfdump/print_macro.c
modified: src/bin/dwarfdump/print_rnglists.c
2023-12-16: David Anderson
commit 46f159a17a8c08f579238525fa2565a50f049a4b
The argument was formally incorrect before.
The correction should not cause any problem for
anyone. Mistake noticed because a compiler
warning appeared highlighting callers.
@@ -1736,7 +1736,7 @@ dwarf_loclist_from_expr_c(Dwarf_Debug dbg,
Dwarf_Unsigned expression_length,
Dwarf_Half address_size,
Dwarf_Half offset_size,
- Dwarf_Small dwarf_version,
+ Dwarf_Half dwarf_version,
modified: src/lib/libdwarf/dwarf_loc.c
dwarf_loclist_from_expr_c(Dwarf_Debug dw_dbg,
Dwarf_Unsigned dw_expression_length,
Dwarf_Half dw_address_size,
Dwarf_Half dw_offset_size,
- Dwarf_Small dw_dwarf_version,
+ Dwarf_Half dw_dwarf_version,
modified: src/lib/libdwarf/libdwarf.h
2023-12-15: David Anderson
commit 1c53f94e90399b4cbf5f946d633b81a1a597e431
Now has a short section about linking against and
testing libdwarf.so
The short section about linking against libdwarf.a
has a tiny change (moved some words up to the
section about linking against libdwarf.so)
modified: doc/libdwarf.dox
2023-12-14: Jeremy Rifkin
commit 4ccb40556f59f10fe7a34c3edace8808ffb9463c
Add ifndef-define for O_RDONLY in elf_load_headers and generic_init (#211)
2023-12-14: David Anderson
commit 6a9cfa3b9708bc04e90890cec84115b72ba8240c
Up to date with git log.
modified: ChangeLog
2023-12-14: David Anderson
commit 6e24c3cc2d9b0a7a1455b10327bbf9ae173e0a1f
Removing -D_CRT_NONSTDC_NO_WARNINGS everywhere to
avoid compiler warnings from Visual Studio
meson.build: libdwarf_args += [ '-D_CRT_NONSTDC_NO_WARNINGS', '-D_CRT_SECURE_NO_WARNINGS' ]
src/bin/dwarfdump/dd_esb.c:#define _CRT_SECURE_NO_WARNINGS
src/bin/dwarfdump/dd_tsearchbal.c:#define _CRT_SECURE_NO_WARNINGS
src/bin/gennames/gennames.c:#define _CRT_SECURE_NO_WARNINGS
src/lib/libdwarf/dwarf_machoread.c:#define _CRT_SECURE_NO_WARNINGS
src/lib/libdwarf/dwarf_object_read_common.c:#define _CRT_SECURE_NO_WARNINGS
src/lib/libdwarf/dwarf_peread.c:#define _CRT_SECURE_NO_WARNINGS
modified: meson.build
modified: src/bin/dwarfdump/dd_esb.c
modified: src/bin/dwarfdump/dd_tsearchbal.c
modified: src/bin/gennames/gennames.c
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/dwarf_object_read_common.c
modified: src/lib/libdwarf/dwarf_peread.c
2023-12-12: David Anderson
commit 82d23bc1218880bb153c5d541b873901a634dfe4
error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
On 32bit systems casts like (Dwarf_Unsigned)
applied to a pointer need to be
(Dwarf_Unsigned)(uintptr_t)
to avoid failing in compilations.
Four places.
Would not fail if one avoids --enable-wall and the like.
But now fixed.
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_frame2.c
2023-12-10: David Anderson
commit deebe40e89214efe61c7b56debf2565974027dc8
Latest from git log (plus extra on DW_IDX)
modified: ChangeLog
2023-12-10: David Anderson
commit 12e478e78a93d957c2eb8518dd958c00b8f1cee9
modified: src/bin/dwarfdump/dwarfdump-af-table.h
modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h
modified: src/bin/dwarfdump/dwarfdump-ta-table.h
modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h
modified: src/bin/dwarfdump/dwarfdump-tt-table.h
The full set of changes in gdb dwarf2.def is:
+/* Internal linkage. A flag. */
DW_IDX (DW_IDX_GNU_internal, 0x2000)
+/* External linkage. A flag. Note that gdb no longer generates this;
+ the default is to assume external linkage. */
DW_IDX (DW_IDX_GNU_external, 0x2001)
+/* This entry is the program's entry point. A flag. */
+DW_IDX (DW_IDX_GNU_main, 0x2002)
+/* Language for this entry. A DW_LANG_* value. */
+DW_IDX (DW_IDX_GNU_language, 0x2003)
+/* This entry is a linkage name. A flag. */
+DW_IDX (DW_IDX_GNU_linkage_name, 0x2004)
modified: src/lib/libdwarf/dwarf.h
modified: src/lib/libdwarf/dwarf_names.c
2023-12-08: David Anderson
commit 26bedb0159e0ff6b1795009115213ebd14b6d959
Now all 0.9.1
modified: CMakeLists.txt
modified: configure.ac
modified: doc/libdwarf.dox
modified: doc/libdwarfp.mm
modified: meson.build
modified: src/lib/libdwarf/libdwarf.h
2023-12-08: David Anderson
commit 8b0bd09d8c77d45a68cb1bb00a54186a92b683d9
Corrected spelling of one word.
modified: doc/libdwarf.pdf
2023-12-08: David Anderson
commit d9f6fe863d775a1e480d79f630e4a97ed78969ab
Up to date with spelling fix
modified: ChangeLog
2023-12-08: David Anderson
commit 9666fdf00753ffd9608f136972f9484d59c613cb
Corrected spelling mistake. libnrary -> library
modified: doc/libdwarf.dox
modified: doc/libdwarf.pdf
2023-12-08: David Anderson
commit 7894f73f4fe22046a855bafd87902f7eedaaf00a
Up to date with git log
modified: ChangeLog
2023-12-08: David Anderson
commit b33f2b6a2643e7b552cdfeb835ab48a9c82768da
Now up to latest for release.
modified: doc/libdwarf.pdf
2023-12-08: David Anderson
commit 32934f5e442383361b4239298aa4b407d6e35160
Updating to release date
modified: README.md
modified: doc/libdwarf.dox
2023-12-07: David Anderson
commit 288b59b0aaf662fdab66cd61e39c599daa9edc82
A typo. Fixed.
modified: test.yml
2023-12-07: David Anderson
commit 8416a134976192b1acbdb3bb22c04c72cbad41aa
Rm dup mingw inst (ninja)
modified: msys2_meson.yml
modified: test.yml
2023-12-07: David Anderson
commit 089b4ff4229fd09ba2659c131859359bb5178f53
runner-to-vm
modified: freebsd_autotools.yml
modified: test.yml
2023-12-06: David Anderson
commit 3d296d4f5efd1bbce23cc28084f95a3ace39c252
Cleaning up, all seems working.
modified: freebsd_meson.yml
modified: mac_meson.yml
modified: test.yml
2023-12-06: David Anderson
commit fcbe5ce9261815aa566cd8f45d291e5ffdfb1146
runner-to-vm
modified: freebsd_cmake.yml
2023-12-06: David Anderson
commit 68517f3e28fc05536efab9f8f9a402c6f947d85a
trial
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit 0aa394c7c7820121e92971959830702538282322
trial
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit cb3dba2b4a93b9d28d9265df6a346ef12d2585e2
zlib wrong name. Leaving off.
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit f3f80cbdb4093a61297ab103af9b778837181529
Fix
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit 1889a6a211a33a9ac501153df01e829cb0b5c4f7
again
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit e1d9e65143d98a7045bd80713be030306cffdffa
Correcting bug
modified: freebsd_meson.yml
2023-12-06: David Anderson
commit f5cb963c7668eedfe7cd22a2685bf0906e99cb15
add pkgconf
modified: freebsd_autotools.yml
2023-12-06: David Anderson
commit 9a3eecf4ac7092c1f0c3acb31a0ffd62efc7b869
Altering fsync setting
modified: freebsd_autotools.yml
2023-12-06: David Anderson
commit 55f6bd906de69d92bf8b3102a90a56a91376992e
Now autoreconf not autogen.sh
modified: freebsd_autotools.yml
2023-12-06: David Anderson
commit df0703d57a93ac6e06e6200625a4c51c5a7b2d63
Added libtool
modified: freebsd_autotools.yml
2023-12-06: David Anderson
commit 465e050a3851e3aee1264bca0632af14fd87a5ab
For freebsd do fsync_files: false
modified: test.yml
2023-12-06: David Anderson
commit c4c7290e061d89443e021df8c8d4a159c7d56799
Added fsync as false
modified: freebsd_autotools.yml
2023-12-06: David Anderson
commit 832704300ba662976cabe4f4f26627c873f5c55c
Remove old comments.
modified: mac_meson.yml
2023-12-06: David Anderson
commit 2b6f8e535c2c25fa2920f85eeb918332f3be9f5b
new for single test.
new file: freebsd_meson.yml
2023-12-06: David Anderson
commit bc7a7c04d1ac56e0c8a48b5a5ef41a0749d7eab5
Meson setup was written wrong...
modified: mac_meson.yml
modified: test.yml
2023-12-06: David Anderson
commit 673c308605640046fd44994fbc8124f006d1127c
oops.silly mistake.
modified: msys2_meson.yml
2023-12-06: David Anderson
commit 7239cad53e355eab75b55816b38565e0f949a372
Fixing, was failing
modified: msys2_meson.yml
2023-12-06: David Anderson
commit 751e4a1464ba54fd3a68e9ebca54c98bb936c0f8
Fix errors
modified: msys2_cmake.yml
2023-12-06: David Anderson
commit 4f94c59b774e8c1cf5f29e2ed6dac1ab0d8a322f
Removing unwanted install items.
modified: mac_autotools.yml
2023-12-06: David Anderson
commit 7fc16952c66a9ebb7880481929fd2dd0e2beb9cf
Added sync_files: false
modified: freebsd_cmake.yml
2023-12-06: David Anderson
commit 822d1316d6ec466c6c3b98a261e956f0a40cb8ab
Toward individual tests to deal with
particular build issues.
new file: freebsd_autotools.yml
new file: msys2_cmake.yml
new file: msys2_meson.yml
2023-12-06: David Anderson
commit 205743f182ac924b043df94d573b4cbe8f1e426b
fixing freebsd cmake
modified: test.yml
2023-12-06: David Anderson
commit caca010a2a8967a7f7b0a126d63f6146af449550
trial change to get workable options
modified: freebsd_cmake.yml
Now with corrected mac cmake.
modified: test.yml
2023-12-06: David Anderson
commit 297b199b0bf620e0d2beb89cc480de3050f8ff3a
needed more -D for cmake.
modified: mac_cmake.yml
2023-12-06: David Anderson
commit 725369b0e9d721b4c221db515e7643e681485a57
small tweak
modified: mac_cmake.yml
2023-12-06: David Anderson
commit c059560573dcbd0e0d0e5b3b4e49b91ec9190e43
Testing.
modified: freebsd_cmake.yml
new file: mac_cmake.yml
modified: test.yml
2023-12-05: David Anderson
commit 333982334bb4dbd7035c17e668fc0833674f149d
Things changed, making them work, I hope
modified: .github/workflows/test.yml
2023-12-05: David Anderson
commit 92874271148d444d5b9d4eeb1a22599ba82fe35e
Removing unwanted whitespace,
fixing indents.
modified: src/lib/libdwarf/dwarf_generic_init.c
modified: src/lib/libdwarf/dwarf_object_detector.c
modified: src/lib/libdwarf/dwarf_query.c
2023-12-05: David Anderson
commit 7ac6ea034e5e4abc65ba2e2ca8ea4c9d5f86c639
Changing a few local variables to Dwarf_Unsigned
to avoid some warnings
about size differences from a particular compiler.
modified: src/lib/libdwarf/dwarf_line.c
modified: src/lib/libdwarf/dwarf_line.h
modified: src/lib/libdwarf/dwarf_util.c
2023-12-05: David Anderson
commit 5d89e76d41fd9b111c803b0a748f5703cd765b7f
Fixes a mistake returning object values through
pointers. Found by Coverity Scan.
A mistake created a few days ago.
modified: src/lib/libdwarf/dwarf_init_finish.c
Add cast to int on error number returned
by dwarf_errno(), these are guaranteed
to be integers under 1000 and >= 0. Removes a compiler warning.
modified: src/lib/libdwarf/dwarf_object_detector.c
2023-12-03: David Anderson
commit 3f5352adff5f9dec013faf8365518a68486b3809
Dated Dec 3.
modified: libdwarf.dox
modified: libdwarf.pdf
2023-12-02: David Anderson
commit 67257f5da2b30d476477c55f8cfd85236bfcb7c7
Up to date with git log
modified: ChangeLog
2023-12-02: David Anderson
commit c4ca69922baf8854a4677dde0681b9a7fc3207bd
When system endian and object endian do not
always match, the debuglink 4 byte hash value needs
de_copy_word() applied.
modified: src/lib/libdwarf/dwarf_object_detector.c
Better doc of de_copy_word in Dwarf_Debug_s
modified: src/lib/libdwarf/dwarf_opaque.h
2023-12-02: David Anderson
commit 5fddac64954aefe7a3e33234c5f2ca48491ab0c4
Now with a translation from PE machine number to a name.
modified: src/bin/dwarfdump/CMakeLists.txt
modified: src/bin/dwarfdump/Makefile.am
new file: src/bin/dwarfdump/dd_pe_cputype.h
modified: src/bin/dwarfdump/dwarfdump.c
2023-12-01: David Anderson
commit 460b234d6474ae4fd3048c154594fa4df925805b
Now up to date with git log
modified: ChangeLog
2023-12-01: David Anderson
commit 903e8cc407e56cde7467c67d7a9ba97d5b06a4fa
Adding dd_mac_cputype.h and dd_elf_cputype.h
to the build where necessary.
modified: src/bin/dwarfdump/CMakeLists.txt
modified: src/bin/dwarfdump/Makefile.am
Adding support for option --print-machine-arch
modified: src/bin/dwarfdump/dd_command_options.c
modified: src/bin/dwarfdump/dd_glflags.c
modified: src/bin/dwarfdump/dd_glflags.h
Added a missing entry.
modified: src/bin/dwarfdump/dd_mac_cputype.h
Implementing --print-machine-arch
modified: src/bin/dwarfdump/dwarfdump.c
Fixing whitespace issues.
modified: src/bin/dwarfdump/print_die.c
Deleting obsolete commentary.
modified: src/bin/dwarfdump/print_sections.c
2023-12-01: David Anderson
commit abb4acf6e8c9b40610372770839dd7e5131f8214
This has the implementation of the three new functions
that give access to object file header and section data.
Small changes, but widely spread!
modified: src/lib/libdwarf/dwarf_elf_load_headers.c
modified: src/lib/libdwarf/dwarf_elfread.c
modified: src/lib/libdwarf/dwarf_elfread.h
modified: src/lib/libdwarf/dwarf_generic_init.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/dwarf_machoread.h
modified: src/lib/libdwarf/dwarf_opaque.h
modified: src/lib/libdwarf/dwarf_peread.c
modified: src/lib/libdwarf/dwarf_peread.h
modified: src/lib/libdwarf/dwarf_query.c
2023-12-01: David Anderson
commit e10170f606842aa164d676ca0135ba15f063f511
Now December, so the html shows the new month.
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbuglohi.html
2023-12-01: David Anderson
commit c2d9d3c3303b7d3fb9f836f0348ff0a8640515b3
Changes list up to date
modified: doc/libdwarf.dox
New for better reporting of dwarf_machine_architecture()
by dwarfdump
new file: src/bin/dwarfdump/dd_elf_cputype.h
new file: src/bin/dwarfdump/dd_mac_cputype.h
The three new API functions declared and documented/doxygen.
dwarf_machine_architecture()
dwarf_get_section_info_by_index_a()
dwarf_get_section_info_by_name_a()
modified: src/lib/libdwarf/libdwarf.h
2023-11-30: David Anderson
commit b90ea31db1dfa9f9d9b95d25554e05738fd63b0a
Fixing problems in doxgen comments.
modified: doc/checkexamples.c
modified: doc/libdwarf.dox
2023-11-29: David Anderson
commit 416d1e0f398e25806f5c56f63221e25cb18236fa
Latest info. Up to date.
modified: ChangeLog
2023-11-29: David Anderson
commit c71e435ac49df3f99eac4e0181b75efe4e19e397
Added new fields to Dwarf_Debug for use...soon:
de_ftype (one of the DW_FTYPE values)
and de_processor (soon to be the object data
saying which processor is named in the object file).
Documenting new functions dwarf_get_section_info_by_index_a()
and dwarf_get_section_info_by_name_a()
which return additional section information to callers
for all supported object types..
modified: doc/libdwarf.dox
Use the new functionss.
modified: src/bin/dwarfdump/dwarfdump.c
Set the dbg field de_ftype with the DW_FTYPE_
value applicable to the object.
modified: src/lib/libdwarf/dwarf_generic_init.c
Add the new functions. The old ones now call the new ones.
modified: src/lib/libdwarf/dwarf_init_finish.c
Record flags, addr and offset (which were not previously
recorded.
modified: src/lib/libdwarf/dwarf_machoread.c
Declare and document the new functions.
modified: src/lib/libdwarf/dwarf_opaque.h
Set the fields as_offset and as_flags now.
modified: src/lib/libdwarf/dwarf_peread.c
Declare and document the new functions.
modified: src/lib/libdwarf/libdwarf.h
2023-11-29: David Anderson
commit 36152b90d3bf88209c1a26bc51ea4ae743cc5b03
Removed trailing whitespace and fixed a couple
violations of the CODINGSTYLE.md for libdwarf.
modified: dwarf_debuglink.c
modified: dwarf_frame.c
modified: dwarf_util.h
2023-11-28: David Anderson
commit d2b1ec9269ef23aa2527845d483106ff0727fe8b
Now up to date with ChangeLog. CoverityScan at 0 defects again.
modified: ChangeLog
2023-11-28: David Anderson
commit d3596f02aca5bf1a9b151a7c80f5c9cf261508fb
Coverityscan found 3 issues.
Here, they were real could lead to a segv.
the issue was the code has options oriented
to testing (probably a mistake to put such in an example)
and there was a dereference of a null pointer
that could occur in a particular scenario. Fixed.
modified: src/bin/dwarfexample/simplereader.c
Here the (new, undocumented) option of leaving
either of two pointer inputs (for return values) NUll to
dwarf_get_section_info_by_name was
not coded correctly. Fixed.
modified: src/lib/libdwarf/dwarf_init_finish.c
2023-11-28: David Anderson
commit 03afade11bd58bb239ec92c2ea517348ba918187
Found more places to use IS_INVALID_DBG()
replacing various inconsistent tests
of a dbg (Dwarf_Debug pointer).
modified: src/lib/libdwarf/dwarf_alloc.c
modified: src/lib/libdwarf/dwarf_arange.c
modified: src/lib/libdwarf/dwarf_debug_sup.c
modified: src/lib/libdwarf/dwarf_debugnames.c
modified: src/lib/libdwarf/dwarf_die_deliv.c
modified: src/lib/libdwarf/dwarf_error.c
modified: src/lib/libdwarf/dwarf_form.c
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_gdbindex.c
modified: src/lib/libdwarf/dwarf_global.c
modified: src/lib/libdwarf/dwarf_gnu_index.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_query.c
modified: src/lib/libdwarf/dwarf_util.c
2023-11-27: David Anderson
commit fbfbf16e94878e1242f46f1ed9e54a0c9010bbd9
Individual tests of dbg and de_magic are now
all in util.h new macro IS_INVALID_DBG
to ensure consistency.
modified: ../../lib/libdwarf/dwarf_abbrev.c
modified: ../../lib/libdwarf/dwarf_alloc.c
modified: ../../lib/libdwarf/dwarf_frame.c
modified: ../../lib/libdwarf/dwarf_generic_init.c
modified: ../../lib/libdwarf/dwarf_global.c
modified: ../../lib/libdwarf/dwarf_harmless.c
modified: ../../lib/libdwarf/dwarf_init_finish.c
modified: ../../lib/libdwarf/dwarf_loc.c
modified: ../../lib/libdwarf/dwarf_macro.c
modified: ../../lib/libdwarf/dwarf_rnglists.c
modified: ../../lib/libdwarf/dwarf_util.h
modified: ../../lib/libdwarf/dwarf_xu_index.c
2023-11-27: David Anderson
commit 92a841cbc79fbe7c038b68be3b140b5ce27c687e
Updated to the date of last minor change.
modified: doc/libdwarf.dox
Now when reading PE object files callers can get
the size of even sections not involved in DWARF.
Because useful to some, some of the time.
modified: src/lib/libdwarf/dwarf_peread.c
modified: src/lib/libdwarf/dwarf_peread.h
2023-11-27: David Anderson
commit 76c4b8295cb3ac1a4efade9e79f90ba2470c5f62
Removing pointless blank line
modified: bugxml/data.txt
2023-11-25: David Anderson
commit c29a5b34d77562766250a79adc8bfbde48eeb4a5
Corrected the gitfixid.
modified: bugxml/data.txt
regenerated.
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2023-11-25: David Anderson
commit c3a2dfc6837485f97cecdb818461cf48f4654ca7
Now with latest
modified: ChangeLog
2023-11-25: David Anderson
commit d76cce559b898f7059ce5ffd82f3cfd58cb392fe
With latest info on debuglink issues
modified: bugxml/data.txt
The source here uses a libdwarf public
function incorrectly which
guarantees a memory leak. Now the test case
follows the rules...
modified: fuzz/fuzz_debuglink.c
Fix so that dwarf_gnu_debuglink() will not
dereference a NULL pointer.
modified: src/lib/libdwarf/dwarf_debuglink.c
Clarify the doxgen comments on dwarf_gnu_debuglink().
modified: src/lib/libdwarf/libdwarf.h
2023-11-25: David Anderson
commit 0ee98238cc37e79d27cdb2f85eb7af81b9e8215a
Up to date with git log
modified: ChangeLog
2023-11-25: David Anderson
commit d87a170a1c0f79aa001c104367248984307ab221
This is a new-to-me bug report
and its fix. DW202311-001
modified: bugxml/data.txt
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2023-11-25: David Anderson
commit ef77596af000719c04bd3e40b97139247ff3efb4
This is the definition of the new macro
CHECK_DBG for use inside libdwarf.
modified: src/lib/libdwarf/dwarf_util.h
2023-11-25: David Anderson
commit f9ce938de8ffa5e837d9215d17bd1b677fdcab03
Ensuring that all API functions that have a
Dwarf_Debug input argument check the passed
in pointer thoroughly using a new CHECK_DBG
macro in dwarf_util.h
Many of the place have been incorrectly
checking for many years.
modified: src/lib/libdwarf/dwarf_abbrev.c
modified: src/lib/libdwarf/dwarf_arange.c
modified: src/lib/libdwarf/dwarf_crc32.c
modified: src/lib/libdwarf/dwarf_debug_sup.c
modified: src/lib/libdwarf/dwarf_debugaddr.c
modified: src/lib/libdwarf/dwarf_debuglink.c
modified: src/lib/libdwarf/dwarf_debugnames.c
modified: src/lib/libdwarf/dwarf_die_deliv.c
modified: src/lib/libdwarf/dwarf_dsc.c
modified: src/lib/libdwarf/dwarf_error.c
modified: src/lib/libdwarf/dwarf_find_sigref.c
modified: src/lib/libdwarf/dwarf_form.c
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_gdbindex.c
modified: src/lib/libdwarf/dwarf_generic_init.c
modified: src/lib/libdwarf/dwarf_global.c
modified: src/lib/libdwarf/dwarf_gnu_index.c
modified: src/lib/libdwarf/dwarf_groups.c
modified: src/lib/libdwarf/dwarf_harmless.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_line.c
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_macro.c
modified: src/lib/libdwarf/dwarf_macro5.c
modified: src/lib/libdwarf/dwarf_query.c
modified: src/lib/libdwarf/dwarf_ranges.c
modified: src/lib/libdwarf/dwarf_rnglists.c
modified: src/lib/libdwarf/dwarf_str_offsets.c
modified: src/lib/libdwarf/dwarf_stringsection.c
modified: src/lib/libdwarf/dwarf_xu_index.c
2023-11-25: David Anderson
commit 6fe6f29f1c191202a2334f2eeeca4e2e292adb15
Merge: 7cddf97e 1f698830
Merge branch 'main' of https://github.com/davea42/libdwarf-code
merge from github
2023-11-25: David Anderson
commit 7cddf97ee462ca27f753328de241cfb350aa6ac9
We now test a Dwarf_Debug better in libdwarf, so we have
to set dbg->de_magic properly to test what we
want to test here. Done.
modified: test/test_linkedtopath.c