OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [ChangeLog] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1258 hpanther
2004-01-13  Jon Beniston  

       * remote.c (remote_insert/remove_breakpoint): Try using
       h/w breakpoints when s/w breakpoints fail for targets
       running from ROM.
2
 
3
2002-12-10  GDB Administrator  
4
5
        * version.in: Bump to version 5.3.
6
 
7
 
8 1181 sfurman
9
 
10
11
 
12
13
 
14
15
 
16
17
 
18
19
 
20
        (store_inferior_registers): Add comment on problem of LWP vs
21
 
22
23
 
24
        * lin-lwp.c (lin_lwp_fetch_registers): Remove.
25
        (lin_lwp_store_registers): Remove.
26
        (init_lin_lwp_ops): Use fetch_inferior_registers
27
 
28
        * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
29
        (store_inferior_registers): Likewise.
30
        Fix PR gdb/725
31
32
2002-12-03  Andrew Cagney  
33
34
        * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
35
        patch.
36
 
37
38
 
39
40
        * MAINTAINERS (Java): Global maintainers are responible for Java.
41
        (Past Maintainers): Mention both Anthony Green and Per Bothner as
42
 
43
44
 
45
46
        * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
47
        why aix-thread.o is not listed.
48
 
49
2002-11-28  J. Brobecker  
50
 
51
        * configure.in: Check that the pthdebug library is recent enough
52
        before enabling thread support on native AiX.
53
 
54
55
 
56
        from the list of object files as it is now appended by configure
57
        if thread support is enabled.
58
        (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
59
 
60
61
2002-11-25  Daniel Jacobowitz  
62
63
        * acconfig.h (HAVE_PREAD64): Add.
64
        * configure.in: Check for pread64.
65
 
66
        * configure: Regenerated.
67
 
68
        * linux-proc.c (linux_proc_xfer_memory): New function.
69
        * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
70
71
2002-11-25  Christopher Faylor  
72
73
        * win32-nat.c (child_attach): Reset saw_create counter or subsequent
74
        attach will hang.
75
 
76
2002-11-25  Christopher Faylor  
77
 
78
        * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
79
        (struct so_stuff): Add end_addr field.
80
 
81
        (solib_address): New function.
82
 
83
        section info to safe_symbol_file_add rather than ignoring it.
84
        (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
85
        DLL is loaded.
86
        (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
87
        (child_create_inferior): Fix a compiler warning.
88
        * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
89
        (solib_address): Declare new function.
90
91
2002-11-25  Andrew Cagney  
92
93
        * ns32k-tdep.c: Include "gdb_string.h".
94
        * mcore-tdep.c, cris-tdep.c, vax-tdep.c: Ditto.
95
 
96
        * Makefile.in (sh3-rom.o): Update dependencies.
97
 
98
        (cris-tdep.o): Ditto.
99
100
2002-11-25  David Carlton  
101
102
        * dwarf2read.c (scan_partial_symbols): Descend into namespace
103
        pdi's with no name.
104
 
105
2002-11-21  Daniel Jacobowitz  
106
 
107
        * maint.c (_initialize_maint_cmds): Fix typo.  From
108
        Francesco Potorti` .
109
 
110
2002-11-19  Andrew Cagney  
111
 
112
        Problems reported by Paul Eggert.
113
        * gdbarch.sh: Use `sort -k 3`.
114
 
115
2002-11-19  Andrew Cagney  
116
 
117
        From mainline:
118
        2002-11-12  Andrew Cagney  
119
 
120
121
 
122
123
        Import from mainline:
124
125
 
126
        set current_type variable for fields of THIS.
127
 
128
2002-11-12  Andrew Cagney  
129
 
130
        * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
131
        a constant buffer; cannonicalize_file_name(); realpath() with a
132
 
133
134
 
135
136
        * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
137
        to hang2.C; hang3.c to hang3.C.
138
 
139
2002-11-08  Andrew Cagney  
140
 
141
        * Makefile.in (DESTDIR): Define.
142
        (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
143
 
144
145
 
146
        i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
147
148
2002-11-06  Joel Brobecker  
149
 
150
        * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
151
152
 
153
154
 
155
        * f-exp.y: Add missing semi-colons.
156
 
157
        * p-exp.y: Add missing semi-colons.
158
 
159
        building with bison >= 1.50.
160
161
2002-10-31  Joel Brobecker  
162
163
        * hppa-tdep.c (low_text_segment_addres): Fix a compilation warning.
164
165
 
166
167
 
168
        * i386v-nat.c: Include "i386-tdep.h".
169
 
170
2002-10-22  David Carlton  
171
 
172
        * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
173
        (dwarf_attr_name): Ditto.
174
 
175
        (scan_partial_symbols): Descend into DW_TAG_namespace entries.
176
 
177
        DW_TAG_imported_declaration, DW_TAG_imported_module.
178
        (read_namespace): New function.
179
180
2002-10-22  Christopher Faylor  
181
182
        * Makefile.in (install-gdbtk): Add missing continuation backslash to
183
        insure that shell variables, such as "transformed_name" are propagated
184
 
185
186
 
187
188
        * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
189
        * config/i386/obsd.mt: New file.
190
 
191
        i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
192
 
193
        i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
194
        i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
195
        * i386obsd-tdep.c: New file.
196
197
        * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
198
        to allocate partial syms and macro byte caches.
199
200
2002-10-02  Daniel Jacobowitz  
201
 
202
        Fix PR gdb/778
203
        * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
204
 
205
        * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
206
 
207
208
2002-10-01  Alexandre Oliva  
209
210
        * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
211
        of the section for the N64 ABI, fixed.
212
 
213
        * config/mips/tm-irix6.h: Include solib.h.
214
 
215
2002-10-01  Andrew Cagney  
216
217
 
218
        "vrsave"'s register number.
219
 
220
2002-09-29  Andrew Cagney  
221
 
222
        * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
223
        i386gnu-tdep.c.
224
 
225
2002-09-29  Andrew Cagney  
226
 
227
        * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
228
        __FUNCTION__.
229
 
230
        with function name.
231
 
232
        (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
233
        (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
234
        (S_msg_sig_post_reply): Ditto.
235
236
2002-09-28  Andrew Cagney  
237
238
        Import from mainline:
239
240
 
241
        * Makefile.in (gdbtk-main.o): New target.
242
 
243
        (main_h): Define.
244
 
245
        (gdb$(EXEEXT)): Add gdb.o.
246
        (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
247
        (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
248
        (SUBDIR_GDBTK_CLEAN): Set.
249
        (install-gdbtk): Install the insight binary.
250
        (uninstall-gdbtk): New target.
251
        (all-gdbtk, clean-gdbtk): New rule.
252
        * top.c (use_windows): Default to zero.
253
        * main.c: Include "main.h".
254
        (main): Delete.
255
        (struct captured_main_args): Delete.
256
        (gdb_main): New function.
257
        * main.h: New file.
258
        * gdb.c: New File.
259
260
2002-09-03  Andrew Cagney  
261
262
        * frame.c: Include "gdb_string.h" and "builtin-regs.h".
263
        (frame_map_regnum_to_name): New function.
264
 
265
        * frame.h (frame_map_name_to_regnum): Declare.
266
 
267
        * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
268
        * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
269
        * parse.c: Do not include "builtin-regs.h".
270
        (target_map_name_to_register): Delete function.
271
        (write_dollar_variable): Use frame_map_name_to_regnum.
272
        * parser-defs.h (target_map_name_to_register): Delete declaration.
273
        * expprint.c: Include "frame.h".
274
        (print_subexp): Use frame_map_regnum_to_name.
275
        * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
276
        * infcmd.c (registers_info): Use frame_map_name_to_regnum.
277
278
2002-09-24  Jim Blandy  
279
280
        Fix from Paul Breed:
281
        * main.c (captured_main): Add a `break' after the case for 'b'.
282
 
283
        * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
284
 
285
        objfile_relocate to miss them.  This is fixable, but the work that
286
        the change was supposed to prepare GDB for never got done anyway.
287
 
288
2002-09-18  Andrew Cagney  
289
290
        * ada-lang.c, ada-tasks.c, ada-valprint.c: Import from mainline.
291
292
 
293
        (signal_print_update): Ditto.
294
 
295
        * inflow.c (terminal_save_ours): Ditto.
296
 
297
        * config/djgpp/fnchange.lst: Handle name clashes between
298
        bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
299
        bfd/coff-tic80.c.
300
301
 
302
303
2002-09-18  Daniel Jacobowitz  
304
305
 
306
        * values.c (value_static_field): Call read_var_value.
307
 
308
2002-09-18  Theodore A. Roth  
309
 
310
        * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
311
        generic_read_register_dummy() (PR gdb/703).
312
 
313
        (avr_gdbarch_init): Enable use of avr_push_return_address().
314
 
315
2002-09-18  Michal Ludvig  
316
317
        * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
318
        registers.
319
 
320
2002-09-15  Elena Zannoni  
321
 
322
        From Jeff Law 
323
        * infttrace.c (child_resume): Simplify and rework to avoid
324
 
325
326
 
327
328
        From: Emmanuel Thome'  
329
        * top.c (init_main): Set rl_terminal_name.
330
 
331
2002-09-10  Andrew Cagney  
332
 
333
        * infcmd.c (default_print_registers_info): Send all output to
334
        ``file'' instead of ``gdb_stdout''.
335
 
336
2002-09-10  Stephane Carrez  
337
 
338
        * event-loop.c (gdb_do_one_event): Make public.
339
        * event-loop.h (gdb_do_one_event): Declare.
340
 
341
2002-09-05  Andrew Cagney  
342
 
343
        * NEWS: Update for 5.3.
344
        * README: Update.
345
 
346
2002-09-04  Andrew Cagney  
347
 
348
        GDB 5.3 branch created.
349
        * version.in: Updated.
350
 
351
2002-09-03  Theodore A. Roth  
352
 
353
        * gdb/avr-tdep.c (avr_gdbarch_init): Use
354
        generic_unwind_get_saved_register.
355
 
356
2002-09-03  David Carlton  
357
 
358
        * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
359
        argument (PR gdb/653).  Update call to smash_to_method_type.
360
 
361
362
 
363
364
        * x86-64-linux-tdep.c: Include gdb_string.h
365
        * x86-64-linux-nat.c: Ditto.
366
 
367
2002-09-02  Jason Thorpe  
368
 
369
        * ada-exp.y (yyname, yyrule): Remap global variables that appear
370
        when YYDEBUG is set to 1.
371
 
372
        * f-exp.y: Likewise.
373
 
374
        * m2-exp.y: Likewise.
375
        * p-exp.y: Likewise.
376
377
2002-09-02  Jason Thorpe  
378
379
        * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
380
        dependency list.
381
 
382
        solib_svr4_fetch_link_map_offsets to
383
 
384
        * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
385
        * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
386
        * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
387
        solib-svr4.o, and solib-legacy.o.
388
        * config/i386/tm-nbsd.h: Include solib.h.
389
390
2002-09-02  Jason Thorpe  
391
392
        * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
393
        (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd.
394
 
395
        comment noting that this needs its own target configuration.
396
 
397
        * config/i386/nbsdaout.mt: Remove.
398
        * config/i386/nbsdelf.mt: Ditto.
399
        * config/i386/tm-nbsdaout.h: Ditto.
400
401
2002-09-02  Jason Thorpe  
402
403
        * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
404
        (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
405
 
406
        tdep->sigtramp_end.
407
 
408
        * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
409
        (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
410
411
2002-09-02  Jason Thorpe  
412
413
        * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
414
        $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
415
 
416
        * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
417
 
418
        (_initialize_i386bsd_tdep): Don't register OS ABI handlers
419
        for NetBSD-a.out or NetBSD-ELF.
420
        (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
421
        (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
422
        (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
423
        * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
424
        and nbsd-tdep.h.
425
        (i386nbsd_pc_in_sigtramp): New function.
426
        (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
427
        i386nbsd_pc_in_sigtramp.
428
        (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
429
        and i386nbsdelf_init_abi OS ABI handlers.
430
        * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
431
        * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
432
433
2002-09-02  Mark Kettenis  
434
435
        * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
436
        registers if the target really has them.
437
 
438
2002-08-31  Jason Thorpe  
439
 
440
        * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
441
        than nbsd-tdep.h.
442
 
443
2002-08-31  Jason Thorpe  
444
 
445
        * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
446
        list.
447
 
448
        (alphanbsd_skip_sigtramp_frame): New functions.
449
 
450
        alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
451
        to alphanbsd_sigcontext_addr.
452
453
2002-08-31  Jason Thorpe  
454
455
        * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
456
        list.
457
 
458
        * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
459
 
460
        * mipsnbsd-tdep.c: Include nbsd-tdep.h.
461
        (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
462
        * nbsd-tdep.c: Include gdb_string.h.
463
        (nbsd_pc_in_sigtramp): New function.
464
        * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
465
        * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
466
        (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
467
        ppcnbsd_pc_in_sigtramp.
468
        * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
469
        (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
470
        shnbsd_pc_in_sigtramp.
471
        * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
472
        gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
473
        * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
474
475
2002-08-30  Pierre Muller  
476
477
        * breakpoint.c (breakpoint_init_inferior): Reset the val field of
478
        watchpoints to NULL.
479
 
480
481
 
482
2002-08-29  Jim Blandy  
483
484
        * symtab.c (lookup_symbol_aux): In the cases where we find a
485
 
486
 
487
        as the demangled name when searching the symtab's global and
488
 
489
490
2002-08-29  Keith Seitz  
491
492
        * stack.c (print_frame_info_base): Always set current_source_symtab
493
        and current_source_line.
494
 
495
2002-08-29  Donn Terry  
496
 
497
        * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
498
499
 
500
501
 
502
        events.
503
 
504
        event notification, but only if the level actually changed.
505
 
506
        notification.
507
        (down_silently_base): Likewise.
508
509
2002-08-28  Andrew Cagney  
510
511
        * Makefile.in: Update dependencies for all gdb/*.c files.
512
513
 
514
515
 
516
        ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
517
 
518
        * i387-tdep.c: Include gdb_string.h.
519
 
520
        * i386-linux-nat.c: Likewise.
521
        * lin-lwp.c: Likewise.
522
        * ax-gdb.c: Likewise.
523
        * signals/signals.c: Likewise.
524
        * jv-valprint.c: Likewise.
525
        * p-lang.c: Likewise.
526
        * c-valprint.c: Likewise.
527
        * cp-abi.c: Likewise.
528
529
2002-08-27  Elena Zannoni  
530
531
        * cli/cli-script.h (copy_command_lines): Export.
532
        * breakpoint.c: Include cli/cli-script.h.
533
 
534
535
 
536
537
        * cli/cli-script.c (copy_command_lines): New function.
538
        * defs.h (copy_command_lines): Export.
539
 
540
        attached to a temporary breakpoint, and for commands that
541
 
542
543
2002-08-26  Michael Snyder  
544
545
        * breakpoint.c (bpstat_stop_status): Instead of copying the
546
        pointer to the breakpoint commands struct, make a new copy
547
 
548
        (bpstat_clear): Free the commands struct.
549
 
550
        (bpstat_do_actions): Free the command actions.  Also execute
551
        the local cleanups, instead of deleting them.
552
        (delete_breakpoint): Leave the commands field of the bpstat
553
        chain alone -- it will be freed later.
554
555
2002-08-26  Kevin Buettner  
556
557
        * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
558
        deleted in 2002-08-20 commit.  This function is still used by
559
 
560
561
 
562
563
        * gdb-events.sh: Add selected-frame-level-changed event.
564
        * gdb-events.c: Regenerated.
565
 
566
567
 
568
569
        Fix PR gdb/393:
570
        * inflow.c (terminal_save_ours): New function to save terminal
571
 
572
        * inferior.h (terminal_save_ours): Declare.
573
 
574
        (cleanup_target): Defaults to_terminal_save_ours.
575
        (update_current_target): Inherit to_terminal_save_ours.
576
        (setup_target_debug): Set to_terminal_save_ours.
577
        * target.h (target_terminal_save_ours): New to save terminal settings.
578
        (target_ops): New member to_terminal_save_ours.
579
        * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
580
        * hpux-thread.c (init_hpux_thread_ops): Likewise.
581
        * inftarg.c (init_child_ops): Likewise.
582
        * m3-nat.c (init_m3_ops): Likewise.
583
        * procfs.c (init_procfs_ops): Likewise.
584
        * wince.c (init_child_ops): Likewise.
585
        * win32-nat.c (init_child_ops): Likewise.
586
        * sol-thread.c (init_sol_thread_ops): Likewise.
587
588
2002-08-26  Mark Kettenis  
589
590
        * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
591
        use regcache_* functions.
592
 
593
        deprecated_store_return_value.
594
 
595
        * regcache.c (regcache_raw_write_signed,
596
        regcache_raw_write_unsigned): New functions.
597
        * regcache.h (regcache_raw_write_signed,
598
        regcache_raw_write_unsigned): New prototypes.
599
 
600
2002-08-25  Andrew Cagney  
601
602
        * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
603
        (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
604
 
605
606
 
607
608
        * regcache.h (register_offset_hack): Declare.
609
        (regcache_cooked_read_using_offset_hack): Declare.
610
 
611
612
 
613
        (regcache_cooked_read_using_offset_hack): New function.
614
        (regcache_cooked_write_using_offset_hack): New function.
615
        (regcache_dump): Check that the registers, according to their
616
 
617
        (cooked_xfer_using_offset_hack): New function.
618
619
2002-08-25  Andrew Cagney  
620
621
        * regcache.c (struct regcache_descr): Add field register_type.
622
        (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
623
 
624
        (init_regcache_descr): Initialize register_type.  Pass the descr
625
 
626
        REGISTER_VIRTUAL_TYPE.
627
        (register_type): New function.
628
        (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
629
        * regcache.h (register_type): Declare.
630
631
2002-08-25  Andrew Cagney  
632
633
        * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
634
        instead of deprecated_store_return_value.  Fix fallout from
635
 
636
637
 
638
639
        * regcache.c (max_register_size): New function.
640
        (init_legacy_regcache_descr): Ensure that max_register_size is
641
 
642
        * regcache.h (max_register_size): Declare.
643
 
644
2002-08-24  Andrew Cagney  
645
646
        * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
647
        store_return_value.
648
 
649
        void.
650
 
651
2002-08-24  Mark Kettenis  
652
653
        * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
654
        workaround.
655
 
656
        * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
657
 
658
        long long) to prevent compiler warning on 64-bit systems.
659
660
 
661
662
        * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
663
        (DEPRECATED_STORE_RETURN_VALUE): New method.
664
 
665
        * gdbarch.h, gdbarch.c: Re-generate.
666
 
667
        * values.c (set_return_value): Pass current_regcache to
668
        STORE_RETURN_VALUE.
669
        * arch-utils.h (legacy_store_return_value): Declare.
670
        * arch-utils.c (legacy_store_return_value): New function.
671
 
672
673
        * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
674
        STORE_RETURN_VALUE.
675
        * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
676
        * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
677
 
678
        * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
679
        * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
680
        * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
681
        * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
682
        * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
683
        * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
684
        * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
685
686
        * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
687
        * i386-tdep.c (i386_extract_return_value): Update.
688
        * arch-utils.c (legacy_extract_return_value): Update.
689
        * frv-tdep.c (frv_gdbarch_init): Update.
690
 
691
        * d10v-tdep.c (d10v_gdbarch_init): Update.
692
        * rs6000-tdep.c (rs6000_gdbarch_init): Update.
693
        * m68k-tdep.c (m68k_gdbarch_init): Update.
694
        * mcore-tdep.c (mcore_gdbarch_init): Update.
695
        * mn10300-tdep.c (mn10300_gdbarch_init): Update.
696
        * s390-tdep.c (s390_gdbarch_init): Update.
697
        * sparc-tdep.c (sparc_gdbarch_init): Update.
698
        * sh-tdep.c (sh_gdbarch_init): Update.
699
        * x86-64-tdep.c (x86_64_gdbarch_init): Update.
700
        * v850-tdep.c (v850_gdbarch_init): Update.
701
        * avr-tdep.c (avr_gdbarch_init): Update.
702
        * ia64-tdep.c (ia64_gdbarch_init): Update.
703
        * ns32k-tdep.c (ns32k_gdbarch_init): Update.
704
        * vax-tdep.c (vax_gdbarch_init): Update.
705
        * alpha-tdep.c (alpha_gdbarch_init): Update.
706
        * arm-tdep.c (arm_gdbarch_init): Update.
707
        * mips-tdep.c (mips_gdbarch_init): Update.
708
        * i386-tdep.c (i386_gdbarch_init): Update.
709
710
2002-08-23  Andrew Cagney  
711
712
        * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
713
        bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
714
 
715
2002-08-24  Mark Kettenis  
716
 
717
        * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
718
        problems.
719
 
720
2002-08-23  Joel Brobecker  
721
 
722
        * infrun.c (handle_inferior_event): Move a comment outside of a
723
        function call, in order to avoid indent reformatting this part
724
 
725
726
 
727
728
        * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
729
        when breakpoints fail. Move general breakpoint error messages to
730
 
731
        * breakpoint.c (insert_breakpoints): Change warnings when
732
 
733
        memory_error when hardware breakpoints can't be inserted. Remove
734
        multiple calls to warning so all messages are sent to the user at
735
        once.
736
        (delete_breakpoints): Make insert error messsages more explicit.
737
738
2002-08-23  Daniel Jacobowitz  
739
740
        * ChangeLog: Move gdbserver entries after GDB 5.2 to
741
        gdbserver/ChangeLog.
742
 
743
2002-08-23  Mark Kettenis  
744
 
745
        * i386-tdep.c: Include "objfiles.h".
746
        (i386_svr4_init_abi): Set in_solib_call_trampoline and
747
 
748
        * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
749
 
750
751
        * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
752
        member.
753
        (linux_corefile_thread_callback): Increase args->num_notes.
754
        (linux_make_note_section): Initialize thread_args.num_notes, and
755
 
756
757
2002-08-23  Donn Terry  
758
759
        * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
760
        corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
761
 
762
        (write_with_trace): Conditionalize out the switch branch handling
763
 
764
        PRSABORT and PRSTOP.
765
        This change will be needed by the Interix port.
766
767
2002-08-22  Elena Zannoni  
768
769
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
770
        write_register wherever possible instead of manipulating the
771
 
772
        Assign VALUE_CONTENTS to a variable and use that.
773
 
774
775
2002-08-22  Elena Zannoni  
776
777
        * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
778
        ev_offset fields.
779
 
780
        (e500_extract_return_value): New function.
781
 
782
        pseudo gpr's.
783
        (e500_store_return_value): New function.
784
        (rs6000_gdbarch_init): Move up default intializations of
785
        deprecated_extract_return_value and store_return_value.  Overwrite
786
        init of store_return_value with e500 specific version.
787
        Set extract_return_value for e500.
788
789
2002-08-22  Elena Zannoni  
790
791
        * blockframe.c (generic_call_dummy_register_unwind): Use
792
        regcache_cooked_read to catch cases in which the variable is
793
 
794
795
 
796
797
        * NEWS: Mention that the i960 has been made obsolete.
798
        * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
799
 
800
        (remote-nrom.o): Obsolete target.
801
 
802
        * remote-nrom.c: Make file obsolete.
803
        * remote-nindy.c, remote-vx960.c: Ditto.
804
        * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
805
        * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
806
        * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
807
        * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
808
        * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
809
        i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
810
        i960-*-vxworks* obsolete.
811
        * MAINTAINERS: Note that the i960 is obsolete.
812
813
2002-08-21  Corinna Vinschen  
814
815
        * aix-thread.c (aix_thread_detach): Disable thread debugging on
816
        detach to allow reinitialization.
817
 
818
2002-08-22  Andrew Cagney  
819
 
820
        * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
821
        attempt).
822
 
823
2002-08-22  Jim Blandy  
824
 
825
        * coffread.c (coff_symfile_read): Don't try to read the line
826
        number table from disk if the image file doesn't have a symbol
827
 
828
        ships DLL's with bogus file offsets for the line number data.
829
 
830
2002-08-21  Elena Zannoni  
831
832
        * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
833
        an e500 executable.
834
 
835
2002-08-21  Michael Snyder  
836
 
837
        * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
838
        (MSYMBOL_SIZE): Replace macro with function.
839
 
840
        * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
841
 
842
843
2002-08-21  Jim Blandy  
844
845
        * valops.c (value_cast): Simplify and correct logic for doing a
846
        static cast from a pointer to a base class to a pointer to a
847
 
848
849
 
850
851
        * infcmd.c (default_print_registers_info): Replace
852
        do_registers_info.
853
 
854
        DO_REGISTERS_INFO.
855
 
856
        do_registers_info.
857
        * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
858
        (DO_REGISTERS_INFO): Change to a predicate function.
859
        * gdbarch.h, gdbarch.c: Regenerate.
860
861
2002-08-21  Keith Seitz  
862
863
        * gdb-events.sh: Add target-changed event.
864
        * gdb-events.c: Regenerated.
865
 
866
        * valops.c (value_assign): Add target-changed event notification
867
 
868
869
2002-08-21  Joel Brobecker  
870
871
        * NEWS: Add an entry regarding the improvement of the next/step
872
        operation on Alpha Tru64 multi-processor machines.
873
 
874
2002-08-21  Andrew Cagney  
875
 
876
        * Makefile.in: Update dependencies for mi/ cli/ and tui/
877
        directores.
878
 
879
        * Makefile.in (install-gdbtk): Move to install section.
880
 
881
882
2002-08-19  Andrew Cagney  
883
884
        * frame.c (frame_register_unwind): When a register, set addrp to
885
        the register's byte.
886
 
887
2002-08-20  Michael Snyder  
888
 
889
        * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
890
        used locally, so move them from the target machine header to here.
891
 
892
        mips16_next_pc, cached_proc_desc, mips_set_processor_type):
893
 
894
        * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
895
896
2002-08-20  Andrew Cagney  
897
898
        * NEWS: Mention that the Apollo line was made obsolete.
899
        * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
900
 
901
        * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
902
 
903
        * buildsym.c (make_blockvector): Make static.
904
        * buildsym.h (make_blockvector): Make extern declaration obsolete.
905
        * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
906
        (ALLDEPFILES): Remove dstread.c.
907
        (dstread.o): Obsolete make rule.
908
        * dstread.c: Makefile obsolete.
909
        * dst.h: Ditto.
910
        * config/m68k/hp300hpux.mt: Ditto.
911
        * config/m68k/hp300hpux.mh: Ditto.
912
        * config/m68k/hp300bsd.mt: Ditto.
913
        * config/m68k/hp300bsd.mh: Ditto.
914
        * config/m68k/apollo68b.mt: Ditto.
915
        * config/m68k/apollo68v.mh: Ditto.
916
        * config/m68k/apollo68b.mh: Ditto.
917
918
2002-08-20  Michael Snyder  
919
920
        * mips-tdep.c (mips_in_return_stub): Make static.
921
        (mips_gdbarch_init): Set in_solib_return_trampoline.
922
 
923
924
 
925
926
        * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
927
        * gdbarch.c, gdbarch.h: Regenerate.
928
 
929
        Add.
930
 
931
932
2002-08-20  Michael Snyder  
933
934
        * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
935
        (mips_gdbarch_init): Set skip_trampoline_code,
936
 
937
        * config/mips/tm-mips.h (REGISTER_NAME): Delete.
938
 
939
940
2002-08-20  Elena Zannoni  
941
942
        * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
943
944
 
945
        vector type for ev registers.
946
 
947
        (e500_pseudo_register_write): New function.
948
 
949
        (PPC_UISA_NOFP_SPRS): New macro.
950
        (PPC_EV_REGS): New macro.
951
        (PPC_GPRS_PSEUDO_REGS): New macro.
952
        (registers_e500): New register set for e500.
953
        (variants): Add e500 variant.
954
        (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
955
        before setting architectural dependent variations.  Initialize ev
956
        registers numbers.  Add case for e500 architecture.  Set the
957
        number of pseudo registers.
958
959
2002-08-20  Elena Zannoni  
960
961
        * rs6000-tdep.c: Clean up comments.
962
963
 
964
965
 
966
967
 
968
969
 
970
        default for this.
971
 
972
2002-08-20  Keith Seitz  
973
 
974
        * breakpoints.c (watch_command_1): Use internal breakpoint
975
        when setting a watchpoint_scope breakpoint.
976
 
977
2002-08-20  Elena Zannoni  
978
 
979
        * gdbtypes.c (build_builtin_type_vec64): Add name to type.
980
        (build_builtin_type_vec64i): Ditto.
981
 
982
        (build_builtin_type_vec128i): Ditto.
983
 
984
2002-08-19  Michael Snyder  
985
986
        * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
987
        (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
988
 
989
        POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
990
 
991
        CALL_DUMMY_ADDRESS): Delete.
992
        * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
993
        mips_msymbol_is_special, mips_fix_call_dummy): New functions.
994
        (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
995
        push_dummy_frame, fix_call_dummy, init_extra_frame_info,
996
        push_return_address.
997
        (mips_register_raw_size, mips_eabi_use_struct_convention,
998
        mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
999
        mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1000
        mips_init_extra_frame_info, mips_eabi_push_arguments,
1001
        mips_n32n64_push_arguments, mips_push_return_address,
1002
        mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1003
        mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1004
1005
2002-08-19  Michael Snyder  
1006
1007
        * mips-tdep.c (mips_frame_num_args): New function.
1008
        (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1009
 
1010
        frame_num_args, and frame_args_skip.
1011
 
1012
        FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1013
        FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1014
        * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1015
1016
2002-08-20  Michael Snyder  
1017
1018
        * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1019
        (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1020
 
1021
        (mips_extract_struct_value_address): New function.
1022
 
1023
        extract_struct_value_address.
1024
1025
2002-08-20  David Carlton  
1026
1027
        * dwarf2read.c (dwarf2_build_psymtabs): Check that
1028
        dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1029
 
1030
        decoding macro information.
1031
 
1032
2002-08-20  Mark Kettenis  
1033
1034
        * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1035
        flag the general-purpose registers as floating-point on targets
1036
 
1037
1038
 
1039
1040
        * rs6000-tdep.c (altivec_register_p): Delete.
1041
        (rs6000_do_altivec_registers): Delete.
1042
 
1043
        (rs6000_do_registers_info): Delete.
1044
 
1045
        (rs6000_gdbarch_init): Remove setting of do_registers_info.
1046
1047
2002-08-20  Elena Zannoni  
1048
1049
        * infcmd.c (do_registers_info): Print vector registers in hex
1050
        format only.
1051
 
1052
        makes sense.
1053
 
1054
1055
2002-08-20  Andrew Cagney  
1056
1057
        * mips-tdep.c (mips_gdbarch_init): Update.
1058
        (mips_o32_extract_return_value): Rewrite.
1059
 
1060
        (mips_o32_xfer_return_value): New function.
1061
 
1062
        buf_offset when dumping the value transfered.
1063
1064
2002-08-20  Andrew Cagney  
1065
1066
        * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1067
        * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1068
 
1069
        * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1070
 
1071
1072
2002-08-14  Michael Snyder  
1073
1074
        * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1075
1076
 
1077
1078
 
1079
        register.
1080
 
1081
        (R, R4, R8, R16, FR32, R64, R0): Updated.
1082
 
1083
        and number of total registers.
1084
        (tot_num_registers): New macro replacing....
1085
        (num_registers): ...deleted macro.
1086
        (num_registers): New function.
1087
        (num_pseudo_registers): New function.
1088
        (variants): Update all variants to intialize new fields correctly.
1089
        Postpone initialization of number of pseudo regs and real regs.
1090
        (init_variants): New function.
1091
        (rs6000_gdbarch_init): Initialize variants.  Update calculation of
1092
        registers offsets.
1093
1094
2002-08-19  David Carlton  
1095
1096
        * valops.c (search_struct_field): Change error message to treat
1097
        return value of 0 from value_static_field as meaning that field is
1098
 
1099
        (value_struct_elt_for_reference): Ditto.
1100
 
1101
        same as a nonexistent symbol.  Fix PR gdb/635.
1102
        * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1103
        enclosed.  Fix PR gdb/574.
1104
        * MAINTAINERS: Add self to Write After Approval list.
1105
1106
2002-08-19  Andrew Cagney  
1107
1108
        * mips-tdep.c (mips_xfer_register): New function.
1109
        (mips_n32n64_extract_return_value): Rewrite.
1110
 
1111
        instead of deprecated_extract_return_value.
1112
 
1113
2002-08-19  Elena Zannoni  
1114
1115
        * rs6000-tdep.c (TDEP): Delete macro.
1116
        (branch_dest): Replace use of TDEP macro with its body.
1117
 
1118
        (rs6000_push_arguments): Ditto.
1119
 
1120
        (rs6000_frame_saved_pc): Ditto.
1121
        (rs6000_frame_chain): Ditto.
1122
        (rs6000_register_name): Ditto.
1123
        (rs6000_register_byte): Ditto.
1124
        (rs6000_register_raw_size): Ditto.
1125
        (rs6000_register_virtual_type): Ditto.
1126
        (rs6000_register_convertible): Ditto.
1127
        (rs6000_convert_from_func_ptr_addr): Ditto.
1128
1129
2002-08-19  Daniel Jacobowitz  
1130
1131
        * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1132
        conditionally.
1133
 
1134
        MIPS_LINUX_JB_ELEMENT_SIZE.
1135
 
1136
        for MAX_REGISTER_RAW_SIZE arrays.
1137
        (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1138
        MIPS_LINUX_JB_ELEMENT_SIZE.
1139
1140
2002-08-19  Pierre Muller  
1141
1142
        * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1143
1144
 
1145
1146
 
1147
        ada-valprint.c ada-tasks.c.
1148
 
1149
        (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1150
 
1151
        (ada-exp.tab.o): New target.
1152
1153
2002-08-18  Andrew Cagney  
1154
1155
        * regcache.c (regcache_xfer_part): New function.
1156
        (regcache_raw_read_part): New function.
1157
 
1158
        (regcache_cooked_read_part): New function.
1159
 
1160
        * regcache.h (regcache_raw_read_part): Declare.
1161
        (regcache_raw_write_part): Declare.
1162
        (regcache_cooked_read_part): Declare.
1163
        (regcache_cooked_write_part): Declare.
1164
1165
2002-08-18  Daniel Jacobowitz  
1166
1167
        * remote.c (remote_open_1): Add async_p.
1168
        (remote_async_open_1): Delete.
1169
 
1170
        (remote_open, extended_remote_open): Update calls to remote_open_1.
1171
 
1172
        remote_open_1 instead of remote_async_open_1.
1173
1174
2002-08-19  Mark Kettenis  
1175
1176
        * blockframe.c: Fix a few coding standard violations.
1177
1178
 
1179
1180
 
1181
        here from ...
1182
 
1183
        * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1184
 
1185
        * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1186
        * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1187
        (TM_FILE): Set to tm-i386.h.
1188
        * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1189
 
1190
        * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1191
        instead of "i386/tm-i386v.h".
1192
        (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1193
        * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1194
        "i386/tm-i386v.h".
1195
        (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1196
        * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1197
        "i386/tm-i386.h".
1198
1199
2002-08-18  Mark Kettenis  
1200
1201
        * config/i386/nm-i386v.h: Add protection against
1202
        multiple-inclusion.
1203
 
1204
        (register_u_addr): New prototype.
1205
 
1206
        * i386v-nat.c: Improve several comments.
1207
        (i386_register_u_addr): Change signature and rename to
1208
        register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
1209
        ubase variable.
1210
1211
2002-08-18  Andrew Cagney  
1212
1213
        * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1214
        (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1215
 
1216
        deprecated_extract_return_value.
1217
 
1218
        rename mips_o32o64_push_arguments.
1219
        (mips_gdbarch_init): Update.
1220
        (mips_extract_return_value): Delete.
1221
        (mips_o32_extract_return_value): Clone mips_extract_return_value.
1222
        (mips_o64_extract_return_value): Clone mips_extract_return_value.
1223
        (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1224
        (mips_n32n64_extract_return_value): Clone
1225
        mips_extract_return_value.
1226
        (mips_store_return_value): Delete.
1227
        (mips_o32_store_return_value): Clone mips_store_return_value.
1228
        (mips_o64_store_return_value): Clone mips_store_return_value.
1229
        (mips_eabi_store_return_value): Clone mips_store_return_value.
1230
        (mips_n32n64_store_return_value): Clone mips_store_return_value.
1231
1232
2002-08-18  Aidan Skinner 
1233
1234
        * ada-lang.c: Use gdb_string.h instead of .
1235
        * ada-typeprint.c: Use gdb_string.h instead of .
1236
 
1237
2002-08-18  Aidan Skinner 
1238
 
1239
        * ada-lang.c: Run through gdb_indent.sh.
1240
        * ada-lang.h: Run through gdb_indent.sh.
1241
 
1242
        * ada-typeprint.c: Run through gdb_indent.sh.
1243
 
1244
1245
2002-08-18  Andrew Cagney  
1246
1247
        * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1248
        ABI.
1249
 
1250
2002-08-18  Mark Kettenis  
1251
 
1252
        * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1253
1254
 
1255
        * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1256
 
1257
        * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1258
 
1259
1260
        * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1261
 
1262
        * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1263
        i[3456]86-*-osf1mk* hosts obsolete.
1264
 
1265
        targets obsolete.
1266
        * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1267
        config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1268
        config/i386/i386m3.mt, config/i386/nm-m3.h,
1269
        config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1270
        config/i386/i386mk.mh, config/i386/i386mk.mt,
1271
        config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1272
        obsolete.
1273
        * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1274
        * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1275
        (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1276
1277
2002-08-18  Andrew Cagney  
1278
1279
        * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1280
        (hppa_value_returned_from_stack): Declare.
1281
 
1282
        * config/pa/hppa.mt: New file.
1283
 
1284
        * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
1285
1286
2002-08-18  Mark Kettenis  
1287
1288
        * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1289
        comment.
1290
 
1291
2002-08-17  Mark Kettenis  
1292
 
1293
        * top.c (gdb_rl_operate_and_get_next): Make sure
1294
        operate-and-get-next functions correctly even when the history
1295
 
1296
1297
 
1298
1299
        * MAINTAINERS (Target Instruction Set Architectures): Rename
1300
        Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
1301
 
1302
        mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
1303
 
1304
1305
        * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1306
        i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
1307
        mips*-*-*.
1308
1309
 
1310
1311
        * config/ia64/ia64.mt: New file.
1312
        * config/alpha/alpha.mt: New file.
1313
 
1314
        ia64-linux-gnu.  Mention that ia64-elf is broken.
1315
 
1316
1317
2002-08-17  Mark Kettenis  
1318
1319
        * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1320
        generic_func_frame_valid instead of func_frame_valid.
1321
 
1322
2002-08-16  Joel Brobecker  
1323
 
1324
        * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1325
        procfs appears to be broken when debugging on multi-processor
1326
 
1327
        using the procfs interface to do next/step operations, using
1328
 
1329
1330
        * infrun.c (handle_inferior_event): Readjust the stop_pc by
1331
        DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1332
        make this pc address equal to the value it would have if the
1333
        system stepping capability was used. Also set a new flag used
1334
 
1335
1336
        * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1337
        address by DECR_PC_AFTER_BREAK when software single step is
1338
        in use for this architecture, as this has already been taken
1339
        care of in handle_inferior_event().
1340
 
1341
2002-08-16  Joel Brobecker  
1342
1343
        * infrun.c (handle_inferior_event): Minor reformatting, to make
1344
        a rather long condition expression easier to read.
1345
 
1346
2002-08-16  Andrew Cagney  
1347
 
1348
        * Makefile.in (gdbtk.o): Move to end of file.
1349
        (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1350
 
1351
        (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1352
 
1353
1354
2002-08-16  Andrew Cagney  
1355
1356
        * Makefile.in (copying.o): Separate out compile rule.
1357
        (hpux-thread.o, procfs.o, signals.o): Ditto.
1358
 
1359
        (tui-file.o): Move to TUI section.
1360
 
1361
        (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1362
1363
2002-08-16  Joel Brobecker  
1364
1365
        * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1366
        skip_trampoline_code, for better namespace-proofing.
1367
 
1368
        * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1369
 
1370
2002-08-16  Joel Brobecker  
1371
1372
 
1373
1374
 
1375
1376
 
1377
        signal, check whether we hit a breakpoint before checking for a
1378
 
1379
        breakpoint has been hit when stepping onto a breakpoint.
1380
 
1381
2002-08-16  Keith Seitz  
1382
1383
        * gdb-events.sh (clear_gdb_event_hooks): New function.
1384
        * gdb-events.c: Regenerate.
1385
 
1386
1387
 
1388
1389
        * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1390
        not_a_sw_breakpoint.
1391
 
1392
1393
 
1394
1395
        * remote.c (remote_insert_hw_breakpoint)
1396
        (remote_remove_hw_breakpoint): Fix calculation of length field
1397
 
1398
1399
 
1400
1401
        * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1402
        (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1403
 
1404
1405
 
1406
        REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1407
        MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1408
        (TARGET_READ_SP): Delete.
1409
 
1410
        (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1411
        Delete.
1412
        (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1413
        from macros to functions.
1414
1415
        * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1416
        (mips_register_convertible, mips_register_convert_to_virtual,
1417
        mips_register_convert_to_raw): Make static.
1418
        (mips_read_sp): New function.
1419
 
1420
        (mips_do_registers_info): Make static.
1421
        (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1422
        (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1423
        (mips_register_convert_from_type, mips_register_convert_to_type):
1424
        New functions.
1425
        (mips_gdbarch_init): Set up function_start_offset,
1426
        register_virtual_size, pc_in_sigtramp.
1427
1428
2002-08-15  Andrew Cagney  
1429
1430
        * infcmd.c (vector_info): New function.
1431
        (_initialize_infcmd): Add command "info vector".
1432
 
1433
1434
 
1435
        * gdbarch.h, gdbarch.c: Regenerate.
1436
1437
2002-08-15  Andrew Cagney  
1438
 
1439
        * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1440
        ``print_all''.  Only print vector registers when ``print_all''.
1441
 
1442
2002-08-15  Andrew Cagney  
1443
 
1444
        * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1445
        * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1446
 
1447
        * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1448
 
1449
        * gdbarch.h, gdbarch.c: Regenerate.
1450
1451
 
1452
1453
        * infcmd.c (float_info): Call print_float_info.
1454
        (print_float_info): New function.  By default, print the
1455
 
1456
1457
 
1458
        * arch-utils.c (default_print_float_info): Delete function.
1459
1460
2002-08-16  Mark Kettenis  
1461
 
1462
        * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1463
        out define.
1464
 
1465
        * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1466
 
1467
1468
        * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1469
 
1470
        * configure.tgt: Make i[3456]86-*-aix target obsolete.
1471
        * config/i386/i386aix.mh, config/i386/i386aix.mt,
1472
 
1473
        config/i386/xm-i386aix.h: Make files obsolete.
1474
        * i386aix-nat.c: Make file obsolete.
1475
        * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1476
        (i386aix-nat.o): Make target obsolete.
1477
1478
        * config/i386/nm-gnu.h: Removed.
1479
        * config/i386/nm-i386gnu.h: New file.
1480
        (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1481
        THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1482
 
1483
        * config/i386/tm-i386gnu.h: ... here.  Removed.
1484
        * config/i386/xm-i386gnu.h: Removed.
1485
        * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1486
        (NAT_FILE): Set to nm-i386gnu.h.
1487
        * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1488
        * i386-tdep.c: New file.
1489
        * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1490
        (i386gnu-tdep.o): Specify dependencies.
1491
1492
2002-08-15  Mark Kettenis  
1493
1494
        * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1495
        "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1496
 
1497
        (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1498
 
1499
        HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1500
        target_insert_watchpoint, target_remove_watchpoint):
1501
        Move defines to ...
1502
        * config/i386/nm-i386sco5.h: ... here.
1503
        (kernel_u_size): Add prototype.  Improve a few comments and add
1504
        protection against multiple inclusion.
1505
1506
        * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1507
        out define.
1508
1509
        * uw-thread.c (SP_ARG0): Define if not already defined.
1510
 
1511
1512
        * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1513
 
1514
        * config/i386/tm-i386.h: Don't include "regcache.h".
1515
1516
 
1517
        * i387-tdep.c (print_i387_value, print_i387_ext,
1518
 
1519
        ui_file *' argument and use it for output.
1520
 
1521
        `struct gdbarch *' and `struct ui_file *' arguments and use the
1522
        latter for output.
1523
        * i386-tdep.c: Include "i387-tdep.h".
1524
        (i386_gdbarch_init): Set print_float_info.
1525
        * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1526
        (FLOAT_INFO): Remove define.
1527
1528
2002-08-13  Michael Snyder  
1529
1530
        * mips-tdep.c (mips_push_arguments): Rename to
1531
        mips_eabi_push_arguments, and tune for EABI.
1532
 
1533
        (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1534
 
1535
        Delete references to mips_regs_have_home_p.
1536
1537
2002-08-14  Keith Seitz  
1538
1539
        * Makefile.in (install-gdbtk): Create insight plugin directory.
1540
        Install plugins.tcl file.
1541
 
1542
2002-08-14  Keith Seitz  
1543
 
1544
        * configure.in: Move SUBDIRS to near top of the file so that
1545
        --enable options may add things to it.
1546
 
1547
        * configure: Regenerate.
1548
 
1549
2002-08-13  Michael Snyder  
1550
1551
        * mips-tdep.c (mips_o32o64_push_arguments):  New function,
1552
        cloned from mips_push_arguments, tuned for o32/o64 ABI.
1553
 
1554
1555
 
1556
1557
        * vax-tdep.c (vax_get_saved_register): Delete function.
1558
        (vax_gdbarch_init): Update.
1559
 
1560
        (ns32k_gdbarch_init): Update.
1561
 
1562
        (alpha_gdbarch_init): Update.
1563
1564
2002-08-13  Andrew Cagney  
1565
1566
        * regcache.c (init_regcache_descr): Overallocate the
1567
        raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1568
 
1569
        nr_raw_registers.
1570
 
1571
        current_regcache.
1572
1573
2002-08-13  Mark Kettenis  
1574
1575
        * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1576
        numbers for MMX registers.
1577
 
1578
2002-08-13  Andrew Cagney  
1579
 
1580
        * i386-tdep.c (i386_gdbarch_init): Use
1581
        generic_unwind_get_saved_register.
1582
 
1583
2002-08-13  Kevin Buettner  
1584
 
1585
        * procfs.c (procfs_can_use_hw_breakpoint): New function.
1586
        (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1587
 
1588
        * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1589
 
1590
1591
2002-08-13  Stephane Carrez  
1592
1593
        * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1594
        (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1595
 
1596
        real PC and the page number (if it's within the memory bank window).
1597
 
1598
        (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1599
        (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1600
        (m68hc11_register_raw_size): And use 32-bit for it.
1601
        (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1602
        16K memory bank is used by the prog; also use the virtual pc.
1603
1604
2002-08-13  Stephane Carrez  
1605
1606
        * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1607
        (m68hc11_gdbarch_init): Install it in gdbarch.
1608
 
1609
        (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1610
 
1611
        (insn_return_kind): Enum to specify how a function returns.
1612
        (frame_extra_info): Cleanup and record the return mode.
1613
        (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1614
        register in address computation.
1615
        (m68hc11_get_return_insn): New to obtain the return instruction used
1616
        by the function.
1617
        (m68hc11_frame_init_saved_regs): Take into account the return
1618
        instruction used by the function for far and interrupt functions.
1619
        (m68hc11_init_extra_frame_info): Take into account page register.
1620
        (m68hc11_frame_args_address): Adjust according to the return mode.
1621
        (show_regs): Print page register only when it's used.
1622
1623
2002-08-13  Stephane Carrez  
1624
1625
        * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1626
        (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1627
 
1628
        registers.
1629
 
1630
1631
2002-08-13  Andrew Cagney  
1632
1633
        * i386-tdep.c (i386_register_name): Handle mmx registers.
1634
        (mmx_regnum_p): New function.
1635
 
1636
        (mmx_num_regs): New variable.
1637
 
1638
        (i386_pseudo_register_write): New function.
1639
        (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1640
1641
        * regcache.c (regcache_raw_read_unsigned): New function.
1642
        (regcache_raw_read_signed): New function.
1643
        * regcache.h (regcache_raw_read_unsigned): Declare.
1644
        (regcache_raw_read_signed): Declare.
1645
 
1646
2002-08-13  Andrew Cagney  
1647
1648
        * regcache.c (regcache_raw_read_as_address): Delete function.
1649
        (regcache_cooked_read_signed): New function.
1650
 
1651
        * regcache.h (regcache_cooked_read_signed): Declare.
1652
 
1653
        (regcache_raw_read_as_address): Delete declaration.
1654
1655
        * blockframe.c (generic_read_register_dummy): Use
1656
        regcache_cooked_read_unsigned.
1657
        * i386-tdep.c (i386_extract_struct_value_address): Use
1658
        regcache_cooked_read_unsigned.
1659
 
1660
2002-08-13  Stephane Carrez  
1661
1662
        * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1663
        double sizes according to ELF ABI flags.
1664
 
1665
1666
 
1667
1668
        * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1669
        (m6812_prolog): They can appear in 68HC12 function prologue.
1670
 
1671
1672
 
1673
1674
        * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1675
        declarations.
1676
 
1677
        (i386_linux_register_raw_size): Delete function.
1678
 
1679
        * i386-tdep.c (i386_register_raw_size): Delete function.
1680
        (i386_register_byte): Delete function.
1681
        (i386_gdbarch_init): Update.
1682
        (i386_register_size): Delete array.
1683
        (i386_register_offset): Delete array.
1684
1685
        * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1686
        (REGISTER_RAW_SIZE): Delete macro.
1687
        * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1688
        (REGISTER_BYTE): Delete macro.
1689
 
1690
2002-08-11  Aidan Skinner 
1691
1692
        * ada-lang.c (ada_lookup_partial_symbol)
1693
        (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1694
 
1695
1696
 
1697
        (ada_lookup_partial_symbol): Fix typos in parameter list.
1698
1699
        * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1700
 
1701
1702
2002-08-10  Andrew Cagney  
1703
 
1704
            Martin M. Hunt  
1705
1706
 
1707
        (build_builtin_type_vec128i): Set the vector bit.
1708
        * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1709
        * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1710
 
1711
        (build_builtin_type_vec64i): New function.
1712
        (build_gdbtypes): Initialize builtin_type_vec64 and
1713
        builtin_type_vec64i.
1714
1715
2002-08-09  Andrew Cagney  
1716
1717
        * regcache.c (regcache_dump): Compare the register offset
1718
        with REGISTER_BYTE.
1719
 
1720
        * arch-utils.h (generic_register_byte): Declare.
1721
 
1722
        * gdbarch.h, gdbarch.c: Regenerate.
1723
1724
2002-08-09  Andrew Cagney  
1725
1726
        * regcache.c: Include "gdbcmd.h"
1727
        (_initialize_regcache): Add commands "maintenance print
1728
 
1729
        print cooked-registers".
1730
 
1731
        (dump_endian_bytes): New function.
1732
        (regcache_dump): New function.
1733
        (regcache_print): New function.
1734
        (maintenance_print_registers): New function.
1735
        (maintenance_print_raw_registers): New function.
1736
        (maintenance_print_cooked_registers): New function.
1737
        * Makefile.in (regcache.o): Update dependencies.
1738
1739
2002-08-09  Michael Snyder  
1740
1741
        * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1742
        (mips_push_arguments): Correct some comments.  Use paddr_nz
1743
 
1744
        allocation using MAX_REGISTER_RAW_SIZE with alloca.
1745
 
1746
        mips_push_arguments and tuned for the n32/n64 ABI.
1747
        (mips_push_register): Buffer needs dynamic allocation.
1748
        (mips_print_register): Ditto.
1749
        (do_gp_register_row): Ditto.
1750
        (mips_store_return_value): Ditto.
1751
        (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1752
1753
2002-08-09  Don Howard  
1754
1755
        * memattr.c (mem_info_command): Print special case of upper bound
1756
        as max CORE_ADDR + 1.
1757
 
1758
2002-08-08  Michael Snyder  
1759
 
1760
        * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1761
        returns structs by ref if they're too big to fit in two registers.
1762
 
1763
2002-08-09  Kevin Buettner  
1764
 
1765
        * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1766
        saved regs value.
1767
 
1768
        mips_find_saved_regs().
1769
 
1770
1771
2002-08-09  Kevin Buettner  
1772
1773
        * blockframe.c (frame_saved_regs_register_unwind): Revise
1774
        PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1775
 
1776
1777
 
1778
1779
        * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1780
        T-packets; the 'a' is not taken as a register number.
1781
 
1782
        (remote_stopped_data_address): New functions; add to target
1783
 
1784
        (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1785
        prototypes to match other implementations of this
1786
        function. replace integer argument with pointer -- the length
1787
        field in the Z-packet is the length of what is pointed to or 1 if
1788
        pointer is null. Add to target vector.
1789
        (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1790
        target vector.
1791
1792
        From Mark Salter:
1793
        * remote.c (remote_wait): Add support to extract optional
1794
        watchpoint information from T-packet. Ignore unrecognized
1795
        optional info in T-packet.
1796
 
1797
1798
2002-08-09  Corinna Vinschen  
1799
1800
        * cli/cli-dump.c: Change fopen modes to use binary open modes
1801
        as defined in include/fopen-bin.h throughout.
1802
 
1803
2002-08-08  Michael Snyder  
1804
 
1805
        * mips-tdep.c: Minor whitespace and indentation clean-ups.
1806
1807
 
1808
1809
 
1810
        assertion failure by returning early after a warning.
1811
 
1812
2002-08-08  Kevin Buettner  
1813
 
1814
        * mips-tdep.c (mips_find_saved_regs): Make static.
1815
        (mips_frame_init_saved_regs): New function.
1816
 
1817
        * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1818
 
1819
1820
2002-08-08  Grace Sainsbury  
1821
1822
        * remote.c (remote_wait, remote_async_wait): Change
1823
        thread_num from int to ULONGEST.
1824
 
1825
        int * to ULONGEST *.
1826
 
1827
2002-08-08  Andrew Cagney  
1828
1829
        * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1830
        powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1831
 
1832
        * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1833
 
1834
2002-08-08  Andrew Cagney  
1835
1836
        * gcore.c (override_derive_stack_segment): Delete variable.
1837
        (preempt_derive_stack_segment): Delete function.
1838
 
1839
        (default_derive_stack_segment): Renamed to derive_stack_segment.
1840
 
1841
        (preempt_derive_heap_segment): Delete function.
1842
        (derive_heap_segment): Delete function.
1843
        (default_derive_heap_segment): Rename to derive_heap_segment.
1844
1845
2002-08-06  Michael Snyder  
1846
1847
        * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1848
        * mips-tdep.c (mips_EABI_use_struct_convention,
1849
 
1850
        New functions.  (mips_use_struct_convention): Delete.
1851
 
1852
1853
2002-08-06  Michael Snyder  
1854
1855
        *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1856
        (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1857
 
1858
        (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1859
 
1860
2002-08-07  Andrew Cagney  
1861
1862
        * regcache.c (pseudo_register): Delete function.
1863
        (fetch_register): Delete function.
1864
 
1865
        (regcache_raw_read, legacy_read_register_gen): Use
1866
 
1867
        (legacy_write_register_gen, regcache_raw_write): Use
1868
        target_store_register instead of store_register.
1869
        (write_register_bytes): Ditto.
1870
1871
        * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1872
        (STORE_PSEUDO_REGISTER): Delete.
1873
        * gdbarch.h, gdbarch.c: Regenerate.
1874
1875
 
1876
1877
        * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1878
        write dump file binary.
1879
 
1880
2002-08-05  Michael Snyder  
1881
 
1882
        *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1883
        to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1884
 
1885
1886
 
1887
1888
        * frame.c (find_saved_register): Break out of loop once saved
1889
        register address is found.  Don't mention sparc in loop comment
1890
 
1891
1892
 
1893
1894
        * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1895
        mips_default_saved_regsize to 8.
1896
 
1897
2002-08-06  Andrew Cagney  
1898
 
1899
        * gcore.c: Do not include .
1900
        * Makefile.in (gcore.o): Update dependencies.
1901
 
1902
2002-08-06  Andrew Cagney  
1903
 
1904
        * configure.tgt: Make arc-*-* obsolete.
1905
        * NEWS: Mention that arc-*-* has been identifed as obsolete.
1906
 
1907
        * arc-tdep.c: Make file obsolete.
1908
 
1909
        * config/arc/tm-arc.h: Ditto.
1910
1911
2002-08-05  Theodore A. Roth  
1912
1913
        * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1914
1915
 
1916
1917
 
1918
        generic_unwind_get_saved_register instead of
1919
 
1920
        * v850-tdep.c (v850_gdbarch_init): Ditto.
1921
 
1922
        * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1923
        * s390-tdep.c (s390_gdbarch_init): Ditto.
1924
        * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1925
        * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1926
        * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1927
1928
2002-08-05  Joel Brobecker  
1929
1930
        * objfiles.h: Add missing #include "symfile.h"
1931
1932
 
1933
1934
 
1935
1936
 
1937
        * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1938
 
1939
1940
 
1941
1942
        * NEWS: Cleanup and nitpick.
1943
1944
 
1945
1946
 
1947
1948
 
1949
1950
 
1951
        (gdbtk-register.o): Ditto.
1952
 
1953
1954
 
1955
1956
        * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1957
        m68hc11_fetch_pseudo_register.
1958
 
1959
        m68hc11_store_pseudo_register.
1960
 
1961
1962
Fri Aug  2 15:53:50 2002  Andrew Cagney  
1963
1964
        * gdbarch.sh: Include "gdb_string.h".
1965
        * gdbarch.c: Regenerate.
1966
 
1967
        * regcache.c: Include "gdb_string.h".
1968
 
1969
        * varobj.c: Ditto.
1970
        * std-regs.c: Ditto.
1971
 
1972
        * thread.c: Ditto.
1973
1974
        * Makefile.in (regcache.o): Update dependencies.
1975
        (thread.o, gdbarch.o): Ditto.
1976
        (ax-general.o, gdbarch.o): Ditto.
1977
        (varobj.o, std-regs.o): Ditto.
1978
 
1979
1980
2002-08-02  Andrew Cagney  
1981
1982
        * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1983
        regnum.
1984
 
1985
1986
 
1987
1988
        * regcache.c (regcache_cooked_read): New function.
1989
        (regcache_cooked_write): New function.
1990
 
1991
        (write_register_gen): Rewrite using regcache_cooked_write.
1992
 
1993
        * regcache.h (regcache_cooked_read, regcache_cooked_write):
1994
        Declare.
1995
1996
2002-08-02  Andrew Cagney  
1997
 
1998
        * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1999
        Replace the architecture methods register_read and register_write.
2000
 
2001
        * regcache.c (init_regcache_descr): Update.
2002
 
2003
        (write_register_gen): Update.
2004
        (supply_register): Update comment.
2005
2006
        * sh-tdep.c (sh_gdbarch_init): Update.
2007
        (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2008
        `regcache' and `gdbarch' parameters.  Make `buffer' a void
2009
        pointer.  Update code.
2010
 
2011
        `regcache' and `gdbarch' parameters.  Make `buffer' a constant
2012
        void pointer.  Update code.
2013
        (sh64_register_write): Delete.
2014
        (sh4_register_read): Delete.
2015
        (sh64_register_read): Delete.
2016
        (sh4_register_write): Delete.
2017
        (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2018
        void pointer, `to' parameter a void pointer.
2019
        (sh_sh64_register_convert_to_raw): Ditto.
2020
2021
2002-08-01  Kevin Buettner  
2022
2023
        * mips-tdep.c (mips_register_virtual_type): Use architecture
2024
        invariant return values.
2025
 
2026
2002-08-01  Andrew Cagney  
2027
 
2028
        * linux-proc.c: Include "gdb_string.h".
2029
        * Makefile.in (linux-proc.o): Update dependency list.
2030
 
2031
2002-08-01  Kevin Buettner  
2032
 
2033
        * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
2034
        comment.
2035
 
2036
2002-08-01  Grace Sainsbury  
2037
 
2038
        * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2039
        to_insert_watchpoint, to_remove_watchpoint,
2040
 
2041
        to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2042
 
2043
        them.
2044
2045
        * target.c: Add default and debug versions of for
2046
        to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2047
        to_insert_watchpoint, to_remove_watchpoint,
2048
        to_stopped_by_watchpoint, to_stopped_data_address,
2049
 
2050
2051
2002-08-01  Kevin Buettner  
2052
2053
        * mips-tdep.c (mips_register_virtual_type): New function.
2054
        (mips_gdbarch_init): Register mips_register_virtual_type()
2055
 
2056
        * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2057
 
2058
        (MIPS_REGSIZE): Delete this macro.
2059
        (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
2060
        multiarch version in mips-tdep.c will be found.
2061
2062
2002-08-01  Andrew Cagney  
2063
2064
        * NEWS: Menion that CHILL has been made obsolete.
2065
2066
 
2067
        * stabsread.c (read_range_type): Ditto.
2068
 
2069
        * language.c (binop_type_check): Ditto.
2070
 
2071
        (integral_type): Ditto.
2072
        (character_type): Ditto.
2073
        (string_type): Ditto.
2074
        (boolean_type): Ditto.
2075
        (structured_type): Ditto.
2076
        (lang_bool_type): Ditto.
2077
        (binop_type_check): Ditto.
2078
        * language.h (_LANG_chill): Ditto.
2079
        * dwarfread.c (set_cu_language): Ditto.
2080
        * dwarfread.c (CHILL_PRODUCER): Ditto.
2081
        * dwarfread.c (handle_producer): Ditto.
2082
        * expression.h (enum exp_opcode): Ditto.
2083
        * eval.c: Ditto for comments.
2084
        * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2085
        * expprint.c (print_subexp): Ditto.
2086
        (print_subexp): Ditto.
2087
        * valops.c (value_cast): Ditto.
2088
        (search_struct_field): Ditto.
2089
        * value.h (COERCE_VARYING_ARRAY): Ditto.
2090
        * symfile.c (init_filename_language_table): Ditto.
2091
        (add_psymbol_with_dem_name_to_list): Ditto.
2092
        * valarith.c (value_binop): Ditto.
2093
        (value_neg): Ditto.
2094
        * valops.c (value_slice): Ditto.
2095
        * symtab.h (union language_specific): Ditto.
2096
        (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2097
        (SYMBOL_DEMANGLED_NAME): Ditto.
2098
        (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2099
        * defs.h (enum language): Ditto.
2100
        * symtab.c (got_symtab): Ditto.
2101
        * utils.c (fprintf_symbol_filtered): Ditto.
2102
2103
        * ch-typeprint.c: Make file obsolete.
2104
        * ch-valprint.c: Make file obsolete.
2105
        * ch-lang.h: Make file obsolete.
2106
        * ch-exp.c: Make file obsolete.
2107
 
2108
2109
        * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2110
        CHILL_LIB.
2111
        (TARGET_FLAGS_TO_PASS): Ditto.
2112
        (CHILLFLAGS): Obsolete.
2113
 
2114
        (CHILL_FOR_TARGET): Obsolete.
2115
        (CHILL_LIB): Obsolete.
2116
        (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2117
        ch-valprint.c.
2118
        (HFILES_NO_SRCDIR): Remove ch-lang.h.
2119
        (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2120
        ch-lang.o.
2121
        (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2122
        targets.
2123
2124
2002-07-31  Joel Brobecker  
2125
2126
        * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2127
        This does not change anything at the moment, but will be helpful
2128
 
2129
2130
 
2131
2132
        * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2133
        help message.
2134
 
2135
2002-07-31  Kevin Buettner  
2136
 
2137
        * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2138
        and save it in a local variable.  Use variable in later test.
2139
 
2140
2002-07-31  Kevin Buettner  
2141
 
2142
        * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2143
        test.  (Thanks to Daniel Jacobowitz.)
2144
 
2145
2002-07-31  Kevin Buettner  
2146
 
2147
        * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2148
        (mips_abi_strings): Add "n64".
2149
 
2150
2151
 
2152
2153
        * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2154
        (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2155
 
2156
2002-07-31  Kevin Buettner  
2157
 
2158
        * utils.c (host_pointer_to_address, address_to_host_pointer):
2159
        Use gdb_assert() instead of explicit call to internal_error().
2160
 
2161
2002-07-30  Kevin Buettner  
2162
 
2163
        * Makefile.in (rs6000-nat.o): Update dependencies.
2164
2165
 
2166
        * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2167
 
2168
        * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2169
 
2170
2171
2002-07-30  Daniel Jacobowitz  
2172
2173
        * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2174
        (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2175
 
2176
        (ppc_linux_supply_fpregset): New functions.
2177
 
2178
        (_initialize_ppc_linux_tdep): Call add_core_fns.
2179
        * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2180
        and ppc_linux_supply_gregset.
2181
        * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2182
        (supply_fpregset): Call ppc_linux_supply_fpregset.
2183
        * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2184
        corelow.o.
2185
        * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2186
2187
2002-07-30  Daniel Jacobowitz  
2188
2189
        * symtab.c (lookup_symbol): Demangle before lowercasing.
2190
2191
 
2192
2193
 
2194
        declaration.
2195
 
2196
        * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2197
 
2198
        * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2199
        "gdb_string.h".
2200
        * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2201
        (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2202
        (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2203
        (avr-tdep.o, mon960-rom.o): Ditto.
2204
        (aout_stabs_gnu_h): Define.
2205
        (symtab_h): Remove $(gdb_obstack_h).
2206
2207
2002-07-30  Jim Blandy  
2208
2209
        Patch from David Carlton :
2210
        * gdbinit.in: Move the `dir' commands that add GDB's own source
2211
 
2212
        directory will be searched first.
2213
 
2214
2002-07-29  Andrew Cagney  
2215
2216
        * gdb_obstack.h: New file.
2217
        * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2218
 
2219
        * objfiles.h: Include "gdb_obstack.h".
2220
 
2221
        (symtab_h): Add $(gdb_obstack_h).
2222
        (objfiles_h): Add $(gdb_obstack_h).
2223
2224
        * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2225
        * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2226
        * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2227
        * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2228
 
2229
        * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2230
        * symfile.c, coffread.c, c-typeprint.c: Ditto.
2231
        * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2232
2233
        * Makefile.in (bcache.o): Update dependencies.
2234
        (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2235
        (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2236
        (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2237
 
2238
        (stabsread.o, symfile.o, symmisc.o): Ditto.
2239
        (symtab.o, typeprint.o, macroexp.o): Ditto.
2240
        (macrotab.o, mdebugread.o): Ditto.
2241
        (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2242
        (coff_ecoff_h, aout_aout64_h): Define.
2243
        (aout_stabs_gnu_h, libaout_h): Define.
2244
2245
2002-07-29  Andrew Cagney  
2246
2247
        * regcache.c (struct regcache_descr): Rename nr_registers to
2248
        nr_cooked_registers.  Revise comments describing the structure
2249
 
2250
        (init_regcache_descr): Update.
2251
 
2252
        (read_register_gen, write_register_gen): When a cooked register in
2253
        the raw register range, directly access the value from the raw
2254
        register cache.
2255
2256
2002-07-29  Andrew Cagney  
2257
2258
        * z8k-tdep.c: Do not include "obstack.h".
2259
        * h8300-tdep.c, h8500-tdep.c: Ditto.
2260
 
2261
        * valprint.c, v850-tdep.c: Ditto.
2262
 
2263
        * mn10200-tdep.c: Ditto.
2264
2265
        * Makefile.in (z8k-tdep.o): Update dependencies.
2266
        (m68hc11-tdep.o, valprint.o): Ditto.
2267
        (v850-tdep.o, d10v-tdep.o): Ditto.
2268
        (mn10300-tdep.o, sparc-tdep.o): Ditto.
2269
 
2270
        (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2271
        (sh_opc_h, gdb_sim_sh_h): Define.
2272
        (elf_sh_h, elf_bfd_h): Define.
2273
        (opcode_m68hc11_h): Define.
2274
        (OPCODES_SRC, OPCODES_DIR): define.
2275
        (OPCODES): Use $(OPCODES_DIR).
2276
        (gdb_sim_d10v_h): Rename sim_d10v_h.
2277
        (gdb_sim_arm_h): Rename sim_arm_h.
2278
2279
2002-07-26  Kevin Buettner  
2280
2281
        * utils.c (host_pointer_to_address, address_to_host_pointer):
2282
        Change internal_error() message to indicate function responsible
2283
 
2284
2285
 
2286
2287
        * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2288
        calls to local_hex_string_custom().
2289
 
2290
2002-07-26  Kevin Buettner  
2291
 
2292
        * irix5-nat.c: Move IRIX shared library support from here...
2293
        * solib-irix.c: ...to here.  Revised substantially to work with
2294
 
2295
2296
 
2297
        * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2298
        * mips-irix-tdep.c: New file.
2299
2300
 
2301
        (mips-irix-tdep.o, solib-irix.o): New rules.
2302
        * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2303
        solib-irix.o.
2304
 
2305
        * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2306
2307
2002-07-26  Kevin Buettner  
2308
2309
        * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2310
        disabled (via ``#if 0'') includes.
2311
 
2312
2002-07-26  Kevin Buettner  
2313
 
2314
        * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2315
        (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2316
 
2317
        Add support for the fpscr register.
2318
 
2319
        (store_inferior_registers, fetch_core_registers): Likewise.
2320
2321
2002-07-26  Kevin Buettner  
2322
2323
        * rs6000-nat.c (language.h): Include.
2324
        (special_regs): Delete this array.
2325
 
2326
        (fetch_register, store_register):  Use regmap() to map gdb
2327
 
2328
        outputs from regmap() to make decisions regarding type of
2329
        ptrace() call to make.  In particular, don't compare against
2330
        FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2331
        (fetch_inferior_registers, store_inferior_registers): Where
2332
        possible, obtain register numbers from tdep struct.  Don't
2333
        refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2334
        * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2335
        (LAST_UISA_SP_REGNUM): Delete.
2336
2337
2002-07-25  Kevin Buettner  
2338
2339
        * rs6000-nat.c (ppc-tdep.h): Include.
2340
        (fetch_registers, store_register, fetch_core_registers): Don't
2341
 
2342
        regcache_collect() as appropriate.
2343
 
2344
2345
2002-07-25  Andrew Cagney  
2346
2347
        * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2348
        bfd/elf32-frv.c.
2349
 
2350
2002-07-24  Tom Tromey  
2351
 
2352
        * jv-exp.y: Marked all strings with _().
2353
        (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2354
 
2355
        (MethodInvocation, CastExpression, parse_number, yyerror,
2356
 
2357
2358
2002-07-24  Daniel Jacobowitz  
2359
2360
        * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2361
        (tee_file_flush, tee_file_write, tee_file_fputs)
2362
 
2363
        * ui-file.h (tee_file_new): Add prototype.
2364
 
2365
2002-07-24  Aidan Skinner 
2366
2367
        * ada-lang.c: Change k&r style function definitions to prototyped
2368
        form.
2369
 
2370
        form.
2371
 
2372
        form.
2373
2374
2002-07-24  Andrew Cagney  
2375
2376
        * README: Remove reference to remote-bug.
2377
        * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2378
 
2379
        (m88k-nat.o): Delete rule.
2380
 
2381
        (remote-bug.o): Delete rule.
2382
        * MAINTAINERS: Mark as obsolete.
2383
        * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2384
        * m88k-tdep.c: Make file obsolete.
2385
        * config/m88k/m88k.mh: Ditto.
2386
        * config/m88k/delta88v4.mh: Ditto.
2387
        * config/m88k/delta88v4.mt: Ditto.
2388
        * config/m88k/delta88.mt: Ditto.
2389
        * config/m88k/delta88.mh: Ditto.
2390
        * remote-bug.c: Ditto.
2391
        * config/m88k/tm-delta88.h: Ditto.
2392
        * config/m88k/nm-delta88v4.h: Ditto.
2393
        * config/m88k/xm-delta88.h: Ditto.
2394
        * config/m88k/xm-dgux.h: Ditto.
2395
        * config/m88k/tm-m88k.h: Ditto.
2396
        * config/m88k/nm-m88k.h: Ditto.
2397
        * config/m88k/tm-delta88v4.h: Ditto.
2398
        * m88k-nat.c: Ditto.
2399
        * cxux-nat.c: Ditto.
2400
        * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2401
        and m88*-*-* obsolete.
2402
        * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2403
        m88*-*-* obsolete.
2404
2405
2002-07-24  Andrew Cagney  
2406
2407
        * findvar.c (extract_unsigned_integer): Make `addr' parameter
2408
        constant.  Same for local pointer variables.
2409
 
2410
        * defs.h (extract_unsigned_integer): Update.
2411
 
2412
2413
2002-07-24  Andrew Cagney  
2414
2415
        * regcache.c (regcache_raw_write): Change buf parameter to a
2416
        constant void pointer.
2417
 
2418
        (legacy_write_register_gen): Change myaddr parameter a constant
2419
 
2420
        (supply_register): Change val parameter to a const void pointer.
2421
        * regcache.h (regcache_raw_write): Update declaration.
2422
        (regcache_raw_read): Update declaration.
2423
        (supply_register): Update declaration.
2424
2425
2002-07-24  Tom Tromey  
2426
2427
        * defs.h (gdb_readline_wrapper): Declare.
2428
        * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2429
 
2430
        * top.c (gdb_readline_wrapper): New function.
2431
 
2432
2433
2002-07-24  Andrew Cagney  
2434
2435
        * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2436
        regcache_read and regcache_write.
2437
 
2438
        * regcache.c: Update.
2439
 
2440
        (sh_pseudo_register_read): Update.
2441
        (sh_pseudo_register_write): Update.
2442
        (sh4_register_read): Update.
2443
        (sh4_register_write): Update.
2444
        (sh64_pseudo_register_read): Update.
2445
        (sh64_pseudo_register_write): Update.
2446
        (sh64_register_read): Update.
2447
        (sh64_register_write): Update.
2448
        * i386-tdep.c (i386_extract_return_value): Update.
2449
        (i386_extract_struct_value_address): Update.
2450
        (i386_extract_return_value): Update.
2451
        * blockframe.c (generic_read_register_dummy): Update.
2452
        (generic_call_dummy_register_unwind): Update
2453
        * infrun.c (write_inferior_status_register): Update.
2454
2455
2002-07-23  Jim Blandy  
2456
2457
        * parser-defs.h (expression_context_pc): Make this extern.
2458
        (Thanks to Michael Snyder.)
2459
 
2460
2002-07-23  Andrew Cagney  
2461
 
2462
        GDB 5.2.1 released from 5.2 branch.
2463
        * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2464
 
2465
2466
 
2467
2468
        * remote.c (remote_read_bytes): Fix check for error.
2469
2470
 
2471
2472
 
2473
        (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2474
 
2475
        Print newlines at end of debug messages.
2476
 
2477
        (pdc_write_data): Use local_hex_string() instead of %llx formats.
2478
2479
2002-07-22  Kevin Buettner  
2480
2481
        * aix-thread.c (ppc-tdep.h): Include.
2482
        (special_register_p): New function.
2483
 
2484
        (store_regs_user_thread): Use register number information from
2485
 
2486
        FIRST_UISA_SP_REGNUM.
2487
        (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
2488
        special_register_p() instead of using FPLAST_REGNUM and
2489
        LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2490
        register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
2491
        will be MQ's register number.
2492
2493
2002-07-22  Michael Snyder  
2494
2495
        * aix-thread.c (ops): Rename to aix_thread_ops.
2496
        (base_ops): Rename to base_target.
2497
 
2498
        (ops_detach): Rename to aix_thread_detach.
2499
 
2500
        (ops_wait):   Rename to aix_thread_wait.
2501
        (ops_kill):   Rename to aix_thread_kill.
2502
        (init_ops):   Rename to init_aix_thread_ops.
2503
        (ops_fetch_register): Rename to aix_thread_fetch_register.
2504
        (ops_store_register): Rename to aix_thread_store_register.
2505
        (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2506
        (ops_thread_alive):   Rename to aix_thread_thread_alive.
2507
        (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2508
        (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
2509
        (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2510
        (fetch_regs_lib):  Rename to fetch_regs_user_thread.
2511
        (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2512
        (store_regs_lib):  Rename to store_regs_user_thread.
2513
        (store_regs_kern): Rename to store_regs_kernel_thread.
2514
2515
2002-07-22  Michael Snyder  
2516
2517
        * aix-thread.c (ops_prepare_to_store): Eliminate.
2518
        (init_ops): Don't initialize ops.prepare_to_store.
2519
 
2520
        because some registers may not be in the cache.  Copy
2521
 
2522
        (store_regs_lib): Copy regs from register cache only
2523
        if they are cached.
2524
        (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2525
        fill_gprs64): Ditto.
2526
2527
2002-07-22  Kevin Buettner  
2528
2529
        * aix-thread.c (gdb_assert.h): Include.
2530
        (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2531
 
2532
        register data.
2533
 
2534
        buffer.
2535
        (store_regs_lib): Likewise, but for 32-bit temporary variables.
2536
        (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2537
2538
2002-07-22  Michael Snyder  
2539
2540
        * aix-thread.c (supply_sprs64): Cosmetic change.
2541
        (supply_sprs32): Cosmetic change.
2542
 
2543
        (fill_sprs64): Use regcache_collect instead of read_register.
2544
 
2545
        read_register.  Use fill_sprs32 instead of fill_sprs64,
2546
        if debugging a 32-bit architecture.
2547
        (store_regs_kern): Use fill_gprs64 etc. to pull the values
2548
        out of the register cache, instead of passing a pointer into
2549
        the register cache directly to ptrace.  Use regcache_collect
2550
        insteaad of read_register.
2551
        (ops_prepare_to_store): Use target_read_registers instead
2552
        of read_register_bytes.
2553
2554
2002-07-20  Aidan Skinner 
2555
2556
        * MAINTAINERS: Add self under write after approval.
2557
2558
 
2559
2560
 
2561
        form.
2562
 
2563
2002-07-19  Andrew Cagney  
2564
 
2565
        * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2566
        * x86-64-tdep.c: Include "objfiles.h".
2567
 
2568
        in_plt_section.  From 2002-07-18 Michal Ludvig .
2569
 
2570
2002-07-17  Michal Ludvig  
2571
2572
        * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2573
        (update_context): Initialise cfa variable.
2574
 
2575
2002-07-17  Michael Snyder  
2576
 
2577
        * aix-thread.c: Shorten some long lines.
2578
        Bring comments into line with code spec.
2579
 
2580
2002-07-18  Joel Brobecker  
2581
 
2582
        * infrun.c: Re-indent using gdb_indent.sh.
2583
2584
 
2585
2586
 
2587
        Leave the indentation temporarily untouched, to minimize the diffs.
2588
 
2589
2002-07-18  Elena Zannoni  
2590
 
2591
        * stabsread.c: Make os9k sections of the code obsolete,
2592
        for real this time.
2593
 
2594
2595
 
2596
2597
        * linux-low.c (regsets_store_inferior_registers): Add free()
2598
        at the end of a loop to prevent memory leak.
2599
 
2600
        (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2601
 
2602
        line a comment.
2603
        * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2604
2605
2002-07-17  Jim Blandy  
2606
2607
        * macrocmd.c (info_macro_command): Remove newline from error
2608
        message.
2609
 
2610
2002-07-17  J"orn Rennecke 
2611
 
2612
        * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2613
        (sh_gdbarch_init): Use it for sh-dsp.
2614
 
2615
2002-07-16  Kevin Buettner  
2616
 
2617
        * dwarf2read.c (read_initial_length): Handle older, non-standard,
2618
        64-bit DWARF2 format.
2619
 
2620
2002-07-16  Joel Brobecker  
2621
 
2622
        * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2623
         when not available.
2624
 
2625
2002-07-16  Andrew Cagney  
2626
 
2627
        * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2628
        * stabsread.c: Make os9k sections of the code obsolete.
2629
 
2630
        * config/i386/i386os9k.mt: Make file obsolete.
2631
 
2632
        (COMMON_OBS): Remove os9kread.o
2633
        (SFILES): Remove os9kread.c.
2634
        (os9kread.o, remote-os9k.o): Make target obsolete.
2635
        * remote-os9k.c: Make file obsolete.
2636
        * os9kread.c: Make file obsolete.
2637
        * Makefile.in
2638
2639
2002-07-16  Andrew Cagney  
2640
2641
        * NEWS: Mention that the FR30 has been made obsolete.
2642
        * fr30-tdep.c: Make file obsolete.
2643
 
2644
        * config/fr30/fr30.mt: Ditto.
2645
 
2646
        * MAINTAINERS: Make fr30-elf obsolete.
2647
2648
2002-07-16  Pierre Muller  
2649
2650
        * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2651
        found is not inside a section.
2652
 
2653
2002-07-15  Kevin Buettner  
2654
 
2655
        * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2656
        strerror().
2657
 
2658
2659
 
2660
2661
        * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2662
        (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2663
 
2664
        macros.
2665
 
2666
2002-07-15  Kevin Buettner  
2667
2668
        * aix-thread.c (ptrace_check): Eliminate goto.
2669
        (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2670
 
2671
2672
 
2673
2674
        * aix-thread.c (gdbcmd.h): Include.
2675
        (DEBUG, DBG, DBG2, dbg): Eliminate.
2676
 
2677
        (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2678
 
2679
        (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2680
        invocations to DBG and DBG2 macros to test against
2681
        ``debug_aix_thread'' and call fprintf_unfiltered().
2682
        (_initialize_aix_thread): Add new command "set debug aix-thread".
2683
2684
2002-07-15  Andrew Cagney  
2685
2686
        From Gerhard Tonn :
2687
        * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2688
 
2689
2690
 
2691
2692
        * dwarf2cfi.c: Include "gdb_assert.h".
2693
        (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2694
 
2695
        (update_context): Do not use __func__.  Add missing ``break''.
2696
 
2697
2698
2002-07-15  Elena Zannoni  
2699
2700
        * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2701
        and its setting.  Set gdbarch instruction printing functions
2702
 
2703
        gdb_print_insn_powerpc.
2704
 
2705
2706
2002-07-13  Andrew Cagney  
2707
2708
        * NEWS: Mention that the d30v has been marked obsolete.
2709
        * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2710
 
2711
        * d30v-tdep.c: Mark file as obsolete.
2712
 
2713
        * config/d30v/tm-d30v.h: Ditto.
2714
2715
2002-07-13  Aidan Skinner 
2716
2717
        * ada-tasks.c (add_task_entry): replace calls to
2718
        malloc() with xmalloc
2719
 
2720
2721
 
2722
        ada_finish_decode_line_1, all_sals_for_line
2723
        ada_breakpoint_rewrite): replace calls to free() with xfree()
2724
2725
 
2726
2727
        From Nicholas Duffek (with minor changes by Martin Hunt,
2728
        Louis Hamilton, and Kevin Buettner):
2729
 
2730
2731
 
2732
2733
        *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2734
        complaint for invalid attribute class or form.
2735
 
2736
        better handling of DW_AT_block*.
2737
 
2738
        better handling of DW_AT_block*.
2739
        (read_common_block): DW_AT_location
2740
        better handling of DW_AT_block*.
2741
        (read_partial_die): DW_AT_location better handling
2742
        of DW_AT_block*.
2743
        (new_symbol): DW_AT_external better handling of
2744
        DW_AT_block*. Proper initialization of variable
2745
        "addr".
2746
        (attr_form_is_block): New function that returns true
2747
        if the attribute's form is of DW_FORM_block*.
2748
2749
2002-07-12  Peter Schauer  
2750
2751
        * valops.c (find_method_list): Remove comment about
2752
        removed STATIC_MEMFUNCP argument.
2753
 
2754
2755
 
2756
2757
        From Nicholas Duffek:
2758
        * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2759
 
2760
2761
 
2762
2763
        From Nicholas Duffek:
2764
        * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2765
 
2766
2767
 
2768
2769
        * MAINTAINERS: Mention --enable-sim-build-warnings.
2770
        (m68hc11-elf): Disable sim build warnings.
2771
 
2772
        (x86_64-linux-gnu): Mark as buildable with -Werror.
2773
 
2774
        -Werror.
2775
2776
2002-07-12  Andrew Cagney  
2777
2778
        * bcache.h: Update copyright.
2779
        (struct bstring, struct bcache): Move definition to "bcache.c".
2780
 
2781
        (bcache_xfree): Replace free_bcache.
2782
 
2783
2784
        * bcache.c: Update copyright.
2785
        (struct bstring, struct bcache): Moved to here from "bcache.h".
2786
        Update comments.
2787
        (bcache_xmalloc, bcache_memory_used): New functions.
2788
 
2789
2790
        * Makefile.in (objfiles.o): Add $(bcache_h).
2791
        (objfiles_h): Remove $(bcache_h).
2792
        (symfile.o): Add $(bcache_h).
2793
2794
 
2795
        (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2796
        (print_objfile_statistics): Use bcache_memory_used.
2797
2798
 
2799
        (reread_symbols): Use bcache_xfree.
2800
        (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2801
        (add_psymbol_to_list): Pass psymbol_cache by value.
2802
 
2803
2804
        * objfiles.h: Update copyright.
2805
        (struct bcache): Declare opaque.  Do not include "bcache.h".
2806
        (struct objfile): Change psymbol_cache and macro_cache to ``struct
2807
        bcache'' pointers.
2808
 
2809
2810
        * objfiles.c: Include "bcache.h".  Update copyright.
2811
        (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2812
        macro_cache.
2813
        (free_objfile): Use bcache_xfree.
2814
 
2815
2002-07-11  Grace Sainsbury  
2816
2817
        * monitor.c (monitor_fetch_register): Make name a constant.
2818
        (monitor_store_register): Same.
2819
 
2820
2002-07-11  Daniel Jacobowitz  
2821
 
2822
        Based on patch from Daniel Berlin .
2823
        * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2824
 
2825
        function blocks, mark the symbol table as unhashed.
2826
 
2827
        (msymbol_hash_iw): Likewise.
2828
        (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2829
        value.
2830
        (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2831
        (lookup_minimal_symbol): Likewise for both.
2832
        * symtab.h (struct block): Add `hashtable' flag.  Comment the
2833
        hashtable.
2834
        (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2835
        (ALL_BLOCK_SYMBOLS): Update.
2836
        (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2837
        (struct symbol): Add `hash_next' pointer.
2838
        * symtab.c (lookup_block_symbol): Search using the hash table when
2839
        possible.
2840
        (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2841
        (search_symbols, find_addr_symbol): Likewise.
2842
2843
        * dstread.c (process_dst_block): Clear hashtable bit for new block.
2844
        (read_dst_symtab): Likewise.
2845
        * jv-lang.c (get_java_class_symtab): Likewise.
2846
        * mdebugread.c: Include "gdb_assert.h".
2847
 
2848
        * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2849
        * symmisc.c (free_symtab_block): Walk the hash table when freeing
2850
        symbols.
2851
        (dump_symtab): Recognize hashed blocks.
2852
        * printcmd.c (print_frame_args):  Assert that function blocks do not
2853
        have hashed symbol tables.
2854
        * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2855
        (fill_in_ada_prototype, debug_print_block): Likewise.
2856
        (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2857
2858
2002-07-11  Corinna Vinschen  
2859
2860
        * stack.c (print_frame): Use result of frame_address_in_block()
2861
        instead of fi->pc when evaluating symbols.
2862
 
2863
2864
 
2865
2866
        * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2867
        Make static.
2868
 
2869
        * arm-tdep.c (arm_register_name): Make return type constant.
2870
 
2871
2002-07-10  Andrew Cagney  
2872
2873
 
2874
        prototype.
2875
 
2876
        * s390-tdep.c (s390_fp_regnum): Ditto.
2877
 
2878
        (s390_pop_frame): Ditto.
2879
        (_initialize_s390_tdep): Ditto.
2880
        * remote.c (get_remote_state): Ditto.
2881
        * procfs.c (mappingflags): Ditto.
2882
        * memattr.c (_initialize_mem): Ditto.
2883
        * mcore-tdep.c (mcore_pop_frame): Ditto.
2884
        * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2885
        * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2886
        * language.c (set_case_str): Ditto.
2887
        * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2888
        * frv-tdep.c (new_variant): Ditto.
2889
        (frv_stopped_data_address): Ditto.
2890
        * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2891
        (context_alloc): Ditto.
2892
        (frame_state_alloc): Ditto.
2893
        (unwind_tmp_obstack_init): Ditto.
2894
        (unwind_tmp_obstack_free): Ditto.
2895
        (cfi_read_fp): Ditto.
2896
        * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2897
        (cris_pop_frame): Ditto.
2898
        * c-lang.c (scanning_macro_expansion): Ditto.
2899
        (finished_macro_expansion): Ditto.
2900
        (c_preprocess_and_parse): Ditto.
2901
        * gdbarch.sh: Ditto.
2902
        * gdbarch.h, gdbarch.c: Regenerate.
2903
        * config/mn10200/tm-mn10200.h: Adjust indentation.
2904
        * target.c: Adjust indentation.
2905
        * symtab.h: Adjust indentation.
2906
        * stabsread.h: Adjust indentation.
2907
        * remote-es.c: Adjust indentation.
2908
        * os9kread.c: Adjust indentation.
2909
2910
2002-07-10  Andrew Cagney  
2911
2912
        * wince.c (_initialize_wince): Rename _initialize_inftarg.
2913
        * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2914
 
2915
2002-07-10  Grace Sainsbury  
2916
 
2917
        * NEWS: Mention m68k, mcore multi-arching.
2918
        * MAINTAINERS: Change status of m68k, mcore to reflect
2919
 
2920
2921
 
2922
2923
        * valops.c (find_overload_match): Free oload_syms.
2924
2925
 
2926
2927
 
2928
        * configure.in: Add check for sys/proc.h
2929
 
2930
        * configure: Regenerate.
2931
 
2932
2002-07-09  Grace Sainsbury  
2933
2934
        * config/m68k/tm-m68k.h: Remove macros wrapped in
2935
        #if !GDB_MULTI_ARCH.
2936
 
2937
2002-07-08  Andrew Cagney  
2938
 
2939
        * config.in, configure: Regenerate.
2940
2941
 
2942
2943
 
2944
        (execute_stack_op): Fix implementation of the
2945
 
2946
        lookup in the target.
2947
 
2948
2002-07-07  Mark Kettenis  
2949
2950
        From Peter Schauer :
2951
        * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2952
 
2953
2954
 
2955
2956
        Fix PR gdb/595, gdb/602
2957
        * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2958
 
2959
        to match.
2960
 
2961
2002-07-05  Grace Sainsbury  
2962
2963
        * config/mcore/tm-mcore.h: Remove file.
2964
        * config/mcore/mcore.mt: Remove definition of TM_FILE
2965
 
2966
2967
 
2968
2969
        * i386bsd-tdep.c: Include "gdb_string.h".
2970
2971
 
2972
2973
 
2974
        (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2975
 
2976
        (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2977
 
2978
        * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2979
        (RETVAL_REGNUM): Move macros from tm-mcore.h
2980
        (mcore_reg_struct_has_addr): New function.
2981
        (mcore_gdbarch_init): Added initializations for the macros removed
2982
        from tm-mcore.h.
2983
2984
2002-07-04  Mark Kettenis  
2985
2986
        * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2987
        traditonal string branding within the ELF header.
2988
 
2989
2002-07-04  Daniel Jacobowitz  
2990
 
2991
        * symtab.c (remove_params): New function.
2992
        (make_symbol_overload_list): Use it instead of cplus_demangle.
2993
 
2994
2995
 
2996
2997
        * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2998
2999
 
3000
        New variables.
3001
 
3002
        and tdep->sigtramp_end.
3003
 
3004
        * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3005
3006
        * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3007
        Don't call get_current_frame().
3008
3009
2002-07-04  Pierre Muller  
3010
 
3011
        * i386-nat.c (child_post_startup_inferior): New function
3012
        calling i386_cleanup_dregs if
3013
 
3014
        * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3015
 
3016
        own child_post_startup_inferior function.
3017
3018
2002-07-04  Mark Kettenis  
3019
3020
        * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3021
        * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3022
 
3023
        (i386_extract_return_value, i386_extract_struct_value_address):
3024
 
3025
        (i386_gdbarch_init): Set max_register_raw_size and
3026
        max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3027
        Set extract_return_value and extract_struct_value_address instead
3028
        of their deprecated variants.
3029
3030
        Convert i386 target to generic dummy frames.
3031
        * i386-tdep.c: Include "symfile.h".
3032
        (i386_frameless_signal_p): Consider a function to be frameless if
3033
        the pc points at the first instruction of the function.
3034
 
3035
        (i386_frame_saved_pc): Likewise.
3036
        (i386_frame_init_saved_regs): Remove code dealing with call
3037
        dummies on the stack.
3038
        (i386_push_dummy_frame): Removed.
3039
        (i386_call_dummy_words): Removed.
3040
        (i386_fix_call_dummy): Removed.
3041
        (i386_push_return_address): New function.
3042
        (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
3043
        parameter, and don't call get_current_frame.
3044
        (i386_pop_frame): New function.
3045
        (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3046
        call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3047
        entry_point_address, set call_dummy_breakpoint_offset to 0, set
3048
        call_dummy_length to 0, set call_dummy_words to NULL, set
3049
        sizeof_call_dummy_words to 0, set fix_call_dummy to
3050
        generic_fix_call_dummy, set pc_in_call_dummy to
3051
        pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3052
        generic_push_dummy_frame, set push_return_address to
3053
        i386_push_return_address and set frame_chain_valid to
3054
        generic_file_frame_chain_valid.
3055
3056
2002-07-03  Andrew Cagney  
3057
3058
        * gdbarch.sh (struct regcache): Add opaque declaration.
3059
        (EXTRACT_RETURN_VALUE): New architecture method.
3060
 
3061
        * gdbarch.h, gdbarch.c: Regenerate.
3062
 
3063
        * arch-utils.h (legacy_extract_return_value): Declare.
3064
        * values.c (value_being_returned): Re-enable code handling
3065
        EXTRACT_STRUCT_VALUE_ADDRESS.  Move
3066
        deprecated_grub_regcache_for_registers call to block handling
3067
        DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3068
        (EXTRACT_RETURN_VALUE): Do not define.
3069
3070
2002-07-03  Grace Sainsbury  
3071
3072
        * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3073
        (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3074
 
3075
        (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3076
 
3077
        (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3078
        (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3079
        (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3080
        (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3081
        (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3082
        * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3083
        argument so the function fits the prototype in the architecture
3084
        vector.
3085
        (mcore_pop_frame): Remove argument so the function fits the
3086
        prototype. Use get_current_frame instead of the argument.
3087
        (mcore_push_arguments): Change type of struct_return so the
3088
        function can be used in the architecture vector.
3089
        (mcore_store_struct_return): Add.
3090
        (mcore_frame_init_saved_regs): Add.
3091
        (mcore_gdbarch_init): Add function calls to replace the macros
3092
        removed from tm-mcore.h
3093
3094
2002-07-03  Andrew Cagney  
3095
3096
        * infcmd.c (print_return_value): Remove compatibility code calling
3097
        deprecated_grub_regcache_for_registers.
3098
 
3099
        * values.c: Include "regcache.h".
3100
 
3101
        deprecated_grub_regcache_for_registers to extract the register
3102
        buffer address.
3103
 
3104
        ``struct regcache''.
3105
        * Makefile.in (values.o): Add dependency on $(regcache_h).
3106
3107
        * inferior.h (run_stack_dummy): Change type of second parameter to
3108
        a ``struct regcache''.
3109
        * valops.c (hand_function_call): Change type of retbuf to ``struct
3110
        regcache''.  Allocate using regcache_xmalloc, clean using
3111
 
3112
        * infcmd.c (run_stack_dummy): Update.  Use
3113
        regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3114
3115
        * regcache.c (do_regcache_xfree): New function.
3116
        (make_cleanup_regcache_xfree): New function.
3117
        * regcache.h (make_cleanup_regcache_xfree): Declare.
3118
3119
 
3120
3121
        * event-top.c (command_line_handler): Don't read past
3122
        beginning of buffer.
3123
 
3124
2002-07-03  Martin M. Hunt  
3125
 
3126
        * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3127
        struct frame_id.
3128
 
3129
        (varobj_gen_name): Use xasprintf.
3130
 
3131
        frame_find_by_id().
3132
        (create_child): Use xasprintf.
3133
        (new_root_variable): Initialize frame_id.
3134
        (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3135
        (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3136
        to prevent memory leak.
3137
3138
2002-07-03  Andrew Cagney  
3139
3140
        * valops.c (hand_function_call): Move declaration of retbuf to
3141
        start of function, allocate using malloc, add a cleanup but before
3142
 
3143
        old_chain to inf_status_cleanup.
3144
 
3145
2002-07-03  Martin M. Hunt  
3146
3147
        * top.c (execute_command): Use cmd_func() and cmd_func_p().
3148
3149
 
3150
        (cmd_func): New function.
3151
 
3152
        * command.h: Add cmd_func() and cmd_func_p().
3153
 
3154
2002-07-03  Grace Sainsbury  
3155
3156
 
3157
        (REGISTER_SIZE): Remove.
3158
 
3159
        (REGISTER_VIRTUAL_TYPE): Remove.
3160
 
3161
        (REGISTER_NAME): Remove.
3162
        (USE_GENERIC_DUMMY_FRAMES): Remove.
3163
        (CALL_DUMMY): Remove.
3164
        (CALL_DUMMY_START_OFFSET): Remove.
3165
        (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3166
        (CALL_DUMMY_LOCATION): Remove.
3167
        (FIX_CALL_DUMMY): Remove.
3168
        (CALL_DUMMY_ADDRESS): Remove.
3169
        (SIZEOF_CALL_DUMMY_WORDS): Remove.
3170
        (SAVE_DUMMY_FRAME_TOS): Remove.
3171
        * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3172
        (mcore_register_virtual_type): New function.
3173
        (mcore_register_byte): New function.
3174
        (mcore_register_size): New function.
3175
        (mcore_register_name): New function.
3176
        (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3177
        macros removed from tm-mcore.h.
3178
        (mcore_dump_tdep): Add.
3179
        (_initialize_mcore_tdep): Add gdbarch_register call.
3180
3181
2002-07-03  Mark Kettenis  
3182
3183
        * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3184
        frameless_look_for_prologue, such that we actually call this
3185
 
3186
3187
 
3188
3189
        * frame.h (frame_address_in_block): New function.
3190
3191
 
3192
        from get_frame_block().
3193
 
3194
        (block_innermost_frame): Use frame_address_in_block() to match
3195
 
3196
        the frame pc directly. This prevents a failure when a frame pc
3197
        is actually a return-address pointing immediately after the end
3198
        of the given block.
3199
3200
2002-07-02  Grace Sainsbury  
3201
3202
        * MAINTAINERS: Add self under write after approval.
3203
3204
 
3205
3206
 
3207
        used in architecture vector. The default is
3208
 
3209
        (m68k_local_breakpoint_from_pc): Add.
3210
 
3211
        (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3212
        vector.
3213
        * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3214
        GDB_MULTI_ARCH_PARTIAL.
3215
        (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3216
        (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3217
        m68k-tdep.c.
3218
        (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3219
        (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3220
        to enum in m68k-tdep.c
3221
3222
2002-07-02  Joel Brobecker  
3223
3224
        * solib-osf.c (open_map): Compute the list of shared libraries
3225
        loaded by the inferior, rather than the list of libraries loaded
3226
 
3227
        the wrong shared libraries...
3228
 
3229
2002-07-02  Mark Kettenis  
3230
3231
        * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3232
        (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3233
 
3234
        (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3235
 
3236
        (FRAMELESS_SIGNAL): Remove function.
3237
        (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3238
        i386_linux_saved_pc_after_call): Removed.
3239
        (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3240
        tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
3241
        frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3242
3243
        * i386-tdep.c (i386_frameless_signal_p): New function.
3244
        (i386_frame_chain): Deal with frameless signals.
3245
        (i386_sigtramp_saved_sp): New function.
3246
        (i386_frame_saved_pc): Deal with frameless signals.
3247
 
3248
        returned just after entry into a sigtramp.
3249
        * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3250
        i386fbsd4_sc_sp_offset): New variables.
3251
        (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3252
        these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
3253
        (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3254
        similiar to what we already did for sc_pc_offset.
3255
        * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3256
        tdep->sc_sp_offset.
3257
3258
        * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3259
3260
2002-07-02  Michal Ludvig  
3261
3262
 
3263
        * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3264
 
3265
        * config/i386/nm-x86-64.h: Rename to ...
3266
 
3267
        * config/i386/x86-64linux.mh: Reflect the above change.
3268
3269
2002-07-01  Mark Kettenis  
3270
3271
        * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3272
        with sigcontext_addr.  Add sc_sp_offset.
3273
 
3274
        (i386bsd_sicontext_addr): Add prototype.
3275
 
3276
        (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3277
        (i386_svr4_sigtramp_saved_pc): Removed.
3278
        (i386_svr4_sigcontext_addr): New function.
3279
        (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3280
        Initialize tdep->sigcontext_addr instead.  Initialize
3281
        tdep->sc_pc_offset and tdep->sc_sp_offset.
3282
        (i386_gdbarch_init): Likewise.
3283
        * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3284
        any more.
3285
        (i386bsd_sigtramp_saved_pc): Remove function.
3286
        (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3287
        Initialize tdep->sigcontext_addr instead.  Initialize
3288
        tdep->sc_pc_offset.
3289
        * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3290
        of tdep->sigtramp_saved_pc.
3291
        * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3292
        tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
3293
        instead.
3294
3295
        * i386-tdep.c (i386_frameless_function_invocation,
3296
        i386_frame_num_args, i386_frame_init_saved_regs,
3297
        i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3298
        i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3299
 
3300
        i386_extract_struct_value_address, i386_register_virtual_type,
3301
        i386_register_convertible, i386_register_convert_to_virtual,
3302
        i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3303
        i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3304
        static.
3305
3306
2002-07-01  Mark Kettenis  
3307
3308
        * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3309
3310
 
3311
        * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3312
 
3313
3314
 
3315
3316
        * ada-exp.tab.c: remove as it's a generated file
3317
        * ada-lex.c: remove as it's a generated file
3318
 
3319
2002-06-30  Mark Kettenis  
3320
 
3321
        * config/i386/tm-i386.h (struct frame_info, struct
3322
        frame_saved_regs, struct value, struct type): Remove forward
3323
 
3324
3325
 
3326
        (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3327
        * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3328
        (FILL_FPXREGSET): Define.
3329
 
3330
        * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3331
3332
        * configure.tgt (i[3456]86-*-openbsd*): Fold into
3333
        i[3456]86-*-netbsd* case.
3334
 
3335
        * config/i386/obsd.mt: Removed.
3336
 
3337
        core-aout.o.
3338
        (MH_CFLAGS): Add -DYYDEBUG=0.
3339
3340
        * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3341
        i386nbsd_sc_pc_offset on OpenBSD too.
3342
3343
        * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3344
 
3345
        * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3346
        define.
3347
 
3348
        (i386bsd_aout_in_solib_call_trampoline): New function.
3349
        (i386bsd_init_abi): Set in_solib_call_trampoline to
3350
        i386bsd_aout_in_solib_call_trampoline.
3351
        (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3352
        in_solib_call_trampoline to generic_in_solib_call_trampoline.
3353
3354
2002-06-28  Andrew Cagney  
3355
3356
        * macrotab.h: Do not include "obstack.h" or "bcache.h".
3357
        (struct obstack, struct bcache): Add opaque declarations.
3358
 
3359
3360
 
3361
3362
        * blockframe.c (generic_find_dummy_frame): Change return type to
3363
        ``struct regcache''.
3364
 
3365
        struct regcache object.
3366
 
3367
        (generic_push_dummy_frame): Update.  Use regcache_xfree,
3368
        regcache_xmalloc and regcache_cpy.
3369
        (generic_pop_dummy_frame): Update.  Use regcache_cpy and
3370
        regcache_xfree.
3371
        (deprecated_generic_find_dummy_frame): Update.
3372
        (generic_read_register_dummy): Update.  Use
3373
        regcache_read_as_address.
3374
        (generic_call_dummy_register_unwind): Update.  Use regcache_read.
3375
        (generic_get_saved_register): Update.  Use regcache_read.
3376
3377
2002-06-28  Andrew Cagney  
3378
3379
        * Makefile.in (objfiles_h): Add $(bcache_h).
3380
        * objfiles.h: Include "bcache.h".
3381
 
3382
        * Makefile.in (symtab_h): Remove $(bcache_h).
3383
 
3384
3385
2002-06-28  Andrew Cagney  
3386
 
3387
        * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3388
        generic_func_frame_chain_valid.
3389
 
3390
2002-06-28  David O'Brien  
3391
 
3392
        * config/i386/nm-fbsd.h: Include .
3393
        * config/i386/tm-fbsd.h: Likewise.
3394
 
3395
2002-06-28  Andrew Cagney  
3396
 
3397
        * rs6000-tdep.c (rs6000_gdbarch_init): Use
3398
        generic_unwind_get_saved_register.
3399
 
3400
2002-06-27  Andrew Cagney  
3401
 
3402
        From 2002-06-27 John David Anglin :
3403
        * regcache.c (supply_register): Add missing argument to
3404
 
3405
3406
 
3407
3408
        * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
3409
        Solaris /bin/grep does not not like it.  From Peter Schauer.
3410
 
3411
2002-06-26  Tom Tromey  
3412
 
3413
        * command.h (add_setshow_cmd): Declare.
3414
        (add_setshow_cmd_full): Declare.
3415
 
3416
        returns void.  Use add_setshow_cmd_full.
3417
 
3418
        (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3419
        (add_setshow_boolean_cmd): Likewise.
3420
3421
2002-06-26  Jason Thorpe  
3422
3423
        * config/vax/tm-vax.h: Protect from multiple inclusion.
3424
        (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3425
 
3426
        * config/vax/tm-vaxbsd.h: ...here.  New file.
3427
 
3428
3429
2002-06-26  Jason Thorpe  
3430
3431
        * config/vax/tm-vax.h (BREAKPOINT): Remove.
3432
        (BELIEVE_PCC_PROMOTION): Remove.
3433
 
3434
        * config/vax/nm-vax.h: ...here.
3435
 
3436
        (vax_breakpoint_from_pc): New function.
3437
        (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3438
        and gdbarch_believe_pcc_promotion.
3439
3440
2002-06-26  Jason Thorpe  
3441
3442
        * Makefile.in (vax_tdep_h): Define.
3443
        (vax-tdep.o): Use $(vax_tdep_h).
3444
 
3445
        (vax_dump_tdep): New function.
3446
 
3447
        * vax-tdep.h: Include osabi.h.
3448
        (struct gdbarch_tdep): New.
3449
3450
2002-06-26  Andrew Cagney  
3451
3452
        * frame.h (deprecated_generic_find_dummy_frame): Rename
3453
        generic_find_dummy_frame.
3454
 
3455
        (deprecated_generic_find_dummy_frame): New function.
3456
 
3457
        generic_find_dummy_frame with deprecated_find_dummy_frame.
3458
        (sh64_nofp_frame_init_saved_regs): Ditto.
3459
        (sh_fp_frame_init_saved_regs): Ditto.
3460
        * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3461
        (s390_frame_chain): Ditto.
3462
        * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3463
3464
2002-06-26  Grace Sainsbury  
3465
3466
        * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3467
        gdbarch vector are at the top.
3468
 
3469
        (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3470
 
3471
        (FRAME_LOCALS_ADDRESS): Remove.
3472
        (FRAME_NUM_ARGS): Remove.
3473
        (FRAME_ARGS_SKIP): Remove.
3474
        * m68k-tdep.c (enum): Add eumeration of special register numbers.
3475
        (m68k_gdbarch_init): Add gdbarch initializations for macros
3476
        undefined in tm-m68k.h
3477
3478
2002-06-26  Grace Sainsbury  
3479
3480
        * monitor.h: Add the function regname to monitor_ops
3481
        structure. This way NUM_REGS does not have to be a constant.
3482
 
3483
        function. The function is called if the array regnames is NULL.
3484
 
3485
        * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3486
        regnames array.
3487
        (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3488
        cpu32bug_cmds.regname to point to new function.
3489
        * abug-rom.c (abug_regname): Same as above.
3490
        (init_abug_cmds): Same.
3491
        * dbug-rom.c (dbug_regname): Same as above.
3492
        (init_dbug_cmds): Same.
3493
        * remote-est.c (est_regname): Same.
3494
        (init_est_cmds): Same.
3495
        * rom68k-rom.c (rom68k_regname): Same.
3496
        (init_rom68k_cmds): Same.
3497
3498
2002-06-25  Tom Tromey  
3499
3500
        * breakpoint.c (delete_command): Don't repeat `delete' commands.
3501
3502
 
3503
3504
 
3505
        regcache'''.
3506
 
3507
        (free_inferior_status): Delete function.
3508
 
3509
        (struct inferior_status): Change type of fields ``stop_registers''
3510
        and ``registers'' to ``struct regcache''.
3511
        (write_inferior_status_register): Use regcache_write.
3512
        (save_inferior_status): Instead of calling
3513
        xmalloc_inferior_status, allocate the inf_status buffer directly.
3514
        Use regcache_dup_no_passthrough and regcache_dup to save the
3515
        buffers.
3516
        (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3517
        Replace the stop_registers regcache instead of overriding it.  Use
3518
        regcache_xfree.  Instead of calling free_inferior_status, xfree
3519
        the buffer directly.
3520
        (discard_inferior_status): Use regcache_xfree.  Instead of calling
3521
        free_inferior_status, xfree the buffer directly.
3522
        (build_infrun): Use regcache_xmalloc.
3523
        (_initialize_infrun): Delete redundant call to build_infrun.
3524
3525
        * Makefile.in (infcmd.o): Add $(regcache_h).
3526
3527
        * infcmd.c: Include "regcache.h".
3528
        (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3529
 
3530
        (print_return_value): Ditto.
3531
 
3532
        * inferior.h (struct regcache): Add opaque declaration.
3533
        (stop_registers): Change variable's declared type to ``struct
3534
        regcache''.
3535
3536
 
3537
3538
        * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3539
        * target.c (initialize_targets): Fixed typo in
3540
 
3541
3542
 
3543
3544
2002-06-24  Don Howard  
3545
3546
 
3547
        that means max CORE_ADDR+1.
3548
 
3549
        (mem_info_command): Ditto.
3550
 
3551
2002-06-24  Grace Sainsbury  
3552
3553
        * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3554
        (REGISTER_BYTES_OK): Remove.
3555
 
3556
        (STORE_STRUCT_RETURN): Remove.
3557
 
3558
        (STORE_RETURN_VALUE): Remove.
3559
        (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3560
        (FRAME_CHAIN): Remove.
3561
        (FRAMELESS_FUNCTION_INVOCATION): Remove.
3562
        (FRAME_SAVED_PC): Remove.
3563
        * m68k-tdep.c (m68k_register_bytes_ok):Add.
3564
        (m68k_store_struct_return): Add.
3565
        (m68k_deprecated_extract_return_value): Add.
3566
        (m68k_deprecated_extract_struct_value_address): Add.
3567
        (m68k_store_return_value): Add.
3568
        (m68k_frame_chain): Add.
3569
        (m68k_frameless_function_invocation): Add.
3570
        (m68k_frame_saved_pc): Add.
3571
        (m68k_gdbarch_init): added set_gdbarch calls for new
3572
        functions and deleted macros.
3573
3574
2002-06-23  Tom Tromey  
3575
3576
        * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3577
        (ALLDEPFILES): Likewise.
3578
 
3579
        (udip2soc.o): Likewise.
3580
 
3581
        (udr.o): Likewise.
3582
        (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3583
3584
2002-06-22  Andrew Cagney  
3585
3586
        * infrun.c (_initialize_infrun): Delete unnecessary call to
3587
        build_infrun.
3588
 
3589
        * regcache.h: Update comments describing the regcache_cpy family
3590
 
3591
        (regcache_save, regcache_restore): Delete declaration.
3592
        (regcache_save_no_passthrough): Delete declaration.
3593
 
3594
        * regcache.c (regcache_save): Delete function.
3595
        (regcache_save_no_passthrough): Delete function.
3596
        (regcache_restore): Delete function.
3597
        (regcache_restore_no_passthrough): Delete function.
3598
3599
2002-06-21  Andrew Cagney  
3600
3601
        * config/m68k/tm-m68k.h: Fix typo.
3602
        (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3603
 
3604
3605
 
3606
3607
        Remove some vestiges of Harris 88k support.
3608
        * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3609
 
3610
        * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3611
 
3612
3613
2002-06-21  Tom Tromey  
3614
3615
        * gdb_locale.h: New file.
3616
        * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3617
 
3618
        * configure, config.in: Rebuilt.
3619
 
3620
        * defs.h: Include gdb_locale.h.
3621
        * main.c (captured_main): Call setlocale, bindtextdomain,
3622
        textdomain.
3623
3624
2002-06-21  Dave Brolley  
3625
3626
        From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3627
        * config/frv/frv.mt: New file.
3628
 
3629
        * configure.tgt: Support frv-*-*.
3630
 
3631
        * frv-tdep.c: New file.
3632
        * NEWS: Mention frv.
3633
3634
2002-06-21  Dave Brolley  
3635
3636
        * MAINTAINERS: Add self to "Write After Approval" list.
3637
3638
 
3639
3640
 
3641
        (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3642
 
3643
        (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3644
 
3645
3646
        * m68k-tdep.c: Include arch-utils.h
3647
        (m68k_register_raw_size): Add.
3648
        (m68k_register_virtual_size): Add.
3649
        (m68k_register_virtual_type): Add.
3650
 
3651
        (m68k_stack_align): Add.
3652
        (m68k_register_byte): Add.
3653
        (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3654
        tm-m68k.h.
3655
3656
2002-06-21  Grace Sainsbury  
3657
3658
        * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3659
        m68k_find_saved_regs.
3660
 
3661
        references to it with frame->saved_regs.
3662
 
3663
        gdbarch structure.
3664
        (m68k_fix_call_dummy): Add.
3665
        * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3666
        (CALL_DUMMY): Remove.
3667
        (CALL_DUMMY_LENGTH): Remove.
3668
        (CALL_DUMMY_START_OFFSET): Remove.
3669
        (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3670
        (FIX_CALL_DUMMY): Remove.
3671
        (PUSH_DUMMY_FRAME): Remove.
3672
        (POP_FRAME): Remove.
3673
3674
2002-06-19  Pierre Muller  
3675
3676
        * parse.c (parse_fprintf): New function used to avoid calls to
3677
        fprintf in bison parser generated debug code.
3678
 
3679
        * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3680
 
3681
        Set YYFPRINTF as parse_fprintf.
3682
3683
2002-06-21  Michal Ludvig  
3684
3685
        * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3686
        encoding anymore.
3687
 
3688
        (execute_cfa_program): Take care about pointer encoding.
3689
 
3690
        .debug_frame and .eh_frame.
3691
        (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3692
        fixed augmentation handling, added relative addressing,
3693
        ignore duplicate FDEs. Added comments.
3694
        * dwarf2cfi.c: Reindented.
3695
3696
2002-06-20  Elena Zannoni  
3697
3698
        * event-top.c (command_handler): Don't use space_at_cmd_start
3699
        unless there is sbrk() on the host. Assign time and space data
3700
 
3701
3702
 
3703
3704
        * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3705
        x86_64_register_name. Return type changed to 'const char *'.
3706
 
3707
        (x86_64_gdbarch_init): Update to reflect the change.
3708
 
3709
        * x86-64-linux-nat.c (x86_64_fxsave_offset)
3710
        (supply_fpregset): Ditto.
3711
3712
2002-06-19  Andrew Cagney  
3713
3714
        * regcache.h: Update copyright.
3715
        (struct regcache, struct gdbarch): Add opaque declarations.
3716
 
3717
        (regcache_read, regcache_write): Add gdbarch parameter.
3718
 
3719
        (regcache_restore, regcache_restore_no_passthrough)
3720
        (regcache_dup, regcache_dup_no_passthrough)
3721
        (regcache_cpy, regcache_cpy_no_passthrough)
3722
        (deprecated_grub_regcache_for_registers)
3723
        (deprecated_grub_regcache_for_register_valid)
3724
        (regcache_valid_p): Add function declarations.
3725
3726
        * regcache.c: Update copyright.
3727
        (regcache_descr_handle): New global variable.
3728
        (struct regcache_descr): Define.
3729
        (init_legacy_regcache_descr, init_regcache_descr): New functions.
3730
 
3731
        (struct regcache): Define.
3732
        (regcache_xmalloc, regcache_xfree): New functions.
3733
        (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3734
        (regcache_dup, regcache_dup_no_passthrough): New functions.
3735
        (regcache_valid_p, regcache_read_as_address): New functions.
3736
        (deprecated_grub_regcache_for_registers): New function.
3737
        (deprecated_grub_regcache_for_register_valid): New function.
3738
        (current_regcache): New global variable.
3739
        (register_buffer): Add regcache parameter.  Update calls.
3740
        (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3741
        (read_register_gen, write_register_gen): Update register_buffer
3742
        call.  Test for legacy_p instead of gdbarch_register_read_p or
3743
        gdbarch_register_write_p.
3744
        (regcache_collect): Update register_buffer call.
3745
        (build_regcache): Rewrite.  Use deprecated grub functions.
3746
        (regcache_save, regcache_save_no_passthrough): New functions.
3747
        (regcache_restore, regcache_restore_no_passthrough): New
3748
        functions.
3749
        (_initialize_regcache): Create the regcache_data_handle. Swap
3750
        current_regcache global variable.
3751
3752
        * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3753
        parameter to regcache_read and regcache_write calls.
3754
        (sh4_register_read): Ditto.
3755
        (sh64_pseudo_register_read): Ditto.
3756
 
3757
        (sh_pseudo_register_write): Ditto.
3758
        (sh4_register_write): Ditto.
3759
        (sh64_pseudo_register_write): Ditto.
3760
        (sh64_register_write): Ditto.
3761
3762
        * defs.h (XCALLOC): Define.
3763
3764
2002-06-19  Grace Sainsbury  
3765
3766
 
3767
        * m68k-tdep.c (m68k_gdbarch_init): Added.
3768
 
3769
3770
 
3771
3772
        * ada-lang.c (fill_in_ada_prototype): Update comment.
3773
3774
 
3775
3776
 
3777
        MIPS_ABI_LAST.
3778
 
3779
        (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3780
 
3781
        tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3782
        O32 if no ABI is found.
3783
        (mips_dump_tdep): Use mips_abi_strings.
3784
        (mips_abi_update): New function.
3785
        (_initialize_mips_tdep): Initialize mips_abi_string.  Add
3786
        ``set mips abi'' and ``show mips abi''.  Check the size of
3787
        mips_abi_strings.
3788
3789
2002-06-19  Andrew Cagney  
3790
3791
        * i386-linux-tdep.c (i386_linux_register_name): Make return type
3792
        constant.
3793
 
3794
2002-06-18  Joel Brobecker  
3795
 
3796
        * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3797
        current frame using only the first stack size adjustment. All
3798
 
3799
        the "static" part of the current frame.
3800
 
3801
        Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3802
        in use in this frame.
3803
3804
2002-06-18  Don Howard  
3805
3806
        * valops.c (value_ind): Use value_at_lazy() when dereferencing
3807
        type int expressions.  Thanks to Jim Blandy  for
3808
 
3809
3810
 
3811
3812
        * config/romp/xm-rtbsd.h: Delete file.
3813
        * config/romp/rtbsd.mh: Delete file.
3814
 
3815
2002-06-18  Keith Seitz  
3816
 
3817
        * breakpoint.c (condition_command): Post breakpoint_modify
3818
        when a condition is added to an existing breakpoint.
3819
 
3820
        (set_ignore_count): Likewise for ignore counts.
3821
 
3822
        notification.
3823
        (ignore_command): Only print a newline if the command came
3824
        from a tty.
3825
        Don't call breakpoints_changed, since this is now properly
3826
        handled by set_ignore_count.
3827
3828
2002-06-18  Andrew Cagney  
3829
3830
        * MAINTAINERS: Note that cris-elf target can be compiled with
3831
        -Werror.
3832
 
3833
        (cris_breakpoint_from_pc): Ditto.
3834
 
3835
2002-06-18  Michal Ludvig  
3836
3837
        * frame.h (struct frame_info): Change type of context to
3838
        'struct context'.
3839
 
3840
2002-06-17  Andrew Cagney  
3841
 
3842
        * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3843
        pointer.
3844
 
3845
        * config/mips/tm-mips.h (mips_register_name): Update.
3846
 
3847
        * mips-tdep.c (mips_register_name): Update
3848
        * alpha-tdep.c (alpha_register_name): Update.
3849
        * arch-utils.c (legacy_register_name): Update.
3850
        * arch-utils.h (legacy_register_name): Update.
3851
        * avr-tdep.c (avr_register_name): Update.
3852
        * ia64-tdep.c (ia64_register_name): Update.
3853
        * i386-tdep.c (i386_register_name): Update.
3854
        * sparc-tdep.c (sparc32_register_name): Update.
3855
        (sparc64_register_name): Update.
3856
        (sparclite_register_name): Update.
3857
        (sparclet_register_name): Update.
3858
        * sh-tdep.c (sh_generic_register_name): Update.
3859
        (sh_sh_register_name): Update.
3860
        (sh_sh3_register_name): Update.
3861
        (sh_sh3e_register_name): Update.
3862
        (sh_sh_dsp_register_name): Update.
3863
        (sh_sh3_dsp_register_name): Update.
3864
        (sh_sh4_register_name): Update.
3865
        (sh_sh64_register_name): Update.
3866
        * s390-tdep.c (s390_register_name): Update.
3867
        * rs6000-tdep.c (rs6000_register_name): Update.
3868
        * ns32k-tdep.c (ns32k_register_name_32082): Update.
3869
        (ns32k_register_name_32382): Update.
3870
        * d10v-tdep.c (d10v_ts2_register_name): Update.
3871
        (d10v_ts3_register_name): Update.
3872
        * xstormy16-tdep.c (xstormy16_register_name): Update.
3873
        * vax-tdep.c (vax_register_name): Update.
3874
        * v850-tdep.c (v850_register_name): Update.
3875
        * m68hc11-tdep.c (m68hc11_register_name): Update.
3876
        * mn10300-tdep.c (mn10300_generic_register_name): Update.
3877
        (am33_register_name): Update.
3878
3879
2002-06-17  Grace Sainsbury  
3880
3881
        * m68k-tdep.c: Reindented.
3882
3883
 
3884
3885
 
3886
        list of predefined types.
3887
 
3888
2002-06-16  Mark Kettenis  
3889
 
3890
        * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3891
        REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3892
 
3893
        (i386_register_virtual_type, i386_register_convertible,
3894
 
3895
        Remove prototypes.
3896
        * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3897
        macros mentioned above.
3898
3899
        * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3900
        (i386lynx_saved_pc_after_call): Remove prototype.
3901
        * i386ly-tdep.c: Include "i386-tdep.h".
3902
        (i386lynx_saved_pc_after_call): Make static.  Use
3903
 
3904
        read_memory_unsigned_integer instead of read_memory_integer.
3905
        (i386lynx_init_abi): New function.
3906
        (i386lynx_coff_osabi_sniffer): New function.
3907
        (_initialize_i386bsd_tdep): New function.
3908
3909
        * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3910
        CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3911
        CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3912
        (i386_fix_call_dummy): Remove prototype.
3913
 
3914
        (i386_gdbarch_init): Adjust for removal of the
3915
        macros mentioned above.
3916
3917
2002-06-15  Andrew Cagney  
3918
3919
        * command.h (add_setshow_auto_boolean_cmd): Replace
3920
        add_set_auto_boolean_cmd.
3921
 
3922
        add_set_auto_boolean_cmd.
3923
 
3924
        * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3925
        mask-address'' command.
3926
        (show_mask_address): Add cmd parameter.
3927
        * remote.c (add_packet_config_cmd): Update.  Change type of
3928
        set_func and show_func to cmd_sfunc_ftype.
3929
        (_initialize_remote): Update `set remote Z-packet'
3930
        (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3931
        (show_remote_protocol_e_packet_cmd): Ditto.
3932
        (show_remote_protocol_E_packet_cmd): Ditto.
3933
        (show_remote_protocol_P_packet_cmd): Ditto.
3934
        (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3935
        (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3936
        (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3937
        (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3938
        (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3939
        (show_remote_protocol_Z_packet_cmd): Ditto.
3940
        (show_remote_protocol_binary_download_cmd): Ditto.
3941
        (show_remote_cmd): Pass NULL to all of above.
3942
3943
2002-06-15  Mark Kettenis  
3944
3945
        * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3946
        DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3947
 
3948
        POP_FRAME): Remove defines.
3949
 
3950
        i386_extract_return_value, i386_store_return_value,
3951
        i386_extract_struct_value_address, i386_push_dummy_frame,
3952
        i386_pop_frame): Renove prototypes.
3953
        * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3954
        macros mentioned above.
3955
3956
2002-06-15  Andrew Cagney  
3957
3958
        * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3959
        add_set_boolean_cmd.
3960
 
3961
        * command.h (add_setshow_boolean_cmd): Replace
3962
 
3963
        * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3964
        and ``set rdiromatzero''.
3965
        * maint.c (_initialize_maint_cmds): Update commented out code.
3966
        * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3967
        * target.c (initialize_targets): Update `set
3968
        trust-readonly-sections'.
3969
        * remote.c (_initialize_remote): Update `set remotebreak'.
3970
3971
2002-06-15  Mark Kettenis  
3972
3973
        * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3974
        BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3975
 
3976
        fit into multi-arch framework.
3977
 
3978
        (i386_gdbarch_init): Adjust for removal of the macros mentioned
3979
        above.
3980
3981
        * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3982
        FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3983
        FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3984
        (i386_frameless_function_invocation, i386_frame_num_args,
3985
 
3986
        * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3987
        macros mentioned above.
3988
3989
2002-06-15  Andrew Cagney  
3990
3991
        * cli/cli-decode.c (set_cmd_cfunc): Update.
3992
        (set_cmd_sfunc): Update.
3993
 
3994
        (set_cmd_sfunc, set_cmd_cfunc): Update.
3995
 
3996
3997
2002-06-15  Mark Kettenis  
3998
3999
        * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4000
        (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4001
 
4002
2002-06-15  Andrew Cagney  
4003
 
4004
        * defs.h (auto_boolean): Declare enum.
4005
        * command.h (cmd_auto_boolean): Delete enum.
4006
 
4007
        (mips_mask_address_p): Update.
4008
 
4009
        * remote.c (struct packet_config): Update.
4010
        (update_packet_config): Update.
4011
        (show_packet_config_cmd): Update.
4012
        (packet_ok): Update.
4013
        (add_packet_config_cmd): Update.
4014
        (_initialize_remote):
4015
        * command.h: Update.
4016
        * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4017
        (do_setshow_command): Update.
4018
        * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4019
        * cli/cli-decode.h: Update.
4020
4021
2002-06-15  Mark Kettenis  
4022
4023
        * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4024
        config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4025
 
4026
        config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4027
 
4028
        * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4029
4030
        * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4031
        list of DJGPP COFF targets.
4032
4033
        * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4034
 
4035
        (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4036
        (FP0_REGNUM): Remove define.
4037
 
4038
        MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4039
        (i386_register_virtual_size): Remove protoype.
4040
        * i386-tdep.c (i386_register_virtual_size): Removed.
4041
        (i386_extract_return_value, i386_store_return_value): Use
4042
        FP0_REGNUM instead of NUM_FREGS to determine whether the
4043
        floating-point registers are available.
4044
        (i386_gdbarch_init): Tweak FIXME about FPU registers.
4045
        Adjust for removal of macros mentioned above.
4046
4047
2002-06-15  Mark Kettenis  
4048
4049
        * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
4050
        comments.
4051
 
4052
        Remove prototypes.
4053
 
4054
        remove declaration for regmap.  Use I386_NUM_GREGS instead of
4055
        NUM_REGS and NUM_FREGS.
4056
        (FPREGSET_FSAVE_OFFSET): Remove.
4057
        (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4058
        NUM_FREGS to determine whether the floating-point registers are
4059
        available.
4060
4061
        * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4062
        gnu_store_registers): Replace usage of NUM_GREGS with
4063
        I386_NUM_GREGS.
4064
4065
 
4066
        OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4067
        usage of NUM_GREGS with I386_NUM_GREGS.
4068
4069
 
4070
4071
        * i386bsd-nat.c: Include "i386-tdep.h".
4072
        (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4073
 
4074
4075
 
4076
        and associated comment.  They no longer make any sense, since we
4077
        don't use this file anymore on Linux.
4078
4079
 
4080
        * i386-tdep.c (i386_register_offset, i386_register_size): Use
4081
        I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4082
        elements in these arrays.
4083
 
4084
        MAX_NUM_REGS.
4085
4086
2002-06-15  Mark Kettenis  
4087
4088
        * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4089
        * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4090
 
4091
2002-06-14  Andrew Cagney  
4092
 
4093
        * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4094
        EXTRACT_RETURN_VALUE.
4095
 
4096
        EXTRACT_STRUCT_VALUE_ADDRESS.
4097
 
4098
4099
        * values.c (value_being_returned): Handle
4100
        DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4101
        (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4102
4103
 
4104
        * arm-tdep.c (arm_gdbarch_init): Update.
4105
        * avr-tdep.c (avr_gdbarch_init): Update.
4106
        * cris-tdep.c (cris_gdbarch_init): Update.
4107
 
4108
        * ia64-tdep.c (ia64_gdbarch_init): Update.
4109
        * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4110
        * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4111
        * s390-tdep.c (s390_gdbarch_init): Update.
4112
        * sh-tdep.c (sh_gdbarch_init): Update.
4113
        * s390-tdep.c (s390_gdbarch_init): Update.
4114
        * sparc-tdep.c (sparc_gdbarch_init): Update.
4115
        * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4116
        * v850-tdep.c (v850_gdbarch_init): Update.
4117
        * vax-tdep.c (vax_gdbarch_init): Update.
4118
        * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4119
        * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4120
4121
        * config/arc/tm-arc.h: Update.
4122
        * config/d30v/tm-d30v.h: Update.
4123
        * config/fr30/tm-fr30.h: Update.
4124
        * config/h8300/tm-h8300.h: Update.
4125
 
4126
        * config/i386/tm-i386.h: Update.
4127
        * config/i386/tm-ptx.h: Update.
4128
        * config/i386/tm-symmetry.h: Update.
4129
        * config/i960/tm-i960.h: Update.
4130
        * config/m32r/tm-m32r.h: Update.
4131
        * config/m68k/tm-delta68.h: Update.
4132
        * config/m68k/tm-linux.h: Update.
4133
        * config/m68k/tm-m68k.h: Update.
4134
        * config/m88k/tm-m88k.h: Update.
4135
        * config/mcore/tm-mcore.h: Update.
4136
        * config/mips/tm-mips.h: Update.
4137
        * config/mn10200/tm-mn10200.h: Update.
4138
        * config/pa/tm-hppa.h: Update.
4139
        * config/pa/tm-hppa64.h: Update.
4140
        * config/sparc/tm-sp64.h: Update.
4141
        * config/sparc/tm-sparc.h: Update.
4142
        * config/sparc/tm-sparclet.h: Update.
4143
        * config/z8k/tm-z8k.h: Update.
4144
4145
2002-06-14  Andrew Cagney  
4146
4147
        * Makefile.in (i386_linux_tdep_h): Define.
4148
        (i386_tdep_h, i387_tdep_h): Define.
4149
 
4150
        $(i386_tdep_h) and $(i387_tdep_h).
4151
 
4152
4153
2002-06-14  Mark Kettenis  
4154
4155
        * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4156
        Already covered by the default.
4157
 
4158
        * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4159
 
4160
        (i386_gdbarch_init): Initialize long_double_format and long_double
4161
        bit.
4162
 
4163
        * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4164
        i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
4165
        Move these to ...
4166
        * config/i386/i386sol2.mh: ... here.
4167
 
4168
        (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4169
        (SIGCONTEXT_PC_OFFSET): Remove define.
4170
        (IN_SIGTRAMP): Remove define.
4171
        * i386-sol2-tdep.c: New file.
4172
4173
        * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4174
        * config/i386/tm-i386nw.h: Removed.
4175
4176
        * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4177
 
4178
        (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4179
        (get_longjmp_target): Remove prototype.
4180
 
4181
        (i386bsd_in_sigtramp): Remove prototype.
4182
        (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4183
        function.  Update comment accordingly
4184
        (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4185
        (FRAME_SAVED_PC): Remove define.
4186
        (i386bsd_frame_saved_pc): Remove prototype.
4187
        * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4188
        GET_LONGJMP_TARGET): Remove defines.
4189
        (get_longjmp_target): Remove prototype.
4190
        (IN_SIGTRAMP): Remove define.
4191
        (i386bsd_in_sigtramp): Remove prototype.
4192
        (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4193
        function.  Update comment accordingly
4194
        (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4195
        (FRAME_SAVED_PC): Remove define.
4196
        (i386bsd_frame_saved_pc): Remove prototype.
4197
        * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4198
        Remove prototype.
4199
        (USE_STRUCT_CONVENTION): Remove prototype.
4200
        * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4201
        declaration.
4202
        (_initialize_i386bsd_nat): Revise logic to determine some
4203
        constants at compile time when compiling a native GDB.  Warn if
4204
        things don't match up with what we expect.
4205
        * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4206
        Remove variables.
4207
        (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
4208
        to use date stored in `struct gdbarch_tdep'.
4209
        (i386bsd_sigcontext_offset): Remove varaible.
4210
        (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
4211
        stored in `struct gdbarch_tdep'.
4212
        (i386bsd_frame_saved_pc): Make static.
4213
        (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4214
        (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4215
        i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4216
        i386fbsd4_sc_pc_offset): New variables.
4217
        (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4218
        i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4219
        functions.
4220
        (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4221
        functions.
4222
        * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4223
        Modify the value of i386fbsd_sigtramp_start and
4224
        i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4225
        i386fbsd_sigtramp_end.
4226
        * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4227
        function.
4228
4229
        * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4230
        define to i386-linux-tdep.h.
4231
        (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4232
        REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4233
 
4234
        (i386_linux_register_name, i386_linux_register_byte,
4235
        i386_linux_register_raw_size): Remove prototypes.
4236
        (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4237
        (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4238
        (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4239
        TARGET_WRITE_PC): Remove defines.
4240
        (i386_linux_in_sigtramp, i386_linux_frame_chain,
4241
        i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4242
        i386_linux_write_pc): Remove prototypes.
4243
        (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4244
        (get_longjmp_target): Remove prototype.
4245
        * i386-linux-tdep.h: New file.
4246
        * i386-linux-nat.c: Include "i386-linux-tdep.h".
4247
        * i386-linux-tdep.c: Include "i386-tdep.h" and
4248
        "i386-linux-tdep.h".
4249
        (i386_linux_register_name, i386_linux_register_byte,
4250
        i386_linux_register_raw_size, i386_linux_in_sigtramp,
4251
        i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4252
        Make static.
4253
        (i386_linux_init_abi): New function.
4254
        (_initialize_i386_linux_tdep): New function.
4255
4256
        * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4257
        (i386_saved_pc_after_call): Remove prototype.
4258
        (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4259
        (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4260
 
4261
        (i386_register_name, i386_stab_reg_to_regnum,
4262
        i386_dwarf_reg_to_regnum): Remove prototypes.
4263
        (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4264
        SIZEOF_SSE_REGS): Remove defines.
4265
        (REGISTER_BYTES): Remove define.
4266
        (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4267
        (i386_register_byte, i386_register_raw_size): Remove prototypes.
4268
        (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4269
        (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4270
        * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4271
        (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4272
        JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4273
        (get_longjmp_target): Remove prototype.
4274
        (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4275
        (sigtramp_saved_pc): Remove define.
4276
        (i386v4_sigtramp_saved_pc): Remove prototype.
4277
        * config/i386/tm-go32.h (FRAME_CHAIN,
4278
        FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4279
        (i386go32_frame_saved_pc): Remove prototype.
4280
        (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4281
        (get_longjmp_target): Remove prototype.
4282
        * i386-tdep.h: Include "osabi.h".
4283
        (enum i386_abi): Removed.
4284
        (enum struct_return): New enum.
4285
        (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4286
        struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4287
        sc_pc_offset members.
4288
        (i386_gdbarch_register_os_abi): Remove prototype.
4289
        (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4290
        I386_SSE_NUM_REGS): New defines.
4291
        (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4292
        I386_SSE_SIZEOF_REGS): New defines.
4293
        (i386_register_name, i386_register_byte, i386_register_raw_size):
4294
        New prototypes.
4295
        (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4296
        (i386bsd_sigtramp_saved_pc): New prototype.
4297
        * i386-tdep.c: Don't include "elf-bfd.h".
4298
        (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4299
        i386_frame_chain, i386_saved_pc_after_call): Make static.
4300
        (i386_frame_saved_pc): Rewrite to call architecture dependent
4301
        function to deal with signal handlers.  Make static.
4302
        (i386go32_frame_saved_pc): Removed.
4303
        [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4304
        Removed.
4305
        (i386_get_longjmp_target): New function.
4306
        (default_struct_convention, pcc_struct_convention,
4307
        reg_struct_convention, valid_conventions, struct_convention): New
4308
        variables.
4309
        (i386_use_struct_convention): New function.
4310
        (i386v4_sigtramp_saved_pc): Renamed to
4311
        i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
4312
        (i386_pc_in_sigtramp): New function.
4313
        (i386_abi_names): Removed.
4314
        (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4315
        ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4316
        Removed.
4317
        (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4318
        i386_gdbarch_register_os_abi): Removed.
4319
        (struct i386_abi_handler): Removed.
4320
        (i386_abi_handler_list): Removed.
4321
        (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4322
        functions.
4323
        (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4324
        i386_nw_init_abi): New functions.
4325
        (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4326
        Use set_gdbarch_xxx() calls instead of relying on macros for a
4327
        number of calls.
4328
        (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4329
        (_initialize_i386_tdep): Add new 'struct-convcention' command.
4330
        Register the various architecture variants defined in this file.
4331
4332
2002-06-14  Daniel Jacobowitz  
4333
4334
        * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4335
        (struct main_type): Remove arg_types member.  Update comments for
4336
 
4337
        (TYPE_ARG_TYPES): Remove.
4338
 
4339
        (smash_to_method_type): Update prototype.
4340
4341
        * c-typeprint.c (cp_type_print_method_args): Take method type
4342
        instead of argument list.  Use new argument layout.  Simplify.
4343
        (c_type_print_args): Use new argument layout.  Simplify.
4344
        (c_type_print_base): Update call to cp_type_print_method_args.
4345
 
4346
        argument; use die->type instead.  Update call to
4347
        smash_to_method_type.
4348
        (read_structure_scope): Update call to dwarf2_add_member_fn.
4349
        * gdbtypes.c (allocate_stub_method): Update comment.
4350
        (smash_to_method_type): Take new NARGS and VARARGS arguments.
4351
        Use new argument layout.
4352
        (check_stub_method): Use new argument layout.  Don't count
4353
        void as an argument.
4354
        (print_arg_types): Update comments.  Use new argument layout.
4355
        (recursive_dump_type): Don't print arg_types member.
4356
        * hpread.c (hpread_read_struct_type): Use new argument layout.
4357
        (fixup_class_method_type): Likewise.
4358
        (hpread_type_lookup): Likewise.
4359
        * stabsread.c (read_type): Update calls to read_args and
4360
        smash_to_method_type.
4361
        (read_args): Use new argument layout.  Simplify.
4362
        * valops.c (typecmp): Use new argument layout.  Update parameters
4363
        and comments.  Simplify.
4364
        (hand_function_call): Use new argument layout.
4365
        (search_struct_method): Update call to typecmp.
4366
        (find_overload_match): Use new argument layout.
4367
4368
2002-06-13  Daniel Jacobowitz  
4369
4370
        * NEWS: Mention multithreaded debug support for gdbserver.
4371
4372
 
4373
4374
 
4375
4376
 
4377
4378
 
4379
        (struct mips_objfile_private, compare_pdr_entries): New.
4380
 
4381
        is present.
4382
 
4383
2002-06-12  Andrew Cagney  
4384
4385
        * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4386
        (arm_debug): New static variable.
4387
 
4388
4389
 
4390
4391
        * Makefile.in (sim_arm_h): Define.
4392
        (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4393
 
4394
        (arm_register_sim_regno): New function, map an internal REGNUM
4395
 
4396
        (arm_gdbarch_init): Set register_sim_regno.
4397
4398
2002-06-09  Aldy Hernandez  
4399
4400
        * MAINTAINERS: Add self.
4401
4402
 
4403
4404
 
4405
        information about preprocessor macros.
4406
 
4407
        Call the command `info macro', not `show macro'.
4408
 
4409
        Fix error message.
4410
        (_initialize_macrocmd): Register `info_macro_command' in
4411
 
4412
4413
2002-06-11  Daniel Jacobowitz  
4414
4415
        * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4416
        (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4417
 
4418
        (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4419
 
4420
        unconditionally.
4421
        (set_mipsfpu_single_command, set_mipsfpu_double_command)
4422
        (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4423
        (_initialize_mips_tdep): Remove dead code.
4424
        * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4425
        (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4426
        * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4427
        (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4428
        * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4429
        MIPS_LAST_FP_ARG_REGNUM): Remove.
4430
4431
2002-06-11  Michal Ludvig  
4432
4433
        * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4434
        (unwind_tmp_obstack_free, parse_frame_info)
4435
 
4436
        (cfi_frame_chain, cfi_init_extra_frame_info)
4437
 
4438
        * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4439
4440
2002-06-11  Corinna Vinschen  
4441
4442
        * v850-tdep.c (v850_type_is_scalar): New function.
4443
        (v850_use_struct_convention): Match current gcc implementation
4444
 
4445
        (v850_push_arguments): Fix stack_offset handling.  Don't write
4446
 
4447
        (v850_extract_return_value): Care for structs.
4448
        (v850_store_return_value): Ditto.
4449
        (v850_store_struct_return): Actually write address.
4450
4451
2002-06-11  Michal Ludvig  
4452
4453
        * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4454
        without debug information too.
4455
 
4456
2002-06-10  Andrew Cagney  
4457
 
4458
        * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4459
        Make multi-arch pure.
4460
 
4461
        * arm-tdep.c (arm_print_float_info): Update.
4462
 
4463
        * arch-utils.c (default_print_float_info): Update.
4464
        * infcmd.c (float_info): Update call.
4465
4466
2002-06-10  Andrew Cagney  
4467
4468
        * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4469
        the front of the initialize list.
4470
 
4471
2002-06-10  Andrew Cagney  
4472
 
4473
        * infrun.c (struct inferior_status): Replace fields
4474
        selected_frame_address and selected_level with field
4475
 
4476
        (save_inferior_status): Update.  Use get_frame_id.
4477
 
4478
        (restore_selected_frame): Update.  Use frame_find_by_id.
4479
        (restore_inferior_status): Update.
4480
4481
        * breakpoint.h (struct breakpoint): Change type of
4482
        watchpoint_frame to frame_id.
4483
        * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
4484
        call to get_current_frame.
4485
 
4486
        get_current_frame.
4487
        (watchpoint_check): Use frame_find_by_id.
4488
4489
        * frame.h (record_selected_frame): Delete declaration.
4490
        * stack.c (record_selected_frame): Delete function.
4491
4492
        * frame.h (struct frame_id): Define.
4493
 
4494
        (frame_find_by_id): Declare.
4495
        * frame.c (frame_find_by_id): New function.
4496
 
4497
4498
2002-06-10  Andrey Volkov 
4499
4500
        * ser-e7kpc.c: Fix duplicated define and call of
4501
        _initialize_ser_e7000pc
4502
 
4503
2002-06-09  Daniel Jacobowitz  
4504
 
4505
        * signals/signals.c (target_signal_from_host): Fix #ifdef
4506
        SIGRTMIN case.
4507
 
4508
4509
 
4510
4511
        * mips-tdep.c (mips_find_abi_section): New function.
4512
        (mips_gdbarch_init): Call it.
4513
 
4514
2002-06-09  Mark Kettenis  
4515
 
4516
        * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4517
        legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
4518
 
4519
4520
 
4521
4522
        * i386-linux-nat.c (suppy_gregset): Don't supply
4523
        I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4524
 
4525
        (fill_gregset): Don't fetch it under the same circumstances.
4526
 
4527
2002-06-09  Andrew Cagney  
4528
4529
        * Makefile.in (callback_h): Define.
4530
        (remote_sim_h): Update path to remote-sim.h.
4531
 
4532
        (remote-sim.o): Use $(callback_h).
4533
 
4534
        * remote-rdp.c: Include "gdb/callback.h".
4535
4536
2002-06-09  Mark Kettenis  
4537
4538
        * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4539
        * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4540
 
4541
2002-06-08  Andrew Cagney  
4542
 
4543
        * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4544
        * rdi-share/serpardr.c: Ditto.
4545
 
4546
        * rdi-share/serdrv.c: Ditto.
4547
 
4548
        * rdi-share/hostchan.c: Ditto.
4549
        * rdi-share/host.h: Ditto.
4550
        * rdi-share/devsw.c: Ditto.
4551
4552
        * objfiles.h: Change type of obj_private to void pointer.
4553
        * pa64solib.c: Update copyright.  Don't include "assert.h", use
4554
        strcmp instead of STREQ, use LONGEST, do not use PTR
4555
        * somsolib.c: Ditto.
4556
 
4557
        * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4558
        bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4559
        bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4560
4561
 
4562
4563
        * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4564
        (default_get_saved_register): Delete function.
4565
 
4566
        generic_unwind_get_saved_register.
4567
 
4568
4569
2002-06-08  Andrew Cagney  
4570
4571
        * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4572
        generic_func_frame_chain_valid.
4573
 
4574
        * blockframe.c (generic_func_frame_chain_valid): Only check
4575
 
4576
        passing FP to PC_IN_CALL_DUMMY.
4577
        Fix PR gdb/360.
4578
4579
2002-06-08  Andrew Cagney  
4580
4581
        * gdbarch.sh (struct gdbarch_data): Add field init_p.
4582
        (register_gdbarch_data): Initialize init_p.
4583
 
4584
        (init_gdbarch_data): Delete function.
4585
 
4586
        (initialize_non_multiarch): Update.
4587
        (struct gdbarch): Add field initialized_p.
4588
        * gdbarch.h, gdbarch.c: Re-generate.
4589
4590
2002-06-07  Michal Ludvig  
4591
4592
        * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4593
        (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4594
 
4595
        * x86-64-tdep.c (x86_64_register_name2nr): New.
4596
 
4597
        (x86_64_gdbarch_init): Respect the above change.
4598
        * x86-64-tdep.h (x86_64_register_name2nr)
4599
        (x86_64_register_nr2name): Add prototypes.
4600
        * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4601
4602
2002-06-06  Michael Snyder  
4603
4604
        * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4605
        Delete extra braces and re-indent.
4606
 
4607
        must be shifted over by one byte in R0.
4608
 
4609
4610
2002-06-06  Elena Zannoni  
4611
4612
        * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4613
        (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4614
 
4615
        (d10v_frame_init_saved_regs): When reading fp and sp registers use
4616
 
4617
        correct space.
4618
4619
2002-06-06  Elena Zannoni  
4620
4621
        * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4622
        altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4623
 
4624
2002-06-02  Andrew Cagney  
4625
 
4626
        * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4627
        includes.
4628
 
4629
        * config/alpha/tm-alphalinux.h: Ditto.
4630
 
4631
        * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4632
        * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4633
        * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4634
        * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4635
        * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4636
        * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4637
        * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4638
        * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4639
        * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4640
        * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4641
        * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4642
        * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4643
        * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4644
        * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4645
        * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4646
        * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4647
        * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4648
        * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4649
        * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4650
        * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4651
        * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4652
        * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4653
        * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4654
        * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4655
        * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4656
        * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4657
        * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4658
        * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4659
        * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4660
        * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4661
        * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4662
        * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4663
        * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4664
        * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4665
        * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4666
        * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4667
4668
2002-05-04  Aidan Skinner 
4669
4670
        * ada-exp.tab.c: New file
4671
        * ada-exp.y: New file
4672
 
4673
        * ada-lang.h: New file
4674
 
4675
        * ada-lex.l: New file
4676
        * ada-tasks.c: New file
4677
        * ada-typeprint.c: New file
4678
        * ada-valprint.c: New file
4679
4680
2002-06-02  Jason Thorpe  
4681
4682
        * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4683
        use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4684
 
4685
2002-06-02  Jason Thorpe  
4686
 
4687
        * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4688
        insetead of ppc-linux-tdep.o.
4689
 
4690
        * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4691
 
4692
2002-06-02  Andrew Cagney  
4693
4694
        2002-05-07 Christian Groessler 
4695
        * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4696
 
4697
4698
 
4699
4700
        * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4701
        any maintainer.
4702
 
4703
2002-06-01  Andrew Cagney  
4704
 
4705
        * gdbarch.h: Regenerate.
4706
4707
 
4708
4709
 
4710
4711
 
4712
4713
 
4714
        saved_regs.  Mention when the SP is on the stack or in a register.
4715
 
4716
        * frame.h (frame_register_unwind_ftype): Define.  Document.
4717
 
4718
        register_unwind_cache.
4719
        (frame_register_unwind): Declare.
4720
 
4721
4722
        * frame.c (frame_register_unwind): New function.
4723
        (generic_unwind_get_saved_register): New function.
4724
4725
        * blockframe.c (generic_call_dummy_register_unwind): New function.
4726
 
4727
        (set_unwind_by_pc): New function.
4728
        (create_new_frame): New function.
4729
 
4730
4731
2002-05-30  Andrew Cagney  
4732
4733
        * a29k-share/: Delete directory.
4734
        * remote-vx29k.c: Delete file.
4735
 
4736
2002-05-30  Jason Thorpe  
4737
 
4738
        * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4739
        ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4740
 
4741
2002-05-30  Jason Thorpe  
4742
 
4743
        * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4744
        sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4745
 
4746
        (sparcnbsd-nat.o)
4747
 
4748
        * NEWS: Note new UltraSPARC NetBSD native configuration.
4749
        * configure.host (sparc64-*-netbsd*): New host.
4750
        * configure.tgt (sparc-*-netbsdelf*)
4751
        (sparc-*-netbsd*): Set gdb_target to nbsd.
4752
        (sparc64-*-netbsd*): New target.
4753
        * sparc64nbsd-nat.c: New file.
4754
        * sparcnbsd-nat.c: New file.
4755
        * sparcnbsd-tdep.c: New file.
4756
        * sparcnbsd-tdep.h: New file.
4757
        * config/sparc/nbsd.mt: New file.
4758
        * config/sparc/nbsd64.mh: New file.
4759
        * config/sparc/nbsd64.mt: New file.
4760
        * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4761
        sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4762
        (HOST_IPC): Remove.
4763
        * config/sparc/nbsdaout.mt: Remove.
4764
        * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4765
        sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4766
        (HOST_IPC): Remove.
4767
        * config/sparc/nbsdelf.mt: Remove.
4768
        * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4769
        sparc-nat.c compatiblity defines.
4770
        * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4771
        (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4772
        * config/sparc/tm-nbsd64.h: New file.
4773
        * config/sparc/tm-nbsdaout.h: Remove.
4774
        * config/sparc/xm-nbsd.h: Remove.
4775
4776
2002-05-30  Jason Thorpe  
4777
4778
        * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4779
        * sparc-tdep.c: Include osabi.h.
4780
 
4781
        (_initialize_sparc_tdep): Use gdbarch_register.
4782
 
4783
        (sparc_dump_tdep): New function.
4784
4785
2002-05-30  Kevin Buettner  
4786
4787
        * corefile.c (do_captured_read_memory_integer): Return non-zero
4788
        result.
4789
 
4790
        status is non-zero.  Also, add comments.
4791
 
4792
2002-05-20  Jason Thorpe  
4793
4794
        * Makefile.in (ppc_tdep_h): Define.
4795
        (ppc-linux-nat.o)
4796
 
4797
        (rs6000-tdep.o): Use $(ppc_tdep_h).
4798
 
4799
        (ppcnbsd-nat.o)
4800
        (ppcnbsd-tdep.o): New dependency lists.
4801
        * ppc-tdep.h: Use generic OS ABI framework.
4802
        * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4803
        (ppc_linux_init_abi): New functions.
4804
        (ppc_sysv_abi_broken_use_struct_convention)
4805
        (ppc_sysv_abi_use_struct_convention)
4806
        (ppc_sysv_abi_push_arguments): Move to...
4807
        * ppc-sysv-tdep.c: ...here.
4808
        * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4809
        * rs6000-tdep.c (process_note_abi_tag_sections)
4810
        (get_elfosabi): Remove.
4811
        (rs6000_gdbarch_init): Use generic OS ABI framework.
4812
        (rs6000_dump_tdep): New function.
4813
        (_initialize_rs6000_tdep): Use gdbarch_register.
4814
        * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4815
        * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4816
        * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4817
        of ppc-linux-tdep.o.
4818
        * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4819
        * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4820
        * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4821
        * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4822
        * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4823
        * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4824
4825
2002-05-29  Jim Blandy  
4826
4827
        * macroscope.c (default_macro_scope): Put `void' in empty argument
4828
        list.
4829
 
4830
2002-05-29  Andrew Cagney  
4831
 
4832
        * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4833
        * arch-utils.c: Include "sim-regno.h".
4834
 
4835
        * gdbarch.h, gdbarch.c: Regenerate.
4836
 
4837
        here.
4838
        * arch-utils.h (legacy_register_sim_regno): To here.
4839
        * remote-sim.c (legacy_register_sim_regno): Move function from
4840
        here.
4841
        * arch-utils.c (legacy_register_sim_regno): To here.
4842
4843
2002-05-28  Andrew Cagney  
4844
4845
        * sim-regno.h: New file.
4846
        * Makefile.in (sim_regno_h): Define.
4847
 
4848
        * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4849
 
4850
        (one2one_register_sim_regno): New function.
4851
        (gdbsim_fetch_register): Rewrite.
4852
        (gdbsim_store_register): Only store a register when
4853
        REGISTER_SIM_REGNO is valid.
4854
        * d10v-tdep.c: Include "sim-regno.h".
4855
        (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4856
        (d10v_ts3_register_sim_regno): Ditto.
4857
        * gdbarch.sh: Include "sim-regno.h".
4858
        (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4859
        * gdbarch.h, gdbarch.c: Regenerate.
4860
        * arch-utils.h (default_register_sim_regno): Delete declaration.
4861
        * arch-utils.c (default_register_sim_regno): Delete function.
4862
4863
2002-05-28  Jason Thorpe  
4864
4865
        * ppcnbsd-nat.c: Rewrite.
4866
        * ppcnbsd-tdep.c: New file.
4867
 
4868
        * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4869
 
4870
        * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4871
        nbsd-tdep.o, and corelow.o.
4872
4873
2002-05-28  Andrew Cagney  
4874
4875
        * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4876
        `tr' and `sed'.  Mention that `broken' targets are not expected to
4877
 
4878
4879
 
4880
4881
        * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4882
        Let PC point right after the prologue before looking up symbols.
4883
 
4884
2002-05-27  Martin M. Hunt  
4885
 
4886
        * i386-tdep.c (i386_register_virtual_type): Return
4887
        builtin_type_vec128i for SSE registers.
4888
 
4889
        * gdbtypes.h (builtin_type_vec128i): Declare.
4890
 
4891
        * gdbtypes.c (build_builtin_type_vec128i): New function.
4892
        (builtin_type_v2_double, builtin_type_v4_int64): New types.
4893
 
4894
        (build_gdbtypes): Initialize new builtin vector types.
4895
 
4896
4897
2002-05-26  Jason Thorpe  
4898
4899
        * MAINTAINERS: ns32k is not longer an obsolete candidate,
4900
        since it has been multi-arch'd.
4901
 
4902
        Move Alpha and VAX multi-arch news entries to same section
4903
 
4904
4905
2002-05-26  Jason Thorpe  
4906
4907
        * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4908
        target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4909
 
4910
        private namespace.
4911
 
4912
        ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4913
        functions.
4914
        (_initialize_ns32k_tdep): Use gdbarch_register.
4915
        * ns32k-tdep.h: New file.
4916
        * ns32knbsd-tdep.c: New file.
4917
        * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4918
        * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4919
        (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4920
        REGISTER_BYTES, REGISTER_BYTE): Remove.
4921
        * config/ns32k/tm-ns32k.h: New file.
4922
        * config/ns32k/tm-umax.h: Remove.
4923
4924
2002-05-26  Jason Thorpe  
4925
4926
        * ns32k-tdep.c (ns32k_saved_pc_after_call,
4927
        ns32k_store_struct_return, ns32k_extract_return_value,
4928
 
4929
        functions.
4930
 
4931
        ns32k_saved_pc_after_call.
4932
        (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4933
        (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4934
        (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4935
        (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4936
        ns32k_extract_struct_value_address.
4937
4938
2002-05-26  Jason Thorpe  
4939
4940
        * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4941
        ns32k_fix_call_dummy): New.
4942
 
4943
        ns32k_call_dummy_words.
4944
 
4945
        (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4946
        CALL_DUMMY_NARGS): Remove.
4947
        (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4948
4949
2002-05-26  Jason Thorpe  
4950
4951
        * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4952
        ns32k_frame_saved_pc, ns32k_frame_args_address,
4953
 
4954
        ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4955
 
4956
        * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4957
        (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4958
        (BREAKPOINT): Remove..
4959
        (FRAME_CHAIN): Define as ns32k_frame_chain.
4960
        (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4961
        (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4962
        (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4963
        (FRAME_FIND_SAVED_REGS): Remove.
4964
        (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4965
        (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4966
        (POP_FRAME): Define as ns32k_pop_frame.
4967
4968
2002-05-26  Jason Thorpe  
4969
4970
        * ns32k-tdep.c (ns32k_register_byte_32082,
4971
        ns32k_register_byte_32382, ns32k_register_raw_size,
4972
 
4973
        functions.
4974
 
4975
        ns32k_register_byte_32382.
4976
        * config/ns32k/tm-umax.h: Update copyright years.
4977
        (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4978
        (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4979
        (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4980
        (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4981
        (ns32k_get_enter_addr): Fix prototype.
4982
4983
2002-05-26  Jason Thorpe  
4984
4985
        * ns32k-tdep.c: Update copyright years.
4986
        (ns32k_register_name_32082): New function.
4987
 
4988
        * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4989
 
4990
        * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4991
        (REGISTER_NAME): Define as ns32k_register_name_32082.
4992
4993
2002-05-24  Jim Blandy  
4994
4995
        * dwarf2read.c (free_line_header): Use xfree, not free.
4996
4997
 
4998
4999
 
5000
        alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5001
 
5002
2002-05-23  Andrew Cagney  
5003
 
5004
        * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5005
5006
 
5007
5008
 
5009
        * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5010
 
5011
2002-05-23  Michael Snyder  
5012
 
5013
        * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5014
        for input, rather than parse_and_eval_address.
5015
 
5016
2002-05-23  Andrew Cagney  
5017
 
5018
        * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5019
        * Makefile.in (sim_d10v_h): Update definition.
5020
 
5021
2002-05-24  Andrew Cagney  
5022
 
5023
        * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5024
        change `2002-05-22 Michael Snyder' below.
5025
 
5026
        (d10v_extract_return_value): Ditto.
5027
 
5028
2002-05-23  Jim Blandy  
5029
5030
        * macrotab.c (check_for_redefinition): Don't complain if the new
5031
        definition is the same as the previous one.  Take more arguments
5032
 
5033
        (macro_define_object, macro_define_function): Pass more arguments
5034
 
5035
5036
2002-05-22  Michael Snyder  
5037
5038
        * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5039
        (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5040
 
5041
        (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5042
 
5043
        Add a temp variable to save a call (and a memory read).
5044
        (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5045
        if possible (so that PC_IN_CALL_DUMMY will work).
5046
5047
2002-05-22  Corinna Vinschen  
5048
5049
        * MAINTAINERS: Remove status `OBSOLETE' from v850.
5050
5051
 
5052
5053
 
5054
        fde->cie_ptr.
5055
 
5056
        (dwarf2_build_frame_info): Add offset to fde->initial_location
5057
 
5058
        (execute_stack_op): Change type of 'result' from ULONGEST to
5059
        CORE_ADDR.
5060
5061
2002-05-22  Jason Thorpe  
5062
5063
        * config/alpha/tm-nbsd.h: Include solib.h.
5064
5065
 
5066
5067
 
5068
        assumptions about the host's byte order.
5069
 
5070
2002-05-22  Jason Thorpe  
5071
 
5072
        * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5073
        to dependency list.
5074
 
5075
        * shnbsd-tdep.c: Ditto.
5076
 
5077
2002-05-22  Jason Thorpe  
5078
5079
        * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5080
        nbsd-tdep.h to dependency list.
5081
 
5082
        i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5083
 
5084
        nbsdaout.mh and nbsdelf.mh consistently.
5085
        * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5086
        ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5087
        nbsdaout.mt and nbsdelf.mh consistently.
5088
        * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5089
        (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5090
        to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5091
        * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
5092
        a.out shared library stuff from here...
5093
        * config/nm-nbsdaout.h: ...to here.
5094
        * config/tm-nbsd.h: Remove.
5095
        * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5096
        * config/arm/nbsd.mh: Remove.
5097
        * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5098
        nbsd-tdep.o.
5099
        * config/arm/nbsdaout.mh: New file.
5100
        * config/arm/nbsdelf.mh: New file.
5101
        * config/arm/nm-nbsdaout.h: New file.
5102
        * config/i386/nbsd.mh: Remove.
5103
        * config/i386/nbsd.mt: Remove.
5104
        * config/i386/nbsdaout.mh: New file.
5105
        * config/i386/nbsdaout.mt: New file.
5106
        * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5107
        * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5108
        * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5109
        i386_register_u_addr): Remove.
5110
        * config/i386/nm-nbsdaout.h: New file.
5111
        * config/i386/nm-nbsdelf.h: Remove.
5112
        * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5113
        (USE_STRUCT_CONVENTION): Remove.
5114
        * config/i386/tm-nbsdaout.h: New file.
5115
        * config/i386/tm-nbsdelf.h: Remove.
5116
        * config/m68k/nbsd.mh: Remove.
5117
        * config/m68k/nbsd.mt: Remove.
5118
        * config/m68k/nbsdaout.mh: New file.
5119
        * config/m68k/nbsdaout.mt: New file.
5120
        * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5121
        * config/m68k/nm-nbsdaout.h: New file.
5122
        * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5123
        (IN_SOLIB_CALL_TRAMPOLINE): Define.
5124
        * config/ns32k/nbsd.mh: Remove.
5125
        * config/ns32k/nbsd.mt: Remove.
5126
        * config/ns32k/nbsdaout.mh: New file.
5127
        * config/ns32k/nbsdaout.mt: New file.
5128
        * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5129
        * config/ns32k/nm-nbsdaout.h: New file.
5130
        * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5131
        (IN_SOLIB_CALL_TRAMPOLINE): Define.
5132
        * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5133
        (SVR4_SHARED_LIBS): Remove.
5134
        * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5135
        * config/sparc/nbsd.mh: Remove.
5136
        * config/sparc/nbsd.mt: Remove.
5137
        * config/sparc/nbsdaout.mh: New file.
5138
        * config/sparc/nbsdaout.mt: New file.
5139
        * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5140
        * config/sparc/nbsdelf.mt: New file.
5141
        * config/sparc/nm-nbsdaout.h: New file.
5142
        * config/sparc/nm-nbsdelf.h: Remove.
5143
        * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5144
        * config/sparc/tm-nbsdaout.h: New file.
5145
5146
2002-05-21  Jason Thorpe  
5147
5148
        * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5149
        mipsnbsd-tdep.c
5150
 
5151
5152
 
5153
5154
        * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5155
        shnbsd-nat.c.
5156
 
5157
5158
 
5159
5160
        * NEWS: Note new MIPS NetBSD native configuration.
5161
        * configure.host (mips*-*-netbsd*): New host.
5162
 
5163
        * mipsnbsd-nat.c: New file.
5164
 
5165
        * mipsnbsd-tdep.h: New file.
5166
        * config/mips/nbsd.mh: New file.
5167
        * config/mips/nbsd.mt: New file.
5168
        * config/mips/nm-nbsd.h: New file.
5169
        * config/mips/tm-nbsd.h: New file.
5170
5171
2002-05-21  Jason Thorpe  
5172
5173
        * Makefile.in (SFILES): Add osabi.c.
5174
        (COMMON_OBS): Add osabi.o.
5175
 
5176
        * osabi.c: New file.
5177
 
5178
        * doc/gdbint.texinfo: Document new generic OS ABI framework.
5179
5180
        * Makefile.in (alpha_tdep_h): Define and use instead of
5181
        alpha-tdep.h.
5182
        * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5183
        get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5184
 
5185
        (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5186
        * alpha-tdep.h: Include osabi.h.
5187
        (alpha_abi): Remove.
5188
        (gdbarch_tdep): Use generic OS ABI framework.
5189
        * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5190
        gdbarch_register_osabi.
5191
        * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5192
        * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5193
        * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5194
5195
        * Makefile.in (sh_tdep_h): Add osabi.h.
5196
        * sh-tdep.h (sh_osabi): Remove.
5197
        (gdbarch_tdep): Use generic OS ABI framework.
5198
        * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5199
 
5200
        (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5201
        * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5202
5203
        * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5204
        * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5205
        gdbarch_register_osabi.
5206
        * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5207
 
5208
        (get_elfosabi): Rename to...
5209
        (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
5210
        ABI framework support routines.
5211
        (arm_gdbarch_init): Use generic OS ABI framework.
5212
        (arm_dump_tdep): Likewise.
5213
        (_initialize_arm_tdep): Likewise.
5214
        * arm-tdep.h: Include osabi.h.
5215
        (arm_abi): Remove.
5216
        (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
5217
        osabi member.
5218
        (arm_gdbarch_register_os_abi): Remove prototype.
5219
        * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5220
        (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5221
5222
        * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5223
        * mips-tdep.c: Include osabi.h.
5224
        (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5225
        OS ABI framework.
5226
 
5227
2002-05-20  Kazu Hirata  
5228
5229
        * h8300-tdep.c: Fix formatting.
5230
5231
 
5232
5233
 
5234
        printing vector registers.
5235
 
5236
2002-05-19  Andrew Cagney  
5237
 
5238
        From Fernando Nasser:
5239
        * remote.c (remote_async_open_1): Re-throw the exception when the
5240
 
5241
        (remote_cisco_open): Ditto.
5242
 
5243
5244
2002-05-19  Andrew Cagney  
5245
5246
        * remote.c (remote_start_remote_dummy): Add uiout parameter.
5247
        (remote_start_remote): Add uiout parameter.  Pass through to
5248
 
5249
        (remote_open_1): Use catch_exception instead of catch_errors.
5250
 
5251
        (remote_cisco_open): Ditto.
5252
5253
2002-05-19  Andrew Cagney  
5254
5255
        * remote.c (remote_start_remote): Replace PTR with void pointer.
5256
        (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
5257
 
5258
5259
 
5260
5261
        * gdb_indent.sh: Allow the script to be run in the sim directory.
5262
5263
 
5264
5265
 
5266
        * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5267
 
5268
        * corelow.c (core_open): Only call set_gdbarch_from_file if
5269
 
5270
5271
2002-05-17  Andrey Volkov 
5272
 
5273
        * h8300-tdep.c: Add support of EXR register
5274
        * config/h8300/tm-h8300.h: Ditto.
5275
 
5276
2002-05-17  Andrey Volkov 
5277
 
5278
        * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5279
5280
 
5281
5282
 
5283
5284
 
5285
5286
 
5287
5288
 
5289
        * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5290
 
5291
        finished_macro_expansion): New function declarations.
5292
 
5293
        variable declarations.
5294
        * parser-defs.h (expression_context_pc): New declaration.
5295
        * parse.c (expression_context_pc): New variable.
5296
        (parse_exp_1): Set expression_context_pc, as well as
5297
        expression_context_block.
5298
        * c-exp.y (yylex): If we're not already reading the result of a
5299
        macro expansion, try to macro-expand the next token.  When we're
5300
        done scanning a macro expansion, switch back to the mainline text.
5301
        Commas and `if's in a macro's expansion don't terminate the input.
5302
        * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5303
        (macro_original_text, macro_expanded_text,
5304
        expression_macro_lookup_func, expression_macro_lookup_baton): New
5305
        variables.
5306
        (scan_macro_expansion, scanning_macro_expansion,
5307
        finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5308
        c_preprocess_and_parse): New functions.
5309
        (c_language_defn, cplus_language_defn, asm_language_defn): Call
5310
        c_preprocess_and_parse, instead of c_parse.
5311
        * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5312
        (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5313
5314
Fri May 17 14:26:19 2002  J"orn Rennecke 
5315
5316
        * sh-tdep.c (gdb_print_insn_sh64): Delete.
5317
        (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5318
 
5319
5320
 
5321
5322
        * NEWS: Add section for multi-arched targets.  Add v850 to that section.
5323
5324
 
5325
5326
 
5327
        * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5328
 
5329
        * * sh-tdep.h: ...here.
5330
 
5331
        * sh3-rom.c: Likewise.
5332
        * shnbsd-tdep.c: Likewise.
5333
5334
2002-05-16  Michael Snyder  
5335
5336
        * arm-tdep.c: Spelling fix in comment.
5337
5338
 
5339
5340
 
5341
        definitions.
5342
 
5343
        * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5344
 
5345
        (HFILES_NO_SRCDIR): Add macroscope.h.
5346
        (COMMON_OBS): Add macrocmd.o, macroscope.o.
5347
        (macroscope.o, macrocmd.o): New rules.
5348
5349
        Teach the Dwarf 2 reader to read macro information.
5350
        * dwarf2read.c: #include "macrotab.h".
5351
        (dwarf_macinfo_buffer): New variable.
5352
        (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5353
 
5354
        (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5355
        (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5356
        dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5357
        dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5358
        dwarf2_macro_spaces_in_definition): New complaints.
5359
        (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5360
        (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5361
        (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5362
        the partial symbol table.
5363
        (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5364
        from what's recorded in the partial symbol table.
5365
        (read_file_scope): If the compilation unit has a
5366
        `DW_AT_macro_info' attribute, read its macro information.
5367
        * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5368
5369
2002-05-16  Daniel Jacobowitz  
5370
5371
        Fix PR gdb/546
5372
        * ser-tcp.c: Don't include .
5373
 
5374
2002-05-16  Stephane Carrez  
5375
 
5376
        * MAINTAINERS: Update my email address.
5377
5378
 
5379
5380
 
5381
        include file of the same name.
5382
 
5383
2002-05-16  Corinna Vinschen  
5384
 
5385
        * configure.tgt: Mark v850 as multi-arched.
5386
        * config/v850/tm-v850.h: Remove file.
5387
 
5388
5389
 
5390
5391
        * v850-tdep.c: Full multi-arch.
5392
        * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5393
 
5394
5395
 
5396
5397
        * p-exp.y (current_type): New static variable.
5398
        Carries the type of the expression at the position that is parsed.
5399
 
5400
        to store/restore current_type in expression on specific tokens.
5401
 
5402
        as at that point only a FIELDNAME token should be searched.
5403
        (FIELDNAME): New token. After a point only a token belonging to
5404
        current_type type definition is allowed.
5405
        (all over token rules): reset and change current_type according
5406
        to rules.
5407
        (exp '[' rule): insert implicit array index field if
5408
        exp is a pascal string type.
5409
5410
2002-05-16  Corinna Vinschen  
5411
5412
        * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
5413
        frame info.  Use frame_info's saved_regs instead of matching member
5414
 
5415
        (v850_frame_init_saved_regs): New function.
5416
 
5417
        v850_frame_init_saved_regs().
5418
        * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5419
        (v850_frame_find_saved_regs): Remove declaration.
5420
        (FRAME_FIND_SAVED_REGS): Remove definition.
5421
        (v850_frame_init_saved_regs): Add declaration.
5422
        (FRAME_INIT_SAVED_REGS): Add definition.
5423
5424
2002-05-16  Corinna Vinschen  
5425
5426
        * v850-tdep.c: Begin multi-arch'ing v850.
5427
        (v850_target_architecture_hook): Remove function.
5428
 
5429
        v850_target_architecture_hook().
5430
 
5431
        Call register_gdbarch_init() instead.
5432
5433
2002-05-16 Daniel Jacobowitz  
5434
5435
        * gdbtypes.h (struct cplus_struct_type): Remove args field.
5436
        * hpread.c (hpread_read_struct_type): Remove assignments to args.
5437
 
5438
5439
 
5440
5441
        Add macro structures to GDB's symbol tables.  Nobody puts anything
5442
        in them yet.
5443
 
5444
        * buildsym.h (pending_macros): New global variable.
5445
 
5446
        (buildsym_init): Initialize `pending_macros'.
5447
        (end_symtab): If we found macro information while reading a CU's
5448
        debugging info, do build a symtab structure for it.  Make the
5449
        symtab point to the macro information, and clear the
5450
        `pending_macros' pointer which held it while we were reading the
5451
        debug info.
5452
        (really_free_pendings): Free any pending macro table.
5453
        * objfiles.h (struct objfile): New member: `macro_cache'.
5454
        * objfiles.c (allocate_objfile): Set allocate and free functions
5455
        for the macro cache's objstack.
5456
        (free_objfile): Empty the macro cache's obstack.
5457
        * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5458
        set new allocate and free functions for it.
5459
        * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5460
        free functions for the macro cache's objstack.  (Why is this
5461
        function building its own objfile?)
5462
        * symmisc.c (print_objfile_statistics): Print statistics on the
5463
        macro bcache.
5464
        * Makefile.in: Note that buildsym.o depends on macrotab.h.
5465
5466
2002-05-15  Richard Earnshaw  
5467
5468
        * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5469
        (REGISTER_U_ADDR): Delete definition.
5470
 
5471
5472
 
5473
5474
        * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5475
        (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5476
 
5477
2002-05-14  Andrew Cagney  
5478
 
5479
        * regcache.c (register_valid): Revise comments refering to "Not
5480
        available" and "unavailable".
5481
 
5482
        * findvar.c (value_of_register): Ditto.
5483
 
5484
2002-05-15  Andrew Cagney  
5485
5486
        * Makefile.in (remote_sim_h): Replace remote-sim_h.
5487
        (remote-sim.o): Update dependencies.
5488
 
5489
        (sim_d10v_h): Define.
5490
 
5491
2002-05-14  Jim Blandy  
5492
5493
        * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5494
        * macrotab.c (macro_lookup_inclusion, find_definition,
5495
 
5496
5497
 
5498
        not `! strcmp ()'.  This is a dubious improvement.
5499
        * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5500
5501
 
5502
        although it's not necessary, to avoid a warning.
5503
5504
2002-05-14  Daniel Jacobowitz  
5505
 
5506
        * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5507
        (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5508
 
5509
        (struct main_type): New.
5510
 
5511
        cv_type and as_type to new type_chain member.  Add instance_flags.
5512
        (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5513
        (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5514
        (finish_cv_type): Remove prototype.
5515
        * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
5516
        Set TYPE_CHAIN.
5517
        (alloc_type_instance): New function.
5518
        (smash_type): New function.
5519
        (make_pointer_type, make_reference_type, make_function_type)
5520
        (smash_to_member_type, smash_to_method_type): Call smash_type.
5521
        (make_qualified_type): New function.
5522
        (make_type_with_address_space): Call make_qualified_type.
5523
        (make_cv_type): Likewise.
5524
        (finish_cv_type): Remove unnecessary function.
5525
        (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
5526
        (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5527
        remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5528
        * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5529
        * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5530
        * hpread.c (hpread_read_struct_type): Likewise.
5531
        * stabsread.c (read_struct_type): Likewise.
5532
5533
2002-05-14  Elena Zannoni  
5534
5535
        * configure.tgt: Add a catch all sh* target, for cases like
5536
        sh[2,3,4]-elf and sh-hms.
5537
 
5538
2002-05-14  Keith Seitz  
5539
 
5540
        * event-loop.c (create_file_handler): Don't do anything but
5541
        update data when we are given a fd which we are already
5542
 
5543
5544
 
5545
5546
        * dwarf2cfi.c (context_cpy): Copy registers correctly.
5547
        (update_context): Use __func__ in warnings.
5548
 
5549
2002-05-14  Daniel Jacobowitz  
5550
 
5551
        * ser-tcp.c: Include .  Rename tcp_open
5552
        and tcp_close to net_open and net_close.
5553
 
5554
        using UDP if requested.  Don't try to disable Nagle on UDP
5555
 
5556
        * remote.c (remote_serial_open): New function.  Warn about UDP.
5557
        (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5558
5559
2002-05-13  Elena Zannoni  
5560
5561
        * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5562
5563
 
5564
5565
 
5566
        * MAINTAINERS: Don't list sh-hms as a separate target.
5567
 
5568
2002-05-13  Jim Blandy  
5569
 
5570
        Add first preprocessor macro-expansion files.
5571
        * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5572
 
5573
        (splay_tree_h, macroexp_h, macrotab_h): New variable.
5574
 
5575
        (COMMON_OBS): Add macrotab.o, macroexp.o.
5576
        (macroexp.o, macrotab.o): New rules.
5577
5578
2002-05-13  Andrew Cagney  
5579
5580
        * config/m88k/tm-m88k.h: Update copyright.
5581
        (m88k_target_write_pc): Declare
5582
 
5583
        (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5584
 
5585
        * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
5586
        using old definition of TARGET_WRITE_PC.
5587
        * regcache.c (generic_target_write_pc): Delete code handling
5588
        NNPC_REGNUM.
5589
        * gdbarch.sh (NNPC_REGNUM): Delete.
5590
        * gdbarch.h, gdbarch.c: Regenerate.
5591
5592
2002-05-13  Richard Earnshaw  
5593
5594
        * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5595
        builtin reg number.
5596
 
5597
2002-05-13  Daniel Jacobowitz  
5598
 
5599
        * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5600
        (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5601
 
5602
        access macros.
5603
 
5604
        (c_type_print_args): Likewise.
5605
        * d10v-tdep.c (d10v_push_arguments): Likewise.
5606
        (d10v_extract_return_value): Likewise.
5607
        * expprint.c (print_subexp): Likewise.
5608
        * gdbtypes.c (lookup_primitive_typename): Likewise.
5609
        (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5610
        * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5611
        (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5612
        (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5613
        (TYPE_VECTOR): Likewise.
5614
        * hpread.c (hpread_read_struct_type)
5615
        (fix_static_member_physnames, fixup_class_method_type)
5616
        (hpread_type_lookup): Likewise.
5617
        * mdebugread.c (parse_symbol, parse_type): Likewise.
5618
        * p-lang.c (is_pascal_string_type): Likewise.
5619
        * valops.c (hand_function_call): Likewise.
5620
        * x86-64-tdep.c (classify_argument): Likewise.
5621
5622
        * hpread.c (hpread_read_function_type)
5623
        (hpread_read_doc_function_type): Call replace_type.
5624
        * dstread.c (create_new_type): Delete.
5625
        (decode_dst_structure, process_dst_function): Call alloc_type.
5626
 
5627
5628
2002-05-12  Mark Kettenis  
5629
5630
        * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5631
        the're not supported by the current architecture.
5632
 
5633
5634
 
5635
5636
        * symfile.c (default_symfile_offsets): Arrange for uninitialized
5637
        sect_index_xxx members to index the first slot in section_offsets
5638
 
5639
5640
 
5641
5642
        * configure.tgt (sparc-*openbsd): Remove entry accidentially
5643
        checked in with last change.
5644
 
5645
2002-05-12  Mark Kettenis  
5646
 
5647
        * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5648
        Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
5649
 
5650
5651
 
5652
5653
        * Makefile.in: Update dependencies.
5654
5655
 
5656
5657
 
5658
        on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5659
 
5660
        * memattr.c (mem_info_command): Replace calls to
5661
 
5662
        * buildsym.c (make_blockvector): Ditto.
5663
        * solib.c (info_sharedlibrary_command): Ditto.
5664
 
5665
        * symtab.c (print_msymbol_info): Ditto.
5666
5667
        * language.c (local_hex_string): Delete.
5668
        (local_hex_string_custom): Delete.
5669
        (longest_local_hex_string): Rename to local_hex_string.
5670
        (longest_local_hex_string_custom): Rename to
5671
 
5672
        * language.h (local_hex_string): Change parameter type to LONGEST.
5673
        (local_hex_string_custom): Ditto.
5674
        (longest_local_hex_string): Delete declaration.
5675
        (longest_local_hex_string_custom): Ditto.
5676
5677
        * solib.c: Update copyright.
5678
        * memattr.c: Update copyright.
5679
5680
2002-05-11  Andrew Cagney  
5681
 
5682
        * arch-utils.h (legacy_register_to_value): Declare.
5683
        (legacy_value_to_register): Declare.
5684
 
5685
        * arch-utils.c (legacy_register_to_value): New function.
5686
 
5687
        (legacy_convert_register_p): New function.
5688
5689
        * gdbarch.sh (REGISTER_TO_VALUE): Define.
5690
        (VALUE_TO_REGISTER): Define.
5691
        (CONVERT_REGISTER_P): Define.
5692
        * gdbarch.h, gdbarch.c: Regenerate.
5693
 
5694
        * valops.c (value_assign): Use CONVERT_REGISTER_P and
5695
        VALUE_TO_REGISTER.
5696
        * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5697
        CONVERT_REGISTER_P.
5698
 
5699
2005-05-11  Daniel Jacobowitz  
5700
            Peter Schauer  
5701
5702
        * Makefile.in: Update dependencies for valops.c.
5703
 
5704
        (typecmp): Skip THIS parameter to methods.
5705
        (find_method_list): Remove static_memfuncp argument,
5706
 
5707
        (find_value_oload_method_list): Don't set *static_memfuncp.
5708
        (find_overload_match): Don't check for stub methods.  Assert
5709
        that methods are not stubbed.  Handle static methods.
5710
        (value_find_oload_method_list): Remove static_memfuncp argument.
5711
        * gdbtypes.c (check_stub_method): Do not add THIS pointer
5712
        to the argument list for static stub methods.
5713
        * value.h (value_find_oload_method_list): Update prototype.
5714
5715
2002-05-11  Andrew Cagney  
5716
5717
        * arch-utils.h (generic_register_size): Declare.
5718
        (generic_register_raw_size, generic_register_virtual_size): Delete
5719
 
5720
        * arch-utils.c (generic_register_raw_size): Delete.
5721
 
5722
        (generic_register_virtual_size): Delete.
5723
5724
        * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5725
        default generic_register_size.
5726
        * gdbarch.h, gdbarch.c: Re-generate.
5727
5728
 
5729
        register_virtual_size.
5730
        * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5731
        * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5732
 
5733
2002-05-11  Andrew Cagney  
5734
5735
        * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5736
        * gdbarch.h, gdbarch.c: Regenerate.
5737
 
5738
        (vtable_address_point_offset): Update.
5739
 
5740
        (gnuv3_baseclass_offset): Update.
5741
        * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5742
        (init_fetch_link_map_offsets): Update.
5743
        * remote.c (get_remote_state): Update.
5744
5745
2002-05-11  Daniel Jacobowitz  
5746
5747
        * TODO: Remove value_headof/value_from_vtable_info comment.
5748
        * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5749
 
5750
        * value.h (value_from_vtable_info): Delete prototype.
5751
 
5752
2002-05-11  Andrew Cagney  
5753
5754
        * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5755
        gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5756
 
5757
        (gdb_assert_h): Define.
5758
 
5759
        (gdb_regex_h): Define.
5760
5761
2002-05-11 Daniel Jacobowitz  
5762
5763
        From Peter Schauer :
5764
        * linespec.c (find_methods): Handle GCC 3.x template constructors.
5765
 
5766
2002-05-11  Jason Thorpe  
5767
 
5768
        * nbsd-tdep.c: Fix comment.
5769
5770
 
5771
5772
 
5773
        (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5774
 
5775
        * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5776
 
5777
        (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5778
        (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5779
        * nbsd-tdep.c: New file.
5780
        * nbsd-tdep.h: New file.
5781
        * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5782
        nbsd-tdep.h.
5783
        (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5784
        (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5785
        * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5786
        * config/sh/nbsd.mt (TDEPFILES): Ditto.
5787
5788
2002-05-11  Jason Thorpe  
5789
5790
        * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5791
        * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5792
 
5793
        * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5794
 
5795
        * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5796
5797
2002-05-11  Jason Thorpe  
5798
5799
        * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5800
        * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5801
 
5802
        * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5803
 
5804
        * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5805
        * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5806
5807
2002-05-11  Jason Thorpe  
5808
5809
        * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5810
        fetch_elfcore_registers to...
5811
 
5812
        (i386nbsd_use_struct_convention): Rename to...
5813
 
5814
        (i386nbsd_supply_reg): New function.
5815
        (i386nbsd_fill_reg): New function.
5816
        (fetch_core_registers): Use i386nbsd_supply_reg.
5817
        (fetch_elfcore_registers): Likewise.
5818
        (_initialize_i386nbsd_tdep): New function.
5819
        * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5820
        * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5821
        * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5822
        * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5823
        (i386nbsd_aout_use_struct_convention): ...this.
5824
5825
2002-05-11  Jason Thorpe  
5826
5827
        * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5828
        (store_inferior_registers): Use shnbsd_fill_reg.
5829
 
5830
        sh_nbsd_supply_register): Collapse into...
5831
 
5832
        (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5833
        (shnbsd_fill_reg): ...this.
5834
        (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5835
        (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5836
        (fetch_core_registers): Use shnbsd_supply_reg.
5837
        (fetch_elfcore_registers): Use shnbsd_supply_reg.
5838
        (sh_nbsd_core_fns): Rename to...
5839
        (shnbsd_core_fns): ...this.
5840
        (sh_nbsd_elfcore_fns): Rename to...
5841
        (shnbsd_elfcore_fns): ...this.
5842
        (sh_nbsd_init_abi): Rename to...
5843
        (shnbsd_init_abi): ...this.
5844
        (_initialize_sh_nbsd_tdep): Rename to...
5845
        (_initialize_shnbsd_tdep): ...this.
5846
        * shnbsd-tdep.h (sh_nbsd_supply_registers,
5847
        sh_nbsd_supply_register, sh_nbsd_fill_registers,
5848
        sh_nbsd_fill_register): Remove prototypes.
5849
        (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5850
5851
2002-05-11  Jason Thorpe  
5852
5853
        * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5854
        (i387-nat.o): Delete dependency list.
5855
 
5856
        (x86-64-linux-nat.o): Likewise.
5857
 
5858
        * i387-tdep.c: ...here.
5859
        * i387-nat.h: Rename...
5860
        * i387-tdep.h: ...to this.
5861
        * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5862
        * i386-linux-nat.c: Likewise.
5863
        * i386bsd-nat.c: Likewise.
5864
        * i386gnu-nat.c: Likewise.
5865
        * i386nbsd-nat.c: Likewise.
5866
        * i386v4-nat.c: Likewise.
5867
        * x86-64-linux-nat.c: Likewise.
5868
        * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5869
        * config/i386/go32.mh (NATDEPFILES): Likewise.
5870
        * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5871
        * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5872
        * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5873
        * config/i386/linux.mh (NATDEPFILES): Likewise.
5874
        * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5875
        * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5876
        * config/i386/obsd.mh (NATDEPFILES): Likewise.
5877
        * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5878
5879
2002-05-11  Jason Thorpe  
5880
5881
        * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5882
        (alphanbsd-nat.o): Remove dependency list.
5883
 
5884
        * alphanbsd-nat.c: Delete.  Contents moved to...
5885
 
5886
        (_initialize_alphanbsd_tdep): Register core functions.
5887
        * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5888
5889
2002-05-11  Jason Thorpe  
5890
5891
        * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5892
        (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5893
 
5894
        (alphabsd-tdep.o): New dependency list.
5895
 
5896
        (fill_gregset): Use alphabsd_fill_reg.
5897
        (supply_fpregset): Use alphabsd_supply_fpreg.
5898
        (fill_fpregset): Use alphabsd_fill_fpreg.
5899
        (fetch_inferior_registers): Use struct reg and struct fpreg
5900
        rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5901
        and alphabsd_supply_fpreg.
5902
        (store_inferior_registers): Use struct reg and struct fpreg
5903
        rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5904
        and alphabsd_fill_fpreg.
5905
        * alphabsd-tdep.c: New file.
5906
        * alphabsd-tdep.h: New file.
5907
        * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5908
        (fetch_elfcore_registers): Use alphabsd_supply_reg and
5909
        alphabsd_supply_fpreg.
5910
        * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5911
        * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5912
5913
2002-05-11  Eric Christopher  
5914
5915
        * mips-tdep.c (mips_double_register_type): Fix thinko.
5916
        (mips_single_register_type): Ditto.
5917
 
5918
5919
 
5920
5921
        * i387-nat.c (i387_supply_register, i387_fill_fsave,
5922
        i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5923
 
5924
        integer sizes.
5925
 
5926
2002-05-10  Jason Thorpe  
5927
5928
        From Christian Limpach 
5929
        * configure.in: Change sed expression which comments out
5930
 
5931
        * configure: Regenerate.
5932
 
5933
2002-05-10  Elena Zannoni  
5934
5935
        * sh-tdep.c: Clean up code erroneously reintroduced by previous
5936
        big patch.
5937
 
5938
2002-05-10  Elena Zannoni  
5939
 
5940
        * sh-tdep.c: Include correct file.
5941
5942
 
5943
5944
 
5945
5946
 
5947
5948
 
5949
        (struct gdbarch_tdep): Add new fields for new registers and ABI
5950
 
5951
5952
 
5953
        (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5954
        MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5955
        UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5956
 
5957
        IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5958
        IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5959
        IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5960
        IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5961
        IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5962
        IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5963
        (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5964
        pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5965
        sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5966
        gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5967
        sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5968
        sh64_get_gdb_regnum, sh64_media_reg_base_num,
5969
        sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5970
        sign_extend, sh64_nofp_frame_init_saved_regs,
5971
        sh64_init_extra_frame_info, sh64_get_saved_register,
5972
        sh64_extract_struct_value_address, sh64_pop_frame,
5973
        sh64_push_arguments, sh64_extract_return_value,
5974
        sh64_store_return_value, sh64_show_media_regs,
5975
        sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5976
        sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5977
        sh_sh64_register_virtual_type,
5978
        sh_sh64_register_convert_to_virtual,
5979
        sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5980
        sh64_register_read, sh64_pseudo_register_write,
5981
        sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5982
        do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5983
        sh64_do_pseudo_register, sh_compact_do_registers_info,
5984
        sh64_do_registers_info, sh_gdbarch_init): New functions.
5985
5986
2002-05-10  Elena Zannoni  
5987
5988
        * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5989
5990
 
5991
5992
 
5993
        a filename correctly.
5994
 
5995
2002-05-10  Jim Blandy  
5996
 
5997
        Properly track the size of the current objfile's .debug_line section.
5998
        * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5999
 
6000
        (dwarf2_build_psymtabs_hard): Record the line section's size in
6001
 
6002
        (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6003
        symbol table.
6004
6005
2002-05-10  Petr Sorfa  
6006
6007
        * ia64-tdep.c: Handle breakpoints on L instruction type
6008
        in MLX instruction bundle by moving the breakpoint to
6009
 
6010
6011
 
6012
6013
        * dbxread.c (discarding_local_symbols_complaint): New complaint.
6014
        (process_one_symbol): Complain about discarding local symbols
6015
 
6016
6017
 
6018
6019
        From Daniel Berlin 
6020
        * linespec.c (find_toplevel_char): '<' and '>' also increase and
6021
 
6022
6023
 
6024
6025
        * mips-tdep.c (mips_float_register_type): New function.
6026
        (mips_double_register_type): New function.
6027
 
6028
        (do_fp_register_row): Likewise.
6029
 
6030
2002-05-09  Daniel Jacobowitz  
6031
6032
        * signals/signals.c (signals): Remove conditional compilation around
6033
        Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
6034
 
6035
6036
 
6037
6038
        * remote-rdp.c (remote_rdp_can_run): Remove.
6039
6040
 
6041
6042
 
6043
        of TYPE_CODE_INT.
6044
 
6045
2002-05-09  Michael Snyder  
6046
 
6047
        * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6048
        strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6049
 
6050
        str r(0123),[sp,#nn].
6051
 
6052
        order-independent by placing it in a loop.
6053
6054
2002-05-06  Michael Snyder  
6055
6056
        * stabsread.c (read_type): Add recognition for new attribute:
6057
        "@V;" means that an array type is actually a vector.
6058
 
6059
6060
 
6061
6062
        * i386-tdep.h (i386_abi): New enum.
6063
        (struct gdbarch_tdep): Replace os_ident member with abi.
6064
 
6065
        * i386-tdep.c (i386_abi_names): New array.
6066
 
6067
        (process_note_sections): New function.
6068
        (i386_elf_abi_from_note, i386_elf_abi): New functions.
6069
        (struct i386_abi_handler): New struct.
6070
        (i386_abi_handler_list): New variable.
6071
        (i386_gdbarch_register_os_abi): New function.
6072
        (i386_gdbarch_init): Adapt for the changes given above.
6073
6074
2002-05-08  Daniel Jacobowitz  
6075
6076
        * gregset.h: Say "GNU/Linux".
6077
6078
 
6079
6080
 
6081
        (build_gdbtypes): Build builtin_type_v2_float.
6082
 
6083
6084
 
6085
6086
        * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6087
        (clear_gdbarch_swap): New function.
6088
 
6089
        (gdbarch_update_p): Before calling init(), swap out and clear the
6090
 
6091
        * gdbarch.c: Regenerate.
6092
6093
2002-05-08  Jason Thorpe  
6094
6095
        * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6096
        alphanbsd-tdep.c.
6097
 
6098
2002-05-08  Jason Thorpe  
6099
 
6100
        * sh-nbsd-nat.c: Rename to...
6101
        * shnbsd-nat.c: ...this.
6102
 
6103
        * shnbsd-tdep.c: ...this.
6104
 
6105
        * shnbsd-tdep.h: ...this.
6106
        * config/sh/nbsd.mh: Use shnbsd-nat.o.
6107
        * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6108
6109
2002-05-08  Richard Earnshaw  
6110
6111
        * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6112
        concatenation for command help messages.
6113
 
6114
2002-05-08  Jason Thorpe  
6115
 
6116
        * NEWS: Note new sh*-*-netbsdelf* configuration.
6117
        * configure.host: Set gdb_host_cpu to sh for all sh*.
6118
 
6119
        * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6120
 
6121
        * sh-nbsd-nat.c: New file.
6122
        * sh-nbsd-tdep.c: New file.
6123
        * sh-nbsd-tdep.h: New file.
6124
        * config/sh/nbsd.mh: New file.
6125
        * config/sh/nbsd.mt: New file.
6126
        * config/sh/nm-nbsd.h: New file.
6127
        * config/sh/tm-nbsd.h: New file.
6128
6129
2002-05-08  Jason Thorpe  
6130
6131
        * sh-tdep.c (sh_osabi_names): Declare.
6132
        (process_note_abi_tag_sections): New function.
6133
 
6134
        (sh_gdbarch_register_os_abi): Ditto.
6135
 
6136
        _initialize_sh_tdep): Use gdbarch_register to register
6137
        sh_gdbarch_init and sh_dump_tdep.
6138
        * config/sh/tm-sh.h (sh_osabi): Declare.
6139
        (gdbarch_tdep): Add sh_osabi and osabi_name members.
6140
6141
2002-05-07  Andrew Cagney  
6142
6143
        * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6144
        (thumb_scan_prologue): Ditto.
6145
 
6146
        (arm_frame_chain): Ditto.
6147
 
6148
        (arm_frame_saved_pc): Ditto.
6149
        (arm_pop_frame): Ditto.
6150
        (arm_push_return_address): New function.
6151
        (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6152
        call_dummy_location, call_dummy_breakpoint_offset_p,
6153
        call_dummy_breakpoint_offset, call_dummy_p,
6154
        call_dummy_stack_adjust_p, call_dummy_words,
6155
        sizeof_call_dummy_words, call_dummy_start_offset,
6156
        call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6157
        call_dummy_address, push_return_address and push_dummy_frame for
6158
        generic dummy frames.
6159
6160
2002-05-07  Jason Thorpe  
6161
6162
        * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6163
        size computation for alloca.
6164
 
6165
6166
 
6167
6168
        * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6169
        (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6170
 
6171
        Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6172
 
6173
        ARM_MAX_REGISTER_RAW_SIZE.
6174
        (remote_rdp_store_register): Likewise.
6175
6176
2002-05-07  Michal Ludvig  
6177
6178
        * dwarf2cfi.c: Code cleanup, removed unused variables,
6179
        added default labels to switch {} statements.
6180
 
6181
        * x86-64-linux-nat.c: Ditto.
6182
 
6183
2002-05-07  Jason Thorpe  
6184
6185
        * solib.h: Protect against multiple inclusion.
6186
6187
 
6188
6189
 
6190
        * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6191
 
6192
        (splay_tree_h, macroexp_h, macrotab_h): New variable.
6193
 
6194
        (COMMON_OBS): Add macrotab.o, macroexp.o.
6195
        (macroexp.o, macrotab.o): New rules.
6196
6197
        Separate the job of reading the line number info statement program
6198
        header (...expialidocious) out into its own function.
6199
        * dwarf2read.c (struct line_head, struct filenames, struct
6200
        directories): Replace with...
6201
 
6202
        contents of the statement program header, including the
6203
        include directory and file name tables.
6204
        (read_file_scope): If we have line number info, instead of just
6205
        calling dwarf_decode_lines to do all the work, call
6206
        dwarf_decode_line_header first to get a `struct line_header'
6207
        containing the data in the statement program header, and then
6208
        pass that to dwarf_decode_lines, which will pick up where that
6209
        left off.  Be sure to clean up the `struct line_header' object.
6210
        (dwarf_decode_line_header, free_line_header, add_include_dir,
6211
        add_file_name): New functions.
6212
        (dwarf_decode_lines): Move all the code to read the statement
6213
        program header into dwarf_decode_line_header.  Take the line
6214
        header it built as the first argument, instead of the offset to
6215
        the compilation unit's line number info.  Use the new `struct
6216
        line_header' type instead of the old structures.  No need to do
6217
        cleanups here now, since we don't allocate anything.
6218
        (dwarf2_statement_list_fits_in_line_number_section,
6219
        dwarf2_line_header_too_long): New complaints.
6220
6221
2002-05-06  Elena Zannoni  
6222
6223
        * gdbtypes.c (init_vector_type): New function.
6224
        (build_builtin_type_vec128): Simplify the representation of SIMD
6225
 
6226
        (build_gdbtypes): Initialize new builtin vector types.
6227
 
6228
        (builtin_type_v4_float, builtin_type_v4_int32,
6229
        builtin_type_v8_int16, builtin_type_v16_int8,
6230
        builtin_type_v2_int32, builtin_type_v4_int16,
6231
        builtin_type_v8_int8): New (renamed) SIMD types.
6232
6233
2002-05-06  Mark Kettenis  
6234
6235
        * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6236
        (i387_fill_fxsave): Likewise.
6237
 
6238
2002-05-05  Alexandre Oliva  
6239
 
6240
        * alpha-tdep.c (alpha_extract_return_value): Don't use
6241
        non-constant array size in prototype.
6242
 
6243
2002-05-04  Andrew Cagney  
6244
 
6245
        From Brian Taylor :
6246
        * ui-out.c (ui_out_field_core_addr): Use the function
6247
 
6248
        wide.
6249
 
6250
        * ui-out.c (ui_out_field_core_addr): Update comment.
6251
6252
2002-05-04  Andrew Cagney  
6253
6254
 
6255
        parameter `level'.
6256
 
6257
        (select_frame_command): Delete code computing the frame level.
6258
 
6259
6260
2002-05-04  Andrew Cagney  
6261
6262
        * sparc-tdep.c (sparc_get_saved_register): Comment why
6263
        get_prev_frame call is safe.
6264
 
6265
2002-05-04  Andrew Cagney  
6266
 
6267
        * frame.h (select_frame): Delete level parameter.
6268
        * stack.c (select_frame): Update.  Use frame_relative_level to
6269
 
6270
        (select_and_print_frame): Update call.
6271
 
6272
        (up_silently_base): Ditto.
6273
        (down_silently_base): Ditto.
6274
        * ocd.c (ocd_start_remote): Ditto.
6275
        * remote-rdp.c (remote_rdp_open): Ditto.
6276
        * remote-mips.c (mips_initialize): Ditto.
6277
        (common_open): Ditto.
6278
        * remote-e7000.c (e7000_start_remote): Ditto.
6279
        * m3-nat.c (select_thread): Ditto.
6280
        * hppa-tdep.c (child_get_current_exception_event): Ditto.
6281
        (child_get_current_exception_event): Ditto.
6282
        * varobj.c (varobj_create): Ditto.
6283
        (varobj_update): Ditto.
6284
        (c_value_of_root): Ditto.
6285
        * tracepoint.c (finish_tfind_command): Ditto.
6286
        * corelow.c (core_open): Ditto.
6287
        * arch-utils.c (generic_prepare_to_proceed): Ditto.
6288
        * thread.c (info_threads_command): Ditto.
6289
        (switch_to_thread): Ditto.
6290
        * infrun.c (normal_stop): Ditto.
6291
        (restore_selected_frame): Ditto.
6292
        (restore_inferior_status): Ditto.
6293
        * breakpoint.c (insert_breakpoints): Ditto.
6294
        (watchpoint_check): Ditto.
6295
        (bpstat_stop_status): Ditto.
6296
        (do_enable_breakpoint): Ditto.
6297
        * blockframe.c (flush_cached_frames): Ditto.
6298
        (reinit_frame_cache): Ditto.
6299
6300
2002-05-04  Andrew Cagney  
6301
6302
        * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6303
        maintainer.
6304
 
6305
2002-05-04  Jim Blandy  
6306
 
6307
        * gdbtypes.c (replace_type): Doc fix.
6308
6309
 
6310
6311
 
6312
        Update copyright.
6313
 
6314
2002-05-04  Andrew Cagney  
6315
 
6316
        * MAINTAINERS: Mark a29k as deleted.
6317
        * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
6318
 
6319
        * configure.tgt: Remove a29k.
6320
 
6321
        * config/a29k/vx29k.mt: Delete.
6322
        * config/a29k/tm-a29k.h: Delete.
6323
        * config/a29k/a29k-udi.mt: Delete.
6324
        * config/a29k/a29k.mt: Delete.
6325
        * a29k-tdep.c: Delete.
6326
        * remote-udi.c: Delete.
6327
        * remote-mm.c: Delete.
6328
        * remote-eb.c: Delete.
6329
        * remote-adapt.c: Delete.
6330
        * Makefile.in: Remove obsolete code.
6331
        * config/s390/s390x.mt: Ditto.
6332
        * config/s390/s390.mt: Ditto.
6333
        * config/sparc/sparclynx.mh: Ditto.
6334
        * config/sparc/linux.mh: Ditto.
6335
        * config/pa/hppaosf.mh: Ditto.
6336
        * config/pa/hppabsd.mh: Ditto.
6337
        * config/ns32k/nbsd.mt: Ditto.
6338
        * config/mips/vr5000.mt: Ditto.
6339
        * config/m68k/sun3os4.mh: Ditto.
6340
        * config/m68k/nbsd.mt: Ditto.
6341
        * config/m68k/m68klynx.mh: Ditto.
6342
        * config/m32r/m32r.mt: Ditto.
6343
        * config/i386/x86-64linux.mt: Ditto.
6344
        * config/i386/nbsdelf.mt: Ditto.
6345
        * config/i386/nbsd.mt: Ditto.
6346
        * config/i386/i386lynx.mh: Ditto.
6347
6348
2002-05-04  Andrew Cagney  
6349
6350
        * target.c (debug_print_register): New function.  Handle oversize
6351
        registers.
6352
 
6353
        (debug_to_store_registers): Call.
6354
 
6355
2002-05-03  Jim Blandy  
6356
6357
        * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6358
        (read_type): Doc fix.
6359
 
6360
6361
 
6362
        (read_struct_type): If the type we were passed isn't empty, or
6363
        incomplete, don't read the new struct type into it; complain,
6364
        and return the original type unchanged.  Take a new `type_code'
6365
 
6366
        (read_type): Rather than storing the type's type code here, pass
6367
        it as an argument to read_struct_type, and let that take care of
6368
        storing it.  That way, we don't overwrite the original type code,
6369
        so read_struct_type can use it to decide whether we're overwriting
6370
        something we shouldn't.
6371
        (complain_about_struct_wipeout): New function.
6372
6373
2002-05-03  Andrew Cagney  
6374
6375
        * gdbarch.sh: Assert that gdbarch is non-NULL.
6376
        * gdbarch.c: Regenerate.
6377
 
6378
2002-05-03  Jason Merrill  
6379
 
6380
        * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6381
        and return NULL.
6382
 
6383
2002-05-03  Michal Ludvig  
6384
 
6385
        * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6386
        (x86_64_dwarf2gdb_regno_map_length),
6387
 
6388
        (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6389
 
6390
        (_initialize_x86_64_tdep): Synced with the change above.
6391
        (x86_64_skip_prologue): Reformulated message.
6392
6393
2002-05-03  Pierre Muller  
6394
6395
        * f-exp.y: Also use new prev_lexptr variable
6396
        to improve error reporting. Based on Michael Snyder
6397
 
6398
        * jv-exp.y: Likewise.
6399
 
6400
6401
2002-05-02  Elena Zannoni  
6402
6403
        * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6404
        we are dealing with vectors.
6405
 
6406
2002-05-02  Pierre Muller  
6407
 
6408
        * config/m68k/tm-nbsd.h: Obvious fix,
6409
        correct machine name.
6410
 
6411
2002-05-02  Pierre Muller  
6412
 
6413
        * p-typeprint.c (pascal_type_print_base): Add support
6414
        for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6415
 
6416
2002-05-02  Pierre Muller  
6417
 
6418
        * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6419
        for fondamental pascal 'char' type.
6420
 
6421
2002-05-02  Pierre Muller  
6422
 
6423
        * p-lang.h (is_pascal_string_type): Declaration changed,
6424
        new sixth argument of type char ** added.
6425
 
6426
        changed. Args length_pos, length_size, string_pos, char_size
6427
 
6428
        name of the char array. Return value set to char array
6429
        field index plus one.
6430
        * p-valprint.c (pascal_val_print): Adapt to new declaration of
6431
        is_pascal_string_type function.
6432
6433
2002-05-02  Andrew Cagney  
6434
6435
        * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6436
         change.
6437
 
6438
6439
 
6440
6441
        * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6442
        before probing for a new one.  Detect errorenous gdbarch_init
6443
 
6444
        * gdbarch.c: Regenerate.
6445
 
6446
2002-05-01  Andrew Cagney  
6447
6448
        * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6449
        * config/mcore/tm-mcore.h: Ditto.  Update copyright.
6450
 
6451
6452
 
6453
6454
        * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6455
        current_gdbarch.
6456
 
6457
2002-04-30  Michael Snyder  
6458
 
6459
        * arm-tdep.c: Whitespace clean-ups.
6460
        (arm_skip_prologue): Fix thinko; two lines
6461
 
6462
6463
 
6464
6465
        * rs6000-tdep.c: Added comment describing how fpscr register
6466
        numbers were chosen.
6467
 
6468
2002-04-30  Michael Snyder  
6469
 
6470
        * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6471
6472
 
6473
6474
 
6475
        (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6476
 
6477
6478
 
6479
6480
        From Louis Hamilton :
6481
        * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6482
 
6483
        * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6484
 
6485
        * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6486
6487
2002-04-29  Andrew Cagney  
6488
6489
        GDB 5.2 released from 5.2 branch.
6490
6491
 
6492
6493
 
6494
        * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6495
 
6496
6497
 
6498
6499
        * rs6000-tdep.c (rs6000_extract_return_value,
6500
        rs6000_store_return_value): Handle returning vectors.
6501
 
6502
        ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6503
 
6504
        New function.
6505
        (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6506
        vectors.
6507
        (ppc_sysv_abi_push_arguments): Handle vector parameters.
6508
        * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6509
6510
2002-04-24  Pierre Muller  
6511
6512
        * hpread.c (hpread_psymtab_to_symtab_1,
6513
        hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6514
 
6515
6516
 
6517
6518
        * remote-array.c (printf_monitor, write_monitor,
6519
        array_insert_breakpoint, array_remove_breakpoint ):
6520
 
6521
        with fprintf_unfiltered (gdb_stderr,....
6522
 
6523
        * remote-os9k.c: Likewise.
6524
        * remote-st.c: Likewise.
6525
6526
2002-04-28  Andreas Schwab  
6527
6528
        * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6529
        linux-proc.o and gcore.o.
6530
 
6531
2002-04-26  Michal Ludvig  
6532
 
6533
        * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6534
        code without frame pointers.
6535
 
6536
2002-04-26  Andrew Cagney  
6537
 
6538
        * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6539
        ON_STACK is needed.
6540
 
6541
2002-04-26  Ben Elliston  
6542
 
6543
        * target.c (do_xfer_memory): Correct reference to the new option
6544
        "trust-readonly-sections".
6545
 
6546
2002-04-26  Elena Zannoni  
6547
 
6548
        * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6549
        * gdbtypes.c (recursive_dump_type): Output the vector flag.
6550
 
6551
        vectors.
6552
 
6553
        vector (i.e. are passed in by value).
6554
6555
2002-04-26  Jason Thorpe  
6556
6557
        * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6558
        * alpha-tdep.c (alpha_sigcontext_addr): New function.
6559
 
6560
        (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6561
 
6562
        (alpha_linux_sigcontext_addr): New function.
6563
        (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6564
        alpha_linux_sigcontext_addr.
6565
        * alpha-osf1-tdep.c: Include gdbcore.h.
6566
        (alpha_osf1_sigcontext_addr): New function.
6567
        (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6568
        alpha_osf1_sigcontext_addr.
6569
        * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6570
        * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6571
6572
2002-04-26  Andrew Cagney  
6573
6574
        * stack.c (selected_frame_level):
6575
        (select_frame): Do not set selected_frame_level.
6576
 
6577
6578
 
6579
6580
        * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6581
        convert_from_func_ptr-addr when AIX / PowerOpen.
6582
 
6583
2002-04-25  Andrew Cagney  
6584
 
6585
        * valops.c (hand_function_call): Call
6586
        generic_save_call_dummy_addr.
6587
 
6588
        * blockframe.c (struct dummy_frame): Add fields call_lo and
6589
 
6590
        (generic_find_dummy_frame): Check for PC in range call_lo to
6591
        call_hi instead of entry_point_address.
6592
        (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6593
        the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
6594
        (generic_save_call_dummy_addr): New function.
6595
6596
2002-04-24  David S. Miller  
6597
6598
        * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6599
        sparc_skip_prologue.
6600
 
6601
        information to find prologue when possible.
6602
 
6603
        (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6604
        * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6605
        second argument.
6606
        (SKIP_PROLOGUE): Likewise.
6607
6608
2002-04-25  Jason Thorpe  
6609
6610
        * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6611
        GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6612
 
6613
        * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6614
 
6615
        * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6616
6617
2002-04-25  Jason Thorpe  
6618
6619
        * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6620
        * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6621
 
6622
        * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6623
 
6624
        * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6625
        * alpha-nat.c (get_longjmp_target): Remove.
6626
        (JB_ELEMENT_SIZE): Ditto.
6627
        (JB_PC): Ditto.
6628
        * alpha-tdep.c (alpha_get_longjmp_target): New function.
6629
        (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
6630
        OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6631
        to alpha_get_longjmp_target.
6632
        (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6633
        * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6634
        * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6635
6636
2002-04-25  Andrew Cagney  
6637
6638
        * README: Update to GDB 5.2.
6639
6640
 
6641
6642
 
6643
6644
 
6645
6646
 
6647
6648
 
6649
6650
 
6651
        * NEWS: Note new target avr.
6652
 
6653
2002-04-25  Theodore A. Roth  
6654
 
6655
        * Makefile.in: Add support for AVR target.
6656
        * configure.tgt: Add support for AVR target.
6657
 
6658
        * config/avr/avr.mt: New file.
6659
 
6660
2002-04-25  Theodore A. Roth  
6661
6662
        * MAINTAINERS: Add myself to write-after-approval.
6663
6664
 
6665
6666
 
6667
        with fprintf_unfiltered (gdb_stderr,....
6668
 
6669
2002-04-25  Pierre Muller  
6670
 
6671
        Fix PR gdb/508.
6672
        * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6673
 
6674
2002-04-25  Pierre Muller  
6675
 
6676
        * p-exp.y: Also use new prev_lexptr variable
6677
        to improve error reporting. Based on Michael Snyder
6678
 
6679
6680
 
6681
6682
        * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6683
        (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6684
 
6685
        to 0.
6686
 
6687
        and struct value.
6688
        (FUNCTION_START_OFFSET): Remove.
6689
        (BREAKPOINT): Ditto.
6690
6691
2002-04-25  Jason Thorpe  
6692
6693
        * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6694
        * NEWS: Ditto.
6695
 
6696
2002-04-24  Jason Thorpe  
6697
 
6698
        * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6699
        (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6700
 
6701
        * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6702
 
6703
        alpha_osf1_pc_in_sigtramp.
6704
        * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6705
        * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6706
        (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6707
        alphafbsd_pc_in_sigtramp.
6708
        * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6709
        (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6710
        alphanbsd_pc_in_sigtramp.
6711
        * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6712
        * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6713
6714
2002-04-24  Jason Thorpe  
6715
6716
        * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6717
6718
 
6719
6720
 
6721
        alphanbsd-tdep.c.
6722
 
6723
        (alphanbsd-tdep.o): Ditto.
6724
 
6725
        * alphanbsd-nat.c: New file.
6726
        * alphanbsd-tdep.c: Ditto.
6727
        * configure.host (alpha*-*-netbsd*): New host.
6728
        * configure.tgt (alpha*-*-netbsd*): New target.
6729
        * config/alpha/nbsd.mh: New file.
6730
        * config/alpha/nbsd.mt: Ditto.
6731
        * config/alpha/nm-nbsd.h: Ditto.
6732
        * config/alpha/tm-nbsd.h: Ditto.
6733
6734
2002-04-24  Jason Thorpe  
6735
6736
        * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6737
        (alpha-osf1-tdep.o): New dependency list.
6738
 
6739
        and skip_sigtramp_frame members.
6740
 
6741
        (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6742
        (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6743
        * alpha-osf1-tdep.c: New file.
6744
        * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6745
        alpha-osf1-dep.c.
6746
        (alpha_frame_past_sigtramp_frame): New function.
6747
        (alpha_dynamic_sigtramp_offset): Ditto.
6748
        (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6749
        (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6750
        (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6751
        (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6752
        (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6753
        (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6754
        (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6755
        (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6756
        (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6757
        (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6758
        and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6759
        to find_solib_trampoline_target.
6760
        * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6761
        * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6762
        (SKIP_TRAMPOLINE_CODE): Remove.
6763
        (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6764
        (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6765
        (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6766
        (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6767
        * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6768
        (PROC_SIGTRAMP_MAGIC): Ditto.
6769
        (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6770
        (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6771
        (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6772
        (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6773
        (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6774
6775
2002-04-24  Jason Thorpe  
6776
6777
        * NEWS: Note that Alpha targets are now multi-arch.
6778
6779
 
6780
6781
 
6782
        * parse.c (parse_exp_1): Set prev_lexptr to null before
6783
 
6784
        * c-exp.y (yylex): Set prev_lexptr to start of current token.
6785
 
6786
6787
2002-04-24  Daniel Jacobowitz  
6788
6789
        * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6790
        * gregset.h: If FILL_FPXREGSET is defined, provide
6791
 
6792
        * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6793
 
6794
6795
2002-04-24  Roland McGrath  
6796
6797
        * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6798
        * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6799
 
6800
6801
 
6802
        (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6803
        (gnu_xfer_memory): Add a cast.
6804
6805
 
6806
6807
        * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6808
        loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6809
 
6810
        (arm_skip_prologue): Better handling for frameless functions.
6811
 
6812
        (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6813
6814
Wed Apr 24 14:22:21 2002  Andrew Cagney  
6815
6816
        * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6817
        NUM_PSEUDO_REGS can be used.
6818
 
6819
2002-04-24  Andrew Cagney  
6820
 
6821
        * arch-utils.h: Update copyright.
6822
6823
 
6824
        * gdbarch.h, gdbarch.c: Re-generate.
6825
 
6826
        * inferior.h (IN_SIGTRAMP): Delete definition.
6827
 
6828
        * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6829
6830
 
6831
        (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6832
        * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6833
        (find_proc_framesize): Ditto.
6834
 
6835
        (alpha_init_extra_frame_info): Ditto.
6836
        * infrun.c (handle_inferior_event): Ditto.
6837
        (handle_inferior_event): Ditto.
6838
        (check_sigtramp2): Ditto.
6839
        * blockframe.c (create_new_frame): Ditto.
6840
        (get_prev_frame): Ditto.
6841
        * ppc-linux-tdep.c: Update comments.
6842
        * i386-linux-tdep.c: Update comments.
6843
        * breakpoint.c (bpstat_what): Update comment.
6844
6845
2002-04-24  David S. Miller  
6846
6847
        * i960-tdep.c (register_in_window_p): New function.
6848
        (i960_find_saved_register): Use it instead of
6849
 
6850
        * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6851
 
6852
        * symtab.h (find_stab_function_addr): Kill extern.
6853
        * minsyms.c (find_stab_function_addr): Remove from here...
6854
        * dbxread.c: ... to here, and mark it static.
6855
6856
 
6857
6858
        * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6859
        SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6860
 
6861
2002-04-21  David S. Miller  
6862
 
6863
        * remote-vxsparc.c (vx_read_register): Fix typo, we want
6864
        REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6865
 
6866
6867
 
6868
6869
        * source.c (is_regular_file): New function.
6870
        (openp): Check wether file to open is a regular file
6871
 
6872
6873
 
6874
6875
        * findvar.c (extract_signed_integer): Cast printf argument
6876
        to suppress format warning.
6877
 
6878
        * infcmd.c (registers_info): Likewise.
6879
 
6880
        * valops.c (value_assign): Likewise.
6881
        * valprint.c (print_decimal): Likewise.
6882
6883
2002-04-22  H.J. Lu  (hjl@gnu.org)
6884
6885
        * c-exp.y (typebase): Support
6886
6887
 
6888
6889
 
6890
6891
 
6892
6893
 
6894
6895
 
6896
        and vax-tdep.h.
6897
 
6898
        * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6899
 
6900
        (vax_get_saved_register): New function.
6901
        (vax_gdbarch_init): New function.
6902
        (_initialize_vax_tdep): Register vax_gdbarch_init.
6903
        * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6904
        Remove macros now under the control of gdbarch.
6905
6906
2002-04-22  Michael Snyder  
6907
6908
        * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6909
        Some whitespace and coding standards tweaks.
6910
 
6911
2002-04-22  Jason Thorpe  
6912
 
6913
        * vax-tdep.c: Include regcache.h.
6914
        (vax_call_dummy_words): New.
6915
 
6916
        (vax_fix_call_dummy): New function.
6917
 
6918
        * config/vax/tm-vax.h: Don't include regcache.h.
6919
        (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6920
        (CALL_DUMMY): Remove.
6921
        (CALL_DUMMY_WORDS): Define.
6922
        (SIZEOF_CALL_DUMMY_WORDS): Define.
6923
        (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6924
6925
2002-04-18  Michael Snyder  
6926
6927
        * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6928
6929
 
6930
6931
 
6932
        (vax_push_dummy_frame): Ditto.
6933
 
6934
        * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6935
 
6936
        generic_frameless_function_invocation_not.
6937
        (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6938
        (POP_FRAME): Use vax_pop_frame.
6939
6940
2002-04-22  Jason Thorpe  
6941
6942
        * vax-tdep.c (vax_store_struct_return): New function.
6943
        (vax_extract_return_value): Ditto.
6944
 
6945
        (vax_extract_struct_value_address): Ditto.
6946
 
6947
        vax_store_struct_return.
6948
        (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6949
        (STORE_RETURN_VALUE): Use vax_store_return_value.
6950
        (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6951
6952
2002-04-22  Jason Thorpe  
6953
6954
        * vax-tdep.c (vax_frame_saved_pc): New function.
6955
        (vax_frame_args_address_correct): Ditto.
6956
 
6957
        (vax_frame_locals_address): Ditto.
6958
 
6959
        other frame-related functions.
6960
        * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6961
        (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6962
        (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6963
        (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6964
        (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6965
6966
2002-04-22  H.J. Lu  (hjl@gnu.org)
6967
6968
        * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6969
        includedir.
6970
 
6971
2002-04-22  Jason Thorpe  
6972
 
6973
        * vax-tdep.c (vax_frame_init_saved_regs): New function.
6974
        * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6975
 
6976
6977
 
6978
6979
        * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6980
6981
 
6982
6983
 
6984
        where needed.
6985
 
6986
        (supply_gregset): Likewise.
6987
 
6988
2002-04-22  J. Brobecker  
6989
6990
        * symfile.h (get_section_index): Define.
6991
        * symfile.c (get_section_index): New function.
6992
 
6993
        (SC_IS_BSS): Return true for the scBss storage class only, as
6994
 
6995
        (parse_partial_symbols): Discard the symbols which associated
6996
        section does not exist.
6997
        Make sure to use the .sbss section index for symbols which
6998
        storage class is scBss, rather than using the .bss section index.
6999
7000
2002-04-22  Jason Thorpe  
7001
7002
        * vax-tdep.c: Update copyright years.
7003
        (vax_register_name): New function.
7004
 
7005
        (vax_register_raw_size): Ditto.
7006
 
7007
        (vax_register_virtual_type): Ditto.
7008
        * config/vax/tm-vax.h: Update copyright years.
7009
        (REGISTER_NAMES): Remove.
7010
        (REGISTER_NAME): Define.
7011
        (REGISTER_BYTE): Use vax_register_byte.
7012
        (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7013
        (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7014
        (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7015
7016
2002-04-21  Andrew Cagney  
7017
7018
        * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7019
        declaration
7020
 
7021
7022
 
7023
7024
        * arch-utils.c (generic_prologue_frameless_p): Kill
7025
        SKIP_PROLOGUE_FRAMELESS_P code.
7026
 
7027
        references.
7028
 
7029
        * arc-tdep.c (arc_prologue_frameless_p): Implement.
7030
        * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7031
        references.
7032
        (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7033
        * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7034
        (sparc_gdbarch_init): Pass it to
7035
        set_gdbarch_prologue_frameless_p.
7036
7037
2002-04-21  Jason Thorpe  
7038
7039
        * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7040
        (alphabsd-nat.o): New dependency list.
7041
 
7042
2002-04-21  Jason Thorpe  
7043
 
7044
        * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7045
        alphafbsd-tdep.c.
7046
 
7047
        (alphafbsd-tdep.o): Likewise.
7048
 
7049
2002-04-21  Jason Thorpe  
7050
7051
        * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
7052
        to here...
7053
 
7054
        * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7055
 
7056
2002-04-21  Jason Thorpe  
7057
7058
        * config/alpha/tm-alpha.h: Move alpha_software_single_step
7059
        prototype from here...
7060
 
7061
7062
 
7063
7064
        * frame.h (selected_frame_level): Document as deprecated.
7065
        (frame_relative_level): Declare.
7066
 
7067
        (selected_frame_level): Document as deprecated.
7068
 
7069
7070
        * stack.c (frame_info, record_selected_frame): Update.
7071
        (frame_command, current_frame_command): Update.
7072
        (up_silently_base, up_command, down_silently_base): Update.
7073
        (down_command): Update.
7074
 
7075
        * tracepoint.c (finish_tfind_command): Update.
7076
        * corelow.c (core_open): Update.
7077
        * thread.c (info_threads_command): Update.
7078
        (do_captured_thread_select): Update.
7079
        * infcmd.c (finish_command): Update.
7080
        * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7081
7082
2002-04-21  Jason Thorpe  
7083
7084
        * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7085
7086
 
7087
7088
 
7089
        type const.
7090
 
7091
2002-04-21  Jason Thorpe  
7092
 
7093
        * alphafbsd-tdep.c: Update copyright years.  Include
7094
        alpha-tdep.h.
7095
 
7096
        (alphafbsd_init_abi): New function.
7097
 
7098
        * config/alpha/tm-fbsd.h: Update copyright years.
7099
        (USE_STRUCT_CONVENTION): Remove.
7100
7101
2002-04-21  Jason Thorpe  
7102
7103
        * alpha-tdep.c (alpha_abi_handler): New structure to describe
7104
        an Alpha ABI variant.
7105
 
7106
        (alpha_gdbarch_register_os_abi): New function.
7107
 
7108
        chance to tweak the gdbarch once we have set up defaults.
7109
        * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7110
7111
2002-04-21  Jason Thorpe  
7112
7113
        * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7114
        to standard_coerce_float_to_double.
7115
 
7116
7117
 
7118
7119
        * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7120
        * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7121
 
7122
        (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7123
 
7124
        (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7125
        * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7126
7127
2002-04-21  Jason Thorpe  
7128
7129
        * alpha-tdep.h: New file.  Includes several Alpha target constants
7130
        taken from...
7131
 
7132
        let gdbarch deal with.
7133
 
7134
        * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7135
        to dependency list.
7136
        * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
7137
        Alpha target register names.
7138
        * alphabsd-nat.c: Likewise.
7139
        * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
7140
        Alpha target register names.  Make serveral routines static.
7141
        (alpha_get_saved_register): New function.
7142
        (alpha_abi_names): New.
7143
        (process_note_abi_tag_sections): New function.
7144
        (get_elfosabi): New function.
7145
        (alpha_gdbarch_init): New function.
7146
        (alpha_dump_tdep): New function.
7147
        (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7148
7149
2002-04-21  Andrew Cagney  
7150
7151
        * frame.c (find_saved_register): Delete #ifdef
7152
        HAVE_REGISTER_WINDOWS code.
7153
 
7154
        * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7155
 
7156
2002-04-21  Andrew Cagney  
7157
7158
        * i960-tdep.c (i960_find_saved_register): New function.
7159
        (i960_get_saved_register): New function.
7160
 
7161
        (i960_get_saved_register): Declare.
7162
 
7163
7164
2002-04-20  David S. Miller  
7165
7166
        * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7167
7168
 
7169
7170
 
7171
        instead of NUM_PSEUDO_REGS.
7172
 
7173
2002-04-20  David S. Miller  
7174
 
7175
        * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7176
        GDB_MULTI_ARCH_PARTIAL
7177
 
7178
        define, let tm-sp64.h do it.
7179
 
7180
2002-04-20  Jason Thorpe  
7181
7182
        * frame.c (find_saved_register): Avoid a NULL pointer
7183
        dereference and actually walk the frame list.
7184
 
7185
2002-04-20  Andrew Cagney  
7186
 
7187
        * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7188
        sorted in most most-recent-used order.  Document.
7189
 
7190
7191
 
7192
7193
        * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7194
        instead of ->prev.
7195
 
7196
        * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7197
 
7198
        instead of ->prev.
7199
7200
2002-04-19  Elena Zannoni  
7201
7202
        Fix PR gdb/471.
7203
        * gdbtypes.c (init_simd_type): Rewrite using new functions.
7204
 
7205
        (append_composite_type_field): Fix calculation of type length in
7206
 
7207
7208
2002-04-19  Eli Zaretskii  
7209
7210
        * config/djgpp/README: Update.
7211
7212
 
7213
        compiler warnings.
7214
 
7215
2002-04-19  Jason Thorpe  
7216
 
7217
        * alpha-tdep.c (setup_arbitrary_frame): Rename...
7218
        (alpha_setup_arbitrary_frame): ...to this.
7219
 
7220
        for alpha_setup_arbitrary_frame.
7221
 
7222
2002-04-18  Andrew Cagney  
7223
7224
        * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7225
        * gdbarch.h, gdbarch.c: Regenerate.
7226
 
7227
        * defs.h (breakpoint_from_pc_fn): Delete type definition.
7228
 
7229
        * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7230
7231
 
7232
        * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7233
        * mem-break.c (memory_breakpoint_from_pc): Ditto.
7234
        * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7235
 
7236
        * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7237
        * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7238
        * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7239
        * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7240
        * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7241
        * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7242
        * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7243
7244
        * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7245
        const pointer.
7246
        * monitor.c (monitor_insert_breakpoint): Ditto.
7247
        * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7248
 
7249
        * config/mcore/tm-mcore.h: Update copyright.
7250
        * mem-break.c: Ditto.
7251
        * xstormy16-tdep.c: Ditto.
7252
7253
 
7254
7255
        * p-exp.y: Add precedence rule for '^' token.
7256
        This removes the shift/reduce conflicts.
7257
 
7258
7259
 
7260
7261
        * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7262
        (registers_powerpc_nofp): New register set for processors
7263
 
7264
7265
 
7266
7267
        * MAINTAINERS: Add myself to write-after-approval.
7268
7269
 
7270
7271
 
7272
7273
 
7274
7275
 
7276
        frame_register_read to read the alloca_reg.
7277
 
7278
2002-04-17  Andrew Cagney  
7279
 
7280
        * frame.c (find_saved_register): Find saved registers in the next
7281
        not prev frame.
7282
 
7283
7284
 
7285
7286
        * gdbarch.sh (LANG): Set to ``c''.
7287
7288
 
7289
7290
 
7291
7292
 
7293
7294
 
7295
        Update copyright.
7296
 
7297
        * hpread.c (hpread_get_lntt): Add declaration.
7298
 
7299
7300
2002-04-14  Andrew Cagney  
7301
 
7302
        * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7303
        * aclocal.m4, configure: Re-generate.
7304
 
7305
7306
 
7307
7308
        * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7309
        instead of tm_print_insn.
7310
 
7311
2002-04-14  Elena Zannoni  
7312
 
7313
        * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7314
7315
 
7316
7317
 
7318
        * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7319
 
7320
7321
 
7322
7323
        * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7324
        max_user_call_depth.
7325
 
7326
        * cli/cli-script.c (execute_user_command): Limit the call depth of
7327
 
7328
        are infinitly recursive.
7329
7330
2002-04-12  Kevin Buettner  
7331
7332
        * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7333
        * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7334
 
7335
        (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7336
 
7337
        * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7338
7339
2002-04-12  Michael Snyder  
7340
7341
        * Remote.c: Spelling fix.
7342
        * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7343
 
7344
        (make_output_phdrs): Use bfd_section_name.
7345
 
7346
        * eval.c: Indentation fix-ups.
7347
        * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7348
        in case it gets applied to an address that is already
7349
        in the instruction space.
7350
        * cli/cli-decode.c (help_list): Allow long lines to wrap.
7351
        * symfile.c: Fix indentation, long lines.
7352
        * source.c: White space fix-up.
7353
7354
2002-04-12  Andrew Cagney  
7355
7356
        * defs.h (read_relative_register_raw_bytes): Delete declaration.
7357
        * frame.c (frame_register_read): New function.  Return non-zero on
7358
 
7359
        (read_relative_register_raw_bytes_for_frame): Delete.
7360
 
7361
        * frame.h (frame_register_read): Declare.
7362
        * d30v-tdep.c: Update Copyright.  Use frame_register_read.
7363
        * sh-tdep.c: Ditto.
7364
        * infcmd.c (do_registers_info): Ditto.
7365
        * hppa-tdep.c: Ditto.
7366
        * rs6000-tdep.c: Ditto.
7367
        * h8500-tdep.c: Ditto.
7368
        * mips-tdep.c: Ditto.
7369
        * h8300-tdep.c: Ditto.
7370
        * z8k-tdep.c: Ditto.
7371
7372
2002-04-12  Kevin Buettner  
7373
7374
        From Jimi X :
7375
        * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7376
 
7377
7378
 
7379
7380
        From Jimi X :
7381
        * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7382
 
7383
7384
 
7385
7386
        From Jimi X :
7387
        * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7388
 
7389
7390
 
7391
7392
        * regformats/reg-ppc.dat: Support FPSCR.
7393
7394
 
7395
7396
 
7397
        * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7398
 
7399
        * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7400
 
7401
        (fill_fpregset): Add support for register fpscr.
7402
        (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7403
        (fill_gregset): Account for the fact that register ``mq'' might
7404
        not exist.
7405
        * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7406
        (registers_power): Add fpscr to register set at slot 71.
7407
        (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7408
        exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
7409
7410
2002-04-11  Michael Snyder  
7411
7412
        * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7413
        * configure: Regenerate.
7414
 
7415
        * acconfig.h: Add define for _SYSCALL32.
7416
 
7417
        * solib-legacy.c: Remove #define _SYSCALL32.
7418
7419
2002-04-10  Andrew Cagney  
7420
7421
        * stack.c (select_frame): Cleanup internal error message, do not
7422
        use %p.
7423
 
7424
2002-04-10  Andrew Cagney  
7425
 
7426
        * stack.c (select_frame): Check that selected_frame and the
7427
        specified level are as expected.
7428
 
7429
        Update copyright.
7430
 
7431
        copyright.
7432
        Work-in-progress PR gdb/464.
7433
7434
2002-04-10  Andrew Cagney  
7435
7436
        * maint.c (maint_print_section_info): Rename print_section_info.
7437
        (print_bfd_section_info, print_objfile_section_info): Update.
7438
 
7439
        * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7440
 
7441
7442
2002-04-10  Michal Ludvig  
7443
7444
        * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7445
        (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7446
 
7447
        * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7448
 
7449
7450
2002-04-04  Jim Ingham  
7451
7452
       * valarith.c (find_size_for_pointer_math): New function, either returns
7453
       the size for a pointer's target, returns 1 for void *, or errors for
7454
 
7455
       (value_add, value_sub): use find_size_for_pointer_math.
7456
 
7457
2002-04-09  Daniel Jacobowitz  
7458
7459
        * linux-low.c (linux_look_up_symbols): New hook.
7460
        (linux_target_ops): Add linux_look_up_symbols.
7461
 
7462
        (look_up_one_symbol): New function.
7463
 
7464
        * server.h (look_up_one_symbol): Add prototype.
7465
        * target.h (struct target_ops): Add look_up_symbols hook.
7466
7467
2002-04-09  Andrew Cagney  
7468
7469
        * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7470
        override FP_REGNUM with frame->fp.  Update copyright.
7471
 
7472
        (target_map_name_to_register): Do not search std_regs.  Update
7473
 
7474
        * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7475
        declarations.  Update copyright.
7476
        Fix PR gdb/251.
7477
7478
2002-04-09  Daniel Jacobowitz  
7479
7480
        * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7481
        after the last symbol in a block.
7482
 
7483
2002-04-09  Pierre Muller  
7484
 
7485
        * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7486
        is non zero as a found symbol.
7487
 
7488
2002-04-08  Andrew Cagney  
7489
 
7490
        * findvar.c: Include "builtin-regs.h".
7491
        (value_of_register): Call value_of_builtin_reg when applicable.
7492
 
7493
        (target_map_name_to_register): Call
7494
 
7495
        * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7496
        (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7497
        (builtin_regs_h): Define.
7498
        (builtin-regs.o): New target.
7499
        (findvar.o): Add $(builtin_regs_h).
7500
        * builtin-regs.c, builtin-regs.h: New files.
7501
        * std-regs.c: New file.
7502
        Partial fix for PR gdb/251.
7503
7504
2002-04-08  Kevin Buettner  
7505
7506
        * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7507
        it's no longer required.
7508
 
7509
2002-04-08  Andrew Cagney  
7510
 
7511
        * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7512
7513
 
7514
7515
 
7516
        * rs6000-tdep.c (rs6000_software_single_step): Use
7517
 
7518
        and size.  Use target_insert_breakpoint() and
7519
 
7520
        instead of explicit memory reads and writes.
7521
7522
2002-04-08  Kevin Buettner  
7523
7524
        * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7525
        * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7526
 
7527
7528
 
7529
7530
        From Jimi X :
7531
        * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7532
 
7533
2002-04-08  Kevin Buettner  
7534
 
7535
        From Jimi X :
7536
        * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7537
 
7538
7539
 
7540
7541
        * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7542
        s/asprintf/xasprintf/.
7543
 
7544
7545
 
7546
7547
        I believe Jeff Law denies responsability for this one:
7548
        * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7549
 
7550
        * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7551
 
7552
7553
2002-04-07  Elena Zannoni  
7554
7555
        * remote-e7000.c (write_small, e7000_read_inferior_memory,
7556
        e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7557
 
7558
7559
 
7560
7561
        * sh-tdep.c (sh_fp_frame_init_saved_regs,
7562
        sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7563
 
7564
7565
 
7566
7567
        * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7568
        maintainer.
7569
 
7570
2002-04-07  Andrew Cagney  
7571
 
7572
        * README (Reporting Bugs in GDB): Document the bug web page as the
7573
        prefered way of submitting bugs.
7574
 
7575
7576
 
7577
7578
        * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7579
        -1.  Update comment.
7580
 
7581
7582
 
7583
7584
        * m68klinux-nat.c (fill_fpregset): Properly pass address of
7585
        buffer to regcache_collect.
7586
 
7587
2002-04-06  Andrew Cagney  
7588
 
7589
        * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
7590
        * gdbarch.c, gdbarch.h: Re-generate.
7591
 
7592
2002-04-06  Andrew Cagney  
7593
 
7594
        * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7595
        declaration.  Fix -Werror.
7596
 
7597
2002-04-05  Daniel Jacobowitz  
7598
 
7599
        * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7600
        * gdbarch.c: Regenerate.
7601
 
7602
2002-04-05  Michael Snyder  
7603
 
7604
        * breakpoint.c (clear_command): Rewrite middle section to
7605
        combine two loops with identical control conditions.
7606
 
7607
        * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7608
 
7609
2002-04-05  H.J. Lu  (hjl@gnu.org)
7610
7611
        * solib-svr4.c (bkpt_names): Add "__start".
7612
7613
 
7614
7615
 
7616
        as test for 64 bit target.
7617
 
7618
2002-04-05  Andrew Cagney  
7619
 
7620
        * h8500-tdep.c (h8500_write_fp): Delete function.
7621
        * dwarf2cfi.c (cfi_write_fp): Document as not used.
7622
 
7623
        * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7624
 
7625
        * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7626
        * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7627
        (s390_write_fp):
7628
        * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7629
        * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7630
        * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7631
        (d10v_write_fp): Delete function.
7632
        * inferior.h (write_fp, generic_target_write_fp): Delete
7633
        declarations.
7634
        * regcache.c (generic_target_write_fp): Delete function.
7635
        (write_fp): Delete function.
7636
        * gdbarch.sh (TARGET_WRITE_FP): Delete.
7637
        * gdbarch.h, gdbarch.c: Regenerate.
7638
        * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7639
        * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7640
        (sparc64_write_fp): Delete declaration.
7641
        * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7642
        (h8500_write_fp): Delete declaration.
7643
7644
2002-04-04  Andrew Cagney  
7645
7646
        * sparc-tdep.c (sparc64_write_fp): Delete.
7647
        (sparc_push_dummy_frame): Replace write_fp call with code to store
7648
 
7649
        (sparc_gdbarch_init): Do not initialize write_fp.
7650
 
7651
2002-04-05  Kevin Buettner  
7652
7653
        * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7654
        clause.
7655
 
7656
2002-03-29  Jim Blandy  
7657
 
7658
        * stack.c (get_selected_block): Add new argument `addr_in_block',
7659
        used to return the exact code address we used to select the block,
7660
 
7661
        * blockframe.c (get_frame_block, get_current_block): Same.
7662
 
7663
        get_selected_block): Update declarations.
7664
        * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7665
        linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7666
7667
2002-04-05  Michael Snyder  
7668
7669
        * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7670
        warning message.
7671
 
7672
2002-04-05  J. Brobecker  
7673
 
7674
        * utils.c (xfullpath): New function.
7675
        * defs.h (xfullpath): Add declaration.
7676
 
7677
        avoid resolving the basename part of filenames when the
7678
 
7679
        inconsistency between the filenames known to GDB and the
7680
        filenames it prints in the annotations.
7681
        * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7682
        to be able to match a filename with either the real filename, or
7683
        the name of any symbolic link to this file.
7684
        (lookup_partial_symtab): Ditto.
7685
7686
2002-04-04  Michael Snyder  
7687
7688
        * breakpoint.c: Add support for hardware breakpoints in overlays.
7689
        (overlay_events_enabled): New state variable.
7690
 
7691
        whether to attempt to set a breakpoint at the overlay load addr.
7692
 
7693
        (remove_breakpoint): Use overlay_events_enabled to decide
7694
        whether breakpoints need to be removed from overlay load addr.
7695
        Handle bp_hardware_breakpoint as well as bp_breakpoint.
7696
        (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7697
        (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7698
        disable_overlay_breakpoints): Update overlay_events_enabled.
7699
7700
2002-04-04  Daniel Jacobowitz  
7701
7702
        * dwarf2read.c (struct function_range): New.
7703
        (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7704
 
7705
        (read_file_scope): Initialize global function lists.
7706
 
7707
        (read_func_scope): Add to global function list.
7708
        (dwarf_decode_lines): Call check_cu_functions everywhere
7709
        record_line is called.  Call record_line with a linenumber
7710
        of 0 to mark sequence ends.
7711
7712
2002-04-04  Michal Ludvig  
7713
7714
        * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7715
        change sync with glibc.
7716
 
7717
2002-04-03  Jim Blandy  
7718
 
7719
        * configure.in: Call AC_C_INLINE.
7720
        * configure: Regenerated.
7721
 
7722
2002-04-01  Daniel Jacobowitz  
7723
 
7724
        * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7725
        and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7726
 
7727
2002-03-31  Mark Kettenis  
7728
 
7729
        * NEWS: Mention gcore support on FreeBSD/i386.
7730
7731
 
7732
        * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7733
 
7734
7735
 
7736
        while statement.
7737
7738
2002-03-29  Jim Blandy  
7739
 
7740
        * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7741
        unescaped newlines in string literals, but newer ones don't.  So
7742
 
7743
7744
 
7745
            Andrew Cagney 
7746
7747
        * cli/cli-dump.c: New file.  Dump memory to file,
7748
 
7749
        * cli/cli-dump.h: New file.
7750
        * Makefile.in: Add rules, dependencies for cli-dump.o.
7751
 
7752
7753
2002-03-28  Michael Snyder  
7754
7755
        * symfile.c (symbol_file_add): Move test for null symbols to later.
7756
7757
 
7758
7759
 
7760
        * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7761
 
7762
        Fix PR gdb/417.
7763
 
7764
2002-03-27  Michael Snyder  
7765
7766
        * breakpoint.c (_initialize_breakpoint): Clean up help string.
7767
        * infcmd.c (_initialize_infcmd): Ditto.
7768
 
7769
        * symfile.c (_initialize_symfile): Ditto.
7770
 
7771
        * cli/cli-cmds.c (init_cli_cmds): Ditto.
7772
7773
2002-03-27  Elena Zannoni  
7774
7775
        * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7776
        vector registers handling.
7777
 
7778
        fields of frame data.
7779
 
7780
7781
2002-03-27  Jim Blandy  
7782
7783
        * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7784
        a function; leave this macro here to invoke that function.
7785
 
7786
        * symtab.c (symbol_init_mangled_name): New function.
7787
 
7788
2002-03-27  Andrew Cagney  
7789
7790
        * valarith.c: Replace strerror with safe_strerror.
7791
        * tracepoint.c: Ditto.
7792
 
7793
        * go32-nat.c: Ditto.
7794
 
7795
        * gnu-nat.c: Ditto.
7796
7797
2002-03-27  Andreas Schwab  
7798
7799
        * event-top.c (command_line_handler): Remove useless if.
7800
7801
 
7802
7803
 
7804
        comment.
7805
 
7806
2002-03-27  Michal Ludvig  
7807
 
7808
        * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7809
        (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7810
 
7811
        (x86_64_linux_dr_get_status, supply_gregset),
7812
 
7813
        * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7814
        (x86_64_register_info_table): Add.
7815
        (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7816
        (x86_64_register_raw_size, x86_64_register_virtual_type),
7817
        (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7818
        general x86_64_register_info_table.
7819
        (i386_gdbarch_init): gdbarch_register_bytes is now set
7820
        dynamicaly during initialization.
7821
        * regformats/reg-x86-64.dat: Synced with changes to registers above.
7822
        * gdbserver/linux-x86-64-low.c: Ditto.
7823
7824
2002-03-27  Daniel Jacobowitz  
7825
7826
        * gdbserver/server.c (main): Call target_signal_to_host_p
7827
        and target_signal_to_host on signals received from the remote.
7828
 
7829
        target_signal_from_host on signals sent to the remote.
7830
 
7831
        * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7832
7833
2002-03-27  Daniel Jacobowitz  
7834
7835
        * signals/signals.c: Include "server.h" in gdbserver build.
7836
        (target_signal_from_name): Don't use STREQ.
7837
 
7838
        gdbserver build.
7839
 
7840
2002-03-27  Daniel Jacobowitz  
7841
7842
        * signals.c: Moved to...
7843
        * signals/signals.c: Here.
7844
 
7845
7846
 
7847
7848
        * somread.c (som_symtab_read): Remove some commented out code and
7849
        updated related comments.  Do not set the minimal symbol table to
7850
 
7851
        in a dynamic executable.
7852
 
7853
        where we are unable to find the minimal symbol for the given
7854
        PC value.
7855
7856
2002-03-25  Jeff Law (law@redhat.com)
7857
7858
        * linux-proc.c (read_mapping): Scan up to end of line for filename.
7859
7860
 
7861
7862
 
7863
7864
 
7865
7866
 
7867
        (struct cmd_list_element): Replace definition with opaque
7868
 
7869
        (enum cmd_types): Document that it will eventually be moved to
7870
 
7871
        (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7872
        (MALLOCED_REPLACEMENT): Delete macro.
7873
        * Makefile.in (cli_decode_h): Add $(command_h).
7874
        (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7875
        * top.c: Include "cli/cli-decode.h".
7876
        * completer.c: Include "cli/cli-decode.h".
7877
        * maint.c: Include "cli/cli-decode.h".
7878
        * cli/cli-decode.h: Include "command.h".
7879
        (enum command_class): Delete.
7880
        (enum cmd_types): Comment out.
7881
        (enum cmd_auto_boolean): Delete.
7882
        (enum var_types): Delete.
7883
7884
2002-03-23  Andrew Cagney  
7885
7886
        * cli/cli-decode.c: Include "gdb_assert.h".
7887
        (add_set_or_show_cmd): New static function.
7888
 
7889
        (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7890
 
7891
7892
2002-03-23  Andrew Cagney  
7893
7894
        * MAINTAINERS (sh-elf): Change warning flag to -w.
7895
7896
 
7897
7898
 
7899
        * thread-db.c (thread_from_lwp): Fix error format string.
7900
 
7901
        * cli/cli-decode.c (undef_cmd_error): Ditto.
7902
 
7903
        * tracepoint.c (trace_error): Ditto.
7904
        * remote-utils.c (usage): Ditto.
7905
        * remote.c (compare_sections_command): Ditto.
7906
        Fix PR gdb/328.
7907
7908
2002-03-22  Andrew Cagney  
7909
7910
        * gdbtypes.c (append_composite_type_field): New function.
7911
        (init_composite_type): New function.
7912
 
7913
        (init_composite_type): Ditto.
7914
 
7915
2002-03-22  Elena Zannoni  
7916
7917
        * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7918
        function.
7919
 
7920
        * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7921
 
7922
        for GNU/Linux, FreeBSD, or NetBSD.
7923
7924
2002-03-22  Daniel Jacobowitz  
7925
7926
        * symtab.h (lookup_block_symbol): Add mangled_name argument
7927
        to prototype.
7928
 
7929
        * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7930
 
7931
        * linespec.c (decode_line_1): Likewise.
7932
        * valops (value_of_this): Likewise.
7933
 
7934
        (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7935
        (lookup_symbol): If we are given a mangled name, pass it down
7936
        to lookup_symbol_aux.
7937
        (lookup_block_symbol): If we are given a mangled name to check
7938
        against, only return symbols which match it.
7939
7940
2002-03-22  Christopher Faylor  
7941
7942
        * win32-nat.c (child_create_inferior): Check for proper shell to use
7943
        here, in case the user changes it on the fly.
7944
 
7945
7946
 
7947
7948
        * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7949
        for gdbarch_max_register_raw_size and max_register_virtual_size.
7950
 
7951
7952
 
7953
7954
         * dbxread.c (process_one_symbol): Extend the first N_SLINE
7955
         in a function to cover the entire beginning of the function
7956
 
7957
7958
 
7959
7960
        * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7961
        (rs6000_ptrace64): Renamed from ptrace64.
7962
 
7963
2002-03-20  Martin M. Hunt  
7964
 
7965
        * gdbserver/remote-utils.c (remote_open): Don't call
7966
        getprotobyname, we're all using TCP here so just use
7967
 
7968
        * gdbserver/gdbreplay.c (remote_open): Ditto.
7969
 
7970
2002-03-20  Martin M. Hunt  
7971
7972
        * regcache.c (_initialize_regcache): No need to call
7973
        build_regcache() at this time; it gets called whenever
7974
 
7975
7976
 
7977
7978
        * sparc-nat.c:  Include sys/param.h where possible.
7979
7980
 
7981
7982
 
7983
        * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7984
 
7985
        * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7986
 
7987
        * stabsread.c (rs6000_builtin_type): Likewise.
7988
        (read_sun_floating_type): Likewise.
7989
7990
2002-03-19  Peter Schauer  
7991
7992
        * stabsread.c (read_member_functions): Remove skip code for duplicate
7993
        constructor/destructor methods.  Use standard parsing for these
7994
 
7995
        parsing.
7996
 
7997
2002-03-19  Alexandre Oliva  
7998
7999
        * coffread.c: Remove redundant static declarations.  Replace
8000
        occurrences of `PTR' with `void *'.
8001
 
8002
        * top.h (quit_cover): Likewise.
8003
 
8004
8005
2002-03-18  Andrew Cagney  
8006
8007
        * defs.h (XMALLOC): Define.
8008
        * gdb-events.sh (XMALLOC): Delete macro.
8009
 
8010
        * gdbarch.sh (XMALLOC): Delete macro.
8011
 
8012
        * serial.c (XMALLOC): Delete macro.
8013
        * ui-file.c (XMALLOC): Ditto.
8014
        * ser-unix.h (XMALLOC): Ditto.
8015
        * sh-tdep.c (XMALLOC): Ditto.
8016
        * ui-out.c (XMALLOC): Ditto.
8017
        * utils.c (XMALLOC): Ditto.
8018
        * i386-tdep.c (XMALLOC): Ditto.
8019
        * gdb-events.c (XMALLOC): Ditto.
8020
        * d10v-tdep.c (XMALLOC): Ditto.
8021
        * cli-out.c (XMALLOC): Ditto.
8022
8023
        * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8024
        * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8025
        * ui-file.c, ui-out.c: Ditto.
8026
8027
 
8028
8029
        * command.h (struct cmd_list_element): Add field context.
8030
        (set_cmd_context, get_cmd_context): Declare.
8031
 
8032
        * cli/cli-decode.c (get_cmd_context): New function.
8033
 
8034
        (add_cmd): Initialize context.
8035
        Part of fixing PR gdb/145 and PR gdb/146.
8036
8037
2002-03-17  Andrew Cagney  
8038
8039
        * cli/cli-decode.c (cmd_type): New function.
8040
        * command.h (cmd_type): Declare.
8041
 
8042
        * kod.c (kod_set_os): Call cmd_type.
8043
 
8044
        (cris_mode_update, cris_abi_update): Ditto.
8045
8046
        * command.h: (execute_cmd_post_hook): Declare.
8047
        (execute_cmd_pre_hook): Declare.
8048
        * cli/cli-script.c (clear_hook_in_cleanup): New function.
8049
        (execute_cmd_post_hook, execute_cmd_pre_hook): New
8050
 
8051
        hook_in is cleared.
8052
        * top.c (execute_command): Use execute_cmd_post_hook, and
8053
        execute_cmd_pre_hook to execute pre/post commands.
8054
        * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8055
        hook_stop_stub.
8056
        (hook_stop_stub): Call execute_cmd_pre_hook.
8057
8058
2002-03-17  Andrew Cagney  
8059
8060
        * kod.c (kod_set_os): Revert previous change.  Is called by ``info
8061
        set'' and this leads to a core dump.  Move xstrdup of
8062
 
8063
8064
 
8065
8066
        * kod.c (kod_set_os): Remove unnecessary check that
8067
        ``command->type'' is set_cmd.
8068
 
8069
        * valprint.c (set_input_radix): Use input_radix.
8070
 
8071
        (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8072
        isn't reverted.
8073
 
8074
2002-03-16  Andrew Cagney  
8075
8076
        * value.h (struct value): Delete field ``substring_addr''.  Change
8077
        aligner fields to force_doublest_align, force_longest_align,
8078
 
8079
8080
 
8081
8082
2002-03-16  Peter Schauer  
8083
8084
 
8085
        to fix internal_error from ``maintenance print architecture''.
8086
 
8087
2002-03-16  Peter Schauer  
8088
 
8089
        * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8090
        for gcc versions after gcc-2.8.1.
8091
 
8092
2002-03-16  Peter Schauer  
8093
 
8094
        * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8095
        for method resolution.  Restore adjustment of ``this'' pointer after
8096
 
8097
        HP merge.
8098
 
8099
2002-03-15  Andrew Cagney  
8100
8101
        * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8102
        value_of_register.
8103
 
8104
        get_saved_register.
8105
 
8106
8107
2002-03-14  Richard Henderson  
8108
8109
        * configure.in: Detect declaration for canonicalize_file_name.
8110
        * utils.c (canonicalize_file_name): Declare, if needed.
8111
 
8112
        * config.in, configure: Rebuild.
8113
 
8114
2002-03-14  Richard Henderson  
8115
8116
        * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8117
        a constant array bound.
8118
 
8119
        * MAINTAINERS: Add myself to write-after-approval.
8120
 
8121
2002-03-14  Michael Snyder  
8122
8123
 
8124
        (symbol_file_add): Return immediately if no syms.
8125
 
8126
8127
 
8128
8129
        * gdbserver/remote-util.c (remote_open): Print remote-side's
8130
        IP address when remote debugging over the network.
8131
 
8132
2002-03-12  David O'Brien  
8133
 
8134
        * config/sparc/fbsd.mh: Fix copyright.
8135
        * config/sparc/fbsd.mt: Likewise.
8136
 
8137
2002-03-11  Richard Earnshaw  
8138
 
8139
        * MAINTAINERS: Fix typo in name of gdb warnings option.
8140
        (x86-64): Fix formating so that this can be parsed by awk.
8141
 
8142
2002-03-10  Daniel Jacobowitz  
8143
 
8144
        * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8145
        * defs.h: Include "gdb/signals.h".
8146
 
8147
8148
 
8149
8150
        * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8151
        * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8152
 
8153
8154
 
8155
            Don Howard 
8156
8157
        * mips-tdep.c (ST0_FR): Define.
8158
 
8159
        (mips_read_fp_register_single): New function.
8160
        (mips_read_fp_register_double): New function.
8161
 
8162
        (do_fp_register_row): Likewise.
8163
8164
2002-03-09  Andrew Cagney  
8165
8166
        * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8167
        approval''.
8168
 
8169
2002-03-08  Peter Schauer  
8170
 
8171
        * stabsread.c (read_member_functions): Fix is_stub test for
8172
        static member functions, improve comment.
8173
 
8174
2002-03-07  Richard Earnshaw  
8175
 
8176
        * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8177
        (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8178
 
8179
        commands that set boolean values.
8180
 
8181
        (arm_rdi_resume): Always initialize PC.
8182
        (arm_rdi_open): Don't use rslt as a boolean.
8183
        (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8184
        (arm_rdi_fetch_registers, arm_rdi_store_registers)
8185
        (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8186
        (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8187
8188
2002-03-06  Alexandre Oliva  
8189
8190
        * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8191
        * configure: Rebuilt.
8192
 
8193
2002-03-06  Stephane Carrez  
8194
 
8195
        * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8196
        (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8197
 
8198
2002-03-06  Andrew Cagney  
8199
 
8200
        * cli/cli-decode.c (set_cmd_completer): New function.
8201
        * command.h (set_cmd_completer): Declare.
8202
 
8203
8204
 
8205
        * cli/cli-cmds.c (init_cli_cmds): Ditto.
8206
        * win32-nat.c (_initialize_inftarg): Ditto.
8207
        * remote-rdi.c (_initialize_remote_rdi): Ditto.
8208
 
8209
        * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8210
        * source.c (_initialize_source): Ditto.
8211
        * exec.c (_initialize_exec): Ditto.
8212
        * solib.c (_initialize_solib): Ditto.
8213
        * top.c (init_main): Ditto.
8214
        * tracepoint.c (_initialize_tracepoint): Ditto.
8215
        * symfile.c (_initialize_symfile): Ditto.
8216
        * printcmd.c (_initialize_printcmd): Ditto.
8217
        * infcmd.c (_initialize_infcmd): Ditto.
8218
        * corefile.c (_initialize_core): Ditto.
8219
8220
2002-03-05  Andrew Cagney  
8221
8222
        * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8223
8224
 
8225
8226
 
8227
8228
 
8229
8230
 
8231
8232
 
8233
8234
 
8235
        (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8236
 
8237
        (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8238
 
8239
8240
2002-03-03  Michal Ludvig 
8241
8242
        * MAINTAINERS (x86-64): Add myself.
8243
        * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8244
 
8245
8246
 
8247
8248
        * configure.host (sparc64-*-freebsd): Add.
8249
        * configure.tgt: Likewise.
8250
 
8251
        * config/sparc/fbsd.mt: Likewise.
8252
 
8253
        * config/sparc/tm-fbsd.h: Likewise.
8254
8255
2002-03-01  Daniel Jacobowitz  
8256
8257
        * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8258
        regformats/reg-s390x.dat.
8259
 
8260
2002-03-01  Andrew Cagney  
8261
 
8262
        * utils.c: Add FIXME explaining true/false problem.
8263
8264
 
8265
8266
 
8267
8268
 
8269
8270
 
8271
8272
 
8273
8274
 
8275
        * regformats/reg-s390.dat: New file.
8276
 
8277
        * gdbserver/configure.srv: Add S/390.
8278
 
8279
        * configure.tgt: Enable gdbserver for S/390.
8280
8281
2002-02-28  Eli Zaretskii  
8282
8283
        * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8284
        first line of the doc string for "info dos", except at the end of
8285
 
8286
8287
 
8288
8289
        * dwarf2read.c (dwarf_cfi_name): Add new codes.
8290
8291
 
8292
8293
 
8294
        comment (dumy -> dummy).
8295
 
8296
2002-02-27  Peter Schauer  
8297
 
8298
        * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8299
8300
 
8301
8302
 
8303
8304
 
8305
8306
 
8307
        * gdbserver/i387-fp.c: New file.
8308
 
8309
        * gdbserver/linux-x86-64.c: New file.
8310
 
8311
        * configure.tgt: Add x86_64-*-linux* gdbserver support.
8312
        * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8313
        * gdbserver/configure.in: Add support for regsets.
8314
        * gdbserver/config.in: Regenerate.
8315
        * gdbserver/configure: Regenerate.
8316
        * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
8317
        * gdbserver/linux-low.h: New file.
8318
        * gdbserver/linux-low.c: Include "linux-low.h".  Add support
8319
        for regsets.
8320
        * gdbserver/linux-arm-low.c: Include "linux-low.h".
8321
        * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8322
        * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8323
        * gdbserver/linux-mips-low.c: Include "linux-low.h".
8324
        * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8325
        * gdbserver/linux-sh-low.c: Include "linux-low.h".
8326
        * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
8327
        "i387-fp.h".  Add PTRACE_GETREGS and friends.
8328
        * gdbserver/regcache.c (supply_register): New function.
8329
        (supply_register_by_name): New function.
8330
        (collect_register): New function.
8331
        (collect_register_by_name): New function.
8332
8333
2002-02-27  Daniel Jacobowitz  
8334
8335
        * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8336
        (config.status): Add configure.srv dependency.
8337
 
8338
8339
 
8340
8341
        * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8342
        * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8343
 
8344
        reg-i386-linux.o.
8345
 
8346
2002-02-26  Andrew Cagney  
8347
8348
        * x86-64-tdep.c: Re-indent.  Update copyright date.
8349
8350
 
8351
8352
 
8353
        * x86-64-tdep.c (value.h): Delete.
8354
 
8355
        (x86_64_register_convert_to_virtual,
8356
 
8357
        floating-point values to be converted.
8358
        (value_push): Delete.
8359
        (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8360
        (i386_gdbarch_init): Number of register_bytes fixed.
8361
8362
2002-02-26  Andrew Cagney  
8363
8364
        * MAINTAINERS: Add x86-64 target.
8365
8366
 
8367
8368
 
8369
        * osfsolib.c (solib_map_sections): Ditto.
8370
 
8371
        * corelow.c (gdb_check_format): Ditto.
8372
 
8373
        * solib.c (solib_map_sections): Ditto.
8374
        Fix PR gdb/354.
8375
8376
2002-02-26  Andrew Cagney  
8377
8378
        * remote.c (_initialize_remote): By default, disable ``e'' and
8379
        ``E'' step out-of-range packets.
8380
 
8381
2002-02-26  Andreas Schwab  
8382
 
8383
        * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8384
        m68k_linux_frame_saved_pc.
8385
 
8386
        in_sigtramp.
8387
 
8388
        * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8389
        m68k_linux_sigtramp_saved_pc): New functions.
8390
        (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8391
        (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8392
        (UCONTEXT_PC_OFFSET): Define.
8393
        (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8394
        non-RT and RT signal trampolines.
8395
8396
2002-02-26  Richard Earnshaw  
8397
8398
        * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8399
        (TARGET_NBPG, STACK_END_ADDR): Delete
8400
 
8401
8402
 
8403
8404
        * utils.c (perror_with_name): Make string parameter constant.
8405
        (print_sys_errmsg): Ditto.
8406
 
8407
        * defs.h (perror_with_name): Update.
8408
 
8409
        (query): Update.
8410
8411
2002-02-25  Daniel Jacobowitz  
8412
8413
        From Eliot Dresselhaus :
8414
        * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8415
 
8416
2002-02-25  Peter Schauer  
8417
 
8418
        * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8419
        if it already matches the current architecture from the exec file.
8420
 
8421
        * Makefile.in (rs6000-nat.o): Update dependencies.
8422
 
8423
2002-02-25  Eli Zaretskii  
8424
8425
        * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8426
         list of exported variables.
8427
 
8428
2002-02-24  Daniel Jacobowitz  
8429
 
8430
        * gdbserver/configure.srv: New file.
8431
        * gdbserver/configure.in: Use configure.srv instead
8432
 
8433
        from it.
8434
 
8435
        * gdbserver/terminal.h: New file.
8436
        * gdbserver/Makefile.in: Update for configure changes.  Remove
8437
        more unneeded include paths.
8438
8439
2002-02-24  Andrew Cagney  
8440
8441
        From wiz at danbala:
8442
        * config/sparc/tm-sp64.h: Fix grammar and typos.
8443
 
8444
8445
 
8446
8447
        * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8448
        with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
8449
 
8450
        * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8451
 
8452
        * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8453
        * s390-tdep.c: Ditto.
8454
        * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8455
        * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8456
        * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8457
        * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8458
        * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8459
        * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8460
        * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8461
        * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8462
        * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8463
        * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8464
        Fix PR gdb/378.
8465
8466
2002-02-23  Andrew Cagney  
8467
8468
        * lin-thread.c: Delete file.
8469
        * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8470
 
8471
        * configure: Re-generate.
8472
 
8473
        * ocd.c (ocd_open): Do not try to open the "ocd" device.
8474
        * serial.c (serial_open): Delete check for "ocd".
8475
        Fix PR gdb/349.
8476
8477
 
8478
        * linux-thread.c: Delete file.
8479
8480
        * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
8481
 
8482
8483
        * symtab.c (sort_search_symbols): Use xfree.
8484
 
8485
2002-02-23  Richard Earnshaw  
8486
8487
 
8488
        IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8489
 
8490
        definition with undef, since we don't want the sysvr4 definition.
8491
 
8492
8493
2002-02-23  Andrew Cagney  
8494
8495
        From 2002-02-22 Alfred M. Szmidt :
8496
8497
 
8498
        canonicalize_file_name Regenerated.
8499
 
8500
        * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8501
 
8502
8503
2002-02-23  Michael Chastain  
8504
8505
        * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8506
8507
 
8508
8509
 
8510
        * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8511
 
8512
8513
 
8514
8515
        From 2002-02-19 Paul Eggert :
8516
        * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8517
 
8518
        * gdb/Makefile.in (version.c): Likewise.
8519
 
8520
        * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8521
        equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
8522
8523
2002-02-23  Andrew Cagney  
8524
8525
        * cli/cli-decode.c (cmd_cfunc_eq): New function.
8526
        * command.h (cmd_cfunc_eq): Declare.
8527
 
8528
8529
 
8530
        ``struct cmd_list_element *''.
8531
        * cli/cli-cmds.c (is_complete_command): Update.  Use
8532
        cmd_cfunc_eq.
8533
 
8534
        is_complete_command.
8535
        * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8536
8537
2002-02-23  Andrew Cagney  
8538
8539
        From 2002-02-20 Martin Schwidefsky :
8540
        * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8541
 
8542
        * s390-tdep.c (s390_gdbarch_init): Likewise.
8543
 
8544
2002-02-23  Richard Earnshaw  
8545
8546
        * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8547
        (arm_linux_push_arguments): Likewise.
8548
 
8549
        call_dummy_words.
8550
 
8551
        * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8552
        (arm_linux_call_dummy_words): Delete declaration.
8553
        (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8554
        (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8555
        declarations.
8556
        (LOWEST_PC): Delete.
8557
8558
2002-02-23  Peter Schauer  
8559
8560
        * maint.c (print_section_info): Do not prepend `0x' to filepos
8561
        output, it will be handled by local_hex_string_custom.
8562
 
8563
2002-02-23  Richard Earnshaw  
8564
 
8565
        * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8566
        (store_newfpe_double, store_newfpe_extended, store_fpregister)
8567
 
8568
8569
 
8570
8571
        Indicate that the bcache functions don't change the strings
8572
        they're passed.
8573
 
8574
        * bcache.c (bcache, hash): Add `const' keywords to definitions.
8575
 
8576
2002-02-22  Pierre Muller  
8577
8578
        * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8579
8580
 
8581
8582
 
8583
        find the complete path to a loaded DLL.
8584
 
8585
2002-02-21  Fred Fish  
8586
 
8587
        * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8588
        that marks the end of the range of a function, enter a line number
8589
 
8590
        the end of the function.  This starts a range of PC's for which no
8591
 
8592
        * symtab.c (find_pc_sect_line): If our best fit is in a range of
8593
        PC's for which no line number info is found (line number is zero)
8594
        then we didn't find any valid line information.
8595
        * symtab.h: Document use of zero line number entry.
8596
8597
2002-02-21  Elena Zannoni  
8598
8599
        * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8600
        (have_ptrace_getvrregs): Define for run time checks.
8601
 
8602
        (fetch_register, store_register): Fetch/store altivec register
8603
 
8604
        (fetch_altivec_register, store_altivec_register): New functions.
8605
        (supply_vrregset, fill_vrregset): New functions.
8606
        (fetch_altivec_registers, store_altivec_registers): New functions.
8607
        (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8608
        registers as well.
8609
8610
2002-02-21  Jiri Smid  
8611
8612
        * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8613
8614
 
8615
8616
 
8617
        * armnbsd-nat.c (supply_gregset): New function.  Common code to
8618
 
8619
        (supply_fparegset): New function.  Similar for FPA registers.
8620
 
8621
        (fetch_core_registers): Likewise.
8622
        (fetch_elfcore_registers): New function.
8623
        (arm_netbsd_elfcore_fns): New core-file type specification.
8624
        (_initialize_arm_netbsd_nat): Register it.
8625
8626
2002-02-21  Richard Earnshaw  
8627
8628
        * armnbsd-nat.c: Include gdbcore.h.
8629
        (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8630
 
8631
        'void' to declaration, to shut up ARI.
8632
 
8633
        (arm_netbsd_core_fns): New core-file type specification.
8634
        (_initialize_arm_netbsd_nat): New function.
8635
8636
2002-02-21  Christopher Faylor  
8637
8638
        * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8639
        value.
8640
 
8641
2002-02-20  Christopher Faylor  
8642
 
8643
        * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8644
        fails.
8645
 
8646
2002-02-20  Daniel Jacobowitz  
8647
 
8648
        * jv-exp.y (parse_number): Change type of implicit longs
8649
        to builtin_type_uint64.
8650
 
8651
2002-02-20  Daniel Jacobowitz  
8652
 
8653
        * gdbserver/linux-low.c (mywait): Change argument to waitpid
8654
        to be an integer instead of a `union wait'.
8655
 
8656
2002-02-20  Daniel Jacobowitz  
8657
 
8658
        * mips-linux-nat.c: Call the operating system GNU/Linux.
8659
        * mips-linux-tdep.c: Likewise.
8660
 
8661
8662
 
8663
8664
        Fix PR gdb/265.
8665
        * jv-exp.y (parse_number): Handle 64-bit integers.
8666
 
8667
2002-02-20  Daniel Jacobowitz  
8668
 
8669
        * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8670
        AC_STDC_HEADERS to AC_HEADER_STDC.
8671
 
8672
8673
 
8674
8675
        * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8676
        is defined.
8677
 
8678
8679
 
8680
8681
        * News: Add news about ARM and Multi-arch.  Mention the new target
8682
        arm*-*-netbsd*.
8683
 
8684
2002-02-19  Jim Blandy  
8685
 
8686
        * stabsread.c (error_type_complaint): Improve error message.
8687
8688
 
8689
8690
 
8691
        * gdbserver/configure.in: Update configury to match documentation.
8692
 
8693
        * gdbserver/configure: Regenerated.
8694
 
8695
        * gdbserver/config.in: New file, generated by autoheader.
8696
8697
2002-02-19  Richard Earnshaw  
8698
8699
        * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8700
        armnbsd-nat.c.
8701
 
8702
2002-02-19  Richard Earnshaw  
8703
 
8704
        * arm-tdep.h (enum arm_float_model): New enum.
8705
        (struct gdbarch_tdep): Add fp_model.
8706
 
8707
        up floating-point conversions until we know the floating-point model
8708
 
8709
        determine the ABI of the inferior when we don't have one.
8710
        (arm_extract_return_value): Support different floating-point models.
8711
        (arm_store_return_value): Likewise.
8712
        * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8713
        ARM_FLOAT_SOFT.
8714
        (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8715
8716
2002-02-19  Peter Schauer  
8717
8718
        * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8719
        of ``current_gdbarch''.
8720
 
8721
2002-02-19  Richard Earnshaw  
8722
 
8723
        * armnbsd-nat.c : ANSIfy all function declarations.
8724
        (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8725
 
8726
        (store_register, store_regs, store_fp_register, store_fp_regs): New.
8727
 
8728
8729
2002-02-19  Richard Earnshaw  
8730
8731
        * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8732
        kernel.
8733
 
8734
        * config/arm/tm-linux.h: Likewise.
8735
 
8736
2002-02-19  Richard Earnshaw  
8737
8738
        * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8739
        * config/arm/nbsd.mt (TM_FILE): Delete.
8740
 
8741
8742
 
8743
8744
        * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8745
        Initialize CALL_DUMMY_LENGTH.
8746
 
8747
2002-02-19  Richard Earnshaw  
8748
 
8749
        * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8750
        function.
8751
 
8752
        * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8753
 
8754
        (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8755
8756
2002-02-18  Pierre Muller  
8757
8758
        * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8759
8760
 
8761
8762
 
8763
        about the information returned by GetThreadSelectorEntry API function.
8764
 
8765
        the selector given as argument, or of CS, DS ans FS selectors
8766
 
8767
        ( _initialize_inftarg): Add "w32" as info prefix command.
8768
        Add "info w32 selector" as command calling display_selectors.
8769
8770
2002-02-19  Pierre Muller  
8771
8772
        * i386-tdep.c (get_longjmp_target): Fix compilation failure
8773
        by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8774
 
8775
8776
 
8777
8778
        * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8779
8780
 
8781
8782
 
8783
        (arm_fix_call_dummy): Call it.
8784
 
8785
        (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8786
 
8787
8788
2002-02-18  Andrew Cagney  
8789
8790
        * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8791
        Default to func_frame_chain_valid.
8792
 
8793
        * frame.h (FRAME_CHAIN_VALID): Delete definition.
8794
 
8795
2002-02-18  Elena Zannoni  
8796
8797
        * ppc-linux-nat.c: Update copyright.
8798
        (fetch_register, store_register): Add tid parameter, don't compute
8799
 
8800
        (fetch_ppc_registers, store_ppc_registers): Add tid
8801
 
8802
        (fetch_inferior_registers, store_inferior_registers): Compute tid
8803
        here, and pass it to calleed functions.
8804
        (fill_gregset, supply_fpregset): Clean up formatting.
8805
8806
2002-02-18  Richard Earnshaw  
8807
8808
        * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8809
        * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8810
 
8811
2002-02-18  Richard Earnshaw  
8812
 
8813
        * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8814
        * gdbarch.c gdbarch.h: Regenerate.
8815
 
8816
        function.
8817
 
8818
        * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8819
        (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8820
8821
        * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8822
        * arm-tdep.c (arm_get_longjmp_target): New function.
8823
        (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8824
        this to a positive value register arm_get_longjmp_target as the
8825
 
8826
        * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8827
        (arm_linux_init_abi): Set up longjmp description in tdep.
8828
        * armnbsd-nat.c (get_longjmp_target): Delete.
8829
        * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8830
        description in tdep.
8831
        * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8832
        (get_longjmp_target): Delete declaration.
8833
        (GET_LONGJMP_TARGET): Delete.
8834
        * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8835
        (GET_LONGJMP_TARGET): Delete.
8836
8837
2002-02-17  Kevin Buettner  
8838
8839
        From Peter Schauer  :
8840
        * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8841
 
8842
8843
 
8844
8845
        * cli/cli-cmds.c (compare_strings): New function.
8846
        (complete_command): Only print each unique item once.
8847
 
8848
        * completer.c (complete_line): New function.
8849
 
8850
8851
2002-02-16  Andrew Cagney  
8852
8853
        * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8854
        * gdbarch.h, gdbarch.c: Re-generate.
8855
 
8856
2002-02-16  Daniel Jacobowitz  
8857
 
8858
        * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8859
8860
 
8861
8862
 
8863
        * valops.c (value_arg_coerce): Don't take the address of a reference
8864
 
8865
8866
 
8867
8868
        * win32-nat.c (get_image_name): New function.
8869
        (handle_load_dll): Use get_image_name function.
8870
 
8871
        execed process is started.
8872
 
8873
        line redirection, etc.  works ok.
8874
        (_initialize_inftarg): Add new command: "set shell" to control whether
8875
        a shell is used to start a process.
8876
8877
2002-02-15  Daniel Jacobowitz  
8878
8879
        * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8880
        instead of find_register_by_number.
8881
 
8882
8883
 
8884
8885
        * dwarf2read.c: Replace fprintf (stderr, ...) by
8886
        fprintf_unfiltered (gdb_stderr, ...).
8887
 
8888
2002-02-15  Daniel Jacobowitz  
8889
 
8890
        * gdbserver/gdbserver.1: Document --attach.
8891
8892
 
8893
8894
 
8895
        descriptions.
8896
 
8897
        (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8898
 
8899
        traditional breakpoint defines.
8900
        (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8901
        (arm_gdbarch_init): Initialize new breakpoint variables.
8902
        * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8903
        (arm_linux_init_abi): Initialize linux-specific breakpoint.
8904
        * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8905
        (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8906
        code out to ...
8907
        (arm_netbsd_init_abi_common): ... here; new function.
8908
        * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8909
        (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8910
        * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8911
        * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8912
8913
2002-02-15  Richard Earnshaw  
8914
8915
        * arm-tdep.h (enum arm_abi): New enum.
8916
        (struct gdbarch_tdep): New structure.
8917
 
8918
        (arm_gdbarch_register_os_abi): Declare new function.
8919
 
8920
        (process_note_abi_tag_sections): New function.
8921
        (get_elfosabi): New function.
8922
        (arm_gdbarch_register_os_abi): New function.
8923
        (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8924
        support for that ABI has been built in, then call the appropriate
8925
        configuration routine.  Use gdbarch_num_regs() to get the number
8926
        of registers.
8927
        (arm_dump_tdep): New function.
8928
        (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8929
        place-holder functions.
8930
        (_initialize_arm_tdep): Register them.
8931
        * config/arm/tm-arm.h (LOWEST_PC): Delete.
8932
8933
        * armnbsd-tdep.c: New file.
8934
        * Makefile.in (armnbsd-tdep.o): Add dependencies.
8935
        * config/arm/nbsd.mt (TDEPFILES): Add it.
8936
        * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8937
 
8938
        * armnbsd-nat.c: Include regcache.h.
8939
        * Makefile.in (armnbsd-nat.o): Update dependency list.
8940
8941
        * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8942
 
8943
2002-02-14  Daniel Jacobowitz  
8944
8945
 
8946
8947
 
8948
8949
 
8950
        * linespec.c (find_methods): Handle constructors specially for now.
8951
 
8952
2002-02-14  Corinna Vinschen  
8953
 
8954
        * arm-tdep.c (arm_push_arguments): Eliminate special float type
8955
        handling.
8956
 
8957
        standard_coerce_float_to_double().
8958
 
8959
2002-02-14  Christopher Faylor  
8960
8961
        * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8962
        GDBINIT_FILENAME.
8963
 
8964
2002-02-14  Elena Zannoni  
8965
 
8966
        * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8967
        find_variant_by_name, because it confuses the multiarch
8968
 
8969
        user supplied name, instead of forcing a different one without
8970
 
8971
        (find_variant_by_name): Delete.
8972
8973
2002-02-14  Peter Schauer  
8974
8975
        * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8976
        i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8977
 
8978
2002-02-13  Martin M. Hunt  
8979
 
8980
        * stack.c (print_frame_info_base): When calling
8981
        print_frame_info_listing_hook, set current_source_symtab.
8982
 
8983
2002-02-14  Daniel Jacobowitz  
8984
 
8985
        * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8986
        and remove unused $(INCLUDE_DIR).
8987
 
8988
        Add generated register protocol files to clean target.
8989
 
8990
8991
        * gdbserver/linux-low.c: Remove all platform-specific code to
8992
        new files.  Remove various dead code.  Update to use regcache
8993
        functionality.
8994
        * gdbserver/remote-utils.c (fromhex): Add return statement
8995
 
8996
        (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8997
        constant.
8998
        (input_interrupt): Add integer parameter to match prototype
8999
        of a signal handler.
9000
        (outreg): Use register_data ().
9001
        (prepare_resume_reply): Use gdbserver_expedite_regs.
9002
        * gdbserver/server.c (main): Dynamically allocate own_buf because
9003
        PBUFSIZ is no longer constant.  Use registers_to_string () and
9004
        registers_from_string ().
9005
        * gdbserver/server.h: No longer include "defs.h".  Add prototypes
9006
        for error (), fatal (), and warning ().  Update definition of
9007
        PBUFSIZ to use regcache functionality.  Add include guard.
9008
        * gdbserver/utils.c (fatal): Add missing ``const''.
9009
        (warning): New function.
9010
9011
        * regformats/regdat.sh: Include "regcache.h" in generated files.
9012
        Provide init_registers () function.
9013
        * regformats/regdef.h: Add prototype for set_register_cache ().
9014
        Add include guard.
9015
 
9016
        * gdbserver/linux-arm-low.c: New file.
9017
        * gdbserver/linux-i386-low.c: New file.
9018
        * gdbserver/linux-ia64-low.c: New file.
9019
        * gdbserver/linux-m68k-low.c: New file.
9020
 
9021
        * gdbserver/linux-ppc-low.c: New file.
9022
        * gdbserver/linux-sh-low.c: New file.
9023
9024
        * gdbserver/regcache.c: New file.
9025
        * gdbserver/regcache.h: New file.
9026
9027
        * gdbserver/low-linux.c: Removed obsolete file.
9028
 
9029
2002-02-14  Daniel Jacobowitz  
9030
9031
 
9032
        * config/i386/linux.mt: Likewise.
9033
 
9034
        * config/m68k/linux.mh: Likewise.
9035
 
9036
        * config/mips/linux.mt: Likewise.
9037
9038
        * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9039
9040
        * config/i386/i386lynx.mh: Mark gdbserver variables
9041
        as (currently) obsolete for this target.
9042
 
9043
        * config/i386/nbsdelf.mt: Likewise.
9044
 
9045
        * config/m68k/m68klynx.mh: Likewise.
9046
        * config/m68k/nbsd.mt: Likewise.
9047
        * config/m68k/sun3os4.mh: Likewise.
9048
        * config/mips/vr5000.mt: Likewise.
9049
        * config/ns32k/nbsd.mt: Likewise.
9050
        * config/pa/hppabsd.mh: Likewise.
9051
        * config/pa/hppaosf.mh: Likewise.
9052
        * config/powerpc/nbsd.mt: Likewise.
9053
        * config/rs6000/rs6000lynx.mh: Likewise.
9054
        * config/s390/s390.mt: Likewise.
9055
        * config/s390/s390x.mt: Likewise.
9056
        * config/sparc/sparclynx.mh: Likewise.
9057
        * config/sparc/sun4os4.mh: Likewise.
9058
        * config/i386/x86-64linux.mt: Likewise.
9059
        * config/sparc/linux.mh: Likewise.
9060
9061
2002-02-14  Daniel Jacobowitz  
9062
9063
        * configure.tgt: Configure gdbserver only for known working
9064
        targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
9065
 
9066
        SUBDIRS if it is configured.  Update comment for ${nativefile}.
9067
 
9068
9069
2002-02-13  Michael Snyder  
9070
9071
        * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9072
9073
 
9074
        (default_gcore_mach): Just return 0, work around a problem in bfd.
9075
 
9076
        (make_mem_sec): Use a cast, avoid a warning.
9077
 
9078
        * procfs.c (find_memory_regions_callback): Use a cast instead of
9079
        calling host_pointer_to_address (which complains if
9080
        sizeof (host pointer) != sizeof (target pointer)).
9081
        (procfs_make_note_section): Avoid overflow in psargs string.
9082
 
9083
        * procfs.c (procfs_make_note_section): Make the default
9084
        implementation return an error.
9085
9086
2002-02-13  Rodney Brown  
9087
 
9088
        * procfs.c (procfs_make_note_section): Provide a default definition
9089
        (for alpha-dec-osf4.0f). Fix typos.
9090
 
9091
2002-02-13  Elena Zannoni  
9092
 
9093
        * linux-proc.c: Add include of regcache.h.
9094
        * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9095
 
9096
2002-02-13  Andrew Cagney  
9097
 
9098
        From 2002-01-18 Greg McGary :
9099
        * memattr.c (create_mem_region): Disallow useless empty region.
9100
 
9101
        non-overlapping.
9102
 
9103
2002-02-13  Michael Chastain 
9104
9105
        * defs.h: Kill CONST_PTR.
9106
        * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9107
 
9108
        * ch-lang.c (ch_builtin_types): Likewise.
9109
 
9110
        * language.c (unknown_builtin_types): Likewise.
9111
        * m2-lang.c (m2_builtin_types): Likewise.
9112
        * p-lang.c (pascal_builtin_types): Likewise.
9113
        * scm-lang.c (c_builtin_types): Likewise.
9114
9115
2002-02-13  Keith Seitz  
9116
9117
        * arm-tdep.h (arm_get_next_pc): Add declaration.
9118
9119
 
9120
9121
 
9122
        with other related struct-returning functions.
9123
 
9124
        (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
9125
 
9126
        appropriate to the endianness of the target.
9127
        * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9128
        (arm_use_struct_convention): Delete declaration.
9129
        (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9130
9131
2002-02-13  Keith Seitz  
9132
9133
        * defs.h (core_addr_to_string_nz): New function.
9134
9135
 
9136
9137
 
9138
        * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9139
 
9140
9141
 
9142
9143
        * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9144
        (core_addr_to_string_nz): New function.
9145
 
9146
2002-02-11  Richard Earnshaw  
9147
 
9148
        * arm-linux-nat.c: Really include arm-tdep.h.
9149
        * config/arm/tm-linux.h (struct type, struct value): Declare.
9150
 
9151
2002-02-11  Michael Snyder  
9152
 
9153
        * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9154
        (gcore section): Ifdef for Solaris and Unixware only.
9155
 
9156
        per thread (not one prstatus or pstatus).
9157
 
9158
        not over all gdb threads.  For unixware, call elfcore_write_pstatus
9159
        once before iterating over threads.
9160
9161
2002-02-11  Richard Earnshaw  
9162
9163
        * arm-tdep.h: New file.
9164
        * arm-tdep.c: Include arm-tdep.h.
9165
 
9166
        (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9167
 
9168
        (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9169
        (arm_extract_return_value, arm_register_name): Make static.
9170
        (arm_software_single_step): Similarly.  Fix types in declaration.
9171
        (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9172
        (arm_store_return_value, arm_store_struct_return): New functions.
9173
        (arm_gdbarch_init): Register the above functions.  Also register
9174
        call_dummy_start_offset, sizeof_call_dummy_words,
9175
        function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9176
        sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9177
        max_register_virtual_size, register_size.  Set up
9178
        prologue_cache.saved_regs here, rather than ...
9179
        (_initialize_arm_tdep): ... here.
9180
        * config/arm/tm-arm.h (struct type, struct value): Delete forward
9181
        declarations.
9182
        (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9183
        (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9184
        (arm_print_float_info, arm_register_type, convert_to_extended)
9185
        (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9186
        (arm_extract_return_value, arm_register_name): Delete declarations.
9187
        (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9188
        (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9189
        (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9190
        (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9191
        (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9192
        (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9193
        (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9194
        (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9195
        (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9196
        (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9197
        (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9198
        (arm_get_next_pc): No-longer static -- these are needed by the RDI
9199
        interface.
9200
        * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9201
        * remote-rdi.c remote-rdp.c: Likewise.
9202
        * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9203
        (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9204
        * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9205
        definition.
9206
9207
        * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9208
        (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9209
        (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9210
        from non-ARM_ prefixed definitions.
9211
 
9212
        all uses of above.
9213
        * remote-rdi.c remote-rdp.c: Likewise.
9214
        * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9215
9216
2002-02-11  Richard Earnshaw  
9217
9218
        * arm-tdep.c (arm_frameless_function_invocation)
9219
        (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9220
 
9221
        (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9222
 
9223
        (arm_gdbarch_init): Register above in gdbarch structure.
9224
        (arm_read_fp): Renamed from arm_target_read_fp.
9225
        (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9226
        * config/arm/tm-arm.h (arm_frameless_function_invocation)
9227
        (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9228
        (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9229
        (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9230
        (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9231
        (arm_pc_is_thumb_dummy): Delete declarations.
9232
        (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9233
        (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9234
        (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9235
        (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9236
9237
2002-02-10  Daniel Jacobowitz  
9238
9239
        * symtab.c (compare_search_syms): New function.
9240
        (sort_search_symbols): New function.
9241
 
9242
        before.
9243
 
9244
2002-02-10  Andrew Cagney  
9245
9246
        * NEWS: Linux -> GNU/Linux.
9247
9248
 
9249
9250
 
9251
        when partially multi-arched.  Add comments explaining rationale.
9252
 
9253
9254
 
9255
9256
        * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9257
        multi-arch partial.
9258
 
9259
2002-02-10  Andrew Cagney  
9260
 
9261
        * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
9262
        field.  Use diff -u.
9263
 
9264
9265
 
9266
9267
        * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9268
        * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9269
 
9270
9271
 
9272
9273
        * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9274
        multi-arch partial.
9275
 
9276
        * gdbarch.c: Regenerate.
9277
 
9278
2002-02-10  Andrew Cagney  
9279
9280
        * valops.c (PUSH_ARGUMENTS): Delete definition.
9281
        * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9282
 
9283
        * gdbarch.h, gdbarch.c: Regenerate.
9284
 
9285
2002-02-09  Andrew Cagney  
9286
9287
        * defs.h (throw_exception): Rename return_to_top_level.  Update
9288
        comments.
9289
 
9290
        * top.c (throw_exception, catcher): Ditto.
9291
 
9292
        * remote.c (interrupt_query, minitelnet): Ditto.
9293
        * remote-sds.c (interrupt_query): Ditto.
9294
        * remote-mips.c (mips_error, mips_kill): Ditto.
9295
        * ocd.c (interrupt_query): Ditto.
9296
        * monitor.c (monitor_interrupt_query): Ditto.
9297
        * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9298
        * target.h: Update comment.
9299
9300
        * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9301
9302
2002-02-09  Andrew Cagney  
9303
9304
 
9305
        default_double_format.
9306
 
9307
        * findvar.c (floatformat_unknown): Delete variable definition.
9308
 
9309
9310
2002-02-09  Jim Blandy  
9311
9312
        * stabsread.c (read_type): Add code to parse Sun's syntax for
9313
        prototyped function types.
9314
 
9315
2002-02-09  Andrew Cagney  
9316
 
9317
        * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9318
        (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9319
 
9320
2002-02-09  Peter Schauer  
9321
 
9322
        * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9323
        _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
9324
 
9325
        commands from solib.c in a native configuration.
9326
 
9327
2002-02-09  Mark Kettenis  
9328
9329
        * doublest.c (store_typed_floating): Don't try to return a value.
9330
        Fixes PR gdb/290.
9331
 
9332
2002-02-08  Jim Blandy  
9333
 
9334
        * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9335
        is prototyped and has no arguments, print its argument list as
9336
 
9337
9338
 
9339
9340
        * MAINTAINERS (write-after-approval): Add myself.
9341
        (paper-trail): I've escaped!
9342
 
9343
2002-02-08  Christopher Faylor  
9344
 
9345
        * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9346
        changes.
9347
 
9348
9349
 
9350
9351
        * win32-nat.c (cygwin_pid_to_str): Fix typo.
9352
        xaprintf -> xasprintf.
9353
 
9354
2002-02-08  Pierre Muller  
9355
 
9356
        * win32-nat.c: Remove use of printf and sprintf functions.
9357
9358
 
9359
9360
 
9361
        (arm_push_arguments): Likewise.
9362
 
9363
        (_initialize_arm_tdep): Call it.
9364
 
9365
        (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9366
        (FRAME_CHAIN_VALID): Delete.
9367
        (arm_frame_chain_valid): Delete declaration.
9368
        (PUSH_ARGUMENTS): Delete.
9369
        (arm_push_arguments): Delete declaration.
9370
        (CALL_DUMMY_P): Delete.
9371
9372
2002-02-08  Andrew Cagney  
9373
            Corinna Vinschen  
9374
9375
        * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9376
 
9377
9378
2002-02-08  Daniel Jacobowitz  
9379
 
9380
        * utils.c: Include  before "bfd.h".
9381
        * tui/tui-hooks.c: Likewise.
9382
 
9383
        * tui/tuiCommand.c: Likewise.
9384
 
9385
        * tui/tuiDataWin.c: Likewise.
9386
        * tui/tuiDisassem.c: Likewise.
9387
        * tui/tuiGeneralWin.c: Likewise.
9388
        * tui/tuiIO.c: Likewise.
9389
        * tui/tuiLayout.c: Likewise.
9390
        * tui/tuiRegs.c: Likewise.
9391
        * tui/tuiSource.c: Likewise.
9392
        * tui/tuiSourceWin.c: Likewise.
9393
        * tui/tuiStack.c: Likewise.
9394
        * tui/tuiWin.c: Likewise.
9395
9396
2002-02-07  Elena Zannoni  
9397
9398
        * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9399
        to include space for pseudoregs as well. Update loops accordingly.
9400
 
9401
        (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9402
 
9403
2002-02-07  Andrew Cagney  
9404
9405
        * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9406
        Add Richard Earnshaw to Arm maintainers.
9407
 
9408
2002-02-07  Andrew Cagney  
9409
 
9410
        * defs.h (warning_begin): Delete declaration.
9411
9412
 
9413
        Delete macro.
9414
 
9415
2002-02-07  Michael Snyder  
9416
 
9417
        * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9418
        Logic bug, remove misplaced else.
9419
 
9420
2002-02-07  Klee Dienes  
9421
 
9422
        * fork-inferior.c (fork_inferior): Add '!' to the list of
9423
        characters that need to be quoted when building a string for the
9424
 
9425
        when trying to evaluate "str!str".
9426
 
9427
2002-02-06  Nick Clifton  
9428
9429
        * rdi-share/host.h: Only provide a typedef for bool if it is not
9430
        defined.
9431
 
9432
2002-02-04  Michael Snyder  
9433
 
9434
        * breakpoint.h (enum bptype): Add new overlay event bp type.
9435
        (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9436
 
9437
        * breakpoint.c (create_internal_breakpoint): New function.
9438
 
9439
        (create_longjmp_breakpoint): Use create_internal_breakpoint.
9440
        (create_thread_event_breakpoint): Ditto.
9441
 
9442
        (create_overlay_event_breakpoint): New function.
9443
        (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9444
        (update_breakpoints_after_exec): Delete and re-initialize
9445
        overlay event breakpoints after an exec.  Add FIXME comment
9446
        about longjmp breakpoint.
9447
        (print_it_typical): Ignore overlay event breakpoints.
9448
        (print_one_breakpoint): Ditto.
9449
        (mention): Ditto.
9450
        (bpstat_what): Do not stop for overlay event breakpoints.
9451
        (delete_breakpoint): Don't delete overlay event breakpoints.
9452
        (breakpoint_re_set_one): Delete the overlay event breakpoint.
9453
        (breakpoint_re_set): Re-create overlay event breakpoint.
9454
9455
        * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9456
        (overlay_manual_command): Disable overlay breakpoints.
9457
        (overlay_off_command): Disable overlay breakpoints.
9458
9459
 
9460
9461
        * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9462
        (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9463
 
9464
        (coff_sym_is_thumb): Make static.
9465
 
9466
        (arm_coff_make_msymbol_special): New function.
9467
        * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9468
        (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9469
        (coff_sym_is_thumb): Delete declaration.
9470
        (arm_elf_make_msymbol_special): Declare.
9471
        (arm_coff_make_msymbol_special): Declare.
9472
        (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9473
        (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9474
9475
2002-02-06  Richard Earnshaw  
9476
9477
        * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9478
9479
 
9480
9481
 
9482
        * gdbarch.c gdbarch.h: Regenerate.
9483
 
9484
        * arch-utils.h (default_print_float_info): Prototype it.
9485
 
9486
        * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9487
        (PRINT_FLOAT_INFO): Document it.
9488
9489
        * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9490
        * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9491
        (PRINT_FLOAT_INFO): Define.
9492
9493
 
9494
9495
        * win32-nat.c (_initialize_check_for_gdb_ini):
9496
        Add typecast to sprintf argument to suppress a warning.
9497
 
9498
2002-02-05  Pierre Muller  
9499
 
9500
        * win32-nat.c (last_sig): Changed type of variable to target_signal,
9501
        to allow easier handling of pass state.
9502
 
9503
        that gives exception name and address.
9504
 
9505
        and set last_sig value to ourstatus->value.sig. Some missing
9506
        exceptions added.
9507
        (child_continue): Correctly report continue_status.
9508
        (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9509
        TARGET_SIGNAL_0 (new default value).
9510
        (child_resume): consider sig argument passed to decide if
9511
        the exception should be passed to debuggee or not.
9512
9513
2002-02-05  Michael Snyder  
9514
9515
        * regcache.c (fetch_register): Call target_fetch_register
9516
        only if we don't call FETCH_PSEUDO_REGISTER.
9517
 
9518
        don't call STORE_PSEUDO_REGISTER.
9519
 
9520
2002-02-05  Elena Zannoni  
9521
9522
        * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9523
        ELF_MAKE_MSYMBOL_SPECIAL.
9524
 
9525
        * arch-utils.c (default_make_msymbol_special): New function.
9526
 
9527
        * elfread.c (elf_symtab_read): Compile use of
9528
        ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9529
        multiarched.
9530
        * coffread.c (coff_symtab_read): Ditto, for
9531
        COFF_MAKE_MSYMBOL_SPECIAL.
9532
9533
2002-02-05  Jim Blandy  
9534
9535
        * solib-svr4.c (svr4_truncate_ptr): New function.
9536
        (svr4_relocate_section_addresses): Do the address arithmetic with
9537
 
9538
        CORE_ADDR is larger than a target address.
9539
 
9540
2002-02-05  Daniel Jacobowitz  
9541
9542
        * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9543
        to (int *).
9544
 
9545
2002-02-05  Daniel Jacobowitz  
9546
 
9547
        * gdbserver/linux-low.c (kill_inferior): Remove commented out
9548
        code.
9549
 
9550
2002-02-05  Daniel Jacobowitz  
9551
 
9552
        * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9553
9554
 
9555
9556
 
9557
9558
 
9559
9560
 
9561
        (read_inferior_memory): Use it.
9562
 
9563
9564
 
9565
9566
        * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9567
        grubbing through sys_errlist.
9568
 
9569
2002-02-05  Daniel Jacobowitz  
9570
 
9571
        * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9572
9573
 
9574
        * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9575
 
9576
2002-02-04  Andrew Cagney  
9577
 
9578
        * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9579
        (do_sfunc, set_cmd_sfunc): New functions.
9580
 
9581
        * command.h (struct cmd_list_element): Add field func.
9582
 
9583
        * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9584
        * cli/cli-decode.h: Ditto.
9585
 
9586
        * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9587
        (help_all, help_cmd_list): Ditto.
9588
        (find_cmd, complete_on_cmdlist): Ditto.
9589
        * top.c (execute_command): Ditto.
9590
 
9591
        * cli/cli-setshow.c (do_setshow_command): Call func instead of
9592
        function.sfunc.
9593
9594
        * infcmd.c (notice_args_read): Fix function signature.
9595
 
9596
        * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9597
        * cli/cli-decode.c (add_set_cmd): Ditto.
9598
 
9599
        * maint.c (_initialize_maint_cmds): Ditto.
9600
 
9601
        * demangle.c (_initialize_demangler): Ditto.
9602
        * remote.c (add_packet_config_cmd): Ditto.
9603
        * mips-tdep.c (_initialize_mips_tdep): Ditto.
9604
        * cris-tdep.c (_initialize_cris_tdep): Ditto.
9605
        * proc-api.c (_initialize_proc_api): Ditto.
9606
        * kod.c (_initialize_kod): Ditto.
9607
        * valprint.c (_initialize_valprint): Ditto.
9608
        * top.c (init_main): Ditto.
9609
        * infcmd.c (_initialize_infcmd): Ditto.
9610
        * corefile.c (_initialize_core): Ditto.
9611
        * arm-tdep.c (_initialize_arm_tdep): Ditto.
9612
        * arch-utils.c (initialize_current_architecture): Ditto.
9613
        (_initialize_gdbarch_utils): Ditto.
9614
        * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9615
9616
        * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9617
        * wince.c (_initialize_inftarg): Ditto.
9618
        * symfile.c (_initialize_symfile): Ditto.
9619
        * mips-tdep.c (_initialize_mips_tdep): Ditto.
9620
 
9621
        * arc-tdep.c (_initialize_arc_tdep): Ditto.
9622
9623
2002-02-04  Michael Snyder  
9624
9625
        * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9626
9627
 
9628
9629
 
9630
        Add rules for building the register data files.
9631
 
9632
2002-02-04  Daniel Jacobowitz  
9633
 
9634
        * regformats/regdat.sh: Add braces to the definition of
9635
        expedite_regs_${arch}.
9636
 
9637
2002-02-04  Daniel Jacobowitz  
9638
 
9639
        * regformats/regdef.h (struct reg): Add comment describing the
9640
        requirements for offset and size fields.
9641
 
9642
2002-02-04  Andreas Schwab  
9643
 
9644
        * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9645
        * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9646
 
9647
2002-02-04  Richard Earnshaw  
9648
 
9649
        * gdbarch.sh (copyright): Update years in generated header.
9650
        (SMASH_TEXT_ADDRESS): Add rule.
9651
 
9652
        * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9653
 
9654
        * dwarfread.c: Likewise.
9655
        * elfread.c: Likewise.
9656
        * somread.c: Likewise.
9657
9658
        * arm-tdep.c (arm_smash_text_address): New function.
9659
        * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9660
9661
2002-02-04  Pierre Muller  
9662
 
9663
        Add support for hardware watchpoints on win32 native.
9664
        * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9665
 
9666
        (dr variable): New variable. Static array containing a local copy
9667
 
9668
        (debug_registers_changed): New variable.  Reflects when debug registers
9669
        are changed and need to be written to inferior.
9670
        (debug_registers_used): New variable. Reflects when any debug register
9671
        was set, used when new threads are created.
9672
        (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9673
        i386-nat code.
9674
        (thread_rec): Set dr array if id is the thread of current_event .
9675
        (child_continue, child_resume): Change the debug registers for all
9676
        threads if debug_registers_changed.
9677
        (child_add_thread): Change the debug registers if debug_registers_used.
9678
        * config/i386/cygwin.mh: Add use of i386-nat.o file.
9679
        Link nm.h to new nm-cygwin.h file.
9680
        + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9681
        of hardware registers.
9682
9683
2002-02-03  Andrew Cagney  
9684
9685
        * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9686
        Restore behavour broken by 2002-01-20 Andrew Cagney
9687
 
9688
9689
 
9690
9691
        * c-valprint.c (c_val_print): Pass a proper valaddr to
9692
        cp_print_class_method.
9693
 
9694
        and args is NULL, return that method.
9695
 
9696
2002-02-03  Daniel Jacobowitz  
9697
9698
        * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9699
        accessing tag_name directly.
9700
 
9701
2002-02-03  Daniel Jacobowitz  
9702
 
9703
        * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9704
        of accessing tag_name directly.
9705
 
9706
2002-02-03  Daniel Jacobowitz  
9707
 
9708
        PR gdb/280
9709
        * gdbtypes.c (replace_type): New function.
9710
 
9711
        * stabsread.c (read_type): Use replace_type.
9712
 
9713
2002-02-03  Richard Earnshaw  
9714
9715
        * Makefile.in (memattr.o): Add missing dependencies rule.
9716
9717
 
9718
9719
 
9720
        (break_at_finish_at_depth_command): Ditto.
9721
 
9722
        * hppa-tdep.c: Include completer.h.
9723
 
9724
        (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9725
9726
2002-02-01  Andrew Cagney  
9727
9728
        * utils.c (do_write): New function.
9729
        (error_stream): Rewrite combining the code from error_begin and
9730
 
9731
        (verror): Rewrite using error_stream.
9732
 
9733
9734
2002-02-01  Andrew Cagney  
9735
9736
        * utils.c (error_begin): Make static.
9737
        * defs.h (error_begin): Delete declaration.
9738
 
9739
        * linespec.c (cplusplus_error): Replace cplusplus_hint.
9740
 
9741
        cplusplus_hint and return_to_top_level.
9742
        * coffread.c (coff_symfile_read): Use error instead of error_begin
9743
 
9744
        * infrun.c (default_skip_permanent_breakpoint): Ditto.
9745
9746
2002-02-01  Andrew Cagney  
9747
9748
        * language.h (type_error, range_error): Make string parameter
9749
        constant.
9750
 
9751
        * dwarfread.c (warning_pre_print): Ditto.
9752
 
9753
        vwarning instead of warning_begin.
9754
9755
2002-02-01  Michael Snyder  
9756
9757
        * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9758
        (set_ignore_count): Move misplaced comment back where it belongs.
9759
 
9760
2002-02-01  Andrew Cagney  
9761
 
9762
        * command.h (NO_FUNCTION): Delete macro.
9763
        * cli/cli-decode.h (NO_FUNCTION): Ditto.
9764
 
9765
        * tracepoint.c (_initialize_tracepoint): Ditto.
9766
 
9767
        * cli/cli-cmds.c (init_cli_cmds): Ditto.
9768
9769
2002-02-01  Daniel Jacobowitz  
9770
9771
        * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9772
        Update ``this'' pointer when calling virtual functions.
9773
 
9774
2002-02-01  Michael Snyder  
9775
 
9776
        * breakpoint.c (create_temp_exception_breakpoint): Delete.
9777
        * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9778
 
9779
2002-02-01  Daniel Jacobowitz  
9780
 
9781
        * regformats/reg-arm.dat: New file.
9782
        * regformats/reg-i386.dat: New file.
9783
 
9784
        * regformats/reg-m68k.dat: New file.
9785
 
9786
        * regformats/reg-ppc.dat: New file.
9787
        * regformats/reg-sh.dat: New file.
9788
        * regformats/regdef.h: New file.
9789
        * regformats/regdat.sh: New file.
9790
9791
2002-02-01  Richard Earnshaw  
9792
9793
        * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9794
        (arm_frame_args_address, arm_frame_locals_address): New functions.
9795
 
9796
        * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9797
 
9798
        (FRMA_NUM_ARGS): Call arm_frame_num_args.
9799
9800
2002-01-31  Michael Snyder  
9801
9802
        * breakpoint.c (break_at_finish_command): Export.
9803
        (break_at_finish_at_depth_command): Export.
9804
 
9805
        (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9806
 
9807
        "tbreak" commands, which are HPPA specific.
9808
9809
        * printcmd.c (disassemble_command): Remove an ancient
9810
        artifact of an old merge.
9811
9812
        * symfile.h (enum overlay_debugging_state):
9813
 
9814
        * symfile.c (overlay_debugging): Use enums instead of literals.
9815
        (overlay_is_mapped, overlay_auto_command,
9816
 
9817
9818
        * breakpoint.c (insert_breakpoints, remove_breakpoint,
9819
        breakpoint_here_p, breakpoint_inserted_here_p,
9820
        breakpoint_thread_match, bpstat_stop_status,
9821
        describe_other_breakpoints, check_duplicates, clear_command):
9822
 
9823
9824
        * target.c (target_xfer_memory): Add spaces, coding standard.
9825
        (do_xfer_memory): Add missing line to trust-readonly
9826
        code: check bfd SEC_READONLY flag for section.
9827
9828
 
9829
9830
        * PROBLEMS: Fix typo, 5.1->5.1.1.
9831
9832
 
9833
9834
 
9835
        data symbols, since we search based on textlow and texthigh.
9836
 
9837
9838
 
9839
9840
        * defs.h (vwarning): Declare.
9841
        * utils.c (vwarning): New function.
9842
 
9843
        (warning_begin): Delete function.
9844
 
9845
        * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9846
        the warning message.
9847
        * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9848
        warning_begin.
9849
 
9850
2002-01-30  Michael Snyder  
9851
9852
        * NEWS: Mention "set trust-readonly-sections" command.
9853
        Mention generate-core-file command.
9854
 
9855
2002-01-15  Michael Snyder  
9856
 
9857
        * target.c: New command, "set trust-readonly-sections on".
9858
        (do_xfer_memory): Honor the suggestion to trust readonly sections
9859
 
9860
        (initialize_targets): Register command "set trust-readonly-sections".
9861
 
9862
2002-01-29  Andrew Cagney  
9863
9864
        * parse.c (target_map_name_to_register): Simplify, search regs and
9865
        pseudo-regs using a single loop.
9866
 
9867
2002-01-30  Andrew Cagney  
9868
 
9869
        * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9870
9871
 
9872
9873
 
9874
        * config/i386/i386v42mp.mh: Add i387-nat.o .
9875
 
9876
        (supply_fpregset): Use i387_supply_fsave.
9877
 
9878
9879
2002-01-30  Richard Earnshaw  
9880
9881
        * arm-tdep.c (arm_call_dummy_words): Define.
9882
        * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9883
 
9884
        (CALL_DUMMY_WORDS): Define.
9885
 
9886
        * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9887
        (arm_linux_call_dummy_words): Declare.
9888
9889
2002-01-30  Andreas Schwab  
9890
9891
        * m68klinux-nat.c: Fix last change to use regcache_collect
9892
        instead of referencing registers[] directly.
9893
 
9894
2002-01-29  Andrew Cagney  
9895
 
9896
        * parse.c (target_map_name_to_register): Delete code wrapped in
9897
        #ifdef REGISTER_NAME_ALIAS_HOOK.
9898
 
9899
2002-01-28  Michael Snyder  
9900
 
9901
        * regcache.c (legacy_read_register_gen): Need to be able to
9902
        read pseudo-register as well as real register.
9903
 
9904
9905
 
9906
9907
        * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9908
        * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9909
 
9910
        * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9911
 
9912
        * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9913
        * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9914
        * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9915
        * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9916
        * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9917
        * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9918
        * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9919
        * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9920
        * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9921
        * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9922
        * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9923
        * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9924
        * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9925
        * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9926
        * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9927
9928
2002-01-28  Andrew Cagney  
9929
9930
        * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9931
        (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9932
 
9933
        information from BFD.
9934
 
9935
        * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9936
9937
2002-01-28  Andrew Cagney  
9938
9939
        * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9940
        * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9941
 
9942
        * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9943
 
9944
        * infcmd.c (do_registers_info): Ditto.
9945
        * values.c (unpack_double): Ditto.  Add comment.
9946
 
9947
        * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9948
        already commented out.
9949
9950
2002-01-26  Andreas Schwab  
9951
 
9952
        * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9953
        * m68klinux-nat.c: Update ptrace interface for fetching/storing
9954
 
9955
9956
 
9957
9958
        GDB 5.1.1 released from 5.1 branch.
9959
        * NEWS: Add 5.1.1 news.
9960
 
9961
9962
 
9963
9964
        * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9965
        stabstring on initial malloc.  Reallocing will copy it for us,
9966
 
9967
9968
 
9969
9970
        * Makefile.in (hpread_h): Delete.
9971
        (HFILES_NO_SRCDIR): Remove hpread.h.
9972
 
9973
        (hpread.o): Update dependencies.
9974
 
9975
9976
        * hp-psymtab-read.c: Remove file.
9977
        * hp-symtab-read.c: Remove file.
9978
        * hpread.h: Remove file.
9979
9980
 
9981
        hp-symtab-read.c and hpread.h into this file, as it was prior to
9982
        January 1999.
9983
9984
 
9985
        config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9986
        config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9987
        Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9988
 
9989
2002-01-23  Elena Zannoni  
9990
9991
        * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9992
        fill_gregset): Call gdbarch_tdep() just once, assign result to
9993
 
9994
        times.
9995
 
9996
2002-01-24  Alexandre Oliva  
9997
9998
        * configure.host: Accept sparcv9 as alias for sparc64.
9999
        * configure.tgt: Likewise.
10000
 
10001
2002-01-22  Kevin Buettner  
10002
 
10003
        * solib-aix5.c (build_so_list_from_mapfile)
10004
        (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10005
 
10006
        * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10007
 
10008
10009
2002-01-22  Elena Zannoni  
10010
10011
        * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10012
        modified version of obsolete sh_fetch_pseudo_register.
10013
 
10014
        (sh4_register_read): New function.
10015
 
10016
        version of obsolete sh_store_pseudo_register.
10017
        (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10018
        (sh4_register_write): New function.
10019
        (sh_gdbarch_init): Remove setting of gdbarch function
10020
        fetch_pseudo_register and store_pseudo_register. Remove setting of
10021
        register_convert_to_raw, register_convert_to_virtual,
10022
        register_convertible.
10023
        (sh_sh4_register_convertible): Delete. No longer needed. All is
10024
        taken care by architecture specific functions
10025
        register_read/register_write.
10026
        (sh_sh4_register_convert_to_virtual): Make static.
10027
        (sh_sh4_register_convert_to_raw): Ditto.
10028
10029
2002-01-22  Andrew Cagney  
10030
10031
        * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10032
        (floatformat_is_nan, floatformat_mantissa): Ditto.
10033
 
10034
        * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10035
 
10036
        builtin_type_ieee_double_little,
10037
        builtin_type_ieee_double_littlebyte_bigword,
10038
 
10039
        builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10040
        builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10041
        builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10042
        builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10043
10044
2002-01-22  Corinna Vinschen  
10045
10046
        * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10047
        parameter.  Set frameless flag if it exists and depended of
10048
 
10049
        (xstormy16_skip_prologue): If function is frameless, return
10050
 
10051
        (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10052
        call.
10053
10054
2002-01-21  Elena Zannoni  
10055
10056
        * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10057
        sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10058
 
10059
        sh_sh4_register_byte, sh_sh4_register_raw_size,
10060
 
10061
        sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10062
        sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10063
        sh_store_pseudo_register, sh_do_pseudo_register): Call
10064
        gdbarch_tdep() just once, assign result to variable and use that,
10065
        instead of calling the function several times.
10066
10067
2002-01-20  Mark Kettenis  
10068
10069
        * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10070
        macros instead of LAST_FPU_CTRL_REGNUM.
10071
 
10072
10073
 
10074
10075
        * infcmd.c (run_command): Check that the `exec' target layer's BFD
10076
        is up-to-date before running the program, not just when a program
10077
 
10078
10079
 
10080
10081
        * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10082
        when we have found all instructions we are looking for.
10083
 
10084
2002-01-21  Richard Earnshaw  
10085
 
10086
        * arm-tdep.c (arm_register_name): New function.
10087
        (arm_registers_names): Make static.
10088
 
10089
        (arm_register_name): Declare.
10090
 
10091
10092
2002-01-21  Richard Earnshaw  
10093
            Kevin Buettner  
10094
10095
        Convert arm targets to new FRAME interface.
10096
 
10097
        (arm_frame_find_save_regs): Delete.
10098
        (arm_frame_init_saved_regs): New.
10099
 
10100
        Allocate extra_info as required.  Convert all uses of fsr.regs
10101
        to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10102
        to use extra_info.
10103
        (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10104
        (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10105
        (check_prologue_cache, save_prologue_cache): Likewise.
10106
        (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10107
        * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10108
        (FRAME_FIND_SAVED_REGS): Delete.
10109
        (arm_frame_find_saved_regs): Delete prototype.
10110
        (arm_frame_init_saved_regs): New prototype.
10111
        (FRAME_INIT_SAVED_REGS): Define.
10112
10113
2002-01-20  Andrew Cagney  
10114
10115
        * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10116
10117
 
10118
10119
 
10120
        * infttrace.c: Include .
10121
 
10122
        exec file if the ttrace equivalent fails.
10123
 
10124
2002-01-20  Andrew Cagney  
10125
10126
        * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10127
        (closeLogFile): Ditto.
10128
 
10129
2002-01-20  Michael Chastain  
10130
 
10131
        * top.c (print_gdb_version): Bump copyright year to 2002.
10132
10133
 
10134
10135
 
10136
        Zannoni and Eli Zaretskii.
10137
 
10138
2002-01-20  Daniel Jacobowitz  
10139
 
10140
        * buildsym.c: Update copyright years.
10141
        * c-typeprint.c: Likewise.
10142
 
10143
        * f-typeprint.c: Likewise.
10144
 
10145
        * gdbtypes.h: Likewise.
10146
        * hp-symtab-read.c: Likewise.
10147
        * hpread.c: Likewise.
10148
        * mdebugread.c: Likewise.
10149
        * p-typeprint.c: Likewise.
10150
10151
2002-01-20  Andrew Cagney  
10152
10153
        * remote-sim.c (gdbsim_open): Simplify code testing the macro
10154
        TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
10155
 
10156
        * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10157
 
10158
        (set_endian): Ditto.
10159
        (set_endian_from_file): Ditto.
10160
        * gdbserver/low-sim.c (create_inferior): Ditto.
10161
        * gdbarch.sh: Ditto.
10162
        * gdbarch.h: Re-generate.
10163
        * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10164
        * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10165
        * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10166
        * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10167
        * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10168
        * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10169
        * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10170
        * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10171
        macro definition.
10172
        * config/mips/tm-wince.h: Remove #undef of macro
10173
        TARGET_BYTE_ORDER_SELECTABLE.
10174
        * config/sh/tm-wince.h: Ditto.
10175
10176
2002-01-20  Daniel Jacobowitz  
10177
10178
        * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10179
        member function fields.  Add accessor macro
10180
 
10181
        * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10182
 
10183
        functions.
10184
10185
2002-01-20  Daniel Jacobowitz  
10186
10187
        * f-typeprint.c: Delete unused function f_type_print_args.
10188
        * p-typeprint.c: Delete unused function pascal_type_print_args.
10189
 
10190
2002-01-20  Daniel Jacobowitz  
10191
 
10192
        * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
10193
        comment.  Add ``artificial'' to ``union field_location''.
10194
 
10195
        * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10196
 
10197
        * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10198
        * mdebugread.c (parse_symbol): Likewise.
10199
 
10200
        * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10201
 
10202
        (hpread_doc_function_type): Likewise.
10203
        * hpread.c (hpread_function_type): Likewise.
10204
10205
2002-01-20  Andrew Cagney  
10206
10207
        * configure.in (host_makefile_frag): Only require a host makefile
10208
        fragment when a native build.
10209
 
10210
10211
 
10212
10213
        * doublest.h (floatformat_from_type): Declare.
10214
        * doublest.c (floatformat_from_type): New function.
10215
 
10216
10217
 
10218
        call to function floatformat_from_type.
10219
10220
        * gdbarch.sh (IEEE_FLOAT): Delete.
10221
 
10222
        * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10223
        * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10224
 
10225
        * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10226
        * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10227
        * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10228
        * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10229
        * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10230
        * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10231
        * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10232
        * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10233
        * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10234
10235
        * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10236
        * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10237
        * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10238
        * sh-tdep.c (sh_gdbarch_init): Ditto.
10239
 
10240
        * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10241
        * cris-tdep.c (cris_gdbarch_init): Ditto.
10242
10243
2002-01-20  Jiri Smid  
10244
10245
        * configure.host, configure.tgt: Support x86-64.
10246
        * NEWS: Note new target x86-64.
10247
 
10248
        * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10249
 
10250
        * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10251
        * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10252
 
10253
10254
2002-01-19  Andrew Cagney  
10255
10256
        * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10257
        * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10258
 
10259
        * config/sparc/xm-sun4os4.h: Delete file.
10260
 
10261
10262
2002-01-19  Andrew Cagney  
10263
10264
        * config/sparc/sparclynx.mh (XM_FILE): Delete.
10265
        * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10266
 
10267
        * config/i386/i386lynx.mh (XM_FILE): Delete.
10268
 
10269
        * config/sparc/xm-sparclynx.h: Delete file.
10270
        * config/m68k/xm-m68klynx.h: Delete file.
10271
        * config/i386/xm-i386lynx.h: Delete file.
10272
        * config/xm-lynx.h: Delete file.
10273
        * config/djgpp/fnchange.lst: Update.
10274
10275
2002-01-19  Jason Thorpe  
10276
10277
        * alpha-tdep.c (alpha_register_byte): New function.
10278
        (alpha_register_raw_size): Ditto.
10279
 
10280
        (alpha_skip_prologue_internal): Renamed from
10281
 
10282
        (alpha_skip_prologue): New version that calls
10283
        alpha_skip_prologue_internal.
10284
        (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10285
        * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10286
        second argument from alpha_skip_prologue.
10287
        (REGISTER_BYTE): Use alpha_register_byte.
10288
        (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10289
        (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10290
        (FRAMELESS_FUNCTION_INVOCATION): Use
10291
        generic_frameless_function_invocation_not.
10292
        (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10293
        (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10294
10295
2002-01-19  Andrew Cagney  
10296
10297
        * config/mips/xm-news-mips.h: Delete file.
10298
        * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10299
 
10300
        * config/m88k/xm-m88k.h: Delete file.
10301
 
10302
        * config/m88k/xm-delta88v4.h: Ditto.
10303
        * config/m88k/xm-delta88.h: Ditto.
10304
 
10305
        * config/alpha/xm-fbsd.h: Delete file.
10306
        * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10307
10308
        * config/sparc/xm-sparc.h: Delete file.
10309
 
10310
        * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10311
        * config/sparc/xm-sun4os4.h: Ditto.
10312
 
10313
10314
        * config/i386/xm-windows.h: Delete file.
10315
10316
2002-01-19  Andrew Cagney  
10317
10318
 
10319
        (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10320
 
10321
2002-01-19  Jason Thorpe  
10322
 
10323
        * alpha-tdep.c (alpha_call_dummy_words): New.
10324
        * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10325
 
10326
        (CALL_DUMMY_WORDS): Define.
10327
 
10328
10329
2002-01-19  Per Bothner  
10330
10331
        * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
10332
        isn't NULL, which can happen with some gcj-3.x-produced code.
10333
 
10334
2002-01-19  Jason Thorpe  
10335
 
10336
        * alpha-tdep.c (alpha_register_virtual_type): New function.
10337
        (alpha_init_frame_pc_first): Ditto.
10338
 
10339
        (alpha_store_struct_return): Ditto.
10340
 
10341
        * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10342
        alpha_register_virtual_type.
10343
        (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10344
        (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10345
        alpha_extract_struct_value_address.
10346
        (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10347
        (INIT_FRAME_PC): Use init_frame_pc_noop.
10348
        (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10349
10350
2002-01-19  Mark Kettenis  
10351
10352
        * i386gnu-nat.c: Include "i386-tdep.h".
10353
        (fetch_fpregs): Simplify code dealing with uninitialized floating
10354
 
10355
10356
 
10357
10358
        * alpha-tdep.c (frame_extra_info): New.
10359
        (alpha_find_saved_regs): Make static.  Use
10360
 
10361
        (alpha_frame_init_saved_regs): New function.
10362
 
10363
        (temp_saved_regs): Don't declare as struct frame_saved_regs.
10364
        (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10365
        (init_extra_frame_info): Rename to...
10366
        (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
10367
        (alpha_print_extra_frame_info): New function.
10368
        (alpha_frame_locals_address): Ditto.
10369
        (alpha_frame_args_address): Ditto.
10370
        (alpha_pop_frame): Use frame->extra_info.
10371
        * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10372
        alpha_frame_args_address.
10373
        (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10374
        (alpha_find_saved_regs): Remove prototype.
10375
        (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10376
        (EXTRA_FRAME_INFO): Remove.
10377
        (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10378
        (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10379
10380
2002-01-18  Jason Thorpe  
10381
10382
        * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10383
        (alpha_cannot_fetch_register): Ditto.
10384
 
10385
        (alpha_register_convertible): Ditto.
10386
 
10387
        * config/alpha/tm-alpha.h: Update copyright years.
10388
        (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10389
        (INNER_THAN): Use core_addr_lessthan.
10390
        (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10391
        (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10392
        (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10393
        (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10394
        (FRAME_CHAIN): Remove unnecessary cast.
10395
10396
2002-01-18  Andrew Cagney  
10397
10398
        * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10399
        obsolete.
10400
 
10401
2002-01-18  Andrew Cagney  
10402
 
10403
        * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
10404
        * monitor.c, remote-array.c, remote-bug.c: Ditto.
10405
 
10406
        * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10407
 
10408
        * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10409
        * x86-64-linux-nat.c: Ditto.
10410
10411
2002-01-18  Jason Thorpe  
10412
10413
        * alpha-tdep.c (alpha_register_name): New function.
10414
        * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10415
 
10416
10417
 
10418
10419
        * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10420
10421
 
10422
10423
 
10424
        (alpha_next_pc): New function.
10425
 
10426
        * config/alpha/tm-alpha.h: Add prototype for
10427
 
10428
10429
2002-01-18  Jason Thorpe  
10430
10431
        * alphabsd-nat.c: Update copyright years.
10432
        (fill_gregset): Use regcache_collect.
10433
 
10434
        (fetch_inferior_registers): Only fetch integer registers
10435
 
10436
        (store_inferior_registers): Only store integer registers
10437
        if requested to do so.
10438
10439
2002-01-17  Andrew Cagney  
10440
10441
        * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10442
        * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10443
 
10444
        * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10445
 
10446
        * config/arm/linux.mh (XDEPFILES): Delete.
10447
        * config/arm/nbsd.mh (XDEPFILES): Delete.
10448
        * config/i386/i386dgux.mh (XDEPFILES): Delete.
10449
        * config/i386/i386sol2.mh (XDEPFILES): Delete.
10450
        * config/i386/i386m3.mh (XDEPFILES): Delete.
10451
        (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10452
        * config/i386/i386gnu.mh (XDEPFILES): Delete.
10453
        * config/i386/fbsd.mh (XDEPFILES): Delete.
10454
        * config/i386/i386bsd.mh (XDEPFILES): Delete.
10455
        * config/i386/i386sco5.mh (XDEPFILES): Delete.
10456
        * config/i386/i386v4.mh (XDEPFILES): Delete.
10457
        * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10458
        * config/i386/i386sco4.mh (XDEPFILES): Delete.
10459
        * config/i386/i386aix.mh (XDEPFILES): Delete.
10460
        * config/i386/go32.mh (XDEPFILES): Delete.
10461
        * config/i386/cygwin.mh (XDEPFILES): Delete.
10462
        * config/i386/i386lynx.mh (XDEPFILES): Delete.
10463
        * config/i386/i386mach.mh (XDEPFILES): Delete.
10464
        * config/i386/i386v32.mh (XDEPFILES): Delete.
10465
        * config/i386/linux.mh (XDEPFILES): Delete.
10466
        * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10467
        * config/i386/ncr3000.mh (XDEPFILES): Delete.
10468
        * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10469
        * config/i386/i386sco.mh (XDEPFILES): Delete.
10470
        * config/i386/i386v.mh (XDEPFILES): Delete.
10471
        * config/i386/nbsd.mh (XDEPFILES): Delete.
10472
        * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10473
        * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10474
        * config/i386/symmetry.mh (XDEPFILES): Delete.
10475
        * config/i386/obsd.mh (XDEPFILES): Delete.
10476
        * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10477
        * config/ia64/linux.mh (XDEPFILES): Delete.
10478
        * config/ia64/aix.mh (XDEPFILES): Delete.
10479
        * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10480
        * config/m68k/dpx2.mh (XDEPFILES): Delete.
10481
        * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10482
        * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10483
        * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10484
        * config/m68k/linux.mh (XDEPFILES): Delete.
10485
        * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10486
        * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10487
        * config/m68k/nbsd.mh (XDEPFILES): Delete.
10488
        * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10489
        * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10490
        * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10491
        * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10492
        * config/m88k/delta88.mh (XDEPFILES): Delete.
10493
        * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10494
        * config/m88k/m88k.mh (XDEPFILES): Delete.
10495
        * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10496
        * config/mips/linux.mh (XDEPFILES): Delete.
10497
        * config/mips/irix6.mh (XDEPFILES): Delete.
10498
        * config/mips/irix5.mh (XDEPFILES): Delete.
10499
        * config/mips/irix4.mh (XDEPFILES): Delete.
10500
        * config/mips/irix3.mh (XDEPFILES): Delete.
10501
        * config/mips/decstation.mh (XDEPFILES): Delete.
10502
        * config/mips/mipsm3.mh (XDEPFILES): Delete.
10503
        (NATDEPFILES): Move core-aout.o to here.
10504
        * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10505
        * config/pa/hpux1020.mh (XDEPFILES): Delete.
10506
        * config/pa/hppabsd.mh (XDEPFILES): Delete.
10507
        * config/pa/hppahpux.mh (XDEPFILES): Delete.
10508
        * config/pa/hpux11w.mh (XDEPFILES): Delete.
10509
        * config/pa/hppaosf.mh (XDEPFILES): Delete.
10510
        * config/pa/hpux11.mh (XDEPFILES): Delete.
10511
        * config/powerpc/aix.mh (XDEPFILES): Delete.
10512
        * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10513
        * config/powerpc/linux.mh (XDEPFILES): Delete.
10514
        * config/romp/rtbsd.mh: Rename XDEPFILES.
10515
        * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10516
        * config/rs6000/aix4.mh (XDEPFILES): Delete.
10517
        * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10518
        * config/s390/s390.mh (XDEPFILES): Delete.
10519
        * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10520
        * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10521
        * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10522
        * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10523
        * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10524
        * config/sparc/nbsd.mh (XDEPFILES): Delete.
10525
        * config/sparc/linux.mh (XDEPFILES): Delete.
10526
        * config/vax/vaxult.mh (XDEPFILES): Delete.
10527
        * config/vax/vaxult2.mh (XDEPFILES): Delete.
10528
        * Makefile.in (DEPFILES): Remove XDEPFILES.
10529
10530
2002-01-17  Andrew Cagney  
10531
10532
        * utils.c (internal_verror): Fix comments, default is yes not no.
10533
        Update queries to match.  Default to quit and dump core.
10534
 
10535
2002-01-17  Andrew Cagney  
10536
 
10537
        * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
10538
        copyright.
10539
 
10540
        * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10541
 
10542
        * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10543
        * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10544
        * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10545
        * mi/mi-main.c:Ditto.
10546
10547
        * stack.c, symfile.c: Update copyright.
10548
10549
2002-01-17  Daniel Jacobowitz  
10550
10551
 
10552
        gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10553
 
10554
        gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10555
 
10556
2002-01-17  Daniel Jacobowitz  
10557
10558
        * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10559
        * gdbserver/low-lynx.c (myattach): Likewise.
10560
 
10561
        * gdbserver/low-sim.c (myattach): Likewise.
10562
 
10563
        * gdbserver/low-sun3.c (myattach): Likewise.
10564
10565
        * gdbserver/low-linux.c (myattach): New function.
10566
10567
        * gdbserver/server.c (attach_inferior): New function.
10568
        (main): Handle "--attach".
10569
 
10570
2002-01-16  Andrew Cagney  
10571
 
10572
        * MAINTAINERS (language support): Daniel Jacobwitz is C++
10573
        maintainer.
10574
 
10575
2002-01-15  Daniel Jacobowitz  
10576
 
10577
        * c-typeprint.c (is_type_conversion_operator): Add additional
10578
        check for non-conversion operators.
10579
 
10580
2002-01-15  Michael Snyder  
10581
 
10582
        * linux-proc.c: Add "info proc" command, a la procfs.c.
10583
        (read_mapping): New function, abstract and re-use code.
10584
 
10585
        (linux_info_proc_cmd): New function, implement "info proc".
10586
 
10587
10588
2002-01-15  Michael Snyder  
10589
10590
        * symfile.c (generic_load): Use bfd_map_over_sections method
10591
        instead of manipulating bfd structure members directly.
10592
 
10593
        used by generic_load.
10594
 
10595
        used by generic_load.
10596
10597
2002-01-15  Elena Zannoni  
10598
10599
        [Based on work by Jim Blandy]
10600
        * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10601
 
10602
        * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10603
 
10604
        (builtin_type_vec128): New builtin type for 128 bit vector
10605
        registers.
10606
        (build_gdbtypes): Initialize builtin_type_v16qi and
10607
        builtin_type_v8hi. Create the vec128 register builtin type
10608
        structure.
10609
        (build_builtin_type_vec128): New function.
10610
        (_initialize_gdbtypes): Register builtin_type_v16qi and
10611
        builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10612
        * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10613
        AltiVec register to new builtin type.
10614
10615
2001-01-15  Daniel Jacobowitz  
10616
10617
        * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10618
        to make_cv_type.
10619
 
10620
2002-01-14  Andrew Cagney  
10621
 
10622
        * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10623
        CLEAN_UP_REGISTER_VALUE.
10624
 
10625
10626
 
10627
10628
        * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10629
        a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10630
 
10631
10632
 
10633
10634
        * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10635
        until we can resolve portability issues.
10636
 
10637
        * gcore.c (gcore_command): Initialize note_sec to NULL.
10638
 
10639
2002-01-13  Andrew Cagney  
10640
10641
        * signals.c (target_signal_to_name): Rewrite.  Only use
10642
        signals[].name when in bounds and non-NULL.
10643
 
10644
2002-01-13  Andrew Cagney  
10645
 
10646
        From Petr Ledvina :
10647
        * signals.c (target_signal_to_name): Verify that SIG is within the
10648
 
10649
10650
 
10651
10652
        * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10653
10654
 
10655
10656
 
10657
        only if when print_frame_info_listing_hook is not defined.
10658
 
10659
2002-01-13  Keith Seitz  
10660
 
10661
        * varobj.c (varobj_set_value): Make sure that there were no
10662
        errors evaluating the object before attempting to set its
10663
 
10664
        value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10665
 
10666
        (create_child): Don't set the error flag if the child is
10667
        a CPLUS_FAKE_CHILD.
10668
        (value_of_child): If value_fetch_lazy fails, return NULL
10669
        so that callers will be notified that an error occurred.
10670
        (c_value_of_variable): Delay check of variable's validity
10671
        until later. We actually want all structs and unions to have
10672
        the value "{...}".
10673
        Do not return "???" for variables which could not be evaluated.
10674
        This error condition must be returned to the caller so that it
10675
        can get the error condition from gdb.
10676
        (cplus_name_of_child): Adjust index for vptr before figuring
10677
        out the name of the child.
10678
        (cplus_value_of_child): If a child's (real) parent is not valid,
10679
        don't even bother trying to give a value for it. Just return
10680
        an error. Change all instances in this function.
10681
        (cplus_type_of_child): If our parent is one of the "fake"
10682
        parents, we need to get at the type of the real parent, and
10683
        derive the child's true type using this information.
10684
10685
2002-01-13  Andrew Cagney  
10686
10687
        From 2002-01-09 John Marshall :
10688
        * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10689
 
10690
        suffered from linkrot.
10691
 
10692
2002-01-13  Andrew Cagney  
10693
10694
        From Jeff law:
10695
        * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10696
 
10697
10698
 
10699
10700
        * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10701
        white space which prevented compilation.  Reported by DSK
10702
 
10703
10704
 
10705
10706
        * symfile.c (build_section_addr_info_from_section_tab):
10707
        Use bfd access method instead of manipulating bfd directly.
10708
 
10709
        (simple_overlay_update_1): Ditto.
10710
 
10711
        (generic_load): Ditto.
10712
        (overlay_unmapped_address): FIXME comment, bfd access methods.
10713
        (sections_overlap): FIXME comment, bfd access methods.
10714
        (pc_in_mapped_range): FIXME comment, bfd access methods.
10715
        (pc_in_unmapped_range): FIXME comment, bfd access methods.
10716
        (section_is_mapped): FIXME comment, bfd access methods.
10717
        (section_is_overlay): FIXME comment, bfd access methods.
10718
10719
        * symfile.c (generic_load): Whitespace and long line cleanups.
10720
        Remove duplicate variable, change several local variables to
10721
        more appropriate data types.
10722
        (print_transfer_performance): Use %lu instead of %ld for ulongs.
10723
 
10724
2002-01-12  Andrew Cagney  
10725
10726
        From Peter Schauer:
10727
        * language.c (longest_local_hex_string_custom): Use phex_nz to
10728
 
10729
10730
 
10731
10732
        * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10733
        the function.
10734
 
10735
10736
 
10737
10738
        * language.c (longest_raw_hex_string): Delete unused function.
10739
10740
 
10741
10742
 
10743
        * dwarf2read.c (read_tag_string_type): Handling of
10744
 
10745
        (read_tag_string_type): FORTRAN fix to prevent propagation of
10746
 
10747
        (set_cu_language): Handling of DW_LANG_Fortran95
10748
10749
2002-01-11  Richard Earnshaw  
10750
10751
        * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10752
        GETPID(inferior_ptid).
10753
 
10754
10755
 
10756
10757
        * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10758
        Fix DW_OP_minus.
10759
 
10760
2002-01-10  Andrew Cagney  
10761
 
10762
        * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10763
        and bfd/elf32-sh-nbsd.c.
10764
 
10765
2002-01-10  Michael Snyder  
10766
 
10767
        * NEWS: Mention --pid and corefile/proc-id behavior change.
10768
10769
 
10770
        * gcore.c: Include cli/cli-decode.h instead of command.h.
10771
 
10772
        * main.c (captured_main): Add new command line option "--pid".
10773
 
10774
        begins with a digit, try to attach to it before trying to open
10775
        it as a corefile.
10776
 
10777
10778
2002-01-10  Eli Zaretskii  
10779
10780
        * completer.c (command_completer): New function.
10781
10782
 
10783
10784
 
10785
        completer for the "help" command.
10786
 
10787
2002-01-09  Jason Merrill  
10788
 
10789
        * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10790
10791
 
10792
10793
 
10794
        (store_fpxregset): Ditto.
10795
 
10796
        * gregset.h (gdb_fpxregset_t): Define.
10797
 
10798
        (fill_fpxregset): Prototype.
10799
10800
 
10801
10802
2002-01-09  Richard Earnshaw  
10803
10804
 
10805
        * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10806
 
10807
10808
 
10809
10810
        * MAINTAINERS: Update target maintainer rules so that any
10811
        Maintainer can approve a tested patch for a maintenance-only
10812
 
10813
10814
 
10815
10816
        * MAINTAINERS (write-after-approval): Add myself.
10817
10818
 
10819
        IN_SIGTRAMP.
10820
 
10821
2002-01-08  Michael Snyder  
10822
 
10823
        * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10824
        real name of the executable, rather than the /proc name.
10825
 
10826
2002-01-03  Michael Snyder  
10827
 
10828
        Implement a "generate-core-file" command in gdb, save target state.
10829
        * gcore.c: New file.  Implement new command 'generate-core-file'.
10830
 
10831
        * linux-proc.c: Add linux-specific code for saving corefiles.
10832
 
10833
        corefiles; to_find_memory_regions and to_make_corefile_notes.
10834
        (target_find_memory_regions): New macro.
10835
        (target_make_corefile_notes): New macro.
10836
        * target.c (update_current_target): Inherit new target methods.
10837
        (dummy_find_memory_regions): New place-holder method.
10838
        (dummy_make_corefile_notes): New place-holder method.
10839
        (init_dummy_target): Initialize new dummy target vectors.
10840
        * exec.c (exec_set_find_memory_regions): New function.
10841
        Allow the exec_ops vector for memory regions to be taken over.
10842
        (exec_make_note_section): New function, target vector method.
10843
        * defs.h (exec_set_find_memory_regions): Export prototype.
10844
        * procfs.c (proc_find_memory_regions): New function, corefile method.
10845
        (procfs_make_note_section): New function, corefile method.
10846
        (init_procfs_ops): Set new target vector pointers.
10847
        (find_memory_regions_callback): New function.
10848
        (procfs_do_thread_registers): New function.
10849
        (procfs_corefile_thread_callback): New function.
10850
        * sol-thread.c (sol_find_memory_regions): New function.
10851
        (sol_make_note_section): New function.
10852
        (init_sol_thread_ops): Initialize new target vectors.
10853
        * inftarg.c (inftarg_set_find_memory_regions): New function.
10854
        Allow to_find_memory_regions vector to be taken over.
10855
        (inftarg_set_make_corefile_notes): New function.
10856
        Allow to_make_corefile_notes vector to be taken over.
10857
        * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10858
        interface layer if not target_has_execution (may be a corefile).
10859
        * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10860
        * config/sparc/sun4sol2.mh: Ditto.
10861
        * config/alpha/alpha-linux.mh: Ditto.
10862
        * config/arm/linux.mh: Ditto.
10863
        * config/i386/x86-64linux.mh: Ditto.
10864
        * config/ia64/linux.mh: Ditto.
10865
        * config/m68k/linux.mh: Ditto.
10866
        * config/mips/linux.mh: Ditto.
10867
        * config/powerpc/linux.mh: Ditto.
10868
        * config/sparc/linux.mh: Ditto.
10869
10870
2002-01-07  Michael Snyder  
10871
10872
        * arm-linux-nat.c: Remove references to regcache.c internal data
10873
        (registers[] and register_valid[]).
10874
 
10875
2002-01-07  Michael Snyder  
10876
 
10877
        * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10878
        so that attaching to a pid will automatically read the process's
10879
 
10880
        * Makefile.in: Add rule for linux-proc.o.
10881
 
10882
        * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10883
        * config/arm/linux.mh: Ditto.
10884
        * config/i386/linux.mh: Ditto.
10885
        * config/i386/x86-64linux.mh: Ditto.
10886
        * config/ia64/linux.mh: Ditto.
10887
        * config/m68k/linux.mh: Ditto.
10888
        * config/mips/linux.mh: Ditto.
10889
        * config/powerpc/linux.mh: Ditto.
10890
        * config/sparc/linux.mh: Ditto.
10891
10892
2002-01-06  Pierre Muller  
10893
10894
        * win32-nat.c: Add i386-tdep.h dependency.
10895
10896
 
10897
10898
 
10899
        instead of bfd_get_arch_size.  Don't bail out just because
10900
 
10901
10902
 
10903
        * p-valprint.c (pascal_object_print_value): Ditto.
10904
        * somread.c (som_symtab_read): Ditto.
10905
        * symfile.c (simple_free_overlay_region_table): Ditto.
10906
 
10907
10908
        * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10909
        use tilde_expand and strerror for opening save-tracepoints file.
10910
10911
        * thread-db.c (thread_db_new_objfile): Indendation fix.
10912
 
10913
        * infptrace.c (GDB_MAX_ALLOCA): New define.
10914
        (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10915
 
10916
        can be overridden with whatever value is appropriate to the host).
10917
 
10918
        alloca to allocate potentially large buffer.
10919
        * rs6000-nat.c (child_xfer_memory): Ditto.
10920
        * symm-nat.c (child_xfer_memory): Ditto.
10921
        * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10922
10923
2002-01-07  Jackie Smith Cashion  
10924
10925
        From Nick Clifton  
10926
        * d10v-tdep.c: Set STACK_START to 0x200bffe.
10927
 
10928
2002-01-07  Michael Snyder  
10929
 
10930
        * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10931
        Don't use exec_bfd if it's NULL.
10932
 
10933
2002-01-06  Mark Kettenis  
10934
 
10935
        * valops.c (value_arg_coerce): Fix formatting.
10936
10937
 
10938
10939
 
10940
        * gnu-nat.c: Ditto.
10941
 
10942
2002-01-06  Andrew Cagney  
10943
 
10944
        * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10945
        arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10946
 
10947
        ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10948
 
10949
        status.
10950
10951
2002-01-06  Andrew Cagney  
10952
10953
        * MAINTAINERS: Mark a29k target as obsolete.
10954
        * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10955
 
10956
        comments.
10957
 
10958
        * a29k-tdep.c: Mark as obsolete.
10959
        * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10960
        a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10961
        a29k-*-vxworks* targets as obsolete.
10962
        * remote-adapt.c: Obsolete.
10963
        * remote-eb.c: Obsolete.
10964
        * remote-mm.c: Obsolete.
10965
        * remote-udi.c: Obsolete.
10966
        * config/a29k/a29k-udi.mt: Obsolete.
10967
        * config/a29k/a29k.mt: Obsolete.
10968
        * config/a29k/tm-a29k.h: Obsolete.
10969
        * config/a29k/tm-vx29k.h: Obsolete.
10970
        * config/a29k/vx29k.mt: Obsolete.
10971
10972
2002-01-05  Andrew Cagney  
10973
10974
        * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10975
        with BFD_ENDIAN_BIG.
10976
 
10977
2002-01-05  Andrew Cagney  
10978
 
10979
        * configure.in (AC_CHECK_HEADERS): Do not check for .
10980
        * configure, config.in: Re-generate.
10981
 
10982
        * defs.h: Do not include .
10983
 
10984
2002-01-05  Jason Thorpe  
10985
10986
        * acconfig.h (HAVE_PT_GETXMMREGS): New.
10987
        * config.in: Regenerate.
10988
 
10989
        Add test for PT_GETXMMREGS supplied by .
10990
 
10991
        * i386bsd-nat.c: Update copyright years.
10992
        (fill_gregset): Use regcache_collect.
10993
        (fetch_inferior_registers): Only fetch integer registers
10994
        if requested to do so.  Add support for XMM registers
10995
        using PT_GETXMMREGS.
10996
        (store_inferior_registers): Only store integer registers
10997
        if requested to do so.  Add support for XMM registers
10998
        using PT_SETXMMREGS.
10999
        * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11000
        (store_inferior_registers): Remove.
11001
        (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11002
        (fetch_elfcore_registers): New function.
11003
        (i386nbsd_elfcore_fns): New.
11004
        (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11005
        * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11006
        i386bsd-nat.o.
11007
        * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11008
        * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11009
        * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11010
        * config/i386/tm-nbsd.h: Update copyright years.
11011
        (HAVE_SSE_REGS): Define.
11012
        (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11013
        (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11014
        (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11015
        (SIGCONTEXT_PC_OFFSET): Remove.
11016
        (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11017
11018
2002-01-05  Andrew Cagney  
11019
11020
        * configure.tgt: Remove powerpc-*-macos* target.
11021
        * config/m68k/xm-mpw.h: Delete file.
11022
 
11023
        * ser-mac.c: Delete file.
11024
 
11025
        * mpw-config.in: Delete file.
11026
        * mac-xdep.c: Delete file.
11027
        * mac-gdb.r: Delete file.
11028
        * mac-defs.h: Delete file.
11029
        * mac-nat.c: Delete file.
11030
        * config/powerpc/macos.mh: Delete file.
11031
        * config/powerpc/macos.mt: Delete file.
11032
        * config/powerpc/nm-macos.h: Delete file.
11033
        * config/powerpc/tm-macos.h: Delete file.
11034
        * source.c (openp, open_source_file): Remove obsolete code.
11035
        * top.c (gdb_readline): Ditto.
11036
        * utils.c (query): Ditto.
11037
        * event-top.c (display_gdb_prompt): Ditto.
11038
        * Makefile.in (ser-mac.o): Delete obsolete target.
11039
        * NEWS: Update.
11040
11041
2002-01-04  Andrew Cagney  
11042
11043
        * defs.h (BIG_ENDIAN): Delete macro definition.
11044
        * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11045
 
11046
        findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11047
 
11048
        remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11049
        stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11050
        config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11051
        config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11052
        config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11053
        config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11054
        config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11055
        config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11056
        mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11057
        * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11058
        * gdbarch.c: Re-generate.
11059
11060
2002-01-04  Daniel Jacobowitz  
11061
11062
        * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11063
        for core files.
11064
 
11065
2002-01-04  Jason Thorpe  
11066
 
11067
        * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11068
11069
 
11070
11071
 
11072
11073
 
11074
11075
 
11076
        Include i386-tdep.h.
11077
 
11078
2002-01-04  Elena Zannoni  
11079
 
11080
        * stabsread.c: Update copyright years.
11081
11082
 
11083
        (read_struct_fields): Deal with Sun C compiler erroneous stab
11084
 
11085
        Fix PR gdb/269.
11086
 
11087
2002-01-04  Daniel Jacobowitz  
11088
11089
        * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11090
        prototype.
11091
 
11092
2002-01-04  Daniel Jacobowitz  
11093
 
11094
        * cp-abi.c: Fix whitespace.
11095
        (baseclass_offset): New wrapper function.
11096
 
11097
        (struct cp_abi_ops): Add baseclass_offset pointer.
11098
 
11099
        * valops.c (vb_match): Move to...
11100
        * gnu-v2-abi.c (vb_match): here.
11101
        * valops.c (baseclass_offset): Move to...
11102
        * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11103
 
11104
        * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11105
11106
        * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11107
        * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11108
 
11109
11110
 
11111
11112
        * valops.c (find_overload_match): Accept obj as a
11113
        reference parameter.  Update it before returning.
11114
 
11115
        * eval.c (evaluate_subexp_standard): Pass object to
11116
 
11117
11118
2002-01-03  Andrew Cagney  
11119
11120
        * valarith.c: Replace value_ptr with struct value pointer.  Remove
11121
        register attribute from value declarations.
11122
 
11123
        * value.h: Ditto.
11124
 
11125
11126
2002-01-03  Michael Snyder  
11127
11128
        Abstract the functionality of iterating over mapped memory
11129
        regions into a general purpose iterator function.
11130
 
11131
        iterator for memory sections.
11132
 
11133
        (solib_mappings_callback): New function, callback for above.
11134
        (info_proc_mappings): Reimpliment using iterate_over_mappings.
11135
        (info_mappings_callback): New function, callback for above.
11136
11137
        * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11138
11139
2002-01-01  Mark Kettenis  
11140
11141
 
11142
        * i386-tdep.c: Include "elf-bfd.h".
11143
 
11144
        (i386_gdbarch_init): Add code to recognize various OS/ABI
11145
 
11146
11147
        * maint.c (_initialize_maint_cmds): Add missing \ in
11148
        string-literal.
11149
11150
For older changes see ChangeLog-2001
11151
 
11152
Local Variables:
11153
mode: change-log
11154
 
11155
fill-column: 74
11156
 
11157
End:
11158

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.