-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog-1999
9296 lines (7073 loc) · 352 KB
/
ChangeLog-1999
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
Sun Dec 19 18:56:38 1999 Andrew Cagney <[email protected]>
* breakpoint.c (mention): Delete ui-out breakpoint code. Mention
calls breakpoint_create_event and that, eventually, calls
gdb_breakpoint_query which displays the breakpoint details.
(hbreak_command_wrapper, thbreak_command_wrapper): Delete.
Wed Dec 29 17:41:11 1999 Andrew Cagney <[email protected]>
* breakpoint.c (create_breakpoints, parse_breapoint_sals,
breakpoint_sals_to_pc): New functions.
(break_command_1): Rewrite. Use create_breakpoints,
parse_breapoint_sals, breakpoint_sals_to_pcto create the list of
breakpoints specified in ``sals''. Delete unused variables.
Pre-allocate addr_strings for all breakpoints. Allocate a
separate cond and cond_string for each breakpoint.
(gdb_breakpoint, do_captured_breakpoint, struct
captured_breakpoint_args): Provide a library interface into
create_breakpoints.
* defs.h (gdb_breakpoint): Add declaration.
1999-12-22 Michael Chastain <[email protected]>
* dbxread.c (process_one_symbol): check for nested LBRAC
symbols before calling finish_block rather than after. Do not
call define_symbol for these symbols.
1999-12-21 Stan Shebs <[email protected]>
* blockframe.c (generic_pop_current_frame): Cosmetic changes to
clarify.
1999-12-20 Michael Snyder <[email protected]>
* procfs.c: Completely rewritten. All functions replaced, to make
maintainence easier in the presence of two very different versions
of /proc (ioctl vs. read/write).
* proc_api.c: New file, pretty-print /proc diagnostic trace info.
* proc_events.c: New file, pretty-print /proc signals, exceptions.
* proc_flags.c: New file, pretty-print /proc flags.
* proc_why.c: New file, pretty-print /proc reasons for stopping.
* Makefile.in: Add rules for above new files.
* config/i386/i386sol2.mh: Add above new files to NATDEPFILES.
* config/sparc/sun4sol2.mh: ditto.
* config/i386/i386dgux.mh: ditto.
* config/i386/i386v4.mh: ditto.
* config/i386/i386v42mp.mh: ditto.
* config/i386/ncr3000.mh: ditto.
* config/m68k/m68kv4.mh: ditto.
* config/m88k/delta88v4.mh: ditto.
* config/mips/irix4.mh: ditto.
* config/mips/irix5.mh: ditto.
* config/mips/mipsv4.mh: ditto.
* config/powerpc/solaris.mh: ditto.
* config/alpha/alpha-osf2.mh: ditto.
* config/alpha/alpha-osf3.mh: ditto.
* testsuite/gdb.base/callfuncs.exp: make "next" test match the
next source line, in case the "next" runs away.
* acconfig.h: remove obsolete def HAVE_MULTIPLE_PROC_FDS,
add new def NEW_PROC_API
* config.in; ditto.
* configure.in: Detect sparc solaris 7 and all versions of
UnixWare, and define NEW_PROC_API.
* configure: auto-generate.
* infrun.c (MAY_SWITCH_FROM_INFERIOR_PID): remove define, make it
the default behavior. (switched_from_inferior_pid): rename to
previous_inferior_pid. (handle_inferior_event): remove the
[Switching to thread...] message. (normal_stop): move the
[Switching to thread...] message to here.
* sol-thread.c (sol_find_new_threads): add a call to
procfs_find_new_threads, so that new LWPs are found too.
* config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
define to always use. (target_insert_watchpoint) define to use
new procfs call (one additional parameter).
(target_remove_watchpoint): ditto.
(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) define always true.
* config/mips/nm-irix4.h: ditto.
1999-12-21 Jim Blandy <[email protected]>
* Makefile.in (elf_bfd_h): Look for elf-bfd.h in BFD_SRC, not
BFD_DIR. Unlike bfd.h, it is not a generated file.
Fri Dec 17 18:24:58 1999 David Taylor <[email protected]>
* language.c (_initialize_language): move settings of language,
range, and type and corresponding function calls
set_language_command, set_type_command, and set_range_command
closer together to match the model of having the user set the
variable via the 'set {language | range | type}' commands.
This eliminates startup noise introduced by Jimmy Guo's change
of Dec 13th.
1999-12-17 Michael Snyder <[email protected]>
* configure.in: test for <stdint.h>, which is not available
on earlier versions of Linux.
* config.in: define HAVE_STDINT_H if it's present.
* configure: autoconfiscate.
* lin-thread.c: if not HAVE_STDINT_H, stub out the entire module.
Fri Dec 17 20:45:21 1999 Andrew Cagney <[email protected]>
* target.c (find_target_beneath): Change ``='' in if to ``==''.
1999-12-16 Michael Snyder <[email protected]>
* defs.h (TIDGET): add default definition.
* lin-thread.c (check_for_thread_event): for now, just provide
an empty definition (to be filled in later).
1999-12-16 Fernando Nasser <[email protected]>
* varobj.c (varobj_list): Improve the test and the text of the
assertion that guards against wrong tally of root varobjs.
(uninstall_variable): Fix for a bug in which the number of root
varobjs was not decremented if the first one in the list was deleted.
1999-12-16 Michael Snyder <[email protected]>
* linux-thread.c: Remove printf-debugging code.
* lin-thread.c: ditto.
* config/alpha/nm-linux.h: protect with NM_LINUX_H.
* testsuite/gdb.threads/linux-dp.exp: Make test for "New Thread"
message more forgiving. Ditto test for "info threads".
1999-12-16 Michael Snyder <[email protected]>
* lin-thread.c: new file. Implements multi-thread debugging on
Linux using the thread_db API first implemented on Solaris. This
frees GDB from any dependency on the internal implementation of
the thread library. Future versions of the thread library will
implement a libthread_db API for debuggers, which GDB will use.
* config/i386/linux.mh: add lin-thread.o to the link, and add
-ldl and -rdynamic since libthread_db is a dynamic library.
* config/alpha/alpha-linux.mh: ditto.
* configure.in: test for thread_db.h, proc_service.h
* configure: autoconf.
* config.in: conditionally define HAVE_THREAD_DB_H
and HAVE_PROC_SERVICE_H
* gdb_thread_db.h: new file, used when the system doesn't have it.
* gdb_proc_service.h: ditto.
1999-12-16 Michael Snyder <[email protected]>
* linux-thread.c: changes to accomodate the new lin-thread.c
module based on the thread_db API. These changes make parts of
linux-thread.c shareable with lin-thread.c.
(linuxthreads_wait_mask): replace with linuxthreads_block_mask.
(using_thread_db): new variable. Allows linux-thread module to
detect when lin-thread (thread_db API) module is in use.
(save_inferior_pid, restore_inferior_pid): make 32/64 bit safe.
(check_all_signal_numbers) make extern, shared with lin-thead.c.
(linuxthreads_new_objfile): use target_new_objfile_chain to share
this hook with the lin-thread module. Call the other module FIRST.
If using_thread_db is turned on by the other thread module, do not
set linuxthreads_debug and do not call update_stop_threads. Do call
check_all_signal_numbers, to be sure it gets set before target_wait.
(linux_child_wait): new function. Abstracts out the "child_wait"
functionality, so that it can be shared with the lin-thread module.
(linuxthreads_wait): call linux_child_wait, instead of doing the
waiting inline. If using_thread_db, do not call update_stop_threads
and do not turn on linuxthreads_debug.
(linuxthreads_mourn_inferior): abstract out the clearing of global
state, so that it can be shared with the lin-thread.c module.
(_initialize_linuxthreads): use linuxthreads_wait_mask to block
SIGCHLD exactly ONCE, and leave it blocked! Then linux_child_wait
will call sigsuspend when it wants to wait for this signal.
(thread_attach): abstract out ptrace attach to share with lin-thread.c
1999-12-16 Michael Snyder <[email protected]>
Make target_pid_to_str a target_ops vector.
* target.h (target_pid_to_str): redefine to use a target_ops vector.
(target_tid_to_str): default to using target_pid_to_str.
(target_pid_or_tid_to_str): ditto.
* target.c (update_current_target): inherit to_pid_to_str method.
(find_target_beneath): new function. Find target stratum below
the given one.
* config/nm-gnu.h: don't define target_pid_to_str.
* config/i386/tm-i386sol2.h: ditto.
* config/sparc/tm-sun4sol2.h: ditto.
* gnu-nat.c (init_gnu_ops): initialize to_pid_to_str vector.
* linux-thread.c (init_linuxthreads_ops): ditto.
* sol-thread.c (init_sol_thread_ops: ditto.
* procfs.c (init_procfs_ops): ditto.
* win32-nat.c (init_child_ops): ditto.
* config/i386/tm-cygwin.h: don't define target_pid_to_str.
* inftarg.c (child_pid_to_str): new function, used to initialize
to_pid_to_str vector. May be suppressed by defining CHILD_PID_TO_STR.
(init_child_ops): initialize to_pid_to_str using child_pid_to_str.
Derivative modules may substitute their own child_pid_to_str func
by defining CHILD_PID_TO_STR.
* lynx-nat.c (lynx_pid_to_str): rename to child_pid_to_str.
* config/nm-lynx.h: define CHILD_PID_TO_STR.
Don't define target_pid_to_str.
* hppah-nat.c (hppa_pid_to_str): rename to child_pid_to_str.
* infttrace.c (hppa_pid_or_tid_to_str): call child_pid_to str
instead of hppa_pid_to_str.
* config/pa/nm-hppah.h: define CHILD_PID_TO_STR.
Don't define target_pid_to_str.
1999-12-16 Michael Snyder <[email protected]>
* i386-linux-nat.c: introduce PIDGET/TIDGET macros as on Solaris,
preparatory to using the thread_db debugging API for Linux.
(fill_gregset): guard against invalid input.
(fetch_regs): add a pid/thread_id argument, so we can fetch regs
from multiple processes/clones/threads. (store_regs): ditto.
(fetch_fpregs): ditto. (store_fpregs): ditto.
(fetch_xfpregs): ditto. (store_xfpregs): ditto.
(fetch_inferior_registers): use TIDGET to extract an appropriate
thread/clone/process id from inferior_pid, if there's one there,
and pass it to fetch_regs etc. (store_inferior_registers): ditto.
* infptrace.c: include every available version of wait.h.
introduce PIDGET/TIDGET macros for use with thread_db API on Linux.
(call_ptrace): rearrange lines that were split by an ifdef.
(fetch_register): use TIDGET to extract an appropriate process ID
from inferior_pid, in case we are debugging more than one process.
(store_register): ditto. This is for Linux.
(child_xfer_memory): use PIDGET to extract the main process id from
inferior_pid, in case we are debugging multiple processes that share
the same address space (as on Linux).
1999-12-16 Christopher Faylor <[email protected]>
* win32-nat.c: Add a missing register to mappings array.
(child_fetch_inferior_registers): Use precalculated index into mappings
array as supply_registers argument.
(handle_output_debug_string): Avoid considering every debug string as a
cygwin signal.
(handle_exception): Trap first chance exceptions.
(child_create_inferior): Initialize Microsoft thread walking API.
(sgmb): New function. Used by Microsoft API for stack walking.
(child_frame_chain): New function. Uses Microsoft API for stack
walking.
(child_frame_chain_saved_pc): Ditto.
* config/i386/tm-cygwin.h: Define frame handling stuff.
1999-12-15 Stan Shebs <[email protected]>
ARM GNU/Linux support and general ARM target fixes/cleanup from
Scott Bambrough <[email protected]>, plus obsoletion of the old
RISCix support.
* NEWS: Mention addition and obsoletion.
* configure.host: Recognize arm* instead of just arm.
(arm*-*-linux*): Recognize.
* configure.tgt: Ditto, plus assume arm*-*-* is embedded.
* config/arm/arm.mh, config/arm/arm.mt, config/arm/nm-arm.h,
config/arm/xm-arm.h: Mark as OBSOLETE.
* config/arm/embed.mt, config/arm/tm-embed.h: New files.
* config/arm/linux.mh, config/arm/linux.mt, config/arm/nm-linux.h,
config/arm/tm-linux.h, config/arm/xm-linux.h: Ditto.
* config/arm/tm-arm.h: Add more comments, eliminate PARAMS.
(STACK_END_ADDR): Remove.
(ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT, THUMB_LE_BREAKPOINT,
THUMB_BE_BREAKPOINT): Move to here from arm-tdep.c.
(NUM_REGS): Define as sum.
(NUM_FREGS, NUM_SREGS, NUM_GREGS): New definitions.
(FP_REGISTER_RAW_SIZE, FP_REGISTER_VIRTUAL_SIZE,
STATUS_REGISTER_SIZE): Define.
(REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
REGISTER_VIRTUAL_SIZE): Rewrite to use symbolic values.
(REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW, USE_STRUCT_CONVENTION,
EXTRACT_RETURN_VALUE): Rewrite to use new functions.
(IN_SIGTRAMP): Remove definition.
* arm-convert.s: Mark as OBSOLETE.
* arm-linux-nat.c: New file.
* Makefile.in: Add build rule for it.
* arm-tdep.c (struct frame_extra_info): New struct.
(arm_use_struct_convention): Rewrite.
(arm_push_arguments): Rewrite to handle more cases.
(arm_register_convertible, arm_register_convert_to_virtual,
arm_register_convert_to_raw, arm_extract_return_value): New
functions.
(LITTLE_BREAKPOINT, BIG_BREAKPOINT): Remove.
* arm-xdep.c: Mark as OBSOLETE.
1999-12-15 Elena Zannoni <[email protected]>
* infcmd.c (run_stack_dummy): Temporarily lie about the target
ability to support asynchronous execution.
* remote.c (remote_can_async_p, remote_is_async_p): Return true
iff to_async_mask_value is true too.
(remote_async): Error out if called when to_async_mask_value is 0.
(init_remote_async_ops): Initialize to_async_mask_value to 1.
(remote_async_detach, remote_async_resume, remote_async_wait,
remote_async_kill): Change SERIAL_IS_ASYNC_P call to
target_is_async_p call.
(remote_async_resume): Change SERIAL_CAN_ASYNC_P call to
target_can_async_p call.
* target.c (update_current_target): Inherit to_async_mask_value.
(target_async_mask): New function. To temporarily turn the target
into a synchronous one for inferior function calls, and back to
asynchronous.
* target.h (to_async_mask_value): New entry in the target
vector.
(target_async_mask): Export.
(target_async_mask_value): Define.
Wed Dec 15 11:24:32 1999 Jeffrey A Law ([email protected])
* hp-psymtab-read.c (trans_lang): Use HP_LANGUAGE_FORTRAN instead
of HP_LANGUAGE_F77.
Wed Dec 15 13:37:55 1999 Andrew Cagney <[email protected]>
* gdb-events.h, gdb-events.c (set_gdb_event_hooks): Return the old
event hooks vector.
1999-08-13 Jim Kingdon <http://developer.redhat.com/>
* breakpoint.c (bpstat_stop_status): Revert 1998-09-08 change
to ->frame matching. The change did not match the ChangeLog
entry, looked fishy, and caused infinite stepping when running
"next" from main on sparc w/ RH Linux. Thanks to Jakub for the
report.
1999-12-14 Stan Shebs <[email protected]>
* arm-tdep.c (arm_get_next_pc): Add argument to shifted_reg_val
call.
1999-12-14 Mark Salter <[email protected]>
* mips-tdep.c (mips_print_register): Fix printing of individual
registers when REGISTER_VIRTUAL_SIZE != REGISTER_RAW_SIZE.
Tue Dec 14 23:29:19 1999 Andrew Cagney <[email protected]>
* defs.h (mcalloc): Delcare.
* utils.c (xcalloc, mcalloc): New functions.
1999-12-13 Stan Shebs <[email protected]>
* config/arm/tm-arm.h: Reformat comments, in preparation for
real changes.
* arm-tdep.c: Similarly, plus change function definitions to
modern form.
1999-12-13 Michael Snyder <[email protected]>
* breakpoint.h (enum bptype): add new BP type bp_thread_event.
This will be used when a target needs to set an invisible
breakpoint to detect events such as thread creation.
* breakpoint.c (interlan_breakpoint_number): remove ifdefs.
(create_thread_event_breakpoint): new function.
(remove_thread_event_breakpoints): new function.
(bpstat_what): don't stop at invisible thread_event breakpoints.
(update_breakpoints_after_exec): if bp_thread_event breakpoins
still exist after an exec, delete them. They'll need to be
found and installed anew anyway.
(print_it_typical): don't announce bp_thread_event breakpoints.
(print_one_breakpoint): account for new breakpoint type.
(mention): don't mention invisible bp_thread_event breakpoints.
(delete_command): don't delete invisible bp_thread_event bp's.
(breakpoint_re_set_one): don't touch bp_thread_event bp's.
Mon Dec 13 11:10:59 1999 Jimmy Guo <[email protected]>
* language.h (longest_raw_hex_string, longest_local_hex_string,
longest_local_hex_string_custom): Declare.
* language.c: New functions, and misc. fixes.
(longest_raw_hex_string, longest_local_hex_string,
longest_local_hex_string_custom): New functions.
* c-typeprint.c
(c_type_print_varspec_prefix,c_type_print_varpsec_suffix): Add
TYPE_CODE_TEMPLATE case and default case.
(c_type_print_base): Revise how demangled_no_class is found;
print '}' before printing local file:line info.
* c-valprint.c (c_value_print): print reference type to class.
* valarith.c (value_binop): Add support for exponentiation,
equal, not equal.
(value_strcmp): New function.
(value_equal,value_less): Add string equality comparison support.
* m2-exp.y (lex): add default case statement to capture
unhandled token and call error().
1999-12-13 Elena Zannoni <[email protected]>
* main.c (main): Remove unused variable.
From Hubert VERSTRAETE ([email protected]):
* main.c (captured_main): Disambiguate command line option '-d' by
preferring --directory over --dbx.
* top.c (return_to_top_level): Do not do exec cleanups if the
target is executing. Those cleanups are supposed to be done when
the target has stopped.
Mon Dec 13 20:52:37 1999 Andrew Cagney <[email protected]>
* breakpoint.c (do_captured_breakpoint_query,
gdb_breakpoint_query): New functions. Implement a breakpoint
query.
* defs.h (enum gdb_rc): Declare.
(gdb_breakpoint_query): Declare.
Mon Dec 13 14:18:06 1999 Andrew Cagney <[email protected]>
* gdb-events.h: Fix typo in description of breakpoint events.
* gdb-events.sh: Update.
Mon Dec 13 13:57:26 1999 Andrew Cagney <[email protected]>
* breakpoint.c (ep_type_description_t): Delete.
(print_one_breakpoint): Add local declaration of struct
ep_type_description.
Mon Dec 13 12:38:31 1999 Andrew Cagney <[email protected]>
* top.h: Delete #include <setjmp.h>. Moved to top.c.
(SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
SIGLONGJMP): Delete. Moved to top.c
(error_return, quit_return): Delete extern declarations.
* top.c: #include <setjmp.h>.
(error_return, quit_return): Make static.
(SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
SIGLONGJMP): Define.
Mon Dec 13 11:54:12 1999 Andrew Cagney <[email protected]>
* tracepoint.c (trace_start_command, tracepoints_info): Print
step_count using %ld.
* Makefile.in (tracepoint.o): Compile tracepoint.o with -Werror.
1999-12-12 Elena Zannoni <[email protected]>
* target.h (enum target_waitkind): Add new enumeration value
TARGET_WAITKIND_IGNORE. For inferior events that we should do
nothing about.
* remote.c (remote_async_wait): After each character of console
output from the inferior, return to the event loop with an event
kind of TARGET_WAITKIND_IGNORE instead of looping here.
* infrun.c (handle_inferior_event): In case of
TARGET_WAITKIND_IGNORE, return immediately, and set things up so
that we are still waiting for the inferior.
1999-12-12 Elena Zannoni <[email protected]>
* event-loop.c (handle_timer_event): When calling the timer
procedure, use the saved_timer data, not the timer_ptr data,
because the latter has been already freed.
Fri Dec 10 12:01:43 1999 Andrew Cagney <[email protected]>
* eval.c (evaluate_subexp): Only inline when GNUC and not STDC.
Sat Dec 11 17:52:03 1999 Andrew Cagney <[email protected]>
* breakpoint.c (print_one_breakpoint): New function. Move
breakpoint print code to here.
(breakpoint_1): From here.
(print_one_breakpoint): Merge in ui-out code.
(print_one_breakpoint): Add local variabls ``stb'' and
``old_chain''.
(breakpoint_1): Use print_one_breakpoint when UI.
(print_one_breakpoint): Print breakpoint type when UI.
(breakpoint_1): Merge UI out code into non UI function.
* ui-out.c (make_cleanup_ui_out_stream_delete): New function. Wrap
make_cleanup.
(do_stream_delete): New function. Wrap ui_out_stream_delete.
* ui-out.h (make_cleanup_ui_out_stream_delete): Declare.
Sat Dec 11 00:12:41 1999 Andrew Cagney <[email protected]>
* breakpoint.c (breakpoint_1): Clone breakpoint_1 creating UI
and non-UI versions.
Mon Dec 6 20:31:28 1999 Andrew Cagney <[email protected]>
* gdbarch.sh: Replace field init_p with invalid_p.
(TARGET_BFD_VMA_BIT): New architecture vector method. Defaults to
architecture bits_per_address.
* gdbarch.h, gdbarch.c: Update.
* defs.h (TARGET_BFD_VMA_BIT): Provide default of TARGET_PTR_BIT
for non- multi-arch case.
* gdbtypes.h (builtin_type_bfd_vma, builtin_type_ptr,
builtin_type_CORE_ADDR): New GDB specific address types.
* gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
new builtin types.
Wed Dec 8 17:48:56 1999 Andrew Cagney <[email protected]>
* config/sparc/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Delete
definition. Already defined in config/nm-nbsd.h. Include the
more explicit config/nm-nbsd.h.
* config/sparc/nbsd.mt (TDEPFILES): Move solib.o from here.
* config/sparc/nbsd.mh (NATDEPFILES): To here.
* config/xm-nbsd.h: #include <sys/param.h> to get definition of
NGROUPS needed by <limits.h> and missing on some systems.
* config/nm-nbsd.h: Only macro's that match NetBSD definitions
with what is expected by solib.c when not SVR4_SHARED_LIBS.
* configure.host: Add patterns for sparc-*-netbsdaout* and
sparc-*-netbsdelf*.
* config/sparc/nm-nbsdelf.h: New file.
* config/sparc/nbsdelf.mh: New file.
Wed Dec 8 19:56:48 1999 Andrew Cagney <[email protected]>
* frame.h, blockframe.c: Rename default_frame_chain_valid to
file_frame_chain_valid. Rename alternate_frame_chain_valid to
func_frame_chain_valid.
* config/sparc/tm-sparclite.h, config/mips/tm-mipsv4.h,
config/m88k/tm-delta88v4.h, config/m68k/tm-m68kv4.h,
config/m68k/tm-monitor.h, config/i386/tm-i386nw.h,
config/i386/tm-i386v4.h, config/h8300/tm-h8300.h: Update.
* mips-tdep.c (mips_gdbarch_init): Update.
Wed Dec 8 19:12:17 1999 Andrew Cagney <[email protected]>
* blockframe.c (generic_file_frame_chain_valid): Rename
generic_file_frame_chain_valid.
* frame.h: Update.
* config/fr30/tm-fr30.h, config/m32r/tm-m32r.h,
config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
config/sh/tm-sh.h, config/v850/tm-v850.h, config/mcore/tm-mcore.h:
Update.
* blockframe.c (generic_func_frame_chain_valid): New function.
Implement dummy-frame equivalent of function based frame chain
valid.
* frame.h (generic_func_frame_chain_valid): Declare.
Wed Dec 8 16:26:27 1999 Andrew Cagney <[email protected]>
* blockframe.c (alternate_frame_chain_valid,
default_frame_chain_valid): Swap implementations. The change Mon
Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook> which converted
several macros to functions was backwards.
* mips-tdep.c (mips_gdbarch_init): Update. Call
alternate_frame_chain_valid and not default_frame_chain_valid.
Wed Dec 8 15:29:48 1999 Andrew Cagney <[email protected]>
* infptrace.c: Simplify handling of <sys/wait.h>. Always include
"wait.h" from the ../include/wait.h directory. #include
<sys/wait.h> was added as part of Mon Nov 29 12:14:10 1999 Andrew
Cagney <[email protected]> but the ChangeLog was omitted.
1999-12-07 Jim Blandy <[email protected]>
Add support for SSE registers in core files.
* corelow.c (get_core_register_section): New function.
(get_core_registers): Fetch the new ".reg-xfp" sections,
in addition to the traditional ".reg" and ".reg2" sections.
Check for per-thread variants of all three. Use
get_core_register_section, instead of writing it out over and over
again.
* i386-linux-nat.c (i386_linux_fetch_core_registers): New function.
(i386_linux_nat_core_fns): New core_fns structure. We do our own
core handling now, instead of using the generic code in core-regset.c.
(_initialize_i386_linux_nat): New function, needed to register
i386_linux_nat_core_fns.
* config/i386/linux.mh (NATDEPFILES): Remove core-regset.o;
i386-linux-nat.c has its own sniffer now.
* gdbcore.h: (struct core_fns): Doc fix.
* i386v-nat.c (i386_float_info): Definition is #if 0'd; delete it
altogether. This should use the function i387-tdep.c.
Patch from Mark Kettenis <[email protected]>:
* config/i386/tm-i386.h (FLOAT_INFO): New define.
* i387-tdep.c (print_i387_value, print_i387_ext,
print_i387_status_word, print_i387_control_word, i387_float_info):
New functions, used to implement generic `info float' command.
1999-12-06 Christopher Faylor <[email protected]>
* dcache.c (set_dcache_state): New function.
* dcache.h: Declare set_dcache_state().
Sat Dec 4 15:17:44 1999 Andrew Cagney <[email protected]>
* remote.c (build_remote_packet_sizes): Reduce the default packet
size of 400 bytes by one to 399. Stops GDB trashing stubs that
append a trailing NUL to an already full buffer.
Sat Dec 4 01:16:47 1999 Andrew Cagney <[email protected]>
* tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
(finish_tfind_command): Add parameter sizeof_msg.
* remote.c (remote_threads_info): Move assignment operator to
outside of function call.
(remote_send): Add parameter sizeof_buf.
(getpkt): Add parameter sizeof_buf. Call read_frame passing in
sizeof_buf.
* remote.h (getpkt): Update.
* tracepoint.c (remote_set_transparent_ranges,
remote_get_noisy_reply, trace_start_command, trace_stop_command,
trace_status_command, finish_tfind_command, trace_find_pc_command,
trace_find_tracepoint_command, trace_find_line_command,
trace_find_range_command, trace_find_outside_command): Update.
* remote.c (set_thread, remote_thread_alive,
remote_get_threadinfo, remote_get_threadlist,
remote_current_thread, remote_threads_info,
extended_remote_restart, get_offsets, remote_open_1,
remote_async_open_1, remote_wait, remote_async_wait,
remote_fetch_registers, check_binary_download, remote_write_bytes,
remote_read_bytes, remote_send, remote_detach,
remote_async_detach, remote_fetch_registers,
store_register_using_P, store_register_using_P,
remote_fetch_registers, remote_store_registers, putpkt_binary,
remote_insert_breakpoint, remote_remove_breakpoint,
compare_sections_command, remote_rcmd, packet_command,
remote_info_process, remote_query, remote_insert_watchpoint,
remote_search, remote_remove_watchpoint,
remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
Fri Dec 3 17:38:06 1999 Andrew Cagney <[email protected]>
* (read_frame): Add sizeof_buf parameter. Don't allow repeat when
first character. Always leave space at the end of the buffer.
Return size of packet or -1.
(getpkt): Update. Pass in PBUFSIZ.
1999-12-02 Elena Zannoni <[email protected]>
* breakpoint.c (print_it_typical): Print reason for stopping in
case of bp_until.
Thu Dec 2 17:14:53 1999 Andrew Cagney <[email protected]>
* ser-pipe.c: Include <string.h> for memset().
1999-12-01 Jim Blandy <[email protected]>
* gdbtypes.c (builtin_type_v4si, builtin_type_v8qi,
builtin_type_v4hi, builtin_type_v2si): New SIMD types.
(build_gdbtypes): Initialize them.
(_initialize_gdbtypes): Gdbarch_swap them.
* gdbtypes.h (builtin_type_v4si, builtin_type_v8qi,
builtin_type_v4hi, builtin_type_v2si): Declare them.
* findvar.c (read_register_bytes, write_register_bytes): Correctly
determine how the region the caller is writing overlaps with each
register's bytes.
* value.h (struct value): Doc fixes.
* valops.c (value_assign): Clarify error message.
1999-12-01 Elena Zannoni <[email protected]>
* stack.c (return_command_wrapper): New function, to export
return_command().
1999-12-01 Christopher Faylor <[email protected]>
* config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
1999-12-01 Elena Zannoni <[email protected]>
* inf-loop.c (inferior_event_handler): In case of
INF_EXEC_CONTINUE, don't do all the regular continuations, but
just the intermediate ones.
* infcmd.c (step_once): Add the continuation to the
intermediate_continuation list instead of the regular continuation
list.
* utils.c (add_intermediate_continuation): New function, to add
continuations to the intermedite_continuation list.
(do_all_intermediate_continuations): New function, do all the
continuations in the intermediate list.
(discard_all_intermediate_continuations): New function, discard
all the continuations in the intermediate list.
(intermediate_continuation): New global list for use by step_1().
* defs.h: Export intermediate_continuation,
add_intermediate_continuation, do_all_intermediate_continuations,
discard_all_intermediate_continuations.
1999-11-30 Christopher Faylor <[email protected]>
* win32-nat.c (mappings): Reorganize slightly for new uniform i386
register configuration.
(do_child_fetch_inferior_registers): Handle special case floating point
registers.
(handle_output_debug_string): Handle cygwin-specific signals broadcast
from the cygwin DLL.
(handle_exceptions): Add code to properly allow continuation after a
CTRL-C.
(child_continue): Accept propagated "continue_status" which controls
how the inferior should be continued.
(get_child_debug_event): New function.
(child_wait): Use above function to handle debug events.
(child_create_inferior): Add more intelligent method for running the
inferior to the appropriate point before handing it off to the rest of
gdb.
(child_stop): Specifically send a CTRL-C to the debugged process.
(child_kill_inferior): Set global continue status here to cause
inferior to run to completion.
(child_resume): Eliminate code which attempts to decide how to continue
the inferior. This is now handled by child_continue.
* config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
tm-i386.h.
Patch from Egor Duda ([email protected])
* win32-nat.c (psapi_get_dll_name): New function.
(handle_load_dll): Correctly load DLL symbol tables after attaching to
a running pid.
1999-11-30 Michael Snyder <[email protected]>
* infrun.c (handle_inferior_pid): revert 11-29 change: resuming
a thread other than the current thread with a signal. Apparently
target_resume with a specific pid, a specific signal, and no step
means to continue ALL threads but to only send the signal to one
(and not, as I had assumed, to continue only the specified thread).
* i386-linux-nat.c (fill_gregset): guard against invalid input.
1999-11-30 Elena Zannoni <[email protected]>
* infcmd.c (step_once): New function. Used to do just one step
operation.
(step_1_continuation): New function. Figure out if we need to step
again before returning control to the user.
(step_1): If we are in asynchronous mode, don't do the for loop,
but rather delegate to continuations the task of repeating the
step operation.
* utils.c (do_all_continuations): Copy the continuation list aside
before working on it.
* target.h (enum inferior_event_type): Add new enum
INF_EXEC_CONTINUE.
* inf-loop.c (inferior_event_handler): Handle new case
INF_EXEC_CONTINUE.
* infrun.c (fetch_inferior_event): If we are in the middle of a
'step n' type command, don't say that the execution is complete,
but that it will have to continue.
1999-11-30 Kevin Buettner <[email protected]>
* utils.c (verror): Don't traverse va_list argument twice. Also,
removed extraneous va_end() call.
1999-11-29 Michael Snyder <[email protected]>
* infrun.c (handle_inferior_pid): If a child thread stops on a
signal that we are ignoring, and GDB silently resumes the child,
resume ALL threads (not just the one that got the signal). All
threads are stopped, so all must be resumed.
(handle_inferior_event): on detecting a thread context switch,
swap infrun_state ONLY if both the old thread and the new one
are in the thread list. Otherwise state information will be lost!
Problem may arise with flaky back-ends.
1999-11-29 Elena Zannoni <[email protected]>
* infrun.c (print_stop_reason): Don't print end of stepping reason
if we are in the middle of a multistep command (same condition as
in normal_stop).
* breakpoint.c (bpstat_stop_status): Don't decrease hit_count
in case of a wp that has not changed.
Mon Nov 29 12:14:10 1999 Andrew Cagney <[email protected]>
* gdbtypes.c (init_simd_type): Make static.
* configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
* configure, config.h: Re-generate.
* inflow.c: Include <sys/ioctl.h>
* i386b-nat.c: Include "gdbcore.h".
* fork-child.c: Include "command.h".
* remote.c (remote_cisco_section_offsets,
remote_start_remote_dummy, store_register_using_P,
remote_info_process, remote_cisco_open, remote_cisco_close,
readsocket, readtty, minitelnet, remote_cisco_wait,
init_remote_async_ops, init_extended_async_remote_ops,
set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
ISO-C syntax for function definition.
Mon Nov 29 11:28:21 1999 Andrew Cagney <[email protected]>
* stabsread.c: Revert 1999-11-09 Jim Blandy
<[email protected]> and 1999-11-08 Jim Blandy
<[email protected]>. Broken on non-Linux targets.
1999-11-26 Elena Zannoni <[email protected]>
* symfile.c (show_load_progress): Add total sent so far to the
information passsed to the hook users.
(generic_load): Collect total sent so far and pass that to the
progress hook.
* defs.h (show_load_progress): Update.
1999-11-25 Nick Clifton <[email protected]>
* coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
targets.
* dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
targets.
Wed Nov 24 17:07:28 1999 Andrew Cagney <[email protected]>
* Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
directories can hook in extra init files.
Wed Nov 24 11:41:01 1999 Andrew Cagney <[email protected]>
* ui-out.h (field_string_ftype, ui_out_field_string): Make string
parameter const.
* cli-out.c (cli_field_string): Update.
* ui-out.c (uo_field_string, ui_out_field_string,
default_field_string): Update.
1999-11-23 Elena Zannoni <[email protected]>
* defs.h (show_load_progress): Export.
* symfile.c (show_load_progress): New hook for download.
(generic_load): Collect total size of executable to load.
Call progress hook when downloading.
Add output for ui case.
(print_transfer_performance): Add output for ui case.
Thu Nov 18 11:54:24 1999 Andrew Cagney <[email protected]>
* arc-tdep.c (codestream_fill): Rewrite byte swap code using
function extract_unsigned_integer.
Wed Nov 17 17:01:06 1999 Andrew Cagney <[email protected]>
* arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
1999-11-22 Jim Blandy <[email protected]>
* Makefile.in (i386-tdep.o): Update list of dependencies.
1999-11-22 Elena Zannoni <[email protected]>
* stack.c (print_frame_info_base): Adjust output for stepi/nexti case.
1999-11-22 Jim Blandy <[email protected]>
* config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted. All
of these should inherit identical or compatible values from
tm-i386.h, as long as you don't define HAVE_SSE_REGS or
HAVE_I387_REGS, which are new anyway.
Mon Nov 22 21:39:27 1999 Andrew Cagney <[email protected]>
* target.c (do_target_signal_to_host): New function. Indicate of
the conversion was successful to the caller via an additional
parameter.
(target_signal_to_host_p): New function. Return non-zero if the
GDB signal exists on the host system.
(target_signal_to_host): Rewrite. Use do_target_signal_to_host.
* target.h (target_signal_to_host_p): Add declaration. Document
target_singal vs host signal vs target OS signal confusion.
From 1999-11-08 Jimmy Guo <[email protected]>:
* hppah-nat.c (require_notification_of_events): Start by ignoring
all signals and then adding back in ones we're interested in.
Thu Nov 18 18:12:48 1999 Andrew Cagney <[email protected]>
* jv-typeprint.c (java_type_print_base), kod-cisco.c
(cisco_kod_open), kod.c (kod_set_os), xcoffread.c
(process_linenos), symfile.c (add_symbol_file_command),
remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
(captured_main), go32-nat.c (go32_create_inferior), exec.c
(exec_file_attach), corefile.c (core_file_command,
reopen_exec_file): Replace strdup with xstrdup.
* varobj.c (varobj_gen_name, c_name_of_child, c_value_of_variable,
cplus_value_of_variable): Replace strdup with xstrdup.
* ui-out.c (ui_out_table_begin): Ditto.
Mon Nov 22 12:02:47 1999 Andrew Cagney <[email protected]>
* bcache.c (print_bcache_statistics): Fix printf_filtered
arguments.
(print_percentage): Make function void.
1999-11-21 Jim Blandy <[email protected]>
Make the bcache hash table grow.
* bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
(struct bcache): Add new element: num_buckets. Make bucket be a
pointer to an array, not an array.
(free_bcache): New extern declaration.
* bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
(expand_hash_table): New function.
(bcache): Grow the hash table if the average chain length reaches
CHAIN_LENGTH_THRESHOLD.
(free_bcache): New function.
(print_bcache_statistics): Don't assume that the number of buckets
is constant any more.
(BSTRING_SIZE): Moved down to just above 'bcache' function, where
it's used.
* objfiles.c (free_objfile): Call free_bcache, instead of just
freeing the bcache's obstack directly.
* symfile.c (reread_symbols): Same.
1999-11-20 Jim Blandy <[email protected]>
* bcache.c, bcache.h: Rewritten. New version imposes less memory
overhead, and has a more effective hash function, so it's probably
faster, too.
* config/nm-linux.h: No need to check whether __STDC__ is
#defined --- GDB requires ANSI C now.
* config/i386/nm-linux.h (linuxthreads_pid_to_str,
linuxthreads_prepare_to_proceed): Delete declarations --- they're
provided by config/nm-linux.h now.
1999-11-19 Elena Zannoni <[email protected]>
* top.c (print_command_lines): Remove unused var.
1999-11-19 Jim Kingdon <[email protected]>
Patch applied by Jim Blandy <[email protected]>:
Enable threads for all linux architectures:
* config/nm-linux.h: New file.
config/alpha/nm-linux.h, config/i386/nm-linux.h,
config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
* config/tm-linux.h: New file.
* config/i386/tm-linux.h, config/m68k/tm-linux.h,
config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
* config/m68k/linux.mh, config/sparc/linux.mh,
config/alpha/alpha-linux.mh: Add linux-thread.o.
1999-11-18 Tom Tromey <[email protected]>
* tracepoint.h (get_tracepoint_by_number): Updated declaration.
* tracepoint.c (trace_pass_command): Better error message. Fixed
logic when `all' not specified.
(get_tracepoint_by_number): Added `optional_p' argument. Fixed
all callers.
Wed Nov 17 17:40:30 1999 Andrew Cagney <[email protected]>
* findvar.c (SWAP_FLOATING): Delete macro. Unused.
1999-11-16 Mark Salter <[email protected]>
* monitor.c (monitor_supply_register): Initialize value to zero.
1999-11-15 Eli Zaretskii <[email protected]>
(Patches applied by Jim Blandy <[email protected]>)
Change DJGPP target use the common register layout in
config/i386/tm-i386.h.
* config/i386/tm-go32.h: #include "i386/tm-i386.h", not
"i386/tm-i386v.h".
(HAVE_I387_REGS): Define.
(HAVE_SSE_REGS): Undefine.
(NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
deleted.
(i387_to_double, double_to_i387): Declarations deleted.
(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
REGISTER_VIRTUAL_TYPE): Use definitions from
config/i386/tm-i386.h, unless LD_I387 is #defined.