2002-09-16 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-16 David Carlton <carlton@math.stanford.edu>
2
3 * cp-valprint.c (cp_print_class_method): Correct args to
4 check_stub_method_group.
5
6 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
7
8 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
9 `set architecture'. Unify naming convention of functions.
10 (h8300_skip_prologue): Improve prologue analysis.
11 (h8300_push_arguments): Rewritten to more closely match GCC's
12 bizarre argument-passing behavior, along with the comment describing
13 said behavior.
14 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
15 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
16 sim, remote-e7000.c, remote-hms.c and remote.c
17
18 2002-09-15 Mark Kettenis <kettenis@gnu.org>
19
20 * i386-tdep.c (gdb_print_insn_i386): Removed.
21 (i386_print_insn): New function.
22 (i386_gdbarch_init): Set print_insn to i386_print_insns.
23 (_initialize_i386_tdep): Don't initialize tm_print_insn and
24 tm_print_insn_info.
25
26 2002-09-14 Mark Kettenis <kettenis@gnu.org>
27
28 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
29 zero.
30
31 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
32
33 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
34 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
35 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
36
37 2002-09-13 Christopher Faylor <cgf@redhat.com>
38
39 * win32-nat.c (child_create_inferior): Honor 'tty' command.
40
41 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
42
43 * gdbtypes.c (check_stub_method): Make static.
44 (check_stub_method_group): New function.
45 * gdbtypes.h: Update prototypes.
46 * cp-support.c: New file.
47 * cp-support.h: New file.
48
49 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
50 (update_method_name_from_physname): New function.
51 (read_member_functions): Correct method names for operators
52 and v3 constructors/destructors. Separate v2 constructors and
53 destructors.
54 * Makefile.in (stabsread.o): Update dependencies.
55 (SFILES): Add cp-support.c.
56 (COMMON_OBS): Add cp-support.o.
57 (cp_support_h, cp-support.o): Add.
58
59 * cp-valprint.c (cp_print_class_method): Call
60 check_stub_method_group instead of check_stub_method. Remove
61 extraneous QUITs.
62 * p-valprint.c (pascal_object_print_class_method): Likewise.
63 * valops.c (search_struct_method): Likewise.
64 (find_method_list, value_struct_elt_for_reference): Likewise.
65
66 2002-09-13 Andrew Cagney <cagney@redhat.com>
67
68 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
69 * gdbarch.h, gdbarch.c: Regenerate.
70
71 2002-09-13 Andrew Cagney <ac131313@redhat.com>
72
73 * frame.c (find_saved_register): Delete function.
74 * frame.h (find_saved_register): Delete declaration.
75 Fix PR gdb/631.
76
77 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
78
79 * mips-tdep.c (read_next_frame_reg): Re-hack using
80 frame_register_unwind.
81
82 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
83
84 * mips-tdep.c (mips_get_saved_register): Re-hack using
85 frame_register_unwind.
86
87 2002-09-12 Joel Brobecker <brobecker@gnat.com>
88
89 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
90 vector. Will be useful for Interix.
91 * gdbarch.h, gdbarch.c: Regenerate.
92
93 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
94 name of the malloc function by NAME_OF_MALLOC.
95
96 2002-09-12 Joel Brobecker <brobecker@gnat.com>
97
98 * value.h (find_function_in_inferior): Add const keyword to
99 one of the parameters. Allows us to invoke this function with
100 a const char *.
101 * valops.c (find_function_in_inferior): Likewise.
102
103 2002-09-12 Joel Brobecker <brobecker@gnat.com>
104
105 * exec.c (xfer_memory): Fix compilation warning with old versions
106 of GCC.
107 * tracepoint.c (trace_find_tracepoint_command): Likewise.
108
109 2002-09-12 David Carlton <carlton@math.stanford.edu>
110
111 * symtab.h: Run through gdb_indent.h.
112 Add 2002 to Copyright year list.
113
114 2002-09-12 Alan Modra <amodra@bigpond.net.au>
115
116 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
117 mach constants.
118 * MAINTAINERS: Add myself to write after approval list.
119
120 2002-09-11 J. Brobecker <brobecker@gnat.com>
121
122 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
123
124 2002-09-11 J. Brobecker <brobecker@gnat.com>
125
126 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
127 Interix.
128
129 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
130
131 * procfs.c (do_detach): Clear current signal, not just fault.
132 Corrects problem with breakpoint trap signal leaking to detached
133 process on Tru64.
134
135 2002-09-10 Michael Snyder <msnyder@redhat.com>
136
137 * buildsym.c (finish_block): Protect against null pointer.
138
139 2002-09-10 Andrew Cagney <cagney@redhat.com>
140
141 * infcmd.c (default_print_registers_info): Send all output to
142 ``file'' instead of ``gdb_stdout''.
143
144 2002-09-10 Michael Snyder <msnyder@redhat.com>
145
146 * mips-tdep.c (mips_extract_struct_value_address): Make val a
147 LONGEST, and use signed register read (addresses are sign-
148 extended for mips).
149
150 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
151
152 * event-loop.c (gdb_do_one_event): Make public.
153 * event-loop.h (gdb_do_one_event): Declare.
154
155 2002-09-10 Jeff Law <law@redhat.com>
156
157 * infttrace.c (child_resume): Simplify and rework to avoid
158 TT_PROC_CONTINUE.
159
160 2002-09-09 Fred Fish <fnf@intrinsity.com>
161
162 * printcmd.c (print_scalar_formatted): "len" is the number of
163 target bytes, NOT the number of target bits.
164
165 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
166
167 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
168 * top.c (init_main): Set rl_terminal_name.
169
170 2002-09-08 Aidan Skinner <aidan@velvet.net>
171
172 * ada-lang.c (ada_array_bound, ada_type_match,
173 _initialize_ada_language): Fix K&R definitions.
174 * ada-tasks.c (get_current_task): Fix K&R definitions.
175 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
176
177 2002-09-07 Christopher Faylor <cgf@redhat.com>
178
179 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
180 Add XP.
181
182 2002-09-06 Mark Kettenis <kettenis@gnu.org>
183
184 * i386-tdep.c (i386_register_virtual_type,
185 i386_register_convertible, i386_register_convert_to_virtual,
186 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
187 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
188 (i386_gdbarch_init): Fix comment. Add comments on calls that set
189 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
190 Don't set push_arguments twice.
191
192 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
193 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
194 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
195 sigtramp_end to NULL.
196 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
197 defines.
198 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
199
200 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
201 whitespace.
202
203 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
204 * gdbarch.h, gdbarch.c: Re-generate.
205 * blockframe.c (find_pc_sect_partial_function): Convert to use
206 SIGTRAMP_START_P predicate.
207
208 2002-09-05 Michael Snyder <msnyder@redhat.com>
209
210 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
211 generic_dummy_frame method and old method. Also distinguish
212 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
213 (arm_extract_return_value): Use new regcache method.
214
215 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
216 adjustment that doesn't conform to the ABI.
217 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
218 saved regcache, not from current regcache.
219
220 2002-09-05 Andrew Cagney <ac131313@redhat.com>
221
222 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
223 * README: Update.
224
225 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
226
227 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
228 if arm_apcs_32 is false.
229
230 2002-09-04 Andrew Cagney <ac131313@redhat.com>
231
232 GDB 5.3 branch created.
233
234 2002-09-03 Theodore A. Roth <troth@verinet.com>
235
236 * gdb/avr-tdep.c (avr_gdbarch_init): Use
237 generic_unwind_get_saved_register.
238
239 2002-09-03 David Carlton <carlton@math.stanford.edu>
240
241 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
242 argument (PR gdb/653). Update call to smash_to_method_type.
243 (read_structure_scope): Update call to dwarf2_add_member_fn.
244
245 2002-09-03 Michal Ludvig <mludvig@suse.cz>
246
247 * x86-64-linux-tdep.c: Include gdb_string.h
248 * x86-64-linux-nat.c: Ditto.
249
250 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
251
252 * ada-exp.y (yyname, yyrule): Remap global variables that appear
253 when YYDEBUG is set to 1.
254 * c-exp.y: Likewise.
255 * f-exp.y: Likewise.
256 * jv-exp.y: Likewise.
257 * m2-exp.y: Likewise.
258 * p-exp.y: Likewise.
259
260 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
261
262 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
263 dependency list.
264 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
265 solib_svr4_fetch_link_map_offsets to
266 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
267 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
268 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
269 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
270 solib-svr4.o, and solib-legacy.o.
271 * config/i386/tm-nbsd.h: Include solib.h.
272
273 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
274
275 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
276 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
277 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
278 comment noting that this needs its own target configuration.
279 * config/i386/nbsd.mt: New file.
280 * config/i386/nbsdaout.mt: Remove.
281 * config/i386/nbsdelf.mt: Ditto.
282 * config/i386/tm-nbsdaout.h: Ditto.
283
284 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
285
286 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
287 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
288 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
289 tdep->sigtramp_end.
290 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
291 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
292 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
293
294 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
295
296 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
297 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
298 * i386-tdep.h (i386bsd_init_abi): New prototype.
299 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
300 function declaration.
301 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
302 for NetBSD-a.out or NetBSD-ELF.
303 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
304 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
305 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
306 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
307 and nbsd-tdep.h.
308 (i386nbsd_pc_in_sigtramp): New function.
309 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
310 i386nbsd_pc_in_sigtramp.
311 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
312 and i386nbsdelf_init_abi OS ABI handlers.
313 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
314 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
315
316 2002-09-02 Mark Kettenis <kettenis@gnu.org>
317
318 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
319 registers if the target really has them.
320
321 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
322
323 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
324 than nbsd-tdep.h.
325
326 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
327
328 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
329 list.
330 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
331 (alphanbsd_skip_sigtramp_frame): New functions.
332 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
333 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
334 to alphanbsd_sigcontext_addr.
335
336 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
337
338 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
339 list.
340 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
341 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
342 nbsd_pc_in_sigtramp.
343 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
344 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
345 * nbsd-tdep.c: Include gdb_string.h.
346 (nbsd_pc_in_sigtramp): New function.
347 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
348 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
349 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
350 ppcnbsd_pc_in_sigtramp.
351 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
352 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
353 shnbsd_pc_in_sigtramp.
354 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
355 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
356 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
357
358 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
359
360 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
361 watchpoints to NULL.
362 (insert_breakpoints): set val field of watchpoints if NULL.
363
364
365 2002-08-29 Jim Blandy <jimb@redhat.com>
366
367 * symtab.c (lookup_symbol_aux): In the cases where we find a
368 minimal symbol of an appropriate name and use its address to
369 select a symtab to read and search, use `name' (as passed to us)
370 as the demangled name when searching the symtab's global and
371 static blocks, not the minsym's name.
372
373 2002-08-29 Keith Seitz <keiths@redhat.com>
374
375 * stack.c (print_frame_info_base): Always set current_source_symtab
376 and current_source_line.
377
378 2002-08-29 Donn Terry <donnte@microsoft.com>
379
380 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
381
382 2002-08-28 Keith Seitz <keiths@redhat.com>
383
384 * stack.c (select_frame): Add FIXME concerning selected-frame
385 events.
386 (select_frame_command): Send selected-frame-level-changed
387 event notification, but only if the level actually changed.
388 (up_silently_base): Add selected-frame-level-changed event
389 notification.
390 (down_silently_base): Likewise.
391
392 2002-08-28 Andrew Cagney <ac131313@redhat.com>
393
394 * Makefile.in: Update dependencies for all gdb/*.c files.
395
396 2002-08-27 Tom Tromey <tromey@redhat.com>
397
398 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
399 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
400 Update dependencies.
401 * i387-tdep.c: Include gdb_string.h.
402 * osabi.c: Likewise.
403 * i386-linux-nat.c: Likewise.
404 * lin-lwp.c: Likewise.
405 * ax-gdb.c: Likewise.
406 * signals/signals.c: Likewise.
407 * jv-valprint.c: Likewise.
408 * p-lang.c: Likewise.
409 * c-valprint.c: Likewise.
410 * cp-abi.c: Likewise.
411
412 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
413
414 * cli/cli-script.h (copy_command_lines): Export.
415 * breakpoint.c: Include cli/cli-script.h.
416 * Makefile.in (breakpoint.o): Update dependencies.
417
418 2002-08-26 Michael Snyder <msnyder@redhat.com>
419
420 * breakpoint.c (insert_breakpoints): Protect all references
421 to 'process_warning'. Shorten long lines.
422
423 2002-08-26 Joel Brobecker <brobecker@gnat.com>
424
425 * cli/cli-script.c (copy_command_lines): New function.
426 * defs.h (copy_command_lines): Export.
427 * testsuite/gdb.base/commands.exp: New tests for commands
428 attached to a temporary breakpoint, and for commands that
429 delete the breakpoint they are attached to.
430
431 2002-08-26 Michael Snyder <msnyder@redhat.com>
432
433 * breakpoint.c (bpstat_stop_status): Instead of copying the
434 pointer to the breakpoint commands struct, make a new copy
435 of the struct and point to that.
436 (bpstat_clear): Free the commands struct.
437 (bpstat_clear_actions): Free the commands struct.
438 (bpstat_do_actions): Free the command actions. Also execute
439 the local cleanups, instead of deleting them.
440 (delete_breakpoint): Leave the commands field of the bpstat
441 chain alone -- it will be freed later.
442
443 2002-08-26 Kevin Buettner <kevinb@redhat.com>
444
445 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
446 deleted in 2002-08-20 commit. This function is still used by
447 ppc-linux-nat.c.
448
449 2002-08-26 Keith Seitz <keiths@redhat.com>
450
451 * gdb-events.sh: Add selected-frame-level-changed event.
452 * gdb-events.c: Regenerated.
453 * gdb-events.h: Regenerated.
454
455 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
456
457 Fix PR gdb/393:
458 * inflow.c (terminal_save_ours): New function to save terminal
459 settings.
460 * inferior.h (terminal_save_ours): Declare.
461 * target.c (debug_to_terminal_save_ours): New function.
462 (cleanup_target): Defaults to_terminal_save_ours.
463 (update_current_target): Inherit to_terminal_save_ours.
464 (setup_target_debug): Set to_terminal_save_ours.
465 * target.h (target_terminal_save_ours): New to save terminal settings.
466 (target_ops): New member to_terminal_save_ours.
467 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
468 * hpux-thread.c (init_hpux_thread_ops): Likewise.
469 * inftarg.c (init_child_ops): Likewise.
470 * m3-nat.c (init_m3_ops): Likewise.
471 * procfs.c (init_procfs_ops): Likewise.
472 * wince.c (init_child_ops): Likewise.
473 * win32-nat.c (init_child_ops): Likewise.
474 * sol-thread.c (init_sol_thread_ops): Likewise.
475
476 2002-08-26 Mark Kettenis <kettenis@gnu.org>
477
478 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
479 use regcache_* functions.
480 (i386_gdbarch_init): Set store_return_value instead of
481 deprecated_store_return_value.
482
483 * regcache.c (regcache_raw_write_signed,
484 regcache_raw_write_unsigned): New functions.
485 * regcache.h (regcache_raw_write_signed,
486 regcache_raw_write_unsigned): New prototypes.
487
488 2002-08-25 Andrew Cagney <ac131313@redhat.com>
489
490 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
491 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
492 source file dependencies. Cleanup corresponding generator rules.
493
494 2002-08-25 Andrew Cagney <ac131313@redhat.com>
495
496 * regcache.h (register_offset_hack): Declare.
497 (regcache_cooked_read_using_offset_hack): Declare.
498 (regcache_cooked_write_using_offset_hack): Declare.
499
500 * regcache.c (register_offset_hack): New function.
501 (regcache_cooked_read_using_offset_hack): New function.
502 (regcache_cooked_write_using_offset_hack): New function.
503 (regcache_dump): Check that the registers, according to their
504 offset, are packed hard against each other.
505 (cooked_xfer_using_offset_hack): New function.
506
507 2002-08-25 Andrew Cagney <ac131313@redhat.com>
508
509 * regcache.c (struct regcache_descr): Add field register_type.
510 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
511 in as a parameter
512 (init_regcache_descr): Initialize register_type. Pass the descr
513 to init_legacy_regcache_descr. Use register_type instead of
514 REGISTER_VIRTUAL_TYPE.
515 (register_type): New function.
516 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
517 * regcache.h (register_type): Declare.
518
519 2002-08-25 Andrew Cagney <ac131313@redhat.com>
520
521 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
522 instead of deprecated_store_return_value. Fix fallout from
523 2002-08-23 Andrew Cagney <cagney@redhat.com>.
524
525 2002-08-25 Andrew Cagney <ac131313@redhat.com>
526
527 * regcache.c (max_register_size): New function.
528 (init_legacy_regcache_descr): Ensure that max_register_size is
529 large enough for REGISTER_VIRTUAL_SIZE.
530 * regcache.h (max_register_size): Declare.
531
532 2002-08-24 Andrew Cagney <ac131313@redhat.com>
533
534 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
535 store_return_value.
536 (e500_extract_return_value): Change type of valbuf pointer to
537 void.
538
539 2002-08-24 Mark Kettenis <kettenis@gnu.org>
540
541 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
542 workaround.
543
544 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
545 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
546 long long) to prevent compiler warning on 64-bit systems.
547
548 2002-08-23 Andrew Cagney <cagney@redhat.com>
549
550 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
551 (DEPRECATED_STORE_RETURN_VALUE): New method.
552 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
553 * gdbarch.h, gdbarch.c: Re-generate.
554
555 * values.c (set_return_value): Pass current_regcache to
556 STORE_RETURN_VALUE.
557 * arch-utils.h (legacy_store_return_value): Declare.
558 * arch-utils.c (legacy_store_return_value): New function.
559 (legacy_extract_return_value): Update parameters.
560
561 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
562 STORE_RETURN_VALUE.
563 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
564 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
565 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
566 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
567 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
568 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
569 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
570 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
571 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
572 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
573
574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
575 * i386-tdep.c (i386_extract_return_value): Update.
576 * arch-utils.c (legacy_extract_return_value): Update.
577 * frv-tdep.c (frv_gdbarch_init): Update.
578 * cris-tdep.c (cris_gdbarch_init): Update.
579 * d10v-tdep.c (d10v_gdbarch_init): Update.
580 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
581 * m68k-tdep.c (m68k_gdbarch_init): Update.
582 * mcore-tdep.c (mcore_gdbarch_init): Update.
583 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
584 * s390-tdep.c (s390_gdbarch_init): Update.
585 * sparc-tdep.c (sparc_gdbarch_init): Update.
586 * sh-tdep.c (sh_gdbarch_init): Update.
587 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
588 * v850-tdep.c (v850_gdbarch_init): Update.
589 * avr-tdep.c (avr_gdbarch_init): Update.
590 * ia64-tdep.c (ia64_gdbarch_init): Update.
591 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
592 * vax-tdep.c (vax_gdbarch_init): Update.
593 * alpha-tdep.c (alpha_gdbarch_init): Update.
594 * arm-tdep.c (arm_gdbarch_init): Update.
595 * mips-tdep.c (mips_gdbarch_init): Update.
596 * i386-tdep.c (i386_gdbarch_init): Update.
597
598 2002-08-23 Andrew Cagney <ac131313@redhat.com>
599
600 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
601 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
602
603 2002-08-24 Mark Kettenis <kettenis@gnu.org>
604
605 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
606 problems.
607
608 2002-08-23 Joel Brobecker <brobecker@gnat.com>
609
610 * infrun.c (handle_inferior_event): Move a comment outside of a
611 function call, in order to avoid indent reformatting this part
612 of the code in an unreadable way.
613
614 2002-08-23 Grace Sainsbury <graces@redhat.com>
615
616 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
617 when breakpoints fail. Move general breakpoint error messages to
618 insert_breakpoints.
619 * breakpoint.c (insert_breakpoints): Change warnings when
620 breakpoints are nto inserted to specify the type. Remove call to
621 memory_error when hardware breakpoints can't be inserted. Remove
622 multiple calls to warning so all messages are sent to the user at
623 once.
624 (delete_breakpoints): Make insert error messsages more explicit.
625
626 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
627
628 * ChangeLog: Move gdbserver entries after GDB 5.2 to
629 gdbserver/ChangeLog.
630
631 2002-08-23 Mark Kettenis <kettenis@gnu.org>
632
633 * i386-tdep.c: Include "objfiles.h".
634 (i386_svr4_init_abi): Set in_solib_call_trampoline and
635 skip_trampoline_code.
636 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
637 (CPLUS_MARKER): Define to '.'.
638
639 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
640 member.
641 (linux_corefile_thread_callback): Increase args->num_notes.
642 (linux_make_note_section): Initialize thread_args.num_notes, and
643 use it to determine whether notes for any threads were created.
644
645 2002-08-23 Donn Terry <donnte@microsoft.com>
646
647 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
648 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
649 and PCUNKILL.
650 (write_with_trace): Conditionalize out the switch branch handling
651 PCSHOLD if the corresponding macro is not defined. Likewise for
652 PRSABORT and PRSTOP.
653 This change will be needed by the Interix port.
654
655 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
656
657 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
658 write_register wherever possible instead of manipulating the
659 register bytes directly.
660 Assign VALUE_CONTENTS to a variable and use that.
661 The GPR numbers are now dependent on the architecture.
662
663 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
664
665 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
666 ev_offset fields.
667 (skip_prologue): Add support for BookE/e500 instructions.
668 (e500_extract_return_value): New function.
669 (frame_get_saved_regs): Add support for saving ev registers and
670 pseudo gpr's.
671 (e500_store_return_value): New function.
672 (rs6000_gdbarch_init): Move up default intializations of
673 deprecated_extract_return_value and store_return_value. Overwrite
674 init of store_return_value with e500 specific version.
675 Set extract_return_value for e500.
676
677 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
678
679 * blockframe.c (generic_call_dummy_register_unwind): Use
680 regcache_cooked_read to catch cases in which the variable is
681 stored in a pseudo register.
682
683 2002-08-22 Andrew Cagney <cagney@redhat.com>
684
685 * NEWS: Mention that the i960 has been made obsolete.
686 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
687 i960-tdep.c
688 (remote-nrom.o): Obsolete target.
689 (remote-nindy.o, i960-tdep.o): Ditto.
690 * remote-nrom.c: Make file obsolete.
691 * remote-nindy.c, remote-vx960.c: Ditto.
692 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
693 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
694 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
695 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
696 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
697 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
698 i960-*-vxworks* obsolete.
699 * MAINTAINERS: Note that the i960 is obsolete.
700
701 2002-08-21 Corinna Vinschen <vinschen@redhat.com
702
703 * aix-thread.c (aix_thread_detach): Disable thread debugging on
704 detach to allow reinitialization.
705
706 2002-08-22 Andrew Cagney <ac131313@redhat.com>
707
708 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
709 attempt).
710
711 2002-08-22 Jim Blandy <jimb@redhat.com>
712
713 * coffread.c (coff_symfile_read): Don't try to read the line
714 number table from disk if the image file doesn't have a symbol
715 table; we'll never actually look at the info anyway, and Windows
716 ships DLL's with bogus file offsets for the line number data.
717
718 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
719
720 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
721 an e500 executable.
722
723 2002-08-21 Michael Snyder <msnyder@redhat.com>
724
725 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
726 (MSYMBOL_SIZE): Replace macro with function.
727 (DEFAULT_MIPS_TYPE): Delete unused macro.
728 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
729 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
730
731 2002-08-21 Jim Blandy <jimb@redhat.com>
732
733 * valops.c (value_cast): Simplify and correct logic for doing a
734 static cast from a pointer to a base class to a pointer to a
735 derived class.
736
737 2002-08-21 Andrew Cagney <ac131313@redhat.com>
738
739 * infcmd.c (default_print_registers_info): Replace
740 do_registers_info.
741 (registers_info): Use gdbarch_print_registers_info instead of
742 DO_REGISTERS_INFO.
743 * inferior.h (default_print_registers_info): Replace
744 do_registers_info.
745 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
746 (DO_REGISTERS_INFO): Change to a predicate function.
747 * gdbarch.h, gdbarch.c: Regenerate.
748
749 2002-08-21 Keith Seitz <keiths@redhat.com>
750
751 * gdb-events.sh: Add target-changed event.
752 * gdb-events.c: Regenerated.
753 * gdb-events.c: Regenerated.
754 * valops.c (value_assign): Add target-changed event notification
755 to inlval_register, lval_memory, and lval_reg_frame_relative.
756
757 2002-08-21 Joel Brobecker <brobecker@gnat.com>
758
759 * NEWS: Add an entry regarding the improvement of the next/step
760 operation on Alpha Tru64 multi-processor machines.
761
762 2002-08-21 Andrew Cagney <ac131313@redhat.com>
763
764 * Makefile.in: Update dependencies for mi/ cli/ and tui/
765 directores.
766 * Makefile.in: Update all _h macro definitions.
767 * Makefile.in (install-gdbtk): Move to install section.
768 (rdi-share/libangsd.a): Move to end of file.
769
770 2002-08-19 Andrew Cagney <ac131313@redhat.com>
771
772 * frame.c (frame_register_unwind): When a register, set addrp to
773 the register's byte.
774
775 2002-08-20 Michael Snyder <msnyder@redhat.com>
776
777 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
778 used locally, so move them from the target machine header to here.
779 (mips_set_processor_type, mips_register_name, mips32_next_pc,
780 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
781 Make static.
782 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
783
784 2002-08-20 Andrew Cagney <cagney@redhat.com>
785
786 * NEWS: Mention that the Apollo line was made obsolete.
787 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
788 m68*-hp-hpux* obsolete.
789 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
790 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
791 * buildsym.c (make_blockvector): Make static.
792 * buildsym.h (make_blockvector): Make extern declaration obsolete.
793 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
794 (ALLDEPFILES): Remove dstread.c.
795 (dstread.o): Obsolete make rule.
796 * dstread.c: Makefile obsolete.
797 * dst.h: Ditto.
798 * config/m68k/hp300hpux.mt: Ditto.
799 * config/m68k/hp300hpux.mh: Ditto.
800 * config/m68k/hp300bsd.mt: Ditto.
801 * config/m68k/hp300bsd.mh: Ditto.
802 * config/m68k/apollo68b.mt: Ditto.
803 * config/m68k/apollo68v.mh: Ditto.
804 * config/m68k/apollo68b.mh: Ditto.
805
806 2002-08-20 Michael Snyder <msnyder@redhat.com>
807
808 * mips-tdep.c (mips_in_return_stub): Make static.
809 (mips_gdbarch_init): Set in_solib_return_trampoline.
810 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
811
812 2002-08-20 Michael Snyder <msnyder@redhat.com>
813
814 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
815 * gdbarch.c, gdbarch.h: Regenerate.
816 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
817 Add.
818 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
819
820 2002-08-20 Michael Snyder <msnyder@redhat.com>
821
822 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
823 (mips_gdbarch_init): Set skip_trampoline_code,
824 in_solib_call_trampoline.
825 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
826 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
827
828 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
829
830 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
831
832 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
833 vector type for ev registers.
834 (e500_pseudo_register_read): New function.
835 (e500_pseudo_register_write): New function.
836 (e500_dwarf2_reg_to_regnum): New function.
837 (PPC_UISA_NOFP_SPRS): New macro.
838 (PPC_EV_REGS): New macro.
839 (PPC_GPRS_PSEUDO_REGS): New macro.
840 (registers_e500): New register set for e500.
841 (variants): Add e500 variant.
842 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
843 before setting architectural dependent variations. Initialize ev
844 registers numbers. Add case for e500 architecture. Set the
845 number of pseudo registers.
846
847 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
848
849 * rs6000-tdep.c: Clean up comments.
850
851 2002-08-20 Andrew Cagney <cagney@redhat.com>
852
853 * h8300-tdep.c: Re-indent file.
854
855 2002-08-20 Jim Blandy <jimb@redhat.com>
856
857 * Makefile.in (LDFLAGS): Allow the configure script to establish a
858 default for this.
859
860 2002-08-20 Keith Seitz <keiths@redhat.com>
861
862 * breakpoints.c (watch_command_1): Use internal breakpoint
863 when setting a watchpoint_scope breakpoint.
864
865 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
866
867 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
868 (build_builtin_type_vec64i): Ditto.
869 (build_builtin_type_vec128): Ditto.
870 (build_builtin_type_vec128i): Ditto.
871
872 2002-08-19 Michael Snyder <msnyder@redhat.com>
873
874 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
875 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
876 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
877 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
878 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
879 CALL_DUMMY_ADDRESS): Delete.
880 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
881 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
882 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
883 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
884 push_return_address.
885 (mips_register_raw_size, mips_eabi_use_struct_convention,
886 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
887 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
888 mips_init_extra_frame_info, mips_eabi_push_arguments,
889 mips_n32n64_push_arguments, mips_push_return_address,
890 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
891 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
892
893 2002-08-19 Michael Snyder <msnyder@redhat.com>
894
895 * mips-tdep.c (mips_frame_num_args): New function.
896 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
897 frame_saved_pc, frame_args_address, frame_locals_address,
898 frame_num_args, and frame_args_skip.
899 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
900 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
901 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
902 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
903
904 2002-08-20 Michael Snyder <msnyder@redhat.com>
905
906 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
907 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
908 * mips-tdep.c (mips_store_struct_return): New function.
909 (mips_extract_struct_value_address): New function.
910 (mips_gdbarch_init): Set store_struct_return and
911 extract_struct_value_address.
912
913 2002-08-20 David Carlton <carlton@math.stanford.edu>
914
915 * dwarf2read.c (dwarf2_build_psymtabs): Check that
916 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
917 (read_file_scope): Check that line_header is nonzero before
918 decoding macro information.
919
920 2002-08-20 Mark Kettenis <kettenis@gnu.org>
921
922 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
923 flag the general-purpose registers as floating-point on targets
924 that don't support the floating-point registers.
925
926 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
927
928 * rs6000-tdep.c (altivec_register_p): Delete.
929 (rs6000_do_altivec_registers): Delete.
930 (rs6000_altivec_registers_info): Delete.
931 (rs6000_do_registers_info): Delete.
932 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
933 (rs6000_gdbarch_init): Remove setting of do_registers_info.
934
935 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
936
937 * infcmd.c (do_registers_info): Print vector registers in hex
938 format only.
939 (print_vector_info): Check that printing registers
940 makes sense.
941 (print_float_info): Ditto.
942
943 2002-08-20 Andrew Cagney <ac131313@redhat.com>
944
945 * mips-tdep.c (mips_gdbarch_init): Update.
946 (mips_o32_extract_return_value): Rewrite.
947 (mips_o32_store_return_value): Rewrite.
948 (mips_o32_xfer_return_value): New function.
949 (mips_xfer_register): Tweak debug print message. Allow for
950 buf_offset when dumping the value transfered.
951
952 2002-08-20 Andrew Cagney <ac131313@redhat.com>
953
954 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
955 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
956 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
957 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
958 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
959
960 2002-08-14 Michael Snyder <msnyder@redhat.com>
961
962 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
963
964 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
965
966 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
967 register.
968 (P): New macro to define a register as a pseudo register.
969 (R, R4, R8, R16, FR32, R64, R0): Updated.
970 (struct variant): Add new fields for number of pseudo registers
971 and number of total registers.
972 (tot_num_registers): New macro replacing....
973 (num_registers): ...deleted macro.
974 (num_registers): New function.
975 (num_pseudo_registers): New function.
976 (variants): Update all variants to intialize new fields correctly.
977 Postpone initialization of number of pseudo regs and real regs.
978 (init_variants): New function.
979 (rs6000_gdbarch_init): Initialize variants. Update calculation of
980 registers offsets.
981
982 2002-08-19 David Carlton <carlton@math.stanford.edu>
983
984 * valops.c (search_struct_field): Change error message to treat
985 return value of 0 from value_static_field as meaning that field is
986 optimized out.
987 (value_struct_elt_for_reference): Ditto.
988 * values.c (value_static_field): Treat an unresolved location the
989 same as a nonexistent symbol. Fix PR gdb/635.
990 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
991 enclosed. Fix PR gdb/574.
992 * MAINTAINERS: Add self to Write After Approval list.
993
994 2002-08-19 Andrew Cagney <ac131313@redhat.com>
995
996 * mips-tdep.c (mips_xfer_register): New function.
997 (mips_n32n64_extract_return_value): Rewrite.
998 (mips_gdbarch_init): For N32 and N64, set extract_return_value
999 instead of deprecated_extract_return_value.
1000
1001 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1002
1003 * rs6000-tdep.c (TDEP): Delete macro.
1004 (branch_dest): Replace use of TDEP macro with its body.
1005 (rs6000_pop_frame): Ditto.
1006 (rs6000_push_arguments): Ditto.
1007 (rs6000_skip_trampoline_code): Ditto.
1008 (rs6000_frame_saved_pc): Ditto.
1009 (rs6000_frame_chain): Ditto.
1010 (rs6000_register_name): Ditto.
1011 (rs6000_register_byte): Ditto.
1012 (rs6000_register_raw_size): Ditto.
1013 (rs6000_register_virtual_type): Ditto.
1014 (rs6000_register_convertible): Ditto.
1015 (rs6000_convert_from_func_ptr_addr): Ditto.
1016
1017 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1018
1019 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1020 conditionally.
1021 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1022 MIPS_LINUX_JB_ELEMENT_SIZE.
1023 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1024 for MAX_REGISTER_RAW_SIZE arrays.
1025 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1026 MIPS_LINUX_JB_ELEMENT_SIZE.
1027
1028 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1029
1030 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1031
1032 2002-08-19 Aidan Skinner <aidan@velvet.net>
1033
1034 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1035 ada-valprint.c ada-tasks.c.
1036 (YYFILES): Add ada-exp.y.
1037 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1038 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1039 (ada-exp.tab.o): New target.
1040
1041 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1042
1043 * regcache.c (regcache_xfer_part): New function.
1044 (regcache_raw_read_part): New function.
1045 (regcache_raw_write_part): New function.
1046 (regcache_cooked_read_part): New function.
1047 (regcache_cooked_write_part): New function.
1048 * regcache.h (regcache_raw_read_part): Declare.
1049 (regcache_raw_write_part): Declare.
1050 (regcache_cooked_read_part): Declare.
1051 (regcache_cooked_write_part): Declare.
1052
1053 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1054
1055 * remote.c (remote_open_1): Add async_p.
1056 (remote_async_open_1): Delete.
1057 (open_remote_target): Delete.
1058 (remote_open, extended_remote_open): Update calls to remote_open_1.
1059 (remote_async_open, extended_remote_async_open): Call
1060 remote_open_1 instead of remote_async_open_1.
1061
1062 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1063
1064 * blockframe.c: Fix a few coding standard violations.
1065
1066 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1067
1068 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1069 here from ...
1070 * config/i386/tm-i386sco5.h: ... here. File removed.
1071 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1072
1073 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1074 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1075 (TM_FILE): Set to tm-i386.h.
1076 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1077 * config/i386/tm-i386v.h: Remove file.
1078 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1079 instead of "i386/tm-i386v.h".
1080 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1081 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1082 "i386/tm-i386v.h".
1083 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1084 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1085 "i386/tm-i386.h".
1086
1087 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1088
1089 * config/i386/nm-i386v.h: Add protection against
1090 multiple-inclusion.
1091 (i386_register_u_addr): Remove prototype.
1092 (register_u_addr): New prototype.
1093 (REGISTER_U_ADDR): Redefine accordingly.
1094 * i386v-nat.c: Improve several comments.
1095 (i386_register_u_addr): Change signature and rename to
1096 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1097 ubase variable.
1098
1099 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1100
1101 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1102 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1103 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1104 deprecated_extract_return_value.
1105 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1106 rename mips_o32o64_push_arguments.
1107 (mips_gdbarch_init): Update.
1108 (mips_extract_return_value): Delete.
1109 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1110 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1111 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1112 (mips_n32n64_extract_return_value): Clone
1113 mips_extract_return_value.
1114 (mips_store_return_value): Delete.
1115 (mips_o32_store_return_value): Clone mips_store_return_value.
1116 (mips_o64_store_return_value): Clone mips_store_return_value.
1117 (mips_eabi_store_return_value): Clone mips_store_return_value.
1118 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1119
1120 2002-08-18 Aidan Skinner <aidan@velvet.net>
1121
1122 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1123 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1124
1125 2002-08-18 Aidan Skinner <aidan@velvet.net>
1126
1127 * ada-lang.c: Run through gdb_indent.sh.
1128 * ada-lang.h: Run through gdb_indent.sh.
1129 * ada-tasks.c: Run through gdb_indent.sh.
1130 * ada-typeprint.c: Run through gdb_indent.sh.
1131 * ada-valprint.c: Run through gdb_indent.sh.
1132
1133 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1134
1135 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1136 ABI.
1137
1138 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1139
1140 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1141
1142 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1143 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1144
1145 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1146 write_register_gen instead of write_register_bytes.
1147
1148 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1149 i[3456]-*-osf1mk* configurations have been made obsolete.
1150 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1151 i[3456]86-*-osf1mk* hosts obsolete.
1152 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1153 targets obsolete.
1154 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1155 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1156 config/i386/i386m3.mt, config/i386/nm-m3.h,
1157 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1158 config/i386/i386mk.mh, config/i386/i386mk.mt,
1159 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1160 obsolete.
1161 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1162 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1163 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1164
1165 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1166
1167 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1168 (hppa_value_returned_from_stack): Declare.
1169 (hppa_extract_return_value): Declare.
1170 * config/pa/hppa.mt: New file.
1171 * configure.tgt: Recognize hppa*-*-*.
1172 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1173
1174 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1175
1176 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1177 comment.
1178
1179 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1180
1181 * top.c (gdb_rl_operate_and_get_next): Make sure
1182 operate-and-get-next functions correctly even when the history
1183 list is completely filled.
1184
1185 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1186
1187 * MAINTAINERS (Target Instruction Set Architectures): Rename
1188 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1189 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1190 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1191 already listed under Host/Native.
1192
1193 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1194 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1195 mips*-*-*.
1196
1197 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1198
1199 * config/ia64/ia64.mt: New file.
1200 * config/alpha/alpha.mt: New file.
1201 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1202 ia64-linux-gnu. Mention that ia64-elf is broken.
1203 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1204
1205 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1206
1207 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1208 generic_func_frame_valid instead of func_frame_valid.
1209
1210 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1211
1212 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1213 procfs appears to be broken when debugging on multi-processor
1214 machines. So enable software single stepping in order to avoid
1215 using the procfs interface to do next/step operations, using
1216 internal breakpoints instead.
1217
1218 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1219 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1220 make this pc address equal to the value it would have if the
1221 system stepping capability was used. Also set a new flag used
1222 to ensure that we don't readjust the PC one more time later.
1223
1224 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1225 address by DECR_PC_AFTER_BREAK when software single step is
1226 in use for this architecture, as this has already been taken
1227 care of in handle_inferior_event().
1228
1229 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1230
1231 * infrun.c (handle_inferior_event): Minor reformatting, to make
1232 a rather long condition expression easier to read.
1233
1234 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1235
1236 * Makefile.in (gdbtk.o): Move to end of file.
1237 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1238 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1239 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1240 (gdbtk-wrapper.o, gdbres.o): Ditto.
1241
1242 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1243
1244 * Makefile.in (copying.o): Separate out compile rule.
1245 (hpux-thread.o, procfs.o, signals.o): Ditto.
1246 (v850ice.o, z8k-tdep.o): Ditto.
1247 (tui-file.o): Move to TUI section.
1248 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1249 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1250
1251 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1252
1253 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1254 skip_trampoline_code, for better namespace-proofing.
1255
1256 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1257
1258 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1259
1260 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1261
1262 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1263
1264 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1265 signal, check whether we hit a breakpoint before checking for a
1266 single step breakpoint. Otherwise, GDB fails to notice that a
1267 breakpoint has been hit when stepping onto a breakpoint.
1268
1269 2002-08-16 Keith Seitz <keiths@redhat.com>
1270
1271 * gdb-events.sh (clear_gdb_event_hooks): New function.
1272 * gdb-events.c: Regenerate.
1273 * gdb-events.h: Regenerate.
1274
1275 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1276
1277 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1278 not_a_sw_breakpoint.
1279 * breakpoint.h (bpstat_stop_status): Add parameter names.
1280
1281 2002-08-16 Grace Sainsbury <graces@redhat.com>
1282
1283 * remote.c (remote_insert_hw_breakpoint)
1284 (remote_remove_hw_breakpoint): Fix calculation of length field
1285 for Z-packet.
1286
1287 2002-08-15 Michael Snyder <msnyder@redhat.com>
1288
1289 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1290 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1291 (supply_fpregset): Ditto.
1292
1293 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1294 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1295 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1296 (TARGET_READ_SP): Delete.
1297 (DO_REGISTERS_INFO): Delete.
1298 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1299 Delete.
1300 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1301 from macros to functions.
1302
1303 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1304 (mips_register_convertible, mips_register_convert_to_virtual,
1305 mips_register_convert_to_raw): Make static.
1306 (mips_read_sp): New function.
1307 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1308 (mips_do_registers_info): Make static.
1309 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1310 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1311 (mips_register_convert_from_type, mips_register_convert_to_type):
1312 New functions.
1313 (mips_gdbarch_init): Set up function_start_offset,
1314 register_virtual_size, pc_in_sigtramp.
1315
1316 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1317
1318 * infcmd.c (vector_info): New function.
1319 (_initialize_infcmd): Add command "info vector".
1320 (print_vector_info): New function.
1321
1322 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1323 * gdbarch.h, gdbarch.c: Regenerate.
1324
1325 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1326
1327 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1328 ``print_all''. Only print vector registers when ``print_all''.
1329
1330 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1331
1332 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1333 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1334
1335 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1336 Add `args' parameter.
1337 * gdbarch.h, gdbarch.c: Regenerate.
1338
1339 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1340
1341 * infcmd.c (float_info): Call print_float_info.
1342 (print_float_info): New function. By default, print the
1343 floating-point registers.
1344
1345 * arch-utils.h (default_print_float_info): Delete declaration.
1346 * arch-utils.c (default_print_float_info): Delete function.
1347
1348 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1349
1350 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1351 out define.
1352
1353 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1354 FRAME.
1355
1356 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1357 * configure.host: Make i[3456]86-*-aix host obsolete.
1358 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1359 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1360 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1361 config/i386/xm-i386aix.h: Make files obsolete.
1362 * i386aix-nat.c: Make file obsolete.
1363 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1364 (i386aix-nat.o): Make target obsolete.
1365
1366 * config/i386/nm-gnu.h: Removed.
1367 * config/i386/nm-i386gnu.h: New file.
1368 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1369 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1370 Moved here from ...
1371 * config/i386/tm-i386gnu.h: ... here. Removed.
1372 * config/i386/xm-i386gnu.h: Removed.
1373 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1374 (NAT_FILE): Set to nm-i386gnu.h.
1375 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1376 * i386-tdep.c: New file.
1377 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1378 (i386gnu-tdep.o): Specify dependencies.
1379
1380 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1381
1382 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1383 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1384 Adjust a few comments to reflect reality a bit closer.
1385 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1386 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1387 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1388 target_insert_watchpoint, target_remove_watchpoint):
1389 Move defines to ...
1390 * config/i386/nm-i386sco5.h: ... here.
1391 (kernel_u_size): Add prototype. Improve a few comments and add
1392 protection against multiple inclusion.
1393
1394 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1395 out define.
1396
1397 * uw-thread.c (SP_ARG0): Define if not already defined.
1398 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1399
1400 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1401
1402 * config/i386/tm-i386.h: Don't include "regcache.h".
1403
1404 * i387-tdep.h (i387_print_float_info): New prototype.
1405 * i387-tdep.c (print_i387_value, print_i387_ext,
1406 print_i387_status_word, print_i387_control_word): Add `struct
1407 ui_file *' argument and use it for output.
1408 (i387_print_float_info): Renamed from i387_float_info. Add
1409 `struct gdbarch *' and `struct ui_file *' arguments and use the
1410 latter for output.
1411 * i386-tdep.c: Include "i387-tdep.h".
1412 (i386_gdbarch_init): Set print_float_info.
1413 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1414 (FLOAT_INFO): Remove define.
1415
1416 2002-08-13 Michael Snyder <msnyder@redhat.com>
1417
1418 * mips-tdep.c (mips_push_arguments): Rename to
1419 mips_eabi_push_arguments, and tune for EABI.
1420 (MIPS_REGS_HAVE_HOME_P): Delete.
1421 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1422 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1423 Delete references to mips_regs_have_home_p.
1424
1425 2002-08-14 Keith Seitz <keiths@redhat.com>
1426
1427 * Makefile.in (install-gdbtk): Create insight plugin directory.
1428 Install plugins.tcl file.
1429
1430 2002-08-14 Keith Seitz <keiths@redhat.com>
1431
1432 * configure.in: Move SUBDIRS to near top of the file so that
1433 --enable options may add things to it.
1434 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1435 * configure: Regenerate.
1436
1437 2002-08-13 Michael Snyder <msnyder@redhat.com>
1438
1439 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1440 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1441 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1442
1443 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1444
1445 * vax-tdep.c (vax_get_saved_register): Delete function.
1446 (vax_gdbarch_init): Update.
1447 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1448 (ns32k_gdbarch_init): Update.
1449 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1450 (alpha_gdbarch_init): Update.
1451
1452 2002-08-13 Andrew Cagney <cagney@redhat.com>
1453
1454 * regcache.c (init_regcache_descr): Overallocate the
1455 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1456 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1457 nr_raw_registers.
1458 (set_register_cached): Add range checking assertions. Use
1459 current_regcache.
1460
1461 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1462
1463 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1464 numbers for MMX registers.
1465
1466 2002-08-13 Andrew Cagney <cagney@redhat.com>
1467
1468 * i386-tdep.c (i386_gdbarch_init): Use
1469 generic_unwind_get_saved_register.
1470
1471 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1472
1473 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1474 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1475 target vector.
1476 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1477 Delete. Add comment regarding this now-deleted target method.
1478
1479 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1480
1481 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1482 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1483 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1484 real PC and the page number (if it's within the memory bank window).
1485 (m68hc11_pseudo_register_write): Likewise when saving.
1486 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1487 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1488 (m68hc11_register_raw_size): And use 32-bit for it.
1489 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1490 16K memory bank is used by the prog; also use the virtual pc.
1491
1492 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1493
1494 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1495 (m68hc11_gdbarch_init): Install it in gdbarch.
1496 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1497 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1498 (MSYMBOL_SIZE): New for documentation.
1499 (insn_return_kind): Enum to specify how a function returns.
1500 (frame_extra_info): Cleanup and record the return mode.
1501 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1502 register in address computation.
1503 (m68hc11_get_return_insn): New to obtain the return instruction used
1504 by the function.
1505 (m68hc11_frame_init_saved_regs): Take into account the return
1506 instruction used by the function for far and interrupt functions.
1507 (m68hc11_init_extra_frame_info): Take into account page register.
1508 (m68hc11_frame_args_address): Adjust according to the return mode.
1509 (show_regs): Print page register only when it's used.
1510
1511 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1512
1513 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1514 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1515 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1516 registers.
1517 (m68hc11_register_raw_size): Likewise.
1518
1519 2002-08-13 Andrew Cagney <cagney@redhat.com>
1520
1521 * i386-tdep.c (i386_register_name): Handle mmx registers.
1522 (mmx_regnum_p): New function.
1523 (i386_mmx_names): New array.
1524 (mmx_num_regs): New variable.
1525 (i386_pseudo_register_read): New function.
1526 (i386_pseudo_register_write): New function.
1527 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1528
1529 * regcache.c (regcache_raw_read_unsigned): New function.
1530 (regcache_raw_read_signed): New function.
1531 * regcache.h (regcache_raw_read_unsigned): Declare.
1532 (regcache_raw_read_signed): Declare.
1533
1534 2002-08-13 Andrew Cagney <cagney@redhat.com>
1535
1536 * regcache.c (regcache_raw_read_as_address): Delete function.
1537 (regcache_cooked_read_signed): New function.
1538 (regcache_cooked_read_unsigned): New function.
1539 * regcache.h (regcache_cooked_read_signed): Declare.
1540 (regcache_cooked_read_unsigned): Declare.
1541 (regcache_raw_read_as_address): Delete declaration.
1542
1543 * blockframe.c (generic_read_register_dummy): Use
1544 regcache_cooked_read_unsigned.
1545 * i386-tdep.c (i386_extract_struct_value_address): Use
1546 regcache_cooked_read_unsigned.
1547
1548 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1549
1550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1551 double sizes according to ELF ABI flags.
1552 (gdbarch_tdep): Record elf_flags.
1553
1554 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1555
1556 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1557 (m6812_prolog): They can appear in 68HC12 function prologue.
1558 (m68hc11_frame_chain): Cleanup.
1559
1560 2002-08-12 Andrew Cagney <cagney@redhat.com>
1561
1562 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1563 declarations.
1564 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1565 (i386_linux_register_raw_size): Delete function.
1566 (i386_linux_init_abi): Update.
1567 * i386-tdep.c (i386_register_raw_size): Delete function.
1568 (i386_register_byte): Delete function.
1569 (i386_gdbarch_init): Update.
1570 (i386_register_size): Delete array.
1571 (i386_register_offset): Delete array.
1572
1573 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1574 (REGISTER_RAW_SIZE): Delete macro.
1575 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1576 (REGISTER_BYTE): Delete macro.
1577
1578 2002-08-11 Aidan Skinner <aidan@velvet.net>
1579
1580 * ada-lang.c (ada_lookup_partial_symbol)
1581 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1582 prototype names so that grep ^func works properly.
1583
1584 * ada-lang.c (ada_array_element_type)
1585 (ada_lookup_partial_symbol): Fix typos in parameter list.
1586
1587 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1588 Fix prototype names so that grep ^func works properly.
1589
1590 2002-08-10 Andrew Cagney <cagney@redhat.com>
1591 Elena Zannoni <ezannoni@redhat.com>
1592 Martin M. Hunt <hunt@redhat.com>
1593
1594 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1595 (build_builtin_type_vec128i): Set the vector bit.
1596 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1597 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1598 (build_builtin_type_vec64): New function.
1599 (build_builtin_type_vec64i): New function.
1600 (build_gdbtypes): Initialize builtin_type_vec64 and
1601 builtin_type_vec64i.
1602
1603 2002-08-09 Andrew Cagney <cagney@redhat.com>
1604
1605 * regcache.c (regcache_dump): Compare the register offset
1606 with REGISTER_BYTE.
1607 * arch-utils.c (generic_register_byte): New function.
1608 * arch-utils.h (generic_register_byte): Declare.
1609 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1610 * gdbarch.h, gdbarch.c: Regenerate.
1611
1612 2002-08-09 Andrew Cagney <cagney@redhat.com>
1613
1614 * regcache.c: Include "gdbcmd.h"
1615 (_initialize_regcache): Add commands "maintenance print
1616 registers", "maintenance print raw-registers" and "maintenance
1617 print cooked-registers".
1618 (enum regcache_dump_what): Define.
1619 (dump_endian_bytes): New function.
1620 (regcache_dump): New function.
1621 (regcache_print): New function.
1622 (maintenance_print_registers): New function.
1623 (maintenance_print_raw_registers): New function.
1624 (maintenance_print_cooked_registers): New function.
1625 * Makefile.in (regcache.o): Update dependencies.
1626
1627 2002-08-09 Michael Snyder <msnyder@redhat.com>
1628
1629 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1630 (mips_push_arguments): Correct some comments. Use paddr_nz
1631 for printing addresses in debug output. Replace static
1632 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1633 (mips_n32n64_push_arguments): New function, cloned from
1634 mips_push_arguments and tuned for the n32/n64 ABI.
1635 (mips_push_register): Buffer needs dynamic allocation.
1636 (mips_print_register): Ditto.
1637 (do_gp_register_row): Ditto.
1638 (mips_store_return_value): Ditto.
1639 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1640
1641 2002-08-09 Don Howard <dhoward@redhat.com>
1642
1643 * memattr.c (mem_info_command): Print special case of upper bound
1644 as max CORE_ADDR + 1.
1645
1646 2002-08-08 Michael Snyder <msnyder@redhat.com>
1647
1648 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1649 returns structs by ref if they're too big to fit in two registers.
1650
1651 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1652
1653 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1654 saved regs value.
1655 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1656 mips_find_saved_regs().
1657 (mips_pop_frame): Likewise.
1658
1659 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1660
1661 * blockframe.c (frame_saved_regs_register_unwind): Revise
1662 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1663 frames are in use.
1664
1665 2002-08-09 Grace Sainsbury <graces@redhat.com>
1666
1667 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1668 T-packets; the 'a' is not taken as a register number.
1669 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1670 (remote_stopped_data_address): New functions; add to target
1671 vector.
1672 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1673 prototypes to match other implementations of this
1674 function. replace integer argument with pointer -- the length
1675 field in the Z-packet is the length of what is pointed to or 1 if
1676 pointer is null. Add to target vector.
1677 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1678 target vector.
1679
1680 From Mark Salter:
1681 * remote.c (remote_wait): Add support to extract optional
1682 watchpoint information from T-packet. Ignore unrecognized
1683 optional info in T-packet.
1684 (remote_async_wait): Ditto.
1685
1686 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1687
1688 * cli/cli-dump.c: Change fopen modes to use binary open modes
1689 as defined in include/fopen-bin.h throughout.
1690
1691 2002-08-08 Michael Snyder <msnyder@redhat.com>
1692
1693 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1694
1695 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1696
1697 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1698 assertion failure by returning early after a warning.
1699
1700 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1701
1702 * mips-tdep.c (mips_find_saved_regs): Make static.
1703 (mips_frame_init_saved_regs): New function.
1704 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1705 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1706 (mips_find_saved_regs): Delete declaration.
1707
1708 2002-08-08 Grace Sainsbury <graces@redhat.com>
1709
1710 * remote.c (remote_wait, remote_async_wait): Change
1711 thread_num from int to ULONGEST.
1712 (unpack_varlen_hex): Change result parameter from
1713 int * to ULONGEST *.
1714
1715 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1716
1717 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1718 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1719 powerpc*-*-*.
1720 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1721
1722 2002-08-08 Andrew Cagney <cagney@redhat.com>
1723
1724 * gcore.c (override_derive_stack_segment): Delete variable.
1725 (preempt_derive_stack_segment): Delete function.
1726 (derive_stack_segment): Delete function.
1727 (default_derive_stack_segment): Renamed to derive_stack_segment.
1728 (override_derive_heap_segment): Delete variable.
1729 (preempt_derive_heap_segment): Delete function.
1730 (derive_heap_segment): Delete function.
1731 (default_derive_heap_segment): Rename to derive_heap_segment.
1732
1733 2002-08-06 Michael Snyder <msnyder@redhat.com>
1734
1735 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1736 * mips-tdep.c (mips_EABI_use_struct_convention,
1737 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1738 New functions. (mips_use_struct_convention): Delete.
1739 (mips_gdbarch_init): set use_gdbarch_convention.
1740
1741 2002-08-06 Michael Snyder <msnyder@redhat.com>
1742
1743 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1744 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1745 mips_o32_reg_struct_has_addr): New functions.
1746 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1747
1748 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1749
1750 * regcache.c (pseudo_register): Delete function.
1751 (fetch_register): Delete function.
1752 (store_register): Delete function.
1753 (regcache_raw_read, legacy_read_register_gen): Use
1754 target_fetch_registers instead of fetch_register.
1755 (legacy_write_register_gen, regcache_raw_write): Use
1756 target_store_register instead of store_register.
1757 (write_register_bytes): Ditto.
1758
1759 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1760 (STORE_PSEUDO_REGISTER): Delete.
1761 * gdbarch.h, gdbarch.c: Regenerate.
1762
1763 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1764
1765 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1766 write dump file binary.
1767
1768 2002-08-05 Michael Snyder <msnyder@redhat.com>
1769
1770 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1771 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1772 (mips_gdbarch_init): Set N32 target to be mips64.
1773
1774 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1775
1776 * frame.c (find_saved_register): Break out of loop once saved
1777 register address is found. Don't mention sparc in loop comment
1778 anymore.
1779
1780 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1781
1782 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1783 mips_default_saved_regsize to 8.
1784
1785 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1786
1787 * gcore.c: Do not include <sys/procfs.h>.
1788 * Makefile.in (gcore.o): Update dependencies.
1789
1790 2002-08-06 Andrew Cagney <cagney@redhat.com>
1791
1792 * configure.tgt: Make arc-*-* obsolete.
1793 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1794 * MAINTAINERS: Make arc-elf obsolete.
1795 * arc-tdep.c: Make file obsolete.
1796 * config/arc/arc.mt: Ditto.
1797 * config/arc/tm-arc.h: Ditto.
1798
1799 2002-08-05 Theodore A. Roth <troth@verinet.com>
1800
1801 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1802
1803 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1804
1805 * mcore-tdep.c (mcore_gdbarch_init): Use
1806 generic_unwind_get_saved_register instead of
1807 generic_get_saved_register.
1808 * v850-tdep.c (v850_gdbarch_init): Ditto.
1809 * frv-tdep.c (frv_gdbarch_init): Ditto.
1810 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1811 * s390-tdep.c (s390_gdbarch_init): Ditto.
1812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1813 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1814 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1815
1816 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1817
1818 * objfiles.h: Add missing #include "symfile.h"
1819
1820 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1821
1822 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1823
1824 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1825 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1826 of FIELD_BITSIZE.
1827
1828 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1829
1830 * NEWS: Cleanup and nitpick.
1831
1832 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1833
1834 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1835
1836 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1837
1838 * Makefile.in (gdbtk-bp.o): Update dependencies.
1839 (gdbtk-register.o): Ditto.
1840 (gdbtk-varobj.o): Ditto.
1841
1842 2002-08-03 Andrew Cagney <cagney@redhat.com>
1843
1844 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1845 m68hc11_fetch_pseudo_register.
1846 (m68hc11_pseudo_register_write): Replace
1847 m68hc11_store_pseudo_register.
1848 (m68hc11_gdbarch_init): Update.
1849
1850 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1851
1852 * gdbarch.sh: Include "gdb_string.h".
1853 * gdbarch.c: Regenerate.
1854
1855 * regcache.c: Include "gdb_string.h".
1856 * ax-general.c: Ditto.
1857 * varobj.c: Ditto.
1858 * std-regs.c: Ditto.
1859 * fbsd-proc.c: Ditto.
1860 * thread.c: Ditto.
1861
1862 * Makefile.in (regcache.o): Update dependencies.
1863 (thread.o, gdbarch.o): Ditto.
1864 (ax-general.o, gdbarch.o): Ditto.
1865 (varobj.o, std-regs.o): Ditto.
1866 (fbsd-proc.o): Specify dependencies.
1867
1868 2002-08-02 Andrew Cagney <cagney@redhat.com>
1869
1870 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1871 regnum.
1872 (regcache_cooked_write): Ditto.
1873
1874 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1875
1876 * regcache.c (regcache_cooked_read): New function.
1877 (regcache_cooked_write): New function.
1878 (read_register_gen): Rewrite using regcache_cooked_read.
1879 (write_register_gen): Rewrite using regcache_cooked_write.
1880
1881 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1882 Declare.
1883
1884 2002-08-02 Andrew Cagney <cagney@redhat.com>
1885
1886 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1887 Replace the architecture methods register_read and register_write.
1888 * gdbarch.h, gdbarch.c: Regenerate.
1889 * regcache.c (init_regcache_descr): Update.
1890 (read_register_gen): Update.
1891 (write_register_gen): Update.
1892 (supply_register): Update comment.
1893
1894 * sh-tdep.c (sh_gdbarch_init): Update.
1895 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1896 `regcache' and `gdbarch' parameters. Make `buffer' a void
1897 pointer. Update code.
1898 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1899 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1900 void pointer. Update code.
1901 (sh64_register_write): Delete.
1902 (sh4_register_read): Delete.
1903 (sh64_register_read): Delete.
1904 (sh4_register_write): Delete.
1905 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1906 void pointer, `to' parameter a void pointer.
1907 (sh_sh64_register_convert_to_raw): Ditto.
1908
1909 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1910
1911 * mips-tdep.c (mips_register_virtual_type): Use architecture
1912 invariant return values.
1913
1914 2002-08-01 Andrew Cagney <cagney@redhat.com>
1915
1916 * linux-proc.c: Include "gdb_string.h".
1917 * Makefile.in (linux-proc.o): Update dependency list.
1918
1919 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1920
1921 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1922 comment.
1923
1924 2002-08-01 Grace Sainsbury <graces@redhat.com>
1925
1926 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1927 to_insert_watchpoint, to_remove_watchpoint,
1928 to_stopped_by_watchpoint, to_stopped_data_address,
1929 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1930 target vecctor. Define their corresponding macros so they call
1931 them.
1932
1933 * target.c: Add default and debug versions of for
1934 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1935 to_insert_watchpoint, to_remove_watchpoint,
1936 to_stopped_by_watchpoint, to_stopped_data_address,
1937 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1938
1939 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1940
1941 * mips-tdep.c (mips_register_virtual_type): New function.
1942 (mips_gdbarch_init): Register mips_register_virtual_type()
1943 with gdbarch machinery.
1944 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1945 this file instead of tm-bigmips.h.
1946 (MIPS_REGSIZE): Delete this macro.
1947 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1948 multiarch version in mips-tdep.c will be found.
1949
1950 2002-08-01 Andrew Cagney <cagney@redhat.com>
1951
1952 * NEWS: Menion that CHILL has been made obsolete.
1953
1954 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1955 * stabsread.c (read_range_type): Ditto.
1956 * gdbtypes.h: Ditto.
1957 * language.c (binop_type_check): Ditto.
1958 (binop_result_type): Ditto.
1959 (integral_type): Ditto.
1960 (character_type): Ditto.
1961 (string_type): Ditto.
1962 (boolean_type): Ditto.
1963 (structured_type): Ditto.
1964 (lang_bool_type): Ditto.
1965 (binop_type_check): Ditto.
1966 * language.h (_LANG_chill): Ditto.
1967 * dwarfread.c (set_cu_language): Ditto.
1968 * dwarfread.c (CHILL_PRODUCER): Ditto.
1969 * dwarfread.c (handle_producer): Ditto.
1970 * expression.h (enum exp_opcode): Ditto.
1971 * eval.c: Ditto for comments.
1972 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1973 * expprint.c (print_subexp): Ditto.
1974 (print_subexp): Ditto.
1975 * valops.c (value_cast): Ditto.
1976 (search_struct_field): Ditto.
1977 * value.h (COERCE_VARYING_ARRAY): Ditto.
1978 * symfile.c (init_filename_language_table): Ditto.
1979 (add_psymbol_with_dem_name_to_list): Ditto.
1980 * valarith.c (value_binop): Ditto.
1981 (value_neg): Ditto.
1982 * valops.c (value_slice): Ditto.
1983 * symtab.h (union language_specific): Ditto.
1984 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1985 (SYMBOL_DEMANGLED_NAME): Ditto.
1986 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1987 * defs.h (enum language): Ditto.
1988 * symtab.c (got_symtab): Ditto.
1989 * utils.c (fprintf_symbol_filtered): Ditto.
1990
1991 * ch-typeprint.c: Make file obsolete.
1992 * ch-valprint.c: Make file obsolete.
1993 * ch-lang.h: Make file obsolete.
1994 * ch-exp.c: Make file obsolete.
1995 * ch-lang.c: Make file obsolete.
1996
1997 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1998 CHILL_LIB.
1999 (TARGET_FLAGS_TO_PASS): Ditto.
2000 (CHILLFLAGS): Obsolete.
2001 (CHILL): Obsolete.
2002 (CHILL_FOR_TARGET): Obsolete.
2003 (CHILL_LIB): Obsolete.
2004 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2005 ch-valprint.c.
2006 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2007 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2008 ch-lang.o.
2009 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2010 targets.
2011
2012 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2013
2014 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2015 This does not change anything at the moment, but will be helpful
2016 later when full Ada support is integrated.
2017
2018 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2019
2020 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2021 help message.
2022
2023 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2024
2025 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2026 and save it in a local variable. Use variable in later test.
2027
2028 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2029
2030 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2031 test. (Thanks to Daniel Jacobowitz.)
2032
2033 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2034
2035 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2036 (mips_abi_strings): Add "n64".
2037 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2038
2039 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2040
2041 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2042 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2043
2044 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2045
2046 * utils.c (host_pointer_to_address, address_to_host_pointer):
2047 Use gdb_assert() instead of explicit call to internal_error().
2048
2049 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2050
2051 * Makefile.in (rs6000-nat.o): Update dependencies.
2052
2053 From Nicholas Duffek:
2054 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2055 (aix-thread.o): New rule.
2056 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2057 * config/powerpc/aix432.mh: New file.
2058
2059 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2060
2061 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2062 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2063 (fetch_core_registers, ppc_linux_supply_gregset)
2064 (ppc_linux_supply_fpregset): New functions.
2065 (ppc_linux_regset_core_fns): New.
2066 (_initialize_ppc_linux_tdep): Call add_core_fns.
2067 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2068 and ppc_linux_supply_gregset.
2069 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2070 (supply_fpregset): Call ppc_linux_supply_fpregset.
2071 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2072 corelow.o.
2073 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2074
2075 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2076
2077 * symtab.c (lookup_symbol): Demangle before lowercasing.
2078
2079 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2080
2081 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2082 declaration.
2083 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2084 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2085 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2086 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2087 "gdb_string.h".
2088 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2089 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2090 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2091 (avr-tdep.o, mon960-rom.o): Ditto.
2092 (aout_stabs_gnu_h): Define.
2093 (symtab_h): Remove $(gdb_obstack_h).
2094
2095 2002-07-30 Jim Blandy <jimb@redhat.com>
2096
2097 Patch from David Carlton <carlton@math.stanford.edu>:
2098 * gdbinit.in: Move the `dir' commands that add GDB's own source
2099 directory to the search path to the end, so that the `gdb' source
2100 directory will be searched first.
2101
2102 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2103
2104 * gdb_obstack.h: New file.
2105 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2106 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2107 * objfiles.h: Include "gdb_obstack.h".
2108 * Makefile.in (gdb_obstack_h): Define.
2109 (symtab_h): Add $(gdb_obstack_h).
2110 (objfiles_h): Add $(gdb_obstack_h).
2111
2112 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2113 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2114 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2115 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2116 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2117 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2118 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2119 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2120
2121 * Makefile.in (bcache.o): Update dependencies.
2122 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2123 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2124 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2125 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2126 (stabsread.o, symfile.o, symmisc.o): Ditto.
2127 (symtab.o, typeprint.o, macroexp.o): Ditto.
2128 (macrotab.o, mdebugread.o): Ditto.
2129 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2130 (coff_ecoff_h, aout_aout64_h): Define.
2131 (aout_stabs_gnu_h, libaout_h): Define.
2132
2133 2002-07-29 Andrew Cagney <cagney@redhat.com>
2134
2135 * regcache.c (struct regcache_descr): Rename nr_registers to
2136 nr_cooked_registers. Revise comments describing the structure
2137 member fields.
2138 (init_regcache_descr): Update.
2139 (init_legacy_regcache_descr): Update.
2140 (read_register_gen, write_register_gen): When a cooked register in
2141 the raw register range, directly access the value from the raw
2142 register cache.
2143
2144 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2145
2146 * z8k-tdep.c: Do not include "obstack.h".
2147 * h8300-tdep.c, h8500-tdep.c: Ditto.
2148 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2149 * valprint.c, v850-tdep.c: Ditto.
2150 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2151 * mn10200-tdep.c: Ditto.
2152
2153 * Makefile.in (z8k-tdep.o): Update dependencies.
2154 (m68hc11-tdep.o, valprint.o): Ditto.
2155 (v850-tdep.o, d10v-tdep.o): Ditto.
2156 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2157 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2158 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2159 (sh_opc_h, gdb_sim_sh_h): Define.
2160 (elf_sh_h, elf_bfd_h): Define.
2161 (opcode_m68hc11_h): Define.
2162 (OPCODES_SRC, OPCODES_DIR): define.
2163 (OPCODES): Use $(OPCODES_DIR).
2164 (gdb_sim_d10v_h): Rename sim_d10v_h.
2165 (gdb_sim_arm_h): Rename sim_arm_h.
2166
2167 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2168
2169 * utils.c (host_pointer_to_address, address_to_host_pointer):
2170 Change internal_error() message to indicate function responsible
2171 for the error.
2172
2173 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2174
2175 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2176 calls to local_hex_string_custom().
2177
2178 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2179
2180 * irix5-nat.c: Move IRIX shared library support from here...
2181 * solib-irix.c: ...to here. Revised substantially to work with
2182 generic solib framework.
2183
2184 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2185 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2186 * mips-irix-tdep.c: New file.
2187
2188 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2189 (mips-irix-tdep.o, solib-irix.o): New rules.
2190 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2191 solib-irix.o.
2192 * config/mips/irix6.mt (TDEPFILES): Likewise.
2193 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2194
2195 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2196
2197 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2198 disabled (via ``#if 0'') includes.
2199
2200 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2201
2202 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2203 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2204 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2205 Add support for the fpscr register.
2206 * rs6000-nat.c (regmap, fetch_inferior_registers)
2207 (store_inferior_registers, fetch_core_registers): Likewise.
2208
2209 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2210
2211 * rs6000-nat.c (language.h): Include.
2212 (special_regs): Delete this array.
2213 (regmap): New function.
2214 (fetch_register, store_register): Use regmap() to map gdb
2215 register numbers to ptrace register numbers. Also, use
2216 outputs from regmap() to make decisions regarding type of
2217 ptrace() call to make. In particular, don't compare against
2218 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2219 (fetch_inferior_registers, store_inferior_registers): Where
2220 possible, obtain register numbers from tdep struct. Don't
2221 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2222 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2223 (LAST_UISA_SP_REGNUM): Delete.
2224
2225 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2226
2227 * rs6000-nat.c (ppc-tdep.h): Include.
2228 (fetch_registers, store_register, fetch_core_registers): Don't
2229 access registers[] directly. Instead, use supply_register() or
2230 regcache_collect() as appropriate.
2231 (find_toc_address): Format hex address with local_hex_string().
2232
2233 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2234
2235 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2236 bfd/elf32-frv.c.
2237
2238 2002-07-24 Tom Tromey <tromey@redhat.com>
2239
2240 * jv-exp.y: Marked all strings with _().
2241 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2242 internal_error.
2243 (MethodInvocation, CastExpression, parse_number, yyerror,
2244 java_type_from_name, push_expression_name, yylex): Typo fixes.
2245
2246 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2247
2248 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2249 (tee_file_flush, tee_file_write, tee_file_fputs)
2250 (tee_file_isatty): New.
2251 * ui-file.h (tee_file_new): Add prototype.
2252
2253 2002-07-24 Aidan Skinner <aidan@velvet.net>
2254
2255 * ada-lang.c: Change k&r style function definitions to prototyped
2256 form.
2257 * ada-typeprint.c: Change k&r style function definitions to prototyped
2258 form.
2259 * ada-valprint.c: Change k&r style function definitions to prototyped
2260 form.
2261
2262 2002-07-24 Andrew Cagney <cagney@redhat.com>
2263
2264 * README: Remove reference to remote-bug.
2265 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2266 remote-bug.c.
2267 (m88k-nat.o): Delete rule.
2268 (m88k-tdep.o): Delete rule.
2269 (remote-bug.o): Delete rule.
2270 * MAINTAINERS: Mark as obsolete.
2271 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2272 * m88k-tdep.c: Make file obsolete.
2273 * config/m88k/m88k.mh: Ditto.
2274 * config/m88k/delta88v4.mh: Ditto.
2275 * config/m88k/delta88v4.mt: Ditto.
2276 * config/m88k/delta88.mt: Ditto.
2277 * config/m88k/delta88.mh: Ditto.
2278 * remote-bug.c: Ditto.
2279 * config/m88k/tm-delta88.h: Ditto.
2280 * config/m88k/nm-delta88v4.h: Ditto.
2281 * config/m88k/xm-delta88.h: Ditto.
2282 * config/m88k/xm-dgux.h: Ditto.
2283 * config/m88k/tm-m88k.h: Ditto.
2284 * config/m88k/nm-m88k.h: Ditto.
2285 * config/m88k/tm-delta88v4.h: Ditto.
2286 * m88k-nat.c: Ditto.
2287 * cxux-nat.c: Ditto.
2288 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2289 and m88*-*-* obsolete.
2290 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2291 m88*-*-* obsolete.
2292
2293 2002-07-24 Andrew Cagney <cagney@redhat.com>
2294
2295 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2296 constant. Same for local pointer variables.
2297 (extract_signed_integer): Ditto.
2298 * defs.h (extract_unsigned_integer): Update.
2299 (extract_signed_integer): Update.
2300
2301 2002-07-24 Andrew Cagney <cagney@redhat.com>
2302
2303 * regcache.c (regcache_raw_write): Change buf parameter to a
2304 constant void pointer.
2305 (regcache_raw_read): Change buf parameter to a void pointer.
2306 (legacy_write_register_gen): Change myaddr parameter a constant
2307 void pointer.
2308 (supply_register): Change val parameter to a const void pointer.
2309 * regcache.h (regcache_raw_write): Update declaration.
2310 (regcache_raw_read): Update declaration.
2311 (supply_register): Update declaration.
2312
2313 2002-07-24 Tom Tromey <tromey@redhat.com>
2314
2315 * defs.h (gdb_readline_wrapper): Declare.
2316 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2317 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2318 * top.c (gdb_readline_wrapper): New function.
2319 (command_line_input): Use it.
2320
2321 2002-07-24 Andrew Cagney <cagney@redhat.com>
2322
2323 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2324 regcache_read and regcache_write.
2325 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2326 * regcache.c: Update.
2327 * sh-tdep.c (sh64_push_arguments): Update comment.
2328 (sh_pseudo_register_read): Update.
2329 (sh_pseudo_register_write): Update.
2330 (sh4_register_read): Update.
2331 (sh4_register_write): Update.
2332 (sh64_pseudo_register_read): Update.
2333 (sh64_pseudo_register_write): Update.
2334 (sh64_register_read): Update.
2335 (sh64_register_write): Update.
2336 * i386-tdep.c (i386_extract_return_value): Update.
2337 (i386_extract_struct_value_address): Update.
2338 (i386_extract_return_value): Update.
2339 * blockframe.c (generic_read_register_dummy): Update.
2340 (generic_call_dummy_register_unwind): Update
2341 * infrun.c (write_inferior_status_register): Update.
2342
2343 2002-07-23 Jim Blandy <jimb@redhat.com>
2344
2345 * parser-defs.h (expression_context_pc): Make this extern.
2346 (Thanks to Michael Snyder.)
2347
2348 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2349
2350 GDB 5.2.1 released from 5.2 branch.
2351 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2352 * README: Update to mention 5.2.1.
2353
2354 2002-07-23 Mark Salter <msalter@redhat.com>
2355
2356 * remote.c (remote_read_bytes): Fix check for error.
2357
2358 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2359
2360 * aix-thread.c (language.h): Include.
2361 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2362 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2363 Print newlines at end of debug messages.
2364 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2365 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2366
2367 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2368
2369 * aix-thread.c (ppc-tdep.h): Include.
2370 (special_register_p): New function.
2371 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2372 (store_regs_user_thread): Use register number information from
2373 gdbarch_tdep struct instead of hardcoded offsets relative to
2374 FIRST_UISA_SP_REGNUM.
2375 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2376 special_register_p() instead of using FPLAST_REGNUM and
2377 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2378 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2379 will be MQ's register number.
2380
2381 2002-07-22 Michael Snyder <msnyder@redhat.com>
2382
2383 * aix-thread.c (ops): Rename to aix_thread_ops.
2384 (base_ops): Rename to base_target.
2385 (ops_attach): Rename to aix_thread_attach.
2386 (ops_detach): Rename to aix_thread_detach.
2387 (ops_resume): Rename to aix_thread_detach.
2388 (ops_wait): Rename to aix_thread_wait.
2389 (ops_kill): Rename to aix_thread_kill.
2390 (init_ops): Rename to init_aix_thread_ops.
2391 (ops_fetch_register): Rename to aix_thread_fetch_register.
2392 (ops_store_register): Rename to aix_thread_store_register.
2393 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2394 (ops_thread_alive): Rename to aix_thread_thread_alive.
2395 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2396 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2397 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2398 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2399 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2400 (store_regs_lib): Rename to store_regs_user_thread.
2401 (store_regs_kern): Rename to store_regs_kernel_thread.
2402
2403 2002-07-22 Michael Snyder <msnyder@redhat.com>
2404
2405 * aix-thread.c (ops_prepare_to_store): Eliminate.
2406 (init_ops): Don't initialize ops.prepare_to_store.
2407 (store_regs_kern): Pre-fetch register buffers from child,
2408 because some registers may not be in the cache. Copy
2409 regs from register cache only if they are cached.
2410 (store_regs_lib): Copy regs from register cache only
2411 if they are cached.
2412 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2413 fill_gprs64): Ditto.
2414
2415 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2416
2417 * aix-thread.c (gdb_assert.h): Include.
2418 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2419 register sizes (from register cache) match size of buffer holding
2420 register data.
2421 (fill_sprs32): Change parameter types to match those in the ptrace()
2422 buffer.
2423 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2424 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2425
2426 2002-07-22 Michael Snyder <msnyder@redhat.com>
2427
2428 * aix-thread.c (supply_sprs64): Cosmetic change.
2429 (supply_sprs32): Cosmetic change.
2430 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2431 (fill_sprs64): Use regcache_collect instead of read_register.
2432 (store_regs_lib): Use regcache_collect instead of
2433 read_register. Use fill_sprs32 instead of fill_sprs64,
2434 if debugging a 32-bit architecture.
2435 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2436 out of the register cache, instead of passing a pointer into
2437 the register cache directly to ptrace. Use regcache_collect
2438 insteaad of read_register.
2439 (ops_prepare_to_store): Use target_read_registers instead
2440 of read_register_bytes.
2441
2442 2002-07-20 Aidan Skinner <aidan@velvet.net>
2443
2444 * MAINTAINERS: Add self under write after approval.
2445
2446 2002-07-20 Aidan Skinner <aidan@velvet.net>
2447
2448 * ada-tasks.c: Change k&r style function definitions to prototyped
2449 form.
2450
2451 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2452
2453 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2454 * x86-64-tdep.c: Include "objfiles.h".
2455 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2456 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2457
2458 2002-07-17 Michal Ludvig <michal@suse.cz>
2459
2460 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2461 (update_context): Initialise cfa variable.
2462
2463 2002-07-17 Michael Snyder <msnyder@redhat.com>
2464
2465 * aix-thread.c: Shorten some long lines.
2466 Bring comments into line with code spec.
2467
2468 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2469
2470 * infrun.c: Re-indent using gdb_indent.sh.
2471
2472 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2473
2474 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2475 Leave the indentation temporarily untouched, to minimize the diffs.
2476
2477 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2478
2479 * stabsread.c: Make os9k sections of the code obsolete,
2480 for real this time.
2481 * stabsread.h: Make os9k sections of the code obsolete.
2482
2483 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2484
2485 * linux-low.c (regsets_store_inferior_registers): Add free()
2486 at the end of a loop to prevent memory leak.
2487 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2488 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2489 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2490 line a comment.
2491 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2492
2493 2002-07-17 Jim Blandy <jimb@redhat.com>
2494
2495 * macrocmd.c (info_macro_command): Remove newline from error
2496 message.
2497
2498 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2499
2500 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2501 (sh_gdbarch_init): Use it for sh-dsp.
2502
2503 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2504
2505 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2506 64-bit DWARF2 format.
2507
2508 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2509
2510 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2511 <sys/proc.h> when not available.
2512
2513 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2514
2515 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2516 * stabsread.c: Make os9k sections of the code obsolete.
2517 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2518 * config/i386/i386os9k.mt: Make file obsolete.
2519 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2520 (COMMON_OBS): Remove os9kread.o
2521 (SFILES): Remove os9kread.c.
2522 (os9kread.o, remote-os9k.o): Make target obsolete.
2523 * remote-os9k.c: Make file obsolete.
2524 * os9kread.c: Make file obsolete.
2525 * Makefile.in
2526
2527 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2528
2529 * NEWS: Mention that the FR30 has been made obsolete.
2530 * fr30-tdep.c: Make file obsolete.
2531 * config/fr30/tm-fr30.h: Ditto.
2532 * config/fr30/fr30.mt: Ditto.
2533 * configure.tgt: Make fr30-*-elf obsolete.
2534 * MAINTAINERS: Make fr30-elf obsolete.
2535
2536 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2537
2538 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2539 found is not inside a section.
2540
2541 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2542
2543 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2544 strerror().
2545 (pdc_realloc): Use xrealloc() instead of realloc().
2546
2547 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2548
2549 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2550 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2551 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2552 macros.
2553
2554 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2555
2556 * aix-thread.c (ptrace_check): Eliminate goto.
2557 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2558 problem.
2559
2560 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2561
2562 * aix-thread.c (gdbcmd.h): Include.
2563 (DEBUG, DBG, DBG2, dbg): Eliminate.
2564 (debug_aix_thread): New static global.
2565 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2566 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2567 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2568 invocations to DBG and DBG2 macros to test against
2569 ``debug_aix_thread'' and call fprintf_unfiltered().
2570 (_initialize_aix_thread): Add new command "set debug aix-thread".
2571
2572 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2573
2574 From Gerhard Tonn <TON@de.ibm.com>:
2575 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2576 instead of supply_register.
2577
2578 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2579
2580 * dwarf2cfi.c: Include "gdb_assert.h".
2581 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2582 non-NULL.
2583 (update_context): Do not use __func__. Add missing ``break''.
2584 (update_context): Do not use __func__.
2585
2586 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2587
2588 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2589 and its setting. Set gdbarch instruction printing functions
2590 directly. For non-rs6000 case use new function
2591 gdb_print_insn_powerpc.
2592 (gdb_print_insn_powerpc): New function.
2593
2594 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2595
2596 * NEWS: Mention that the d30v has been marked obsolete.
2597 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2598 * configure.tgt: Mark d30v-*-* as obsolete.
2599 * d30v-tdep.c: Mark file as obsolete.
2600 * config/d30v/d30v.mt: Ditto.
2601 * config/d30v/tm-d30v.h: Ditto.
2602
2603 2002-07-13 Aidan Skinner <aidan@velvet.net>
2604
2605 * ada-tasks.c (add_task_entry): replace calls to
2606 malloc() with xmalloc
2607 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2608
2609 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2610 ada_finish_decode_line_1, all_sals_for_line
2611 ada_breakpoint_rewrite): replace calls to free() with xfree()
2612
2613 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2614
2615 From Nicholas Duffek (with minor changes by Martin Hunt,
2616 Louis Hamilton, and Kevin Buettner):
2617 * aix-thread.c: New file.
2618
2619 2002-07-12 Petr Sorfa <petrs@caldera.com>
2620
2621 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2622 complaint for invalid attribute class or form.
2623 (read_func_scope): DW_AT_frame_base
2624 better handling of DW_AT_block*.
2625 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2626 better handling of DW_AT_block*.
2627 (read_common_block): DW_AT_location
2628 better handling of DW_AT_block*.
2629 (read_partial_die): DW_AT_location better handling
2630 of DW_AT_block*.
2631 (new_symbol): DW_AT_external better handling of
2632 DW_AT_block*. Proper initialization of variable
2633 "addr".
2634 (attr_form_is_block): New function that returns true
2635 if the attribute's form is of DW_FORM_block*.
2636
2637 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2638
2639 * valops.c (find_method_list): Remove comment about
2640 removed STATIC_MEMFUNCP argument.
2641 (value_find_oload_method_list): Likewise.
2642
2643 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2644
2645 From Nicholas Duffek:
2646 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2647 target_new_objfile_hook.
2648
2649 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2650
2651 From Nicholas Duffek:
2652 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2653 csect.
2654
2655 2002-07-12 Andrew Cagney <cagney@redhat.com>
2656
2657 * MAINTAINERS: Mention --enable-sim-build-warnings.
2658 (m68hc11-elf): Disable sim build warnings.
2659 (m32r-elf): Mark as broken obsolete candidate.
2660 (x86_64-linux-gnu): Mark as buildable with -Werror.
2661 (arm-elf): Change -w to ``,'' which enables warnings but not
2662 -Werror.
2663
2664 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2665
2666 * bcache.h: Update copyright.
2667 (struct bstring, struct bcache): Move definition to "bcache.c".
2668 Replaced by opaque declaration.
2669 (bcache_xfree): Replace free_bcache.
2670 (bcache_xmalloc, bcache_memory_used): Declare.
2671
2672 * bcache.c: Update copyright.
2673 (struct bstring, struct bcache): Moved to here from "bcache.h".
2674 Update comments.
2675 (bcache_xmalloc, bcache_memory_used): New functions.
2676 (bcache_xfree): Replace function free_bcache.
2677
2678 * Makefile.in (objfiles.o): Add $(bcache_h).
2679 (objfiles_h): Remove $(bcache_h).
2680 (symfile.o): Add $(bcache_h).
2681
2682 * symmisc.c: Update copyright.
2683 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2684 (print_objfile_statistics): Use bcache_memory_used.
2685
2686 * symfile.c: Include "bcache.h".
2687 (reread_symbols): Use bcache_xfree.
2688 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2689 (add_psymbol_to_list): Pass psymbol_cache by value.
2690 (add_psymbol_with_dem_name_to_list): Ditto.
2691
2692 * objfiles.h: Update copyright.
2693 (struct bcache): Declare opaque. Do not include "bcache.h".
2694 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2695 bcache'' pointers.
2696 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2697
2698 * objfiles.c: Include "bcache.h". Update copyright.
2699 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2700 macro_cache.
2701 (free_objfile): Use bcache_xfree.
2702
2703 2002-07-11 Grace Sainsbury <graces@redhat.com>
2704
2705 * monitor.c (monitor_fetch_register): Make name a constant.
2706 (monitor_store_register): Same.
2707
2708 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2709
2710 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2711 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2712 (finish_block) For non-function blocks, hash the symbol table. For
2713 function blocks, mark the symbol table as unhashed.
2714 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2715 (msymbol_hash_iw): Likewise.
2716 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2717 value.
2718 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2719 (lookup_minimal_symbol): Likewise for both.
2720 * symtab.h (struct block): Add `hashtable' flag. Comment the
2721 hashtable.
2722 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2723 (ALL_BLOCK_SYMBOLS): Update.
2724 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2725 (struct symbol): Add `hash_next' pointer.
2726 * symtab.c (lookup_block_symbol): Search using the hash table when
2727 possible.
2728 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2729 (search_symbols, find_addr_symbol): Likewise.
2730
2731 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2732 (read_dst_symtab): Likewise.
2733 * jv-lang.c (get_java_class_symtab): Likewise.
2734 * mdebugread.c: Include "gdb_assert.h".
2735 (shrink_block): Assert that the block being modified is not hashed.
2736 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2737 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2738 symbols.
2739 (dump_symtab): Recognize hashed blocks.
2740 * printcmd.c (print_frame_args): Assert that function blocks do not
2741 have hashed symbol tables.
2742 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2743 (fill_in_ada_prototype, debug_print_block): Likewise.
2744 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2745
2746 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2747
2748 * stack.c (print_frame): Use result of frame_address_in_block()
2749 instead of fi->pc when evaluating symbols.
2750 (backtrace_command_1): Ditto.
2751
2752 2002-07-11 Andrew Cagney <cagney@redhat.com>
2753
2754 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2755 Make static.
2756
2757 * arm-tdep.c (arm_register_name): Make return type constant.
2758
2759 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2760
2761 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2762 prototype.
2763 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2764 * s390-tdep.c (s390_fp_regnum): Ditto.
2765 (s390_read_fp): Ditto.
2766 (s390_pop_frame): Ditto.
2767 (_initialize_s390_tdep): Ditto.
2768 * remote.c (get_remote_state): Ditto.
2769 * procfs.c (mappingflags): Ditto.
2770 * memattr.c (_initialize_mem): Ditto.
2771 * mcore-tdep.c (mcore_pop_frame): Ditto.
2772 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2773 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2774 * language.c (set_case_str): Ditto.
2775 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2776 * frv-tdep.c (new_variant): Ditto.
2777 (frv_stopped_data_address): Ditto.
2778 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2779 (context_alloc): Ditto.
2780 (frame_state_alloc): Ditto.
2781 (unwind_tmp_obstack_init): Ditto.
2782 (unwind_tmp_obstack_free): Ditto.
2783 (cfi_read_fp): Ditto.
2784 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2785 (cris_pop_frame): Ditto.
2786 * c-lang.c (scanning_macro_expansion): Ditto.
2787 (finished_macro_expansion): Ditto.
2788 (c_preprocess_and_parse): Ditto.
2789 * gdbarch.sh: Ditto.
2790 * gdbarch.h, gdbarch.c: Regenerate.
2791 * config/mn10200/tm-mn10200.h: Adjust indentation.
2792 * target.c: Adjust indentation.
2793 * symtab.h: Adjust indentation.
2794 * stabsread.h: Adjust indentation.
2795 * remote-es.c: Adjust indentation.
2796 * os9kread.c: Adjust indentation.
2797
2798 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2799
2800 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2801 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2802
2803 2002-07-10 Grace Sainsbury <graces@redhat.com>
2804
2805 * NEWS: Mention m68k, mcore multi-arching.
2806 * MAINTAINERS: Change status of m68k, mcore to reflect
2807 multi-arching.
2808
2809 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2810
2811 * valops.c (find_overload_match): Free oload_syms.
2812
2813 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2814
2815 Define HAVE_SYS_PROC_H if sys/proc.h exists
2816 * configure.in: Add check for sys/proc.h
2817 * config.in: Regenerate.
2818 * configure: Regenerate.
2819
2820 2002-07-09 Grace Sainsbury <graces@redhat.com>
2821
2822 * config/m68k/tm-m68k.h: Remove macros wrapped in
2823 #if !GDB_MULTI_ARCH.
2824
2825 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2826
2827 * config.in, configure: Regenerate.
2828
2829 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2830
2831 * dwarf2cfi.c: Include "gcore.h".
2832 (execute_stack_op): Fix implementation of the
2833 DW_OP_deref and DW_OP_deref_size operators by letting do their
2834 lookup in the target.
2835
2836 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2837
2838 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2839 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2840 tdep->sc_sp_offset.
2841
2842 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2843
2844 Fix PR gdb/595, gdb/602
2845 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2846 Don't call value_cast, just read the vtable pointer; update comments
2847 to match.
2848
2849 2002-07-05 Grace Sainsbury <graces@redhat.com>
2850
2851 * config/mcore/tm-mcore.h: Remove file.
2852 * config/mcore/mcore.mt: Remove definition of TM_FILE
2853 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2854
2855 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2856
2857 * i386bsd-tdep.c: Include "gdb_string.h".
2858
2859 2002-07-04 Grace Sainsbury <graces@redhat.com>
2860
2861 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2862 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2863 mcore-tdep.
2864 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2865 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2866 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2867 (RETVAL_REGNUM): Move macros from tm-mcore.h
2868 (mcore_reg_struct_has_addr): New function.
2869 (mcore_gdbarch_init): Added initializations for the macros removed
2870 from tm-mcore.h.
2871
2872 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2873
2874 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2875 traditonal string branding within the ELF header.
2876
2877 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * symtab.c (remove_params): New function.
2880 (make_symbol_overload_list): Use it instead of cplus_demangle.
2881 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2882
2883 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2884
2885 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2886
2887 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2888 New variables.
2889 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2890 and tdep->sigtramp_end.
2891 * i386obsd-nat.c: New file.
2892 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2893
2894 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2895 Don't call get_current_frame().
2896
2897 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2898
2899 * i386-nat.c (child_post_startup_inferior): New function
2900 calling i386_cleanup_dregs if
2901 I386_USE_GENERIC_WATCHPOINTS is defined.
2902 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2903 conditional to acknowledge that i386-nat.c has its
2904 own child_post_startup_inferior function.
2905
2906 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2907
2908 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2909 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2910 instead of MAX_REGISTER_RAW_SIZE.
2911 (i386_extract_return_value, i386_extract_struct_value_address):
2912 Convert to use regcache.
2913 (i386_gdbarch_init): Set max_register_raw_size and
2914 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2915 Set extract_return_value and extract_struct_value_address instead
2916 of their deprecated variants.
2917
2918 Convert i386 target to generic dummy frames.
2919 * i386-tdep.c: Include "symfile.h".
2920 (i386_frameless_signal_p): Consider a function to be frameless if
2921 the pc points at the first instruction of the function.
2922 (i386_frame_chain): Handle (generic) call dummies.
2923 (i386_frame_saved_pc): Likewise.
2924 (i386_frame_init_saved_regs): Remove code dealing with call
2925 dummies on the stack.
2926 (i386_push_dummy_frame): Removed.
2927 (i386_call_dummy_words): Removed.
2928 (i386_fix_call_dummy): Removed.
2929 (i386_push_return_address): New function.
2930 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2931 parameter, and don't call get_current_frame.
2932 (i386_pop_frame): New function.
2933 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2934 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2935 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2936 call_dummy_length to 0, set call_dummy_words to NULL, set
2937 sizeof_call_dummy_words to 0, set fix_call_dummy to
2938 generic_fix_call_dummy, set pc_in_call_dummy to
2939 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2940 generic_push_dummy_frame, set push_return_address to
2941 i386_push_return_address and set frame_chain_valid to
2942 generic_file_frame_chain_valid.
2943
2944 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2945
2946 * gdbarch.sh (struct regcache): Add opaque declaration.
2947 (EXTRACT_RETURN_VALUE): New architecture method.
2948 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2949 * gdbarch.h, gdbarch.c: Regenerate.
2950 * arch-utils.c (legacy_extract_return_value): New function.
2951 * arch-utils.h (legacy_extract_return_value): Declare.
2952 * values.c (value_being_returned): Re-enable code handling
2953 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2954 deprecated_grub_regcache_for_registers call to block handling
2955 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2956 (EXTRACT_RETURN_VALUE): Do not define.
2957
2958 2002-07-03 Grace Sainsbury <graces@redhat.com>
2959
2960 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2961 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2962 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2963 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2964 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2965 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2966 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2967 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2968 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2969 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2970 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2971 argument so the function fits the prototype in the architecture
2972 vector.
2973 (mcore_pop_frame): Remove argument so the function fits the
2974 prototype. Use get_current_frame instead of the argument.
2975 (mcore_push_arguments): Change type of struct_return so the
2976 function can be used in the architecture vector.
2977 (mcore_store_struct_return): Add.
2978 (mcore_frame_init_saved_regs): Add.
2979 (mcore_gdbarch_init): Add function calls to replace the macros
2980 removed from tm-mcore.h
2981
2982 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2983
2984 * infcmd.c (print_return_value): Remove compatibility code calling
2985 deprecated_grub_regcache_for_registers.
2986
2987 * values.c: Include "regcache.h".
2988 (value_being_returned): Update. Use
2989 deprecated_grub_regcache_for_registers to extract the register
2990 buffer address.
2991 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2992 ``struct regcache''.
2993 * Makefile.in (values.o): Add dependency on $(regcache_h).
2994
2995 * inferior.h (run_stack_dummy): Change type of second parameter to
2996 a ``struct regcache''.
2997 * valops.c (hand_function_call): Change type of retbuf to ``struct
2998 regcache''. Allocate using regcache_xmalloc, clean using
2999 make_cleanup_regcache_xfree.
3000 * infcmd.c (run_stack_dummy): Update. Use
3001 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3002
3003 * regcache.c (do_regcache_xfree): New function.
3004 (make_cleanup_regcache_xfree): New function.
3005 * regcache.h (make_cleanup_regcache_xfree): Declare.
3006
3007 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3008
3009 * event-top.c (command_line_handler): Don't read past
3010 beginning of buffer.
3011
3012 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3013
3014 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3015 struct frame_id.
3016 (varobj_create): Store frame_id for root.
3017 (varobj_gen_name): Use xasprintf.
3018 (varobj_update): Save and restore frame using get_frame_id() and
3019 frame_find_by_id().
3020 (create_child): Use xasprintf.
3021 (new_root_variable): Initialize frame_id.
3022 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3023 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3024 to prevent memory leak.
3025
3026 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3027
3028 * valops.c (hand_function_call): Move declaration of retbuf to
3029 start of function, allocate using malloc, add a cleanup but before
3030 the inf_status cleanup, cleanup the buffer. Rename local variable
3031 old_chain to inf_status_cleanup.
3032
3033 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3034
3035 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3036
3037 * cli/cli-decode.c (cmd_func_p): New function.
3038 (cmd_func): New function.
3039
3040 * command.h: Add cmd_func() and cmd_func_p().
3041
3042 2002-07-03 Grace Sainsbury <graces@redhat.com>
3043
3044 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3045 (REGISTER_SIZE): Remove.
3046 (MAX_REGISTER_RAW_SIZE): Remove.
3047 (REGISTER_VIRTUAL_TYPE): Remove.
3048 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3049 (REGISTER_NAME): Remove.
3050 (USE_GENERIC_DUMMY_FRAMES): Remove.
3051 (CALL_DUMMY): Remove.
3052 (CALL_DUMMY_START_OFFSET): Remove.
3053 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3054 (CALL_DUMMY_LOCATION): Remove.
3055 (FIX_CALL_DUMMY): Remove.
3056 (CALL_DUMMY_ADDRESS): Remove.
3057 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3058 (SAVE_DUMMY_FRAME_TOS): Remove.
3059 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3060 (mcore_register_virtual_type): New function.
3061 (mcore_register_byte): New function.
3062 (mcore_register_size): New function.
3063 (mcore_register_name): New function.
3064 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3065 macros removed from tm-mcore.h.
3066 (mcore_dump_tdep): Add.
3067 (_initialize_mcore_tdep): Add gdbarch_register call.
3068
3069 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3070
3071 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3072 frameless_look_for_prologue, such that we actually call this
3073 function.
3074
3075 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3076
3077 * frame.h (frame_address_in_block): New function.
3078
3079 * blockframe.c (frame_address_in_block): New function extracted
3080 from get_frame_block().
3081 (get_frame_block): Use frame_address_in_block().
3082 (block_innermost_frame): Use frame_address_in_block() to match
3083 the frame pc address against the block boundaries rather than
3084 the frame pc directly. This prevents a failure when a frame pc
3085 is actually a return-address pointing immediately after the end
3086 of the given block.
3087
3088 2002-07-02 Grace Sainsbury <graces@redhat.com>
3089
3090 * MAINTAINERS: Add self under write after approval.
3091
3092 2002-07-02 Grace Sainsbury <graces@redhat.com>
3093
3094 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3095 used in architecture vector. The default is
3096 m68k_local_breakpoint_from_pc.
3097 (m68k_local_breakpoint_from_pc): Add.
3098 (enum): Add register numbers from tm-m68k.h.
3099 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3100 vector.
3101 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3102 GDB_MULTI_ARCH_PARTIAL.
3103 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3104 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3105 m68k-tdep.c.
3106 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3107 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3108 to enum in m68k-tdep.c
3109
3110 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3111
3112 * solib-osf.c (open_map): Compute the list of shared libraries
3113 loaded by the inferior, rather than the list of libraries loaded
3114 by GDB itself. Otherwise, GDB ends up reading the symbols from
3115 the wrong shared libraries...
3116
3117 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3118
3119 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3120 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3121 macros.
3122 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3123 Remove functions.
3124 (FRAMELESS_SIGNAL): Remove function.
3125 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3126 i386_linux_saved_pc_after_call): Removed.
3127 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3128 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3129 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3130
3131 * i386-tdep.c (i386_frameless_signal_p): New function.
3132 (i386_frame_chain): Deal with frameless signals.
3133 (i386_sigtramp_saved_sp): New function.
3134 (i386_frame_saved_pc): Deal with frameless signals.
3135 (i386_saved_pc_after_call): Make sure the correct value is
3136 returned just after entry into a sigtramp.
3137 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3138 i386fbsd4_sc_sp_offset): New variables.
3139 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3140 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3141 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3142 similiar to what we already did for sc_pc_offset.
3143 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3144 tdep->sc_sp_offset.
3145
3146 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3147
3148 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3149
3150 * config/i386/tm-x86-64linux.h: New.
3151 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3152 definitions.
3153 * config/i386/nm-x86-64.h: Rename to ...
3154 * config/i386/nm-x86-64linux.h: ... this one.
3155 * config/i386/x86-64linux.mh: Reflect the above change.
3156
3157 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3158
3159 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3160 with sigcontext_addr. Add sc_sp_offset.
3161 (i386bsd_sigtramp_saved_pc): Remove prototype.
3162 (i386bsd_sicontext_addr): Add prototype.
3163 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3164 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3165 (i386_svr4_sigtramp_saved_pc): Removed.
3166 (i386_svr4_sigcontext_addr): New function.
3167 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3168 Initialize tdep->sigcontext_addr instead. Initialize
3169 tdep->sc_pc_offset and tdep->sc_sp_offset.
3170 (i386_gdbarch_init): Likewise.
3171 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3172 any more.
3173 (i386bsd_sigtramp_saved_pc): Remove function.
3174 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3175 Initialize tdep->sigcontext_addr instead. Initialize
3176 tdep->sc_pc_offset.
3177 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3178 of tdep->sigtramp_saved_pc.
3179 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3180 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3181 instead.
3182
3183 * i386-tdep.c (i386_frameless_function_invocation,
3184 i386_frame_num_args, i386_frame_init_saved_regs,
3185 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3186 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3187 i386_extract_return_value, i386_store_return_value,
3188 i386_extract_struct_value_address, i386_register_virtual_type,
3189 i386_register_convertible, i386_register_convert_to_virtual,
3190 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3191 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3192 static.
3193
3194 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3195
3196 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3197
3198 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3199 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3200 this macro. Include "value.h".
3201
3202 2002-06-30 Aidan Skinner <aidan@velvet.net>
3203
3204 * ada-exp.tab.c: remove as it's a generated file
3205 * ada-lex.c: remove as it's a generated file
3206
3207 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3208
3209 * config/i386/tm-i386.h (struct frame_info, struct
3210 frame_saved_regs, struct value, struct type): Remove forward
3211 declarations.
3212
3213 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3214 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3215 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3216 (FILL_FPXREGSET): Define.
3217
3218 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3219
3220 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3221 i[3456]86-*-netbsd* case.
3222 * config/i386/tm-obsd.h: Removed.
3223 * config/i386/obsd.mt: Removed.
3224 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3225 core-aout.o.
3226 (MH_CFLAGS): Add -DYYDEBUG=0.
3227
3228 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3229 i386nbsd_sc_pc_offset on OpenBSD too.
3230
3231 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3232 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3233 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3234 define.
3235 * i386bsd-tdep.c: Include "arch-utils.h".
3236 (i386bsd_aout_in_solib_call_trampoline): New function.
3237 (i386bsd_init_abi): Set in_solib_call_trampoline to
3238 i386bsd_aout_in_solib_call_trampoline.
3239 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3240 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3241
3242 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3243
3244 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3245 (struct obstack, struct bcache): Add opaque declarations.
3246 * Makefile.in (macrotab_h): Update
3247
3248 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3249
3250 * blockframe.c (generic_find_dummy_frame): Change return type to
3251 ``struct regcache''.
3252 (struct dummy_frame): Replace field ``registers'' with regcache, a
3253 struct regcache object.
3254 (generic_find_dummy_frame): Update.
3255 (generic_push_dummy_frame): Update. Use regcache_xfree,
3256 regcache_xmalloc and regcache_cpy.
3257 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3258 regcache_xfree.
3259 (deprecated_generic_find_dummy_frame): Update.
3260 (generic_read_register_dummy): Update. Use
3261 regcache_read_as_address.
3262 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3263 (generic_get_saved_register): Update. Use regcache_read.
3264
3265 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3266
3267 * Makefile.in (objfiles_h): Add $(bcache_h).
3268 * objfiles.h: Include "bcache.h".
3269
3270 * Makefile.in (symtab_h): Remove $(bcache_h).
3271 * symtab.h: Do not include "bcache.h".
3272
3273 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3274
3275 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3276 generic_func_frame_chain_valid.
3277
3278 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3279
3280 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3281 * config/i386/tm-fbsd.h: Likewise.
3282
3283 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3284
3285 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3286 generic_unwind_get_saved_register.
3287
3288 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3289
3290 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3291 * regcache.c (supply_register): Add missing argument to
3292 register_buffer call.
3293
3294 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3295
3296 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3297 Solaris /bin/grep does not not like it. From Peter Schauer.
3298
3299 2002-06-26 Tom Tromey <tromey@redhat.com>
3300
3301 * command.h (add_setshow_cmd): Declare.
3302 (add_setshow_cmd_full): Declare.
3303 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3304 returns void. Use add_setshow_cmd_full.
3305 (add_setshow_cmd_full): New function.
3306 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3307 (add_setshow_boolean_cmd): Likewise.
3308
3309 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3310
3311 * config/vax/tm-vax.h: Protect from multiple inclusion.
3312 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3313 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3314 * config/vax/tm-vaxbsd.h: ...here. New file.
3315 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3316
3317 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3318
3319 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3320 (BELIEVE_PCC_PROMOTION): Remove.
3321 (AP_REGNUM): Move to...
3322 * config/vax/nm-vax.h: ...here.
3323 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3324 (vax_breakpoint_from_pc): New function.
3325 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3326 and gdbarch_believe_pcc_promotion.
3327
3328 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3329
3330 * Makefile.in (vax_tdep_h): Define.
3331 (vax-tdep.o): Use $(vax_tdep_h).
3332 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3333 (vax_dump_tdep): New function.
3334 (_initialize_vax_tdep): Register vax_dump_tdep.
3335 * vax-tdep.h: Include osabi.h.
3336 (struct gdbarch_tdep): New.
3337
3338 2002-06-26 Andrew Cagney <cagney@redhat.com>
3339
3340 * frame.h (deprecated_generic_find_dummy_frame): Rename
3341 generic_find_dummy_frame.
3342 * blockframe.c (generic_find_dummy_frame): Make static.
3343 (deprecated_generic_find_dummy_frame): New function.
3344 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3345 generic_find_dummy_frame with deprecated_find_dummy_frame.
3346 (sh64_nofp_frame_init_saved_regs): Ditto.
3347 (sh_fp_frame_init_saved_regs): Ditto.
3348 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3349 (s390_frame_chain): Ditto.
3350 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3351
3352 2002-06-26 Grace Sainsbury <graces@redhat.com>
3353
3354 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3355 gdbarch vector are at the top.
3356 (NUM_REGS): Remove.
3357 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3358 (FRAME_ARGS_ADDRESS): Remove.
3359 (FRAME_LOCALS_ADDRESS): Remove.
3360 (FRAME_NUM_ARGS): Remove.
3361 (FRAME_ARGS_SKIP): Remove.
3362 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3363 (m68k_gdbarch_init): Add gdbarch initializations for macros
3364 undefined in tm-m68k.h
3365
3366 2002-06-26 Grace Sainsbury <graces@redhat.com>
3367
3368 * monitor.h: Add the function regname to monitor_ops
3369 structure. This way NUM_REGS does not have to be a constant.
3370 * monitor.c (monitor_fetch_register): Added support for regname
3371 function. The function is called if the array regnames is NULL.
3372 (monitor_store_register): Same.
3373 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3374 regnames array.
3375 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3376 cpu32bug_cmds.regname to point to new function.
3377 * abug-rom.c (abug_regname): Same as above.
3378 (init_abug_cmds): Same.
3379 * dbug-rom.c (dbug_regname): Same as above.
3380 (init_dbug_cmds): Same.
3381 * remote-est.c (est_regname): Same.
3382 (init_est_cmds): Same.
3383 * rom68k-rom.c (rom68k_regname): Same.
3384 (init_rom68k_cmds): Same.
3385
3386 2002-06-25 Tom Tromey <tromey@redhat.com>
3387
3388 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3389
3390 2002-06-25 Andrew Cagney <cagney@redhat.com>
3391
3392 * infrun.c (stop_registers): Change variable's type to ``struct
3393 regcache'''.
3394 (xmalloc_inferior_status): Delete function.
3395 (free_inferior_status): Delete function.
3396 (normal_stop): Use regcache_cpy.
3397 (struct inferior_status): Change type of fields ``stop_registers''
3398 and ``registers'' to ``struct regcache''.
3399 (write_inferior_status_register): Use regcache_write.
3400 (save_inferior_status): Instead of calling
3401 xmalloc_inferior_status, allocate the inf_status buffer directly.
3402 Use regcache_dup_no_passthrough and regcache_dup to save the
3403 buffers.
3404 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3405 Replace the stop_registers regcache instead of overriding it. Use
3406 regcache_xfree. Instead of calling free_inferior_status, xfree
3407 the buffer directly.
3408 (discard_inferior_status): Use regcache_xfree. Instead of calling
3409 free_inferior_status, xfree the buffer directly.
3410 (build_infrun): Use regcache_xmalloc.
3411 (_initialize_infrun): Delete redundant call to build_infrun.
3412
3413 * Makefile.in (infcmd.o): Add $(regcache_h).
3414
3415 * infcmd.c: Include "regcache.h".
3416 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3417 obtain the address of `stop_registers' register buffer.
3418 (print_return_value): Ditto.
3419
3420 * inferior.h (struct regcache): Add opaque declaration.
3421 (stop_registers): Change variable's declared type to ``struct
3422 regcache''.
3423
3424 2002-06-24 Tom Tromey <tromey@redhat.com>
3425
3426 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3427 * target.c (initialize_targets): Fixed typo in
3428 trust-readonly-sections `show' documentation.
3429
3430 * main.c: Marked all strings with _().
3431
3432 2002-06-24 Don Howard <dhoward@redhat.com>
3433
3434 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3435 that means max CORE_ADDR+1.
3436 (lookup_mem_region): Ditto.
3437 (mem_info_command): Ditto.
3438
3439 2002-06-24 Grace Sainsbury <graces@redhat.com>
3440
3441 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3442 (REGISTER_BYTES_OK): Remove.
3443 (REGISTER_BYTES): Remove.
3444 (STORE_STRUCT_RETURN): Remove.
3445 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3446 (STORE_RETURN_VALUE): Remove.
3447 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3448 (FRAME_CHAIN): Remove.
3449 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3450 (FRAME_SAVED_PC): Remove.
3451 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3452 (m68k_store_struct_return): Add.
3453 (m68k_deprecated_extract_return_value): Add.
3454 (m68k_deprecated_extract_struct_value_address): Add.
3455 (m68k_store_return_value): Add.
3456 (m68k_frame_chain): Add.
3457 (m68k_frameless_function_invocation): Add.
3458 (m68k_frame_saved_pc): Add.
3459 (m68k_gdbarch_init): added set_gdbarch calls for new
3460 functions and deleted macros.
3461
3462 2002-06-23 Tom Tromey <tromey@redhat.com>
3463
3464 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3465 (ALLDEPFILES): Likewise.
3466 (udiheaders): Removed.
3467 (udip2soc.o): Likewise.
3468 (udi2go32.o): Likewise.
3469 (udr.o): Likewise.
3470 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3471
3472 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3473
3474 * infrun.c (_initialize_infrun): Delete unnecessary call to
3475 build_infrun.
3476
3477 * regcache.h: Update comments describing the regcache_cpy family
3478 of functions.
3479 (regcache_save, regcache_restore): Delete declaration.
3480 (regcache_save_no_passthrough): Delete declaration.
3481 (regcache_restore_no_passthrough): Delete declaration.
3482 * regcache.c (regcache_save): Delete function.
3483 (regcache_save_no_passthrough): Delete function.
3484 (regcache_restore): Delete function.
3485 (regcache_restore_no_passthrough): Delete function.
3486
3487 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3488
3489 * config/m68k/tm-m68k.h: Fix typo.
3490 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3491 (m68k_frame_init_saved_regs): Declare.
3492
3493 2002-06-21 Jim Blandy <jimb@redhat.com>
3494
3495 Remove some vestiges of Harris 88k support.
3496 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3497 register numbering quirk.
3498 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3499 odd symbols occurring in Harris 88k ELF targets.
3500
3501 2002-06-21 Tom Tromey <tromey@redhat.com>
3502
3503 * gdb_locale.h: New file.
3504 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3505 (defs_h): Added gdb_locale.h.
3506 * configure, config.in: Rebuilt.
3507 * configure.in (PACKAGE): Define.
3508 * defs.h: Include gdb_locale.h.
3509 * main.c (captured_main): Call setlocale, bindtextdomain,
3510 textdomain.
3511
3512 2002-06-21 Dave Brolley <brolley@redhat.com>
3513
3514 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3515 * config/frv/frv.mt: New file.
3516 * config/frv/tm-frv.h: New file.
3517 * configure.tgt: Support frv-*-*.
3518 * Makefile.in (frv-tdep.o): New target.
3519 * frv-tdep.c: New file.
3520 * NEWS: Mention frv.
3521
3522 2002-06-21 Dave Brolley <brolley@redhat.com>
3523
3524 * MAINTAINERS: Add self to "Write After Approval" list.
3525
3526 2002-06-21 Grace Sainsbury <graces@redhat.com>
3527
3528 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3529 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3530 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3531 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3532 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3533
3534 * m68k-tdep.c: Include arch-utils.h
3535 (m68k_register_raw_size): Add.
3536 (m68k_register_virtual_size): Add.
3537 (m68k_register_virtual_type): Add.
3538 (m68k_register_name): Add.
3539 (m68k_stack_align): Add.
3540 (m68k_register_byte): Add.
3541 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3542 tm-m68k.h.
3543
3544 2002-06-21 Grace Sainsbury <graces@redhat.com>
3545
3546 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3547 m68k_find_saved_regs.
3548 (m68k_pop_frame): Removed saved_regs structure, and replaced
3549 references to it with frame->saved_regs.
3550 (m68k_gdbarch_init): Added function calls to initialize the
3551 gdbarch structure.
3552 (m68k_fix_call_dummy): Add.
3553 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3554 (CALL_DUMMY): Remove.
3555 (CALL_DUMMY_LENGTH): Remove.
3556 (CALL_DUMMY_START_OFFSET): Remove.
3557 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3558 (FIX_CALL_DUMMY): Remove.
3559 (PUSH_DUMMY_FRAME): Remove.
3560 (POP_FRAME): Remove.
3561
3562 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3563
3564 * parse.c (parse_fprintf): New function used to avoid calls to
3565 fprintf in bison parser generated debug code.
3566 * parser-defs.h: Declaration of new parse_fprintf function.
3567 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3568 Set YYDEBUG to 1 by default.
3569 Set YYFPRINTF as parse_fprintf.
3570
3571 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3572
3573 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3574 encoding anymore.
3575 (pointer_encoding, enum ptr_encoding): New.
3576 (execute_cfa_program): Take care about pointer encoding.
3577 (dwarf2_build_frame_info): Only call parse_frame_info for
3578 .debug_frame and .eh_frame.
3579 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3580 fixed augmentation handling, added relative addressing,
3581 ignore duplicate FDEs. Added comments.
3582 * dwarf2cfi.c: Reindented.
3583
3584 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3585
3586 * event-top.c (command_handler): Don't use space_at_cmd_start
3587 unless there is sbrk() on the host. Assign time and space data
3588 to union fields of the appropriate length.
3589
3590 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3591
3592 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3593 x86_64_register_name. Return type changed to 'const char *'.
3594 (x86_64_register_name2nr): Rename to x86_64_register_number.
3595 (x86_64_gdbarch_init): Update to reflect the change.
3596 * x86-64-tdep.h: Ditto.
3597 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3598 (supply_fpregset): Ditto.
3599
3600 2002-06-19 Andrew Cagney <cagney@redhat.com>
3601
3602 * regcache.h: Update copyright.
3603 (struct regcache, struct gdbarch): Add opaque declarations.
3604 (current_regcache): Declare global variable.
3605 (regcache_read, regcache_write): Add gdbarch parameter.
3606 (regcache_save, regcache_save_no_passthrough)
3607 (regcache_restore, regcache_restore_no_passthrough)
3608 (regcache_dup, regcache_dup_no_passthrough)
3609 (regcache_cpy, regcache_cpy_no_passthrough)
3610 (deprecated_grub_regcache_for_registers)
3611 (deprecated_grub_regcache_for_register_valid)
3612 (regcache_valid_p): Add function declarations.
3613
3614 * regcache.c: Update copyright.
3615 (regcache_descr_handle): New global variable.
3616 (struct regcache_descr): Define.
3617 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3618 (regcache_descr, xfree_regcache_descr): New functions.
3619 (struct regcache): Define.
3620 (regcache_xmalloc, regcache_xfree): New functions.
3621 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3622 (regcache_dup, regcache_dup_no_passthrough): New functions.
3623 (regcache_valid_p, regcache_read_as_address): New functions.
3624 (deprecated_grub_regcache_for_registers): New function.
3625 (deprecated_grub_regcache_for_register_valid): New function.
3626 (current_regcache): New global variable.
3627 (register_buffer): Add regcache parameter. Update calls.
3628 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3629 (read_register_gen, write_register_gen): Update register_buffer
3630 call. Test for legacy_p instead of gdbarch_register_read_p or
3631 gdbarch_register_write_p.
3632 (regcache_collect): Update register_buffer call.
3633 (build_regcache): Rewrite. Use deprecated grub functions.
3634 (regcache_save, regcache_save_no_passthrough): New functions.
3635 (regcache_restore, regcache_restore_no_passthrough): New
3636 functions.
3637 (_initialize_regcache): Create the regcache_data_handle. Swap
3638 current_regcache global variable.
3639
3640 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3641 parameter to regcache_read and regcache_write calls.
3642 (sh4_register_read): Ditto.
3643 (sh64_pseudo_register_read): Ditto.
3644 (sh64_register_read): Ditto.
3645 (sh_pseudo_register_write): Ditto.
3646 (sh4_register_write): Ditto.
3647 (sh64_pseudo_register_write): Ditto.
3648 (sh64_register_write): Ditto.
3649
3650 * defs.h (XCALLOC): Define.
3651
3652 2002-06-19 Grace Sainsbury <graces@redhat.com>
3653
3654 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3655 * m68k-tdep.c (m68k_gdbarch_init): Added.
3656 (m68k_dump_tdep): Added.
3657
3658 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3659
3660 * ada-lang.c (fill_in_ada_prototype): Update comment.
3661
3662 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3663
3664 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3665 MIPS_ABI_LAST.
3666 (mips_abi_string, mips_abi_strings): New.
3667 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3668 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3669 tdep->mips_abi_string. Honor mips_abi_string. Default to
3670 O32 if no ABI is found.
3671 (mips_dump_tdep): Use mips_abi_strings.
3672 (mips_abi_update): New function.
3673 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3674 ``set mips abi'' and ``show mips abi''. Check the size of
3675 mips_abi_strings.
3676
3677 2002-06-19 Andrew Cagney <cagney@redhat.com>
3678
3679 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3680 constant.
3681
3682 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3683
3684 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3685 current frame using only the first stack size adjustment. All
3686 subsequent size adjustments are not considered to be part of
3687 the "static" part of the current frame.
3688 Compute the address of the saved registers relative to the
3689 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3690 in use in this frame.
3691
3692 2002-06-18 Don Howard <dhoward@redhat.com>
3693
3694 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3695 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3696 suggesting this solution.
3697
3698 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3699
3700 * config/romp/xm-rtbsd.h: Delete file.
3701 * config/romp/rtbsd.mh: Delete file.
3702
3703 2002-06-18 Keith Seitz <keiths@redhat.com>
3704
3705 * breakpoint.c (condition_command): Post breakpoint_modify
3706 when a condition is added to an existing breakpoint.
3707 (commands_command): Likewise for commands.
3708 (set_ignore_count): Likewise for ignore counts.
3709 If no tty, do not simply return, still need to send event
3710 notification.
3711 (ignore_command): Only print a newline if the command came
3712 from a tty.
3713 Don't call breakpoints_changed, since this is now properly
3714 handled by set_ignore_count.
3715
3716 2002-06-18 Andrew Cagney <cagney@redhat.com>
3717
3718 * MAINTAINERS: Note that cris-elf target can be compiled with
3719 -Werror.
3720 * cris-tdep.c (cris_register_name): Make return type constant.
3721 (cris_breakpoint_from_pc): Ditto.
3722
3723 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3724
3725 * frame.h (struct frame_info): Change type of context to
3726 'struct context'.
3727
3728 2002-06-17 Andrew Cagney <cagney@redhat.com>
3729
3730 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3731 pointer.
3732 * gdbarch.h, gdbarch.c: Regenerate.
3733 * config/mips/tm-mips.h (mips_register_name): Update.
3734 * i386-tdep.h (i386_register_name): Update.
3735 * mips-tdep.c (mips_register_name): Update
3736 * alpha-tdep.c (alpha_register_name): Update.
3737 * arch-utils.c (legacy_register_name): Update.
3738 * arch-utils.h (legacy_register_name): Update.
3739 * avr-tdep.c (avr_register_name): Update.
3740 * ia64-tdep.c (ia64_register_name): Update.
3741 * i386-tdep.c (i386_register_name): Update.
3742 * sparc-tdep.c (sparc32_register_name): Update.
3743 (sparc64_register_name): Update.
3744 (sparclite_register_name): Update.
3745 (sparclet_register_name): Update.
3746 * sh-tdep.c (sh_generic_register_name): Update.
3747 (sh_sh_register_name): Update.
3748 (sh_sh3_register_name): Update.
3749 (sh_sh3e_register_name): Update.
3750 (sh_sh_dsp_register_name): Update.
3751 (sh_sh3_dsp_register_name): Update.
3752 (sh_sh4_register_name): Update.
3753 (sh_sh64_register_name): Update.
3754 * s390-tdep.c (s390_register_name): Update.
3755 * rs6000-tdep.c (rs6000_register_name): Update.
3756 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3757 (ns32k_register_name_32382): Update.
3758 * d10v-tdep.c (d10v_ts2_register_name): Update.
3759 (d10v_ts3_register_name): Update.
3760 * xstormy16-tdep.c (xstormy16_register_name): Update.
3761 * vax-tdep.c (vax_register_name): Update.
3762 * v850-tdep.c (v850_register_name): Update.
3763 * m68hc11-tdep.c (m68hc11_register_name): Update.
3764 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3765 (am33_register_name): Update.
3766
3767 2002-06-17 Grace Sainsbury <graces@redhat.com>
3768
3769 * m68k-tdep.c: Reindented.
3770
3771 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3772
3773 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3774 list of predefined types.
3775
3776 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3777
3778 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3779 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3780 REGISTER_CONVERT_TO_RAW): Remove defines.
3781 (i386_register_virtual_type, i386_register_convertible,
3782 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3783 Remove prototypes.
3784 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3785 macros mentioned above.
3786
3787 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3788 (i386lynx_saved_pc_after_call): Remove prototype.
3789 * i386ly-tdep.c: Include "i386-tdep.h".
3790 (i386lynx_saved_pc_after_call): Make static. Use
3791 read_memory_nobpt instead of read_memory. Use
3792 read_memory_unsigned_integer instead of read_memory_integer.
3793 (i386lynx_init_abi): New function.
3794 (i386lynx_coff_osabi_sniffer): New function.
3795 (_initialize_i386bsd_tdep): New function.
3796
3797 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3798 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3799 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3800 (i386_fix_call_dummy): Remove prototype.
3801 * i386-tdep.c (i386_call_dummy_words): New variable.
3802 (i386_gdbarch_init): Adjust for removal of the
3803 macros mentioned above.
3804
3805 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3806
3807 * command.h (add_setshow_auto_boolean_cmd): Replace
3808 add_set_auto_boolean_cmd.
3809 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3810 add_set_auto_boolean_cmd.
3811 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3812 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3813 mask-address'' command.
3814 (show_mask_address): Add cmd parameter.
3815 * remote.c (add_packet_config_cmd): Update. Change type of
3816 set_func and show_func to cmd_sfunc_ftype.
3817 (_initialize_remote): Update `set remote Z-packet'
3818 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3819 (show_remote_protocol_e_packet_cmd): Ditto.
3820 (show_remote_protocol_E_packet_cmd): Ditto.
3821 (show_remote_protocol_P_packet_cmd): Ditto.
3822 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3823 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3824 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3825 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3826 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3827 (show_remote_protocol_Z_packet_cmd): Ditto.
3828 (show_remote_protocol_binary_download_cmd): Ditto.
3829 (show_remote_cmd): Pass NULL to all of above.
3830
3831 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3832
3833 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3834 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3835 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3836 POP_FRAME): Remove defines.
3837 (i386_push_arguments, i386_store_struct_return,
3838 i386_extract_return_value, i386_store_return_value,
3839 i386_extract_struct_value_address, i386_push_dummy_frame,
3840 i386_pop_frame): Renove prototypes.
3841 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3842 macros mentioned above.
3843
3844 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3845
3846 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3847 add_set_boolean_cmd.
3848 (add_setshow_cmd): New function.
3849 * command.h (add_setshow_boolean_cmd): Replace
3850 add_set_boolean_cmd.
3851 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3852 and ``set rdiromatzero''.
3853 * maint.c (_initialize_maint_cmds): Update commented out code.
3854 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3855 * target.c (initialize_targets): Update `set
3856 trust-readonly-sections'.
3857 * remote.c (_initialize_remote): Update `set remotebreak'.
3858
3859 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3860
3861 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3862 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3863 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3864 fit into multi-arch framework.
3865 (i386_breakpoint_from_pc): New function.
3866 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3867 above.
3868
3869 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3870 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3871 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3872 (i386_frameless_function_invocation, i386_frame_num_args,
3873 i386_frame_init_saved_regs): Remove prototypes.
3874 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3875 macros mentioned above.
3876
3877 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3878
3879 * cli/cli-decode.c (set_cmd_cfunc): Update.
3880 (set_cmd_sfunc): Update.
3881 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3882 (set_cmd_sfunc, set_cmd_cfunc): Update.
3883 * cli/cli-decode.h: Update.
3884
3885 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3886
3887 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3888 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3889
3890 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3891
3892 * defs.h (auto_boolean): Declare enum.
3893 * command.h (cmd_auto_boolean): Delete enum.
3894 * mips-tdep.c (mask_address_var): Update.
3895 (mips_mask_address_p): Update.
3896 (show_mask_address): Update.
3897 * remote.c (struct packet_config): Update.
3898 (update_packet_config): Update.
3899 (show_packet_config_cmd): Update.
3900 (packet_ok): Update.
3901 (add_packet_config_cmd): Update.
3902 (_initialize_remote):
3903 * command.h: Update.
3904 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3905 (do_setshow_command): Update.
3906 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3907 * cli/cli-decode.h: Update.
3908
3909 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3910
3911 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3912 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3913 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3914 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3915 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3916 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3917
3918 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3919 list of DJGPP COFF targets.
3920
3921 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3922 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3923 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3924 (FP0_REGNUM): Remove define.
3925 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3926 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3927 (i386_register_virtual_size): Remove protoype.
3928 * i386-tdep.c (i386_register_virtual_size): Removed.
3929 (i386_extract_return_value, i386_store_return_value): Use
3930 FP0_REGNUM instead of NUM_FREGS to determine whether the
3931 floating-point registers are available.
3932 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3933 Adjust for removal of macros mentioned above.
3934
3935 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3936
3937 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3938 comments.
3939 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3940 Remove prototypes.
3941 (supply_gregset, fill_gregset): Remove use of register keyword and
3942 remove declaration for regmap. Use I386_NUM_GREGS instead of
3943 NUM_REGS and NUM_FREGS.
3944 (FPREGSET_FSAVE_OFFSET): Remove.
3945 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3946 NUM_FREGS to determine whether the floating-point registers are
3947 available.
3948
3949 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3950 gnu_store_registers): Replace usage of NUM_GREGS with
3951 I386_NUM_GREGS.
3952
3953 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3954 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3955 usage of NUM_GREGS with I386_NUM_GREGS.
3956
3957 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3958
3959 * i386bsd-nat.c: Include "i386-tdep.h".
3960 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3961 I386_NUM_GREGS.
3962
3963 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3964 and associated comment. They no longer make any sense, since we
3965 don't use this file anymore on Linux.
3966
3967 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3968 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3969 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3970 elements in these arrays.
3971 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3972 MAX_NUM_REGS.
3973
3974 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3975
3976 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3977 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3978
3979 2002-06-14 Andrew Cagney <cagney@redhat.com>
3980
3981 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3982 EXTRACT_RETURN_VALUE.
3983 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3984 EXTRACT_STRUCT_VALUE_ADDRESS.
3985 * gdbarch.h, gdbarch.c: Regenerate.
3986
3987 * values.c (value_being_returned): Handle
3988 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3989 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3990
3991 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3992 * arm-tdep.c (arm_gdbarch_init): Update.
3993 * avr-tdep.c (avr_gdbarch_init): Update.
3994 * cris-tdep.c (cris_gdbarch_init): Update.
3995 * d10v-tdep.c (d10v_gdbarch_init): Update.
3996 * ia64-tdep.c (ia64_gdbarch_init): Update.
3997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3999 * s390-tdep.c (s390_gdbarch_init): Update.
4000 * sh-tdep.c (sh_gdbarch_init): Update.
4001 * s390-tdep.c (s390_gdbarch_init): Update.
4002 * sparc-tdep.c (sparc_gdbarch_init): Update.
4003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4004 * v850-tdep.c (v850_gdbarch_init): Update.
4005 * vax-tdep.c (vax_gdbarch_init): Update.
4006 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4008
4009 * config/arc/tm-arc.h: Update.
4010 * config/d30v/tm-d30v.h: Update.
4011 * config/fr30/tm-fr30.h: Update.
4012 * config/h8300/tm-h8300.h: Update.
4013 * config/h8500/tm-h8500.h: Update.
4014 * config/i386/tm-i386.h: Update.
4015 * config/i386/tm-ptx.h: Update.
4016 * config/i386/tm-symmetry.h: Update.
4017 * config/i960/tm-i960.h: Update.
4018 * config/m32r/tm-m32r.h: Update.
4019 * config/m68k/tm-delta68.h: Update.
4020 * config/m68k/tm-linux.h: Update.
4021 * config/m68k/tm-m68k.h: Update.
4022 * config/m88k/tm-m88k.h: Update.
4023 * config/mcore/tm-mcore.h: Update.
4024 * config/mips/tm-mips.h: Update.
4025 * config/mn10200/tm-mn10200.h: Update.
4026 * config/pa/tm-hppa.h: Update.
4027 * config/pa/tm-hppa64.h: Update.
4028 * config/sparc/tm-sp64.h: Update.
4029 * config/sparc/tm-sparc.h: Update.
4030 * config/sparc/tm-sparclet.h: Update.
4031 * config/z8k/tm-z8k.h: Update.
4032
4033 2002-06-14 Andrew Cagney <cagney@redhat.com>
4034
4035 * Makefile.in (i386_linux_tdep_h): Define.
4036 (i386_tdep_h, i387_tdep_h): Define.
4037 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4038 $(i386_tdep_h) and $(i387_tdep_h).
4039 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4040
4041 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4042
4043 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4044 Already covered by the default.
4045
4046 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4047 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4048 (i386_gdbarch_init): Initialize long_double_format and long_double
4049 bit.
4050
4051 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4052 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4053 Move these to ...
4054 * config/i386/i386sol2.mh: ... here.
4055 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4056 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4057 (SIGCONTEXT_PC_OFFSET): Remove define.
4058 (IN_SIGTRAMP): Remove define.
4059 * i386-sol2-tdep.c: New file.
4060
4061 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4062 * config/i386/tm-i386nw.h: Removed.
4063
4064 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4065 USE_STRUCT_CONVENTION): Remove defines.
4066 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4067 (get_longjmp_target): Remove prototype.
4068 (IN_SIGTRAMP): Remove define.
4069 (i386bsd_in_sigtramp): Remove prototype.
4070 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4071 function. Update comment accordingly
4072 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4073 (FRAME_SAVED_PC): Remove define.
4074 (i386bsd_frame_saved_pc): Remove prototype.
4075 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4076 GET_LONGJMP_TARGET): Remove defines.
4077 (get_longjmp_target): Remove prototype.
4078 (IN_SIGTRAMP): Remove define.
4079 (i386bsd_in_sigtramp): Remove prototype.
4080 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4081 function. Update comment accordingly
4082 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4083 (FRAME_SAVED_PC): Remove define.
4084 (i386bsd_frame_saved_pc): Remove prototype.
4085 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4086 Remove prototype.
4087 (USE_STRUCT_CONVENTION): Remove prototype.
4088 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4089 declaration.
4090 (_initialize_i386bsd_nat): Revise logic to determine some
4091 constants at compile time when compiling a native GDB. Warn if
4092 things don't match up with what we expect.
4093 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4094 Remove variables.
4095 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4096 to use date stored in `struct gdbarch_tdep'.
4097 (i386bsd_sigcontext_offset): Remove varaible.
4098 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4099 stored in `struct gdbarch_tdep'.
4100 (i386bsd_frame_saved_pc): Make static.
4101 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4102 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4103 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4104 i386fbsd4_sc_pc_offset): New variables.
4105 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4106 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4107 functions.
4108 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4109 functions.
4110 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4111 Modify the value of i386fbsd_sigtramp_start and
4112 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4113 i386fbsd_sigtramp_end.
4114 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4115 function.
4116
4117 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4118 define to i386-linux-tdep.h.
4119 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4120 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4121 defines.
4122 (i386_linux_register_name, i386_linux_register_byte,
4123 i386_linux_register_raw_size): Remove prototypes.
4124 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4125 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4126 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4127 TARGET_WRITE_PC): Remove defines.
4128 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4129 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4130 i386_linux_write_pc): Remove prototypes.
4131 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4132 (get_longjmp_target): Remove prototype.
4133 * i386-linux-tdep.h: New file.
4134 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4135 * i386-linux-tdep.c: Include "i386-tdep.h" and
4136 "i386-linux-tdep.h".
4137 (i386_linux_register_name, i386_linux_register_byte,
4138 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4139 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4140 Make static.
4141 (i386_linux_init_abi): New function.
4142 (_initialize_i386_linux_tdep): New function.
4143
4144 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4145 (i386_saved_pc_after_call): Remove prototype.
4146 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4147 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4148 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4149 (i386_register_name, i386_stab_reg_to_regnum,
4150 i386_dwarf_reg_to_regnum): Remove prototypes.
4151 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4152 SIZEOF_SSE_REGS): Remove defines.
4153 (REGISTER_BYTES): Remove define.
4154 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4155 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4156 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4157 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4158 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4159 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4160 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4161 (get_longjmp_target): Remove prototype.
4162 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4163 (sigtramp_saved_pc): Remove define.
4164 (i386v4_sigtramp_saved_pc): Remove prototype.
4165 * config/i386/tm-go32.h (FRAME_CHAIN,
4166 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4167 (i386go32_frame_saved_pc): Remove prototype.
4168 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4169 (get_longjmp_target): Remove prototype.
4170 * i386-tdep.h: Include "osabi.h".
4171 (enum i386_abi): Removed.
4172 (enum struct_return): New enum.
4173 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4174 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4175 sc_pc_offset members.
4176 (i386_gdbarch_register_os_abi): Remove prototype.
4177 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4178 I386_SSE_NUM_REGS): New defines.
4179 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4180 I386_SSE_SIZEOF_REGS): New defines.
4181 (i386_register_name, i386_register_byte, i386_register_raw_size):
4182 New prototypes.
4183 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4184 (i386bsd_sigtramp_saved_pc): New prototype.
4185 * i386-tdep.c: Don't include "elf-bfd.h".
4186 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4187 i386_frame_chain, i386_saved_pc_after_call): Make static.
4188 (i386_frame_saved_pc): Rewrite to call architecture dependent
4189 function to deal with signal handlers. Make static.
4190 (i386go32_frame_saved_pc): Removed.
4191 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4192 Removed.
4193 (i386_get_longjmp_target): New function.
4194 (default_struct_convention, pcc_struct_convention,
4195 reg_struct_convention, valid_conventions, struct_convention): New
4196 variables.
4197 (i386_use_struct_convention): New function.
4198 (i386v4_sigtramp_saved_pc): Renamed to
4199 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4200 (i386_pc_in_sigtramp): New function.
4201 (i386_abi_names): Removed.
4202 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4203 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4204 Removed.
4205 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4206 i386_gdbarch_register_os_abi): Removed.
4207 (struct i386_abi_handler): Removed.
4208 (i386_abi_handler_list): Removed.
4209 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4210 functions.
4211 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4212 i386_nw_init_abi): New functions.
4213 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4214 Use set_gdbarch_xxx() calls instead of relying on macros for a
4215 number of calls.
4216 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4217 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4218 Register the various architecture variants defined in this file.
4219
4220 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4221
4222 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4223 (struct main_type): Remove arg_types member. Update comments for
4224 struct field.
4225 (TYPE_ARG_TYPES): Remove.
4226 (TYPE_FN_FIELD_ARGS): Update.
4227 (smash_to_method_type): Update prototype.
4228
4229 * c-typeprint.c (cp_type_print_method_args): Take method type
4230 instead of argument list. Use new argument layout. Simplify.
4231 (c_type_print_args): Use new argument layout. Simplify.
4232 (c_type_print_base): Update call to cp_type_print_method_args.
4233 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4234 argument; use die->type instead. Update call to
4235 smash_to_method_type.
4236 (read_structure_scope): Update call to dwarf2_add_member_fn.
4237 * gdbtypes.c (allocate_stub_method): Update comment.
4238 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4239 Use new argument layout.
4240 (check_stub_method): Use new argument layout. Don't count
4241 void as an argument.
4242 (print_arg_types): Update comments. Use new argument layout.
4243 (recursive_dump_type): Don't print arg_types member.
4244 * hpread.c (hpread_read_struct_type): Use new argument layout.
4245 (fixup_class_method_type): Likewise.
4246 (hpread_type_lookup): Likewise.
4247 * stabsread.c (read_type): Update calls to read_args and
4248 smash_to_method_type.
4249 (read_args): Use new argument layout. Simplify.
4250 * valops.c (typecmp): Use new argument layout. Update parameters
4251 and comments. Simplify.
4252 (hand_function_call): Use new argument layout.
4253 (search_struct_method): Update call to typecmp.
4254 (find_overload_match): Use new argument layout.
4255
4256 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4257
4258 * NEWS: Mention multithreaded debug support for gdbserver.
4259
4260 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4261
4262 * MAINTAINERS: Mention NEWS.
4263
4264 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4265
4266 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4267 (struct mips_objfile_private, compare_pdr_entries): New.
4268 (non_heuristic_proc_desc): Read the ".pdr" section if it
4269 is present.
4270
4271 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4272
4273 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4274 (arm_debug): New static variable.
4275 (_initialize_arm_tdep): Add ``set debug arm'' command.
4276
4277 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4278
4279 * Makefile.in (sim_arm_h): Define.
4280 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4281 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4282 (arm_register_sim_regno): New function, map an internal REGNUM
4283 onto a simulator register number.
4284 (arm_gdbarch_init): Set register_sim_regno.
4285
4286 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4287
4288 * MAINTAINERS: Add self.
4289
4290 2002-06-11 Jim Blandy <jimb@redhat.com>
4291
4292 * source.c (source_info): Mention whether the symtab has
4293 information about preprocessor macros.
4294
4295 Call the command `info macro', not `show macro'.
4296 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4297 Fix error message.
4298 (_initialize_macrocmd): Register `info_macro_command' in
4299 `infolist', not `showlist'.
4300
4301 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4302
4303 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4304 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4305 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4306 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4307 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4308 unconditionally.
4309 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4310 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4311 (_initialize_mips_tdep): Remove dead code.
4312 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4313 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4314 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4315 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4316 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4317 MIPS_LAST_FP_ARG_REGNUM): Remove.
4318
4319 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4320
4321 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4322 (unwind_tmp_obstack_free, parse_frame_info)
4323 (update_context, cfi_read_fp, cfi_write_fp)
4324 (cfi_frame_chain, cfi_init_extra_frame_info)
4325 (cfi_virtual_frame_pointer): Use the above function.
4326 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4327
4328 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4329
4330 * v850-tdep.c (v850_type_is_scalar): New function.
4331 (v850_use_struct_convention): Match current gcc implementation
4332 as close as possible.
4333 (v850_push_arguments): Fix stack_offset handling. Don't write
4334 struct_addr into register. This is done by v850_store_struct_return.
4335 (v850_extract_return_value): Care for structs.
4336 (v850_store_return_value): Ditto.
4337 (v850_store_struct_return): Actually write address.
4338
4339 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4340
4341 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4342 without debug information too.
4343
4344 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4345
4346 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4347 Make multi-arch pure.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * arm-tdep.c (arm_print_float_info): Update.
4350 * arch-utils.h (default_print_float_info): Update.
4351 * arch-utils.c (default_print_float_info): Update.
4352 * infcmd.c (float_info): Update call.
4353
4354 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4355
4356 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4357 the front of the initialize list.
4358
4359 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4360
4361 * infrun.c (struct inferior_status): Replace fields
4362 selected_frame_address and selected_level with field
4363 selected_frame_id.
4364 (save_inferior_status): Update. Use get_frame_id.
4365 (struct restore_selected_frame_args): Delete.
4366 (restore_selected_frame): Update. Use frame_find_by_id.
4367 (restore_inferior_status): Update.
4368
4369 * breakpoint.h (struct breakpoint): Change type of
4370 watchpoint_frame to frame_id.
4371 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4372 call to get_current_frame.
4373 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4374 get_current_frame.
4375 (watchpoint_check): Use frame_find_by_id.
4376
4377 * frame.h (record_selected_frame): Delete declaration.
4378 * stack.c (record_selected_frame): Delete function.
4379
4380 * frame.h (struct frame_id): Define.
4381 (get_frame_id): Declare.
4382 (frame_find_by_id): Declare.
4383 * frame.c (frame_find_by_id): New function.
4384 (get_frame_id): New function.
4385
4386 2002-06-10 Andrey Volkov <avolkov@transas.com>
4387
4388 * ser-e7kpc.c: Fix duplicated define and call of
4389 _initialize_ser_e7000pc
4390
4391 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4392
4393 * signals/signals.c (target_signal_from_host): Fix #ifdef
4394 SIGRTMIN case.
4395 (do_target_signal_to_host): Likewise.
4396
4397 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * mips-tdep.c (mips_find_abi_section): New function.
4400 (mips_gdbarch_init): Call it.
4401
4402 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4403
4404 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4405 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4406 after Andrew's 2002-06-08 gdbarch change.
4407
4408 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4409
4410 * i386-linux-nat.c (suppy_gregset): Don't supply
4411 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4412 register cache.
4413 (fill_gregset): Don't fetch it under the same circumstances.
4414
4415 2002-06-09 Andrew Cagney <cagney@redhat.com>
4416
4417 * Makefile.in (callback_h): Define.
4418 (remote_sim_h): Update path to remote-sim.h.
4419 (remote-rdp.o): Add $(callback_h).
4420 (remote-sim.o): Use $(callback_h).
4421 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4422 * remote-rdp.c: Include "gdb/callback.h".
4423
4424 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4425
4426 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4427 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4428
4429 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4430
4431 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4432 * rdi-share/serpardr.c: Ditto.
4433 * rdi-share/unixcomm.c: Ditto.
4434 * rdi-share/serdrv.c: Ditto.
4435 * rdi-share/hostchan.h: Ditto.
4436 * rdi-share/hostchan.c: Ditto.
4437 * rdi-share/host.h: Ditto.
4438 * rdi-share/devsw.c: Ditto.
4439
4440 * objfiles.h: Change type of obj_private to void pointer.
4441 * pa64solib.c: Update copyright. Don't include "assert.h", use
4442 strcmp instead of STREQ, use LONGEST, do not use PTR
4443 * somsolib.c: Ditto.
4444
4445 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4446 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4447 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4448
4449 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4450
4451 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4452 (default_get_saved_register): Delete function.
4453 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4454 generic_unwind_get_saved_register.
4455 * gdbarch.h, gdbarch.c: Re-generate.
4456
4457 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4458
4459 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4460 generic_func_frame_chain_valid.
4461 * gdbarch.h, gdbarch.c: Re-generate.
4462 * blockframe.c (generic_func_frame_chain_valid): Only check
4463 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4464 passing FP to PC_IN_CALL_DUMMY.
4465 Fix PR gdb/360.
4466
4467 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4468
4469 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4470 (register_gdbarch_data): Initialize init_p.
4471 (gdbarch_data): Initialize data pointer using the init function.
4472 (init_gdbarch_data): Delete function.
4473 (gdbarch_update_p): Update.
4474 (initialize_non_multiarch): Update.
4475 (struct gdbarch): Add field initialized_p.
4476 * gdbarch.h, gdbarch.c: Re-generate.
4477
4478 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4479
4480 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4481 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4482 better do the things actually here.
4483 * x86-64-tdep.c (x86_64_register_name2nr): New.
4484 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4485 (x86_64_gdbarch_init): Respect the above change.
4486 * x86-64-tdep.h (x86_64_register_name2nr)
4487 (x86_64_register_nr2name): Add prototypes.
4488 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4489
4490 2002-06-06 Michael Snyder <msnyder@redhat.com>
4491
4492 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4493 Delete extra braces and re-indent.
4494 (d10v_store_return_value): Char return values
4495 must be shifted over by one byte in R0.
4496 (d10v_extract_return_value): Delete extra braces, re-indent.
4497
4498 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4499
4500 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4501 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4502 (d10v_integer_to_address): Rewrite.
4503 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4504 the d10v specific functions which take care of converting to the
4505 correct space.
4506
4507 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4508
4509 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4510 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4511
4512 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4513
4514 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4515 includes.
4516 * config/tm-linux.h: Ditto.
4517 * config/alpha/tm-alphalinux.h: Ditto.
4518 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4519 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4520 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4521 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4522 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4523 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4524 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4525 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4526 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4527 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4528 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4529 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4530 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4531 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4532 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4533 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4534 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4535 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4536 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4537 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4538 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4539 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4540 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4541 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4542 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4543 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4544 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4545 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4546 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4547 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4548 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4549 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4550 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4551 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4552 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4553 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4554 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4555
4556 2002-05-04 Aidan Skinner <aidan@velvet.net>
4557
4558 * ada-exp.tab.c: New file
4559 * ada-exp.y: New file
4560 * ada-lang.c: New file
4561 * ada-lang.h: New file
4562 * ada-lex.c: New file
4563 * ada-lex.l: New file
4564 * ada-tasks.c: New file
4565 * ada-typeprint.c: New file
4566 * ada-valprint.c: New file
4567
4568 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4569
4570 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4571 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4572
4573 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4574
4575 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4576 insetead of ppc-linux-tdep.o.
4577 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4578 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4579
4580 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4581
4582 2002-05-07 Christian Groessler <chris@groessler.org>
4583 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4584 bit register contents for little endian hosts.
4585
4586 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4587
4588 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4589 any maintainer.
4590
4591 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4592
4593 * gdbarch.h: Regenerate.
4594
4595 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4596
4597 * MAINTAINERS: Add everyone to write-after-approval list.
4598
4599 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4600
4601 * stack.c (frame_info): Use frame_register_unwind instead of
4602 saved_regs. Mention when the SP is on the stack or in a register.
4603
4604 * frame.h (frame_register_unwind_ftype): Define. Document.
4605 (struct frame_info): Add field register_unwind and
4606 register_unwind_cache.
4607 (frame_register_unwind): Declare.
4608 (generic_unwind_get_saved_register): Declare.
4609
4610 * frame.c (frame_register_unwind): New function.
4611 (generic_unwind_get_saved_register): New function.
4612
4613 * blockframe.c (generic_call_dummy_register_unwind): New function.
4614 (frame_saved_regs_register_unwind): New function.
4615 (set_unwind_by_pc): New function.
4616 (create_new_frame): New function.
4617 (get_prev_frame): New function.
4618
4619 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4620
4621 * a29k-share/: Delete directory.
4622 * remote-vx29k.c: Delete file.
4623
4624 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4625
4626 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4627 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4628
4629 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4630
4631 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4632 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4633 (sparc64nbsd-nat.o)
4634 (sparcnbsd-nat.o)
4635 (sparcnbsd-tdep.o): New dependency lists.
4636 * NEWS: Note new UltraSPARC NetBSD native configuration.
4637 * configure.host (sparc64-*-netbsd*): New host.
4638 * configure.tgt (sparc-*-netbsdelf*)
4639 (sparc-*-netbsd*): Set gdb_target to nbsd.
4640 (sparc64-*-netbsd*): New target.
4641 * sparc64nbsd-nat.c: New file.
4642 * sparcnbsd-nat.c: New file.
4643 * sparcnbsd-tdep.c: New file.
4644 * sparcnbsd-tdep.h: New file.
4645 * config/sparc/nbsd.mt: New file.
4646 * config/sparc/nbsd64.mh: New file.
4647 * config/sparc/nbsd64.mt: New file.
4648 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4649 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4650 (HOST_IPC): Remove.
4651 * config/sparc/nbsdaout.mt: Remove.
4652 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4653 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4654 (HOST_IPC): Remove.
4655 * config/sparc/nbsdelf.mt: Remove.
4656 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4657 sparc-nat.c compatiblity defines.
4658 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4659 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4660 * config/sparc/tm-nbsd64.h: New file.
4661 * config/sparc/tm-nbsdaout.h: Remove.
4662 * config/sparc/xm-nbsd.h: Remove.
4663
4664 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4665
4666 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4667 * sparc-tdep.c: Include osabi.h.
4668 (gdbarch_tdep): Add osabi member.
4669 (_initialize_sparc_tdep): Use gdbarch_register.
4670 (sparc_gdbarch_init): Use generic OS ABI framework.
4671 (sparc_dump_tdep): New function.
4672
4673 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4674
4675 * corefile.c (do_captured_read_memory_integer): Return non-zero
4676 result.
4677 (safe_read_memory_integer): Copy result of memory read when
4678 status is non-zero. Also, add comments.
4679
4680 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4681
4682 * Makefile.in (ppc_tdep_h): Define.
4683 (ppc-linux-nat.o)
4684 (ppc-linux-tdep.o)
4685 (rs6000-tdep.o): Use $(ppc_tdep_h).
4686 (ppc-sysv-tdep.o)
4687 (ppcnbsd-nat.o)
4688 (ppcnbsd-tdep.o): New dependency lists.
4689 * ppc-tdep.h: Use generic OS ABI framework.
4690 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4691 (ppc_linux_init_abi): New functions.
4692 (ppc_sysv_abi_broken_use_struct_convention)
4693 (ppc_sysv_abi_use_struct_convention)
4694 (ppc_sysv_abi_push_arguments): Move to...
4695 * ppc-sysv-tdep.c: ...here.
4696 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4697 * rs6000-tdep.c (process_note_abi_tag_sections)
4698 (get_elfosabi): Remove.
4699 (rs6000_gdbarch_init): Use generic OS ABI framework.
4700 (rs6000_dump_tdep): New function.
4701 (_initialize_rs6000_tdep): Use gdbarch_register.
4702 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4703 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4704 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4705 of ppc-linux-tdep.o.
4706 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4707 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4708 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4709 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4710 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4711 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4712
4713 2002-05-29 Jim Blandy <jimb@redhat.com>
4714
4715 * macroscope.c (default_macro_scope): Put `void' in empty argument
4716 list.
4717
4718 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4719
4720 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4721 * arch-utils.c: Include "sim-regno.h".
4722 * gdbarch.sh: Don't include "sim-regno.h".
4723 * gdbarch.h, gdbarch.c: Regenerate.
4724 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4725 here.
4726 * arch-utils.h (legacy_register_sim_regno): To here.
4727 * remote-sim.c (legacy_register_sim_regno): Move function from
4728 here.
4729 * arch-utils.c (legacy_register_sim_regno): To here.
4730
4731 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4732
4733 * sim-regno.h: New file.
4734 * Makefile.in (sim_regno_h): Define.
4735 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4736 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4737 (legacy_register_sim_regno): New function.
4738 (one2one_register_sim_regno): New function.
4739 (gdbsim_fetch_register): Rewrite.
4740 (gdbsim_store_register): Only store a register when
4741 REGISTER_SIM_REGNO is valid.
4742 * d10v-tdep.c: Include "sim-regno.h".
4743 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4744 (d10v_ts3_register_sim_regno): Ditto.
4745 * gdbarch.sh: Include "sim-regno.h".
4746 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4747 * gdbarch.h, gdbarch.c: Regenerate.
4748 * arch-utils.h (default_register_sim_regno): Delete declaration.
4749 * arch-utils.c (default_register_sim_regno): Delete function.
4750
4751 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4752
4753 * ppcnbsd-nat.c: Rewrite.
4754 * ppcnbsd-tdep.c: New file.
4755 * ppcnbsd-tdep.h: New file.
4756 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4757 solib.o, and solib-svr4.o.
4758 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4759 nbsd-tdep.o, and corelow.o.
4760
4761 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4762
4763 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4764 `tr' and `sed'. Mention that `broken' targets are not expected to
4765 build.
4766
4767 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4768
4769 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4770 Let PC point right after the prologue before looking up symbols.
4771
4772 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4773
4774 * i386-tdep.c (i386_register_virtual_type): Return
4775 builtin_type_vec128i for SSE registers.
4776
4777 * gdbtypes.h (builtin_type_vec128i): Declare.
4778
4779 * gdbtypes.c (build_builtin_type_vec128i): New function.
4780 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4781 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4782 (build_gdbtypes): Initialize new builtin vector types.
4783 (_initialize_gdbtypes): Register new vector types with gdbarch.
4784
4785 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4786
4787 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4788 since it has been multi-arch'd.
4789 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4790 Move Alpha and VAX multi-arch news entries to same section
4791 as other multi-arch news.
4792
4793 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4794
4795 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4796 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4797 static. Rename some register numbers to put them in ns32k-tdep
4798 private namespace.
4799 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4800 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4801 functions.
4802 (_initialize_ns32k_tdep): Use gdbarch_register.
4803 * ns32k-tdep.h: New file.
4804 * ns32knbsd-tdep.c: New file.
4805 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4806 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4807 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4808 REGISTER_BYTES, REGISTER_BYTE): Remove.
4809 * config/ns32k/tm-ns32k.h: New file.
4810 * config/ns32k/tm-umax.h: Remove.
4811
4812 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4813
4814 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4815 ns32k_store_struct_return, ns32k_extract_return_value,
4816 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4817 functions.
4818 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4819 ns32k_saved_pc_after_call.
4820 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4821 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4822 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4823 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4824 ns32k_extract_struct_value_address.
4825
4826 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4827
4828 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4829 ns32k_fix_call_dummy): New.
4830 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4831 ns32k_call_dummy_words.
4832 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4833 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4834 CALL_DUMMY_NARGS): Remove.
4835 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4836
4837 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4838
4839 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4840 ns32k_frame_saved_pc, ns32k_frame_args_address,
4841 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4842 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4843 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4844 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4845 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4846 (BREAKPOINT): Remove..
4847 (FRAME_CHAIN): Define as ns32k_frame_chain.
4848 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4849 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4850 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4851 (FRAME_FIND_SAVED_REGS): Remove.
4852 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4853 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4854 (POP_FRAME): Define as ns32k_pop_frame.
4855
4856 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4857
4858 * ns32k-tdep.c (ns32k_register_byte_32082,
4859 ns32k_register_byte_32382, ns32k_register_raw_size,
4860 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4861 functions.
4862 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4863 ns32k_register_byte_32382.
4864 * config/ns32k/tm-umax.h: Update copyright years.
4865 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4866 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4867 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4868 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4869 (ns32k_get_enter_addr): Fix prototype.
4870
4871 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4872
4873 * ns32k-tdep.c: Update copyright years.
4874 (ns32k_register_name_32082): New function.
4875 (ns32k_register_name_32382): Ditto.
4876 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4877 (REGISTER_NAME): Define as ns32k_register_name_32382.
4878 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4879 (REGISTER_NAME): Define as ns32k_register_name_32082.
4880
4881 2002-05-24 Jim Blandy <jimb@redhat.com>
4882
4883 * dwarf2read.c (free_line_header): Use xfree, not free.
4884
4885 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4886
4887 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4888 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4889
4890 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4891
4892 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4893
4894 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4895
4896 From Ross Alexander at NEC Europe:
4897 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4898
4899 2002-05-23 Michael Snyder <msnyder@redhat.com>
4900
4901 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4902 for input, rather than parse_and_eval_address.
4903
4904 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4905
4906 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4907 * Makefile.in (sim_d10v_h): Update definition.
4908
4909 2002-05-24 Andrew Cagney <cagney@redhat.com>
4910
4911 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4912 change `2002-05-22 Michael Snyder' below.
4913 (d10v_push_arguments): Ditto.
4914 (d10v_extract_return_value): Ditto.
4915
4916 2002-05-23 Jim Blandy <jimb@redhat.com>
4917
4918 * macrotab.c (check_for_redefinition): Don't complain if the new
4919 definition is the same as the previous one. Take more arguments
4920 to allow the comparison.
4921 (macro_define_object, macro_define_function): Pass more arguments
4922 to check_for_redefinition.
4923
4924 2002-05-22 Michael Snyder <msnyder@redhat.com>
4925
4926 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4927 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4928 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4929 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4930 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4931 Add a temp variable to save a call (and a memory read).
4932 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4933 if possible (so that PC_IN_CALL_DUMMY will work).
4934
4935 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4936
4937 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4938
4939 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4940
4941 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4942 fde->cie_ptr.
4943 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4944 (dwarf2_build_frame_info): Add offset to fde->initial_location
4945 so that frames of shared libraries are mapped correctly.
4946 (execute_stack_op): Change type of 'result' from ULONGEST to
4947 CORE_ADDR.
4948
4949 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4950
4951 * config/alpha/tm-nbsd.h: Include solib.h.
4952
4953 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4954
4955 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4956 assumptions about the host's byte order.
4957
4958 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4959
4960 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4961 to dependency list.
4962 * alphanbsd-tdep.c: Include solib-svr4.h.
4963 * shnbsd-tdep.c: Ditto.
4964
4965 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4966
4967 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4968 nbsd-tdep.h to dependency list.
4969 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4970 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4971 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4972 nbsdaout.mh and nbsdelf.mh consistently.
4973 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4974 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4975 nbsdaout.mt and nbsdelf.mh consistently.
4976 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4977 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4978 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4979 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4980 a.out shared library stuff from here...
4981 * config/nm-nbsdaout.h: ...to here.
4982 * config/tm-nbsd.h: Remove.
4983 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4984 * config/arm/nbsd.mh: Remove.
4985 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4986 nbsd-tdep.o.
4987 * config/arm/nbsdaout.mh: New file.
4988 * config/arm/nbsdelf.mh: New file.
4989 * config/arm/nm-nbsdaout.h: New file.
4990 * config/i386/nbsd.mh: Remove.
4991 * config/i386/nbsd.mt: Remove.
4992 * config/i386/nbsdaout.mh: New file.
4993 * config/i386/nbsdaout.mt: New file.
4994 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4995 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4996 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4997 i386_register_u_addr): Remove.
4998 * config/i386/nm-nbsdaout.h: New file.
4999 * config/i386/nm-nbsdelf.h: Remove.
5000 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5001 (USE_STRUCT_CONVENTION): Remove.
5002 * config/i386/tm-nbsdaout.h: New file.
5003 * config/i386/tm-nbsdelf.h: Remove.
5004 * config/m68k/nbsd.mh: Remove.
5005 * config/m68k/nbsd.mt: Remove.
5006 * config/m68k/nbsdaout.mh: New file.
5007 * config/m68k/nbsdaout.mt: New file.
5008 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5009 * config/m68k/nm-nbsdaout.h: New file.
5010 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5011 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5012 * config/ns32k/nbsd.mh: Remove.
5013 * config/ns32k/nbsd.mt: Remove.
5014 * config/ns32k/nbsdaout.mh: New file.
5015 * config/ns32k/nbsdaout.mt: New file.
5016 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5017 * config/ns32k/nm-nbsdaout.h: New file.
5018 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5019 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5020 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5021 (SVR4_SHARED_LIBS): Remove.
5022 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5023 * config/sparc/nbsd.mh: Remove.
5024 * config/sparc/nbsd.mt: Remove.
5025 * config/sparc/nbsdaout.mh: New file.
5026 * config/sparc/nbsdaout.mt: New file.
5027 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5028 * config/sparc/nbsdelf.mt: New file.
5029 * config/sparc/nm-nbsdaout.h: New file.
5030 * config/sparc/nm-nbsdelf.h: Remove.
5031 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5032 * config/sparc/tm-nbsdaout.h: New file.
5033
5034 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5035
5036 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5037 mipsnbsd-tdep.c
5038 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5039
5040 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5041
5042 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5043 shnbsd-nat.c.
5044 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5045
5046 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5047
5048 * NEWS: Note new MIPS NetBSD native configuration.
5049 * configure.host (mips*-*-netbsd*): New host.
5050 * configure.tgt (mips*-*-netbsd*): New target.
5051 * mipsnbsd-nat.c: New file.
5052 * mipsnbsd-tdep.c: New file.
5053 * mipsnbsd-tdep.h: New file.
5054 * config/mips/nbsd.mh: New file.
5055 * config/mips/nbsd.mt: New file.
5056 * config/mips/nm-nbsd.h: New file.
5057 * config/mips/tm-nbsd.h: New file.
5058
5059 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5060
5061 * Makefile.in (SFILES): Add osabi.c.
5062 (COMMON_OBS): Add osabi.o.
5063 (osabi.o): New dependency list.
5064 * osabi.c: New file.
5065 * osabi.h: New file.
5066 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5067
5068 * Makefile.in (alpha_tdep_h): Define and use instead of
5069 alpha-tdep.h.
5070 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5071 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5072 Remove.
5073 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5074 * alpha-tdep.h: Include osabi.h.
5075 (alpha_abi): Remove.
5076 (gdbarch_tdep): Use generic OS ABI framework.
5077 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5078 gdbarch_register_osabi.
5079 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5080 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5081 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5082
5083 * Makefile.in (sh_tdep_h): Add osabi.h.
5084 * sh-tdep.h (sh_osabi): Remove.
5085 (gdbarch_tdep): Use generic OS ABI framework.
5086 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5087 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5088 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5089 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5090
5091 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5092 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5093 gdbarch_register_osabi.
5094 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5095 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5096 (get_elfosabi): Rename to...
5097 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5098 ABI framework support routines.
5099 (arm_gdbarch_init): Use generic OS ABI framework.
5100 (arm_dump_tdep): Likewise.
5101 (_initialize_arm_tdep): Likewise.
5102 * arm-tdep.h: Include osabi.h.
5103 (arm_abi): Remove.
5104 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5105 osabi member.
5106 (arm_gdbarch_register_os_abi): Remove prototype.
5107 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5108 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5109
5110 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5111 * mips-tdep.c: Include osabi.h.
5112 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5113 OS ABI framework.
5114
5115 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5116
5117 * h8300-tdep.c: Fix formatting.
5118
5119 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5120
5121 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5122 printing vector registers.
5123
5124 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5125
5126 From Fernando Nasser:
5127 * remote.c (remote_async_open_1): Re-throw the exception when the
5128 connection fails.
5129 (remote_cisco_open): Ditto.
5130 (remote_open_1): Ditto.
5131
5132 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5133
5134 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5135 (remote_start_remote): Add uiout parameter. Pass through to
5136 remote_start_remote_dummy.
5137 (remote_open_1): Use catch_exception instead of catch_errors.
5138 (remote_async_open_1): Ditto.
5139 (remote_cisco_open): Ditto.
5140
5141 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5142
5143 * remote.c (remote_start_remote): Replace PTR with void pointer.
5144 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5145 static.
5146
5147 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5148
5149 * gdb_indent.sh: Allow the script to be run in the sim directory.
5150
5151 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5152
5153 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5154 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5155
5156 * corelow.c (core_open): Only call set_gdbarch_from_file if
5157 exec_bfd is NULL.
5158
5159 2002-05-17 Andrey Volkov <avolkov@transas.com>
5160
5161 * h8300-tdep.c: Add support of EXR register
5162 * config/h8300/tm-h8300.h: Ditto.
5163
5164 2002-05-17 Andrey Volkov <avolkov@transas.com>
5165
5166 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5167
5168 2002-05-17 Andrey Volkov <avolkov@transas.com>
5169
5170 * h8300-tdep.c: Change literal regnums to REGNO.
5171
5172 2002-05-17 Jim Blandy <jimb@redhat.com>
5173
5174 * NEWS: Note addition of macro support.
5175
5176 Expand preprocessor macros in C expressions.
5177 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5178 (scan_macro_expansion, scanning_macro_expansion,
5179 finished_macro_expansion): New function declarations.
5180 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5181 variable declarations.
5182 * parser-defs.h (expression_context_pc): New declaration.
5183 * parse.c (expression_context_pc): New variable.
5184 (parse_exp_1): Set expression_context_pc, as well as
5185 expression_context_block.
5186 * c-exp.y (yylex): If we're not already reading the result of a
5187 macro expansion, try to macro-expand the next token. When we're
5188 done scanning a macro expansion, switch back to the mainline text.
5189 Commas and `if's in a macro's expansion don't terminate the input.
5190 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5191 (macro_original_text, macro_expanded_text,
5192 expression_macro_lookup_func, expression_macro_lookup_baton): New
5193 variables.
5194 (scan_macro_expansion, scanning_macro_expansion,
5195 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5196 c_preprocess_and_parse): New functions.
5197 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5198 c_preprocess_and_parse, instead of c_parse.
5199 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5200 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5201
5202 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5203
5204 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5205 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5206 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5207
5208 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5209
5210 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5211
5212 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5213
5214 * Makefile.in (sh_tdep_h): Define and use.
5215 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5216 register enum): Move to...
5217 * * sh-tdep.h: ...here.
5218 * sh-tdep.c: Include sh-tdep.h.
5219 * sh3-rom.c: Likewise.
5220 * shnbsd-tdep.c: Likewise.
5221
5222 2002-05-16 Michael Snyder <msnyder@redhat.com>
5223
5224 * arm-tdep.c: Spelling fix in comment.
5225
5226 2002-05-16 Jim Blandy <jimb@redhat.com>
5227
5228 Add commands for manually expanding macros and showing their
5229 definitions.
5230 * macrocmd.c, macroscope.c, macroscope.h: New files.
5231 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5232 (macroscope_h): New variable.
5233 (HFILES_NO_SRCDIR): Add macroscope.h.
5234 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5235 (macroscope.o, macrocmd.o): New rules.
5236
5237 Teach the Dwarf 2 reader to read macro information.
5238 * dwarf2read.c: #include "macrotab.h".
5239 (dwarf_macinfo_buffer): New variable.
5240 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5241 dwarf_macinfo_size.
5242 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5243 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5244 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5245 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5246 dwarf2_macro_spaces_in_definition): New complaints.
5247 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5248 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5249 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5250 the partial symbol table.
5251 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5252 from what's recorded in the partial symbol table.
5253 (read_file_scope): If the compilation unit has a
5254 `DW_AT_macro_info' attribute, read its macro information.
5255 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5256
5257 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5258
5259 Fix PR gdb/546
5260 * ser-tcp.c: Don't include <netinet/udp.h>.
5261
5262 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5263
5264 * MAINTAINERS: Update my email address.
5265
5266 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5267
5268 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5269 include file of the same name.
5270
5271 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5272
5273 * configure.tgt: Mark v850 as multi-arched.
5274 * config/v850/tm-v850.h: Remove file.
5275 * config/v850/v850.mt: Eliminate TM_FILE.
5276
5277 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5278
5279 * v850-tdep.c: Full multi-arch.
5280 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5281 Define GDB_MULTI_ARCH to 2.
5282
5283 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5284
5285 * p-exp.y (current_type): New static variable.
5286 Carries the type of the expression at the position that is parsed.
5287 (push_current_type, pop_current_type): Two new functions. Used
5288 to store/restore current_type in expression on specific tokens.
5289 (search_field): New static variable. Set to one after parsing a point
5290 as at that point only a FIELDNAME token should be searched.
5291 (FIELDNAME): New token. After a point only a token belonging to
5292 current_type type definition is allowed.
5293 (all over token rules): reset and change current_type according
5294 to rules.
5295 (exp '[' rule): insert implicit array index field if
5296 exp is a pascal string type.
5297
5298 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5299
5300 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5301 frame info. Use frame_info's saved_regs instead of matching member
5302 in extra_frame_info throughout.
5303 (v850_frame_init_saved_regs): New function.
5304 (v850_init_extra_frame_info): Move most functionality into
5305 v850_frame_init_saved_regs().
5306 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5307 (v850_frame_find_saved_regs): Remove declaration.
5308 (FRAME_FIND_SAVED_REGS): Remove definition.
5309 (v850_frame_init_saved_regs): Add declaration.
5310 (FRAME_INIT_SAVED_REGS): Add definition.
5311
5312 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5313
5314 * v850-tdep.c: Begin multi-arch'ing v850.
5315 (v850_target_architecture_hook): Remove function.
5316 (v850_gdbarch_init): New function. Add code previously in
5317 v850_target_architecture_hook().
5318 (_initialize_v850_tdep): Don't set target_architecture_hook.
5319 Call register_gdbarch_init() instead.
5320
5321 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5322
5323 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5324 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5325 (fixup_class_method_type): Likewise.
5326
5327 2002-05-15 Jim Blandy <jimb@redhat.com>
5328
5329 Add macro structures to GDB's symbol tables. Nobody puts anything
5330 in them yet.
5331 * symtab.h (struct symtab): New member: `macro_table'.
5332 * buildsym.h (pending_macros): New global variable.
5333 * buildsym.c: #include "macrotab.h".
5334 (buildsym_init): Initialize `pending_macros'.
5335 (end_symtab): If we found macro information while reading a CU's
5336 debugging info, do build a symtab structure for it. Make the
5337 symtab point to the macro information, and clear the
5338 `pending_macros' pointer which held it while we were reading the
5339 debug info.
5340 (really_free_pendings): Free any pending macro table.
5341 * objfiles.h (struct objfile): New member: `macro_cache'.
5342 * objfiles.c (allocate_objfile): Set allocate and free functions
5343 for the macro cache's objstack.
5344 (free_objfile): Empty the macro cache's obstack.
5345 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5346 set new allocate and free functions for it.
5347 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5348 free functions for the macro cache's objstack. (Why is this
5349 function building its own objfile?)
5350 * symmisc.c (print_objfile_statistics): Print statistics on the
5351 macro bcache.
5352 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5353
5354 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5355
5356 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5357 (REGISTER_U_ADDR): Delete definition.
5358 (arm_register_u_addr): Delete declaration.
5359
5360 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5361
5362 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5363 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5364
5365 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5366
5367 * regcache.c (register_valid): Revise comments refering to "Not
5368 available" and "unavailable".
5369 * frame.c (frame_register_read): Ditto.
5370 * findvar.c (value_of_register): Ditto.
5371
5372 2002-05-15 Andrew Cagney <cagney@redhat.com>
5373
5374 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5375 (remote-sim.o): Update dependencies.
5376 (d10v-tdep.o): Specify dependencies.
5377 (sim_d10v_h): Define.
5378
5379 2002-05-14 Jim Blandy <jimb@redhat.com>
5380
5381 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5382 * macrotab.c (macro_lookup_inclusion, find_definition,
5383 new_macro_table): Same.
5384
5385 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5386 not `! strcmp ()'. This is a dubious improvement.
5387 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5388
5389 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5390 although it's not necessary, to avoid a warning.
5391
5392 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5393
5394 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5395 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5396 TYPE_INSTANCE_FLAGS.
5397 (struct main_type): New.
5398 (struct type): Move most members to struct main_type. Change
5399 cv_type and as_type to new type_chain member. Add instance_flags.
5400 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5401 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5402 (finish_cv_type): Remove prototype.
5403 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5404 Set TYPE_CHAIN.
5405 (alloc_type_instance): New function.
5406 (smash_type): New function.
5407 (make_pointer_type, make_reference_type, make_function_type)
5408 (smash_to_member_type, smash_to_method_type): Call smash_type.
5409 (make_qualified_type): New function.
5410 (make_type_with_address_space): Call make_qualified_type.
5411 (make_cv_type): Likewise.
5412 (finish_cv_type): Remove unnecessary function.
5413 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5414 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5415 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5416 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5417 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5418 * hpread.c (hpread_read_struct_type): Likewise.
5419 * stabsread.c (read_struct_type): Likewise.
5420
5421 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5422
5423 * configure.tgt: Add a catch all sh* target, for cases like
5424 sh[2,3,4]-elf and sh-hms.
5425
5426 2002-05-14 Keith Seitz <keiths@redhat.com>
5427
5428 * event-loop.c (create_file_handler): Don't do anything but
5429 update data when we are given a fd which we are already
5430 monitoring.
5431
5432 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5433
5434 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5435 (update_context): Use __func__ in warnings.
5436
5437 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5438
5439 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5440 and tcp_close to net_open and net_close.
5441 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5442 using UDP if requested. Don't try to disable Nagle on UDP
5443 sockets.
5444 * remote.c (remote_serial_open): New function. Warn about UDP.
5445 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5446
5447 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5448
5449 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5450
5451 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5452
5453 * configure.tgt: Remove sh-hms target.
5454 * MAINTAINERS: Don't list sh-hms as a separate target.
5455
5456 2002-05-13 Jim Blandy <jimb@redhat.com>
5457
5458 Add first preprocessor macro-expansion files.
5459 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5460 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5461 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5462 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5463 (COMMON_OBS): Add macrotab.o, macroexp.o.
5464 (macroexp.o, macrotab.o): New rules.
5465
5466 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5467
5468 * config/m88k/tm-m88k.h: Update copyright.
5469 (m88k_target_write_pc): Declare
5470 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5471 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5472 (SHIFT_INST_REGS): Update definition.
5473 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5474 using old definition of TARGET_WRITE_PC.
5475 * regcache.c (generic_target_write_pc): Delete code handling
5476 NNPC_REGNUM.
5477 * gdbarch.sh (NNPC_REGNUM): Delete.
5478 * gdbarch.h, gdbarch.c: Regenerate.
5479
5480 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5481
5482 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5483 builtin reg number.
5484
5485 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5486
5487 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5488 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5489 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5490 access macros.
5491 * c-typeprint.c (cp_type_print_method_args): Likewise.
5492 (c_type_print_args): Likewise.
5493 * d10v-tdep.c (d10v_push_arguments): Likewise.
5494 (d10v_extract_return_value): Likewise.
5495 * expprint.c (print_subexp): Likewise.
5496 * gdbtypes.c (lookup_primitive_typename): Likewise.
5497 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5498 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5499 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5500 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5501 (TYPE_VECTOR): Likewise.
5502 * hpread.c (hpread_read_struct_type)
5503 (fix_static_member_physnames, fixup_class_method_type)
5504 (hpread_type_lookup): Likewise.
5505 * mdebugread.c (parse_symbol, parse_type): Likewise.
5506 * p-lang.c (is_pascal_string_type): Likewise.
5507 * valops.c (hand_function_call): Likewise.
5508 * x86-64-tdep.c (classify_argument): Likewise.
5509
5510 * hpread.c (hpread_read_function_type)
5511 (hpread_read_doc_function_type): Call replace_type.
5512 * dstread.c (create_new_type): Delete.
5513 (decode_dst_structure, process_dst_function): Call alloc_type.
5514 Use type access macros.
5515
5516 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5517
5518 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5519 the're not supported by the current architecture.
5520 (i387_fill_fxsave): Likewise.
5521
5522 2002-05-12 Fred Fish <fnf@redhat.com>
5523
5524 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5525 sect_index_xxx members to index the first slot in section_offsets
5526 if all of the section_offsets are zero.
5527
5528 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5529
5530 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5531 checked in with last change.
5532
5533 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5534
5535 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5536 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5537 config.sub.
5538
5539 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5540
5541 * Makefile.in: Update dependencies.
5542
5543 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5544
5545 * language.c (local_hex_string_custom): Simplify. Do not depend
5546 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5547
5548 * memattr.c (mem_info_command): Replace calls to
5549 longest_local_hex_string and longest_local_hex_string_custom.
5550 * buildsym.c (make_blockvector): Ditto.
5551 * solib.c (info_sharedlibrary_command): Ditto.
5552 * tracepoint.c (tracepoints_info): Ditto.
5553 * symtab.c (print_msymbol_info): Ditto.
5554
5555 * language.c (local_hex_string): Delete.
5556 (local_hex_string_custom): Delete.
5557 (longest_local_hex_string): Rename to local_hex_string.
5558 (longest_local_hex_string_custom): Rename to
5559 local_hex_string_custom.
5560 * language.h (local_hex_string): Change parameter type to LONGEST.
5561 (local_hex_string_custom): Ditto.
5562 (longest_local_hex_string): Delete declaration.
5563 (longest_local_hex_string_custom): Ditto.
5564
5565 * solib.c: Update copyright.
5566 * memattr.c: Update copyright.
5567
5568 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5569
5570 * arch-utils.h (legacy_register_to_value): Declare.
5571 (legacy_value_to_register): Declare.
5572 (legacy_convert_register_p): Declare.
5573 * arch-utils.c (legacy_register_to_value): New function.
5574 (legacy_value_to_register): New function.
5575 (legacy_convert_register_p): New function.
5576
5577 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5578 (VALUE_TO_REGISTER): Define.
5579 (CONVERT_REGISTER_P): Define.
5580 * gdbarch.h, gdbarch.c: Regenerate.
5581
5582 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5583 VALUE_TO_REGISTER.
5584 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5585 CONVERT_REGISTER_P.
5586
5587 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5588 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5589
5590 * Makefile.in: Update dependencies for valops.c.
5591 * valops.c: Include "gdb_assert.h".
5592 (typecmp): Skip THIS parameter to methods.
5593 (find_method_list): Remove static_memfuncp argument,
5594 update callers. Check for stub methods.
5595 (find_value_oload_method_list): Don't set *static_memfuncp.
5596 (find_overload_match): Don't check for stub methods. Assert
5597 that methods are not stubbed. Handle static methods.
5598 (value_find_oload_method_list): Remove static_memfuncp argument.
5599 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5600 to the argument list for static stub methods.
5601 * value.h (value_find_oload_method_list): Update prototype.
5602
5603 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5604
5605 * arch-utils.h (generic_register_size): Declare.
5606 (generic_register_raw_size, generic_register_virtual_size): Delete
5607 declarations.
5608 * arch-utils.c (generic_register_raw_size): Delete.
5609 (generic_register_size): New function.
5610 (generic_register_virtual_size): Delete.
5611
5612 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5613 default generic_register_size.
5614 * gdbarch.h, gdbarch.c: Re-generate.
5615
5616 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5617 register_virtual_size.
5618 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5620
5621 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5622
5623 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5624 * gdbarch.h, gdbarch.c: Regenerate.
5625 * gnu-v3-abi.c: Update copyright.
5626 (vtable_address_point_offset): Update.
5627 (gnuv3_rtti_type): Update.
5628 (gnuv3_baseclass_offset): Update.
5629 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5630 (init_fetch_link_map_offsets): Update.
5631 * remote.c (get_remote_state): Update.
5632
5633 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5634
5635 * TODO: Remove value_headof/value_from_vtable_info comment.
5636 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5637 * values.c (value_headof, value_from_vtable_info): Delete.
5638 * value.h (value_from_vtable_info): Delete prototype.
5639
5640 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5641
5642 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5643 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5644 $(gdb_regex_h).
5645 (gdb_assert_h): Define.
5646 (gdb_wait_h): Define.
5647 (gdb_regex_h): Define.
5648
5649 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5650
5651 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5652 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5653
5654 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5655
5656 * nbsd-tdep.c: Fix comment.
5657
5658 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5659
5660 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5661 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5662 (nbsd-tdep.o): New dependency list.
5663 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5664 nbsd-tdep.h.
5665 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5666 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5667 * nbsd-tdep.c: New file.
5668 * nbsd-tdep.h: New file.
5669 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5670 nbsd-tdep.h.
5671 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5672 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5673 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5674 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5675
5676 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5677
5678 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5679 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5680 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5681 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5682 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5683 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5684
5685 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5686
5687 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5688 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5689 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5690 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5691 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5692 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5693 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5694
5695 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5696
5697 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5698 fetch_elfcore_registers to...
5699 * i386nbsd-tdep.c: ...here.
5700 (i386nbsd_use_struct_convention): Rename to...
5701 (i386nbsd_aout_use_struct_convention): ...this.
5702 (i386nbsd_supply_reg): New function.
5703 (i386nbsd_fill_reg): New function.
5704 (fetch_core_registers): Use i386nbsd_supply_reg.
5705 (fetch_elfcore_registers): Likewise.
5706 (_initialize_i386nbsd_tdep): New function.
5707 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5708 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5709 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5710 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5711 (i386nbsd_aout_use_struct_convention): ...this.
5712
5713 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5714
5715 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5716 (store_inferior_registers): Use shnbsd_fill_reg.
5717 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5718 sh_nbsd_supply_register): Collapse into...
5719 (shnbsd_supply_reg): ...this.
5720 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5721 (shnbsd_fill_reg): ...this.
5722 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5723 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5724 (fetch_core_registers): Use shnbsd_supply_reg.
5725 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5726 (sh_nbsd_core_fns): Rename to...
5727 (shnbsd_core_fns): ...this.
5728 (sh_nbsd_elfcore_fns): Rename to...
5729 (shnbsd_elfcore_fns): ...this.
5730 (sh_nbsd_init_abi): Rename to...
5731 (shnbsd_init_abi): ...this.
5732 (_initialize_sh_nbsd_tdep): Rename to...
5733 (_initialize_shnbsd_tdep): ...this.
5734 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5735 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5736 sh_nbsd_fill_register): Remove prototypes.
5737 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5738
5739 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5740
5741 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5742 (i387-nat.o): Delete dependency list.
5743 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5744 (x86-64-linux-nat.o): Likewise.
5745 * i387-nat.c: Delete file, moving contents to...
5746 * i387-tdep.c: ...here.
5747 * i387-nat.h: Rename...
5748 * i387-tdep.h: ...to this.
5749 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5750 * i386-linux-nat.c: Likewise.
5751 * i386bsd-nat.c: Likewise.
5752 * i386gnu-nat.c: Likewise.
5753 * i386nbsd-nat.c: Likewise.
5754 * i386v4-nat.c: Likewise.
5755 * x86-64-linux-nat.c: Likewise.
5756 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5757 * config/i386/go32.mh (NATDEPFILES): Likewise.
5758 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5759 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5760 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5761 * config/i386/linux.mh (NATDEPFILES): Likewise.
5762 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5763 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5764 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5765 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5766
5767 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5768
5769 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5770 (alphanbsd-nat.o): Remove dependency list.
5771 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5772 * alphanbsd-nat.c: Delete. Contents moved to...
5773 * alphanbsd-tdep.c: ...here.
5774 (_initialize_alphanbsd_tdep): Register core functions.
5775 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5776
5777 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5778
5779 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5780 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5781 (alphanbsd-nat.o): Likewise.
5782 (alphabsd-tdep.o): New dependency list.
5783 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5784 (fill_gregset): Use alphabsd_fill_reg.
5785 (supply_fpregset): Use alphabsd_supply_fpreg.
5786 (fill_fpregset): Use alphabsd_fill_fpreg.
5787 (fetch_inferior_registers): Use struct reg and struct fpreg
5788 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5789 and alphabsd_supply_fpreg.
5790 (store_inferior_registers): Use struct reg and struct fpreg
5791 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5792 and alphabsd_fill_fpreg.
5793 * alphabsd-tdep.c: New file.
5794 * alphabsd-tdep.h: New file.
5795 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5796 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5797 alphabsd_supply_fpreg.
5798 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5799 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5800
5801 2002-05-11 Eric Christopher <echristo@redhat.com>
5802
5803 * mips-tdep.c (mips_double_register_type): Fix thinko.
5804 (mips_single_register_type): Ditto.
5805 * MAINTAINERS: Add self.
5806
5807 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5808
5809 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5810 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5811 right thing on architectures with different endianness and/or
5812 integer sizes.
5813
5814 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5815
5816 From Christian Limpach <chris@Pin.LU>
5817 * configure.in: Change sed expression which comments out
5818 NATDEPFILES to also comment out continuation lines.
5819 * configure: Regenerate.
5820
5821 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5822
5823 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5824 big patch.
5825
5826 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5827
5828 * sh-tdep.c: Include correct file.
5829
5830 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5831
5832 New support for sh64-elf (sh5) target.
5833
5834 * configure.tgt: For sh64-elf target, default to sh-elf.
5835
5836 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5837 (struct gdbarch_tdep): Add new fields for new registers and ABI
5838 info.
5839
5840 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5841 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5842 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5843 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5844 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5845 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5846 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5847 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5848 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5849 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5850 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5851 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5852 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5853 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5854 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5855 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5856 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5857 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5858 sign_extend, sh64_nofp_frame_init_saved_regs,
5859 sh64_init_extra_frame_info, sh64_get_saved_register,
5860 sh64_extract_struct_value_address, sh64_pop_frame,
5861 sh64_push_arguments, sh64_extract_return_value,
5862 sh64_store_return_value, sh64_show_media_regs,
5863 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5864 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5865 sh_sh64_register_virtual_type,
5866 sh_sh64_register_convert_to_virtual,
5867 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5868 sh64_register_read, sh64_pseudo_register_write,
5869 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5870 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5871 sh64_do_pseudo_register, sh_compact_do_registers_info,
5872 sh64_do_registers_info, sh_gdbarch_init): New functions.
5873
5874 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5875
5876 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5877
5878 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5879
5880 * linespec.c (decode_line_1): Check for a double quote after
5881 a filename correctly.
5882
5883 2002-05-10 Jim Blandy <jimb@redhat.com>
5884
5885 Properly track the size of the current objfile's .debug_line section.
5886 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5887 (DWARF_LINE_SIZE): New macro.
5888 (dwarf2_build_psymtabs_hard): Record the line section's size in
5889 the partial symbol table.
5890 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5891 symbol table.
5892
5893 2002-05-10 Petr Sorfa <petrs@caldera.com>
5894
5895 * ia64-tdep.c: Handle breakpoints on L instruction type
5896 in MLX instruction bundle by moving the breakpoint to
5897 the third slot (X instruction type) as L holds only data.
5898
5899 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5900
5901 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5902 (process_one_symbol): Complain about discarding local symbols
5903 due to a misplaced N_LBRAC entry.
5904
5905 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5906
5907 From Daniel Berlin <dan@cgsoftware.com>
5908 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5909 decrease the depth we are at, in the case of templates.
5910
5911 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5912
5913 * mips-tdep.c (mips_float_register_type): New function.
5914 (mips_double_register_type): New function.
5915 (mips_print_register): Use them.
5916 (do_fp_register_row): Likewise.
5917
5918 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5919
5920 * signals/signals.c (signals): Remove conditional compilation around
5921 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5922 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5923
5924 2002-05-09 Michael Snyder <msnyder@redhat.com>
5925
5926 * remote-rdp.c (remote_rdp_can_run): Remove.
5927
5928 2002-05-09 Tom Tromey <tromey@redhat.com>
5929
5930 * jv-valprint.c (java_val_print): Handle `char' as a special case
5931 of TYPE_CODE_INT.
5932
5933 2002-05-09 Michael Snyder <msnyder@redhat.com>
5934
5935 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5936 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5937 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5938 str r(0123),[sp,#nn].
5939 (arm_skip_prologue): Ditto. Also make disassembly
5940 order-independent by placing it in a loop.
5941
5942 2002-05-06 Michael Snyder <msnyder@redhat.com>
5943
5944 * stabsread.c (read_type): Add recognition for new attribute:
5945 "@V;" means that an array type is actually a vector.
5946 This is analogous to the vector flag that's been added to dwarf2.
5947
5948 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5949
5950 * i386-tdep.h (i386_abi): New enum.
5951 (struct gdbarch_tdep): Replace os_ident member with abi.
5952 (i386_gdbarch_register_os_abi): New prototype.
5953 * i386-tdep.c (i386_abi_names): New array.
5954 (process_note_abi_tag_sections): Removed.
5955 (process_note_sections): New function.
5956 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5957 (struct i386_abi_handler): New struct.
5958 (i386_abi_handler_list): New variable.
5959 (i386_gdbarch_register_os_abi): New function.
5960 (i386_gdbarch_init): Adapt for the changes given above.
5961
5962 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5963
5964 * gregset.h: Say "GNU/Linux".
5965
5966 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5967
5968 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5969 (build_gdbtypes): Build builtin_type_v2_float.
5970 (_initialize_gdbtypes): Register new builtin type.
5971
5972 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5973
5974 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5975 (clear_gdbarch_swap): New function.
5976 (initialize_non_multiarch): Call.
5977 (gdbarch_update_p): Before calling init(), swap out and clear the
5978 existing architecture.
5979 * gdbarch.c: Regenerate.
5980
5981 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5984 alphanbsd-tdep.c.
5985
5986 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5987
5988 * sh-nbsd-nat.c: Rename to...
5989 * shnbsd-nat.c: ...this.
5990 * sh-nbsd-tdep.c: Rename to...
5991 * shnbsd-tdep.c: ...this.
5992 * sh-nbsd-tdep.h: Rename to...
5993 * shnbsd-tdep.h: ...this.
5994 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5995 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5996
5997 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5998
5999 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6000 concatenation for command help messages.
6001
6002 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6003
6004 * NEWS: Note new sh*-*-netbsdelf* configuration.
6005 * configure.host: Set gdb_host_cpu to sh for all sh*.
6006 (sh*-*-netbsdelf*): New host.
6007 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6008 (sh*-*-netbsdelf*): New target.
6009 * sh-nbsd-nat.c: New file.
6010 * sh-nbsd-tdep.c: New file.
6011 * sh-nbsd-tdep.h: New file.
6012 * config/sh/nbsd.mh: New file.
6013 * config/sh/nbsd.mt: New file.
6014 * config/sh/nm-nbsd.h: New file.
6015 * config/sh/tm-nbsd.h: New file.
6016
6017 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6018
6019 * sh-tdep.c (sh_osabi_names): Declare.
6020 (process_note_abi_tag_sections): New function.
6021 (get_elfosabi): Ditto.
6022 (sh_gdbarch_register_os_abi): Ditto.
6023 (sh_dump_tdep): Ditto.
6024 _initialize_sh_tdep): Use gdbarch_register to register
6025 sh_gdbarch_init and sh_dump_tdep.
6026 * config/sh/tm-sh.h (sh_osabi): Declare.
6027 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6028
6029 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6030
6031 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6032 (thumb_scan_prologue): Ditto.
6033 (arm_find_callers_reg): Ditto.
6034 (arm_frame_chain): Ditto.
6035 (arm_init_extra_frame_info): Ditto.
6036 (arm_frame_saved_pc): Ditto.
6037 (arm_pop_frame): Ditto.
6038 (arm_push_return_address): New function.
6039 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6040 call_dummy_location, call_dummy_breakpoint_offset_p,
6041 call_dummy_breakpoint_offset, call_dummy_p,
6042 call_dummy_stack_adjust_p, call_dummy_words,
6043 sizeof_call_dummy_words, call_dummy_start_offset,
6044 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6045 call_dummy_address, push_return_address and push_dummy_frame for
6046 generic dummy frames.
6047
6048 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6049
6050 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6051 size computation for alloca.
6052 (sh_fp_frame_init_saved_regs): Likewise.
6053
6054 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6055
6056 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6057 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6058 * arm-tdep.c (arm_store_return_value): Use them.
6059 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6060 * remote-rdp.c (remote_rdp_fetch_register): Use
6061 ARM_MAX_REGISTER_RAW_SIZE.
6062 (remote_rdp_store_register): Likewise.
6063
6064 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6065
6066 * dwarf2cfi.c: Code cleanup, removed unused variables,
6067 added default labels to switch {} statements.
6068 * x86-64-tdep.c: Ditto.
6069 * x86-64-linux-nat.c: Ditto.
6070
6071 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6072
6073 * solib.h: Protect against multiple inclusion.
6074
6075 2002-05-06 Jim Blandy <jimb@redhat.com>
6076
6077 Add first preprocessor macro-expansion files.
6078 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6079 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6080 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6081 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6082 (COMMON_OBS): Add macrotab.o, macroexp.o.
6083 (macroexp.o, macrotab.o): New rules.
6084
6085 Separate the job of reading the line number info statement program
6086 header (...expialidocious) out into its own function.
6087 * dwarf2read.c (struct line_head, struct filenames, struct
6088 directories): Replace with...
6089 (struct line_header): New structure, containing the full
6090 contents of the statement program header, including the
6091 include directory and file name tables.
6092 (read_file_scope): If we have line number info, instead of just
6093 calling dwarf_decode_lines to do all the work, call
6094 dwarf_decode_line_header first to get a `struct line_header'
6095 containing the data in the statement program header, and then
6096 pass that to dwarf_decode_lines, which will pick up where that
6097 left off. Be sure to clean up the `struct line_header' object.
6098 (dwarf_decode_line_header, free_line_header, add_include_dir,
6099 add_file_name): New functions.
6100 (dwarf_decode_lines): Move all the code to read the statement
6101 program header into dwarf_decode_line_header. Take the line
6102 header it built as the first argument, instead of the offset to
6103 the compilation unit's line number info. Use the new `struct
6104 line_header' type instead of the old structures. No need to do
6105 cleanups here now, since we don't allocate anything.
6106 (dwarf2_statement_list_fits_in_line_number_section,
6107 dwarf2_line_header_too_long): New complaints.
6108
6109 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6110
6111 * gdbtypes.c (init_vector_type): New function.
6112 (build_builtin_type_vec128): Simplify the representation of SIMD
6113 registers.
6114 (build_gdbtypes): Initialize new builtin vector types.
6115 (_initialize_gdbtypes): Register new vector types with gdbarch.
6116 (builtin_type_v4_float, builtin_type_v4_int32,
6117 builtin_type_v8_int16, builtin_type_v16_int8,
6118 builtin_type_v2_int32, builtin_type_v4_int16,
6119 builtin_type_v8_int8): New (renamed) SIMD types.
6120
6121 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6122
6123 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6124 (i387_fill_fxsave): Likewise.
6125
6126 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6127
6128 * alpha-tdep.c (alpha_extract_return_value): Don't use
6129 non-constant array size in prototype.
6130
6131 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6132
6133 From Brian Taylor <briant at model dot com>:
6134 * ui-out.c (ui_out_field_core_addr): Use the function
6135 longest_local_hex_string_custom'to format addresses > 32 bits
6136 wide.
6137
6138 * ui-out.c (ui_out_field_core_addr): Update comment.
6139
6140 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6141
6142 * stack.c (select_and_print_frame): Make static. Delete the
6143 parameter `level'.
6144 (func_command): Update call.
6145 (select_frame_command): Delete code computing the frame level.
6146 * frame.h (select_and_print_frame): Delete declaration.
6147
6148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6149
6150 * sparc-tdep.c (sparc_get_saved_register): Comment why
6151 get_prev_frame call is safe.
6152
6153 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6154
6155 * frame.h (select_frame): Delete level parameter.
6156 * stack.c (select_frame): Update. Use frame_relative_level to
6157 obtain the frame's level.
6158 (select_and_print_frame): Update call.
6159 (select_frame_command): Ditto.
6160 (up_silently_base): Ditto.
6161 (down_silently_base): Ditto.
6162 * ocd.c (ocd_start_remote): Ditto.
6163 * remote-rdp.c (remote_rdp_open): Ditto.
6164 * remote-mips.c (mips_initialize): Ditto.
6165 (common_open): Ditto.
6166 * remote-e7000.c (e7000_start_remote): Ditto.
6167 * m3-nat.c (select_thread): Ditto.
6168 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6169 (child_get_current_exception_event): Ditto.
6170 * varobj.c (varobj_create): Ditto.
6171 (varobj_update): Ditto.
6172 (c_value_of_root): Ditto.
6173 * tracepoint.c (finish_tfind_command): Ditto.
6174 * corelow.c (core_open): Ditto.
6175 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6176 * thread.c (info_threads_command): Ditto.
6177 (switch_to_thread): Ditto.
6178 * infrun.c (normal_stop): Ditto.
6179 (restore_selected_frame): Ditto.
6180 (restore_inferior_status): Ditto.
6181 * breakpoint.c (insert_breakpoints): Ditto.
6182 (watchpoint_check): Ditto.
6183 (bpstat_stop_status): Ditto.
6184 (do_enable_breakpoint): Ditto.
6185 * blockframe.c (flush_cached_frames): Ditto.
6186 (reinit_frame_cache): Ditto.
6187
6188 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6189
6190 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6191 maintainer.
6192
6193 2002-05-04 Jim Blandy <jimb@redhat.com>
6194
6195 * gdbtypes.c (replace_type): Doc fix.
6196
6197 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6198
6199 * valprint.c (strcat_longest): Delete commented out function.
6200 Update copyright.
6201
6202 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6203
6204 * MAINTAINERS: Mark a29k as deleted.
6205 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6206 Move new configurations to the top.
6207 * configure.tgt: Remove a29k.
6208 * config/a29k/tm-vx29k.h: Delete.
6209 * config/a29k/vx29k.mt: Delete.
6210 * config/a29k/tm-a29k.h: Delete.
6211 * config/a29k/a29k-udi.mt: Delete.
6212 * config/a29k/a29k.mt: Delete.
6213 * a29k-tdep.c: Delete.
6214 * remote-udi.c: Delete.
6215 * remote-mm.c: Delete.
6216 * remote-eb.c: Delete.
6217 * remote-adapt.c: Delete.
6218 * Makefile.in: Remove obsolete code.
6219 * config/s390/s390x.mt: Ditto.
6220 * config/s390/s390.mt: Ditto.
6221 * config/sparc/sparclynx.mh: Ditto.
6222 * config/sparc/linux.mh: Ditto.
6223 * config/pa/hppaosf.mh: Ditto.
6224 * config/pa/hppabsd.mh: Ditto.
6225 * config/ns32k/nbsd.mt: Ditto.
6226 * config/mips/vr5000.mt: Ditto.
6227 * config/m68k/sun3os4.mh: Ditto.
6228 * config/m68k/nbsd.mt: Ditto.
6229 * config/m68k/m68klynx.mh: Ditto.
6230 * config/m32r/m32r.mt: Ditto.
6231 * config/i386/x86-64linux.mt: Ditto.
6232 * config/i386/nbsdelf.mt: Ditto.
6233 * config/i386/nbsd.mt: Ditto.
6234 * config/i386/i386lynx.mh: Ditto.
6235
6236 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6237
6238 * target.c (debug_print_register): New function. Handle oversize
6239 registers.
6240 (debug_to_fetch_registers): Call.
6241 (debug_to_store_registers): Call.
6242
6243 2002-05-03 Jim Blandy <jimb@redhat.com>
6244
6245 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6246 (read_type): Doc fix.
6247 * gdbtypes.c (replace_type): Doc fix.
6248
6249 * stabsread.c (multiply_defined_struct): New complaint.
6250 (read_struct_type): If the type we were passed isn't empty, or
6251 incomplete, don't read the new struct type into it; complain,
6252 and return the original type unchanged. Take a new `type_code'
6253 argument, which is the type code for the new type.
6254 (read_type): Rather than storing the type's type code here, pass
6255 it as an argument to read_struct_type, and let that take care of
6256 storing it. That way, we don't overwrite the original type code,
6257 so read_struct_type can use it to decide whether we're overwriting
6258 something we shouldn't.
6259 (complain_about_struct_wipeout): New function.
6260
6261 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6262
6263 * gdbarch.sh: Assert that gdbarch is non-NULL.
6264 * gdbarch.c: Regenerate.
6265
6266 2002-05-03 Jason Merrill <jason@redhat.com>
6267
6268 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6269 and return NULL.
6270
6271 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6272
6273 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6274 (x86_64_dwarf2gdb_regno_map_length),
6275 (x86_64_dwarf2_reg_to_regnum): Added.
6276 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6277 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6278 (_initialize_x86_64_tdep): Synced with the change above.
6279 (x86_64_skip_prologue): Reformulated message.
6280
6281 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6282
6283 * f-exp.y: Also use new prev_lexptr variable
6284 to improve error reporting. Based on Michael Snyder
6285 2002-04-24 dated patch to c-exp.y.
6286 * jv-exp.y: Likewise.
6287 * m2-exp.y: Likewise.
6288
6289 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6290
6291 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6292 we are dealing with vectors.
6293
6294 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6295
6296 * config/m68k/tm-nbsd.h: Obvious fix,
6297 correct machine name.
6298
6299 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6300
6301 * p-typeprint.c (pascal_type_print_base): Add support
6302 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6303
6304 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6305
6306 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6307 for fondamental pascal 'char' type.
6308
6309 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6310
6311 * p-lang.h (is_pascal_string_type): Declaration changed,
6312 new sixth argument of type char ** added.
6313 * p-lang.c (is_pascal_string_type): Implementation
6314 changed. Args length_pos, length_size, string_pos, char_size
6315 can now be NULL. New argument arrayname set to the field
6316 name of the char array. Return value set to char array
6317 field index plus one.
6318 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6319 is_pascal_string_type function.
6320
6321 2002-05-02 Andrew Cagney <cagney@redhat.com>
6322
6323 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6324 <cagney@redhat.com> change.
6325 * gdbarch.c: Regenerate.
6326
6327 2002-05-02 Andrew Cagney <cagney@redhat.com>
6328
6329 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6330 before probing for a new one. Detect errorenous gdbarch_init
6331 functions.
6332 * gdbarch.c: Regenerate.
6333
6334 2002-05-01 Andrew Cagney <cagney@redhat.com>
6335
6336 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6337 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6338 * config/v850/tm-v850.h: Ditto. Update copyright.
6339
6340 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6341
6342 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6343 current_gdbarch.
6344
6345 2002-04-30 Michael Snyder <msnyder@redhat.com>
6346
6347 * arm-tdep.c: Whitespace clean-ups.
6348 (arm_skip_prologue): Fix thinko; two lines
6349 should have been removed as part of 4/24 change.
6350
6351 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6352
6353 * rs6000-tdep.c: Added comment describing how fpscr register
6354 numbers were chosen.
6355
6356 2002-04-30 Michael Snyder <msnyder@redhat.com>
6357
6358 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6359
6360 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6361
6362 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6363 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6364 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6365
6366 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6367
6368 From Louis Hamilton <hamilton@redhat.com>:
6369 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6370 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6371 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6372 not bfd-private xcoff data, to determine wordsize.
6373 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6374
6375 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6376
6377 GDB 5.2 released from 5.2 branch.
6378
6379 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6380
6381 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6382 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6383 (x86_64_register_info_table): Added comments with register numbers.
6384
6385 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6386
6387 * rs6000-tdep.c (rs6000_extract_return_value,
6388 rs6000_store_return_value): Handle returning vectors.
6389 (rs6000_gdbarch_init): Use
6390 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6391 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6392 New function.
6393 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6394 vectors.
6395 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6396 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6397
6398 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6399
6400 * hpread.c (hpread_psymtab_to_symtab_1,
6401 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6402 with fprintf_unfiltered (gdb_stderr,...).
6403
6404 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6405
6406 * remote-array.c (printf_monitor, write_monitor,
6407 array_insert_breakpoint, array_remove_breakpoint ):
6408 Replace fprintf (stderr,...
6409 with fprintf_unfiltered (gdb_stderr,....
6410 * remote-es.c: Likewise.
6411 * remote-os9k.c: Likewise.
6412 * remote-st.c: Likewise.
6413
6414 2002-04-28 Andreas Schwab <schwab@suse.de>
6415
6416 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6417 linux-proc.o and gcore.o.
6418
6419 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6420
6421 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6422 code without frame pointers.
6423
6424 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6425
6426 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6427 ON_STACK is needed.
6428
6429 2002-04-26 Ben Elliston <bje@redhat.com>
6430
6431 * target.c (do_xfer_memory): Correct reference to the new option
6432 "trust-readonly-sections".
6433
6434 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6435
6436 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6437 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6438 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6439 vectors.
6440 (read_array_type): Record the fact that this array type is really a
6441 vector (i.e. are passed in by value).
6442
6443 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6444
6445 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6446 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6447 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6448 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6449 * alpha-linux-tdep.c: Include frame.h.
6450 (alpha_linux_sigcontext_addr): New function.
6451 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6452 alpha_linux_sigcontext_addr.
6453 * alpha-osf1-tdep.c: Include gdbcore.h.
6454 (alpha_osf1_sigcontext_addr): New function.
6455 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6456 alpha_osf1_sigcontext_addr.
6457 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6458 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6459
6460 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6461
6462 * stack.c (selected_frame_level):
6463 (select_frame): Do not set selected_frame_level.
6464 * frame.h (selected_frame_level): Delete declaration.
6465
6466 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6467
6468 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6469 convert_from_func_ptr-addr when AIX / PowerOpen.
6470
6471 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6472
6473 * valops.c (hand_function_call): Call
6474 generic_save_call_dummy_addr.
6475 * frame.h (generic_save_call_dummy_addr): Declare.
6476 * blockframe.c (struct dummy_frame): Add fields call_lo and
6477 call_hi.
6478 (generic_find_dummy_frame): Check for PC in range call_lo to
6479 call_hi instead of entry_point_address.
6480 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6481 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6482 (generic_save_call_dummy_addr): New function.
6483
6484 2002-04-24 David S. Miller <davem@redhat.com>
6485
6486 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6487 sparc_skip_prologue.
6488 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6489 information to find prologue when possible.
6490 (sparc_prologue_frameless_p): Call examine_prologue directly.
6491 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6492 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6493 second argument.
6494 (SKIP_PROLOGUE): Likewise.
6495
6496 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6497
6498 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6499 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6500 indicate that the condition it was testing is always true.
6501 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6502 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6503 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6504
6505 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6506
6507 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6508 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6509 tdep->jb_pc and tdep->jb_elt_size.
6510 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6511 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6512 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6513 * alpha-nat.c (get_longjmp_target): Remove.
6514 (JB_ELEMENT_SIZE): Ditto.
6515 (JB_PC): Ditto.
6516 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6517 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6518 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6519 to alpha_get_longjmp_target.
6520 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6521 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6522 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6523
6524 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6525
6526 * README: Update to GDB 5.2.
6527
6528 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6529
6530 * gdbarch.sh (LC_ALL): Set to `c'.
6531
6532 2002-04-25 Theodore A. Roth <troth@verinet.com>
6533
6534 * avr-tdep.c: Ran through gdb_indent.sh.
6535
6536 2002-04-25 Theodore A. Roth <troth@verinet.com>
6537
6538 * MAINTAINERS: Add myself as AVR maintainer.
6539 * NEWS: Note new target avr.
6540
6541 2002-04-25 Theodore A. Roth <troth@verinet.com>
6542
6543 * Makefile.in: Add support for AVR target.
6544 * configure.tgt: Add support for AVR target.
6545 * avr-tdep.c: New file
6546 * config/avr/avr.mt: New file.
6547
6548 2002-04-25 Theodore A. Roth <troth@verinet.com>
6549
6550 * MAINTAINERS: Add myself to write-after-approval.
6551
6552 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6553
6554 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6555 with fprintf_unfiltered (gdb_stderr,....
6556
6557 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6558
6559 Fix PR gdb/508.
6560 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6561
6562 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6563
6564 * p-exp.y: Also use new prev_lexptr variable
6565 to improve error reporting. Based on Michael Snyder
6566 2002-04-24 dated patch to c-exp.y.
6567
6568 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6569
6570 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6571 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6572 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6573 to 0.
6574 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6575 and struct value.
6576 (FUNCTION_START_OFFSET): Remove.
6577 (BREAKPOINT): Ditto.
6578
6579 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6580
6581 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6582 * NEWS: Ditto.
6583
6584 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6585
6586 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6587 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6588 alpha_linux_pc_in_sigtramp.
6589 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6590 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6591 alpha_osf1_pc_in_sigtramp.
6592 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6593 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6594 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6595 alphafbsd_pc_in_sigtramp.
6596 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6597 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6598 alphanbsd_pc_in_sigtramp.
6599 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6600 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6601
6602 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6605
6606 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6609 alphanbsd-tdep.c.
6610 (alphanbsd-nat.o): New dependency list.
6611 (alphanbsd-tdep.o): Ditto.
6612 * NEWS: Note new native NetBSD/alpha configuration.
6613 * alphanbsd-nat.c: New file.
6614 * alphanbsd-tdep.c: Ditto.
6615 * configure.host (alpha*-*-netbsd*): New host.
6616 * configure.tgt (alpha*-*-netbsd*): New target.
6617 * config/alpha/nbsd.mh: New file.
6618 * config/alpha/nbsd.mt: Ditto.
6619 * config/alpha/nm-nbsd.h: Ditto.
6620 * config/alpha/tm-nbsd.h: Ditto.
6621
6622 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6623
6624 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6625 (alpha-osf1-tdep.o): New dependency list.
6626 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6627 and skip_sigtramp_frame members.
6628 * alpha-linux-tdep.c: Include gdbcore.h.
6629 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6630 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6631 * alpha-osf1-tdep.c: New file.
6632 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6633 alpha-osf1-dep.c.
6634 (alpha_frame_past_sigtramp_frame): New function.
6635 (alpha_dynamic_sigtramp_offset): Ditto.
6636 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6637 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6638 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6639 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6640 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6641 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6642 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6643 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6644 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6645 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6646 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6647 to find_solib_trampoline_target.
6648 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6649 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6650 (SKIP_TRAMPOLINE_CODE): Remove.
6651 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6652 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6653 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6654 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6655 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6656 (PROC_SIGTRAMP_MAGIC): Ditto.
6657 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6658 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6659 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6660 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6661 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6662
6663 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6664
6665 * NEWS: Note that Alpha targets are now multi-arch.
6666
6667 2002-04-24 Michael Snyder <msnyder@redhat.com>
6668
6669 * parser-defs.h (prev_lexptr): New external variable.
6670 * parse.c (parse_exp_1): Set prev_lexptr to null before
6671 calling the language-specific parser.
6672 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6673 (yyerror): Use prev_lexptr in error reporting.
6674
6675 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6676
6677 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6678 * gregset.h: If FILL_FPXREGSET is defined, provide
6679 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6680 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6681 is defined, call fill_fpxregset.
6682
6683 2002-04-24 Roland McGrath <roland@frob.com>
6684
6685 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6686 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6687 (supply_gregset, supply_fpregset): New functions.
6688
6689 * gnu-nat.c (gnu_find_memory_regions): New function.
6690 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6691 (gnu_xfer_memory): Add a cast.
6692
6693 2002-04-24 Michael Snyder <msnyder@redhat.com>
6694
6695 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6696 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6697 of argument regs ("str r(0123), [r11, #-nn"]).
6698 (arm_skip_prologue): Better handling for frameless functions.
6699 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6700 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6701
6702 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6703
6704 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6705 NUM_PSEUDO_REGS can be used.
6706
6707 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6708
6709 * arch-utils.h: Update copyright.
6710
6711 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6712 * gdbarch.h, gdbarch.c: Re-generate.
6713
6714 * inferior.h (IN_SIGTRAMP): Delete definition.
6715 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6716 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6717
6718 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6719 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6720 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6721 (find_proc_framesize): Ditto.
6722 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6723 (alpha_init_extra_frame_info): Ditto.
6724 * infrun.c (handle_inferior_event): Ditto.
6725 (handle_inferior_event): Ditto.
6726 (check_sigtramp2): Ditto.
6727 * blockframe.c (create_new_frame): Ditto.
6728 (get_prev_frame): Ditto.
6729 * ppc-linux-tdep.c: Update comments.
6730 * i386-linux-tdep.c: Update comments.
6731 * breakpoint.c (bpstat_what): Update comment.
6732
6733 2002-04-24 David S. Miller <davem@redhat.com>
6734
6735 * i960-tdep.c (register_in_window_p): New function.
6736 (i960_find_saved_register): Use it instead of
6737 REGISTER_IN_WINDOW_P.
6738 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6739
6740 * symtab.h (find_stab_function_addr): Kill extern.
6741 * minsyms.c (find_stab_function_addr): Remove from here...
6742 * dbxread.c: ... to here, and mark it static.
6743
6744 2002-04-20 David S. Miller <davem@redhat.com>
6745
6746 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6747 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6748
6749 2002-04-21 David S. Miller <davem@redhat.com>
6750
6751 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6752 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6753 (vx_write_register): Likewise.
6754
6755 2002-04-23 J. Brobecker <brobecker@gnat.com>
6756
6757 * source.c (is_regular_file): New function.
6758 (openp): Check wether file to open is a regular file
6759 to avoid opening directories.
6760
6761 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6762
6763 * findvar.c (extract_signed_integer): Cast printf argument
6764 to suppress format warning.
6765 (extract_unsigned_integer): Likewise.
6766 * infcmd.c (registers_info): Likewise.
6767 * top.c (get_prompt_1): Likewise.
6768 * valops.c (value_assign): Likewise.
6769 * valprint.c (print_decimal): Likewise.
6770
6771 2002-04-22 H.J. Lu (hjl@gnu.org)
6772
6773 * c-exp.y (typebase): Support
6774
6775 [long|long long|short] [signed|unsigned] [int|]
6776
6777 and
6778
6779 signed [long|long long|short] int
6780
6781 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6782
6783 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6784 and vax-tdep.h.
6785 * vax-tdep.h: New file.
6786 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6787 Make several routines static.
6788 (vax_get_saved_register): New function.
6789 (vax_gdbarch_init): New function.
6790 (_initialize_vax_tdep): Register vax_gdbarch_init.
6791 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6792 Remove macros now under the control of gdbarch.
6793
6794 2002-04-22 Michael Snyder <msnyder@redhat.com>
6795
6796 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6797 Some whitespace and coding standards tweaks.
6798
6799 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6800
6801 * vax-tdep.c: Include regcache.h.
6802 (vax_call_dummy_words): New.
6803 (sizeof_vax_call_dummy_words): New.
6804 (vax_fix_call_dummy): New function.
6805 (vax_saved_pc_after_call): Ditto.
6806 * config/vax/tm-vax.h: Don't include regcache.h.
6807 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6808 (CALL_DUMMY): Remove.
6809 (CALL_DUMMY_WORDS): Define.
6810 (SIZEOF_CALL_DUMMY_WORDS): Define.
6811 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6812
6813 2002-04-18 Michael Snyder <msnyder@redhat.com>
6814
6815 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6816
6817 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * vax-tdep.c (vax_frame_chain): New function.
6820 (vax_push_dummy_frame): Ditto.
6821 (vax_pop_frame): Ditto.
6822 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6823 (FRAMELESS_FUNCTION_INVOCATION): Use
6824 generic_frameless_function_invocation_not.
6825 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6826 (POP_FRAME): Use vax_pop_frame.
6827
6828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6829
6830 * vax-tdep.c (vax_store_struct_return): New function.
6831 (vax_extract_return_value): Ditto.
6832 (vax_store_return_value): Ditto.
6833 (vax_extract_struct_value_address): Ditto.
6834 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6835 vax_store_struct_return.
6836 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6837 (STORE_RETURN_VALUE): Use vax_store_return_value.
6838 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6839
6840 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6841
6842 * vax-tdep.c (vax_frame_saved_pc): New function.
6843 (vax_frame_args_address_correct): Ditto.
6844 (vax_frame_args_address): Ditto.
6845 (vax_frame_locals_address): Ditto.
6846 (vax_frame_num_args): Move code to be in proximity to
6847 other frame-related functions.
6848 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6849 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6850 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6851 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6852 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6853
6854 2002-04-22 H.J. Lu (hjl@gnu.org)
6855
6856 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6857 includedir.
6858
6859 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6860
6861 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6862 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6863 (FRAME_INIT_SAVED_REGS): New macro.
6864
6865 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6866
6867 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6868
6869 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6870
6871 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6872 where needed.
6873 (fetch_osf_core_registers): Likewise.
6874 (supply_gregset): Likewise.
6875
6876 2002-04-22 J. Brobecker <brobecker@gnat.com>
6877
6878 * symfile.h (get_section_index): Define.
6879 * symfile.c (get_section_index): New function.
6880 * mdebugread.c (SC_IS_SBSS): New macro.
6881 (SC_IS_BSS): Return true for the scBss storage class only, as
6882 the scSBss storage class refers to the .sbss section.
6883 (parse_partial_symbols): Discard the symbols which associated
6884 section does not exist.
6885 Make sure to use the .sbss section index for symbols which
6886 storage class is scBss, rather than using the .bss section index.
6887
6888 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6889
6890 * vax-tdep.c: Update copyright years.
6891 (vax_register_name): New function.
6892 (vax_register_byte): Ditto.
6893 (vax_register_raw_size): Ditto.
6894 (vax_register_virtual_size): Ditto.
6895 (vax_register_virtual_type): Ditto.
6896 * config/vax/tm-vax.h: Update copyright years.
6897 (REGISTER_NAMES): Remove.
6898 (REGISTER_NAME): Define.
6899 (REGISTER_BYTE): Use vax_register_byte.
6900 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6901 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6902 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6903
6904 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6905
6906 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6907 declaration
6908 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6909
6910 2002-04-21 David S. Miller <davem@redhat.com>
6911
6912 * arch-utils.c (generic_prologue_frameless_p): Kill
6913 SKIP_PROLOGUE_FRAMELESS_P code.
6914 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6915 references.
6916 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6917 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6918 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6919 references.
6920 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6921 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6922 (sparc_gdbarch_init): Pass it to
6923 set_gdbarch_prologue_frameless_p.
6924
6925 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6928 (alphabsd-nat.o): New dependency list.
6929
6930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6931
6932 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6933 alphafbsd-tdep.c.
6934 (alpha-linux-tdep.o): New dependency list.
6935 (alphafbsd-tdep.o): Likewise.
6936
6937 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6938
6939 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6940 to here...
6941 * alpha-tdep.c: ...from here.
6942 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6943
6944 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6945
6946 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6947 prototype from here...
6948 * alpha-tdep.h: ...to here.
6949
6950 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6951
6952 * frame.h (selected_frame_level): Document as deprecated.
6953 (frame_relative_level): Declare.
6954 * stack.c (frame_relative_level): New function.
6955 (selected_frame_level): Document as deprecated.
6956 (select_frame): Do not set the selected_frame_level.
6957
6958 * stack.c (frame_info, record_selected_frame): Update.
6959 (frame_command, current_frame_command): Update.
6960 (up_silently_base, up_command, down_silently_base): Update.
6961 (down_command): Update.
6962 * inflow.c (kill_command): Update.
6963 * tracepoint.c (finish_tfind_command): Update.
6964 * corelow.c (core_open): Update.
6965 * thread.c (info_threads_command): Update.
6966 (do_captured_thread_select): Update.
6967 * infcmd.c (finish_command): Update.
6968 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6969
6970 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6971
6972 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6973
6974 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6975
6976 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6977 type const.
6978
6979 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * alphafbsd-tdep.c: Update copyright years. Include
6982 alpha-tdep.h.
6983 (alphafbsd_use_struct_convention): Make static.
6984 (alphafbsd_init_abi): New function.
6985 (_initialize_alphafbsd_tdep): New function.
6986 * config/alpha/tm-fbsd.h: Update copyright years.
6987 (USE_STRUCT_CONVENTION): Remove.
6988
6989 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6990
6991 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6992 an Alpha ABI variant.
6993 (alpha_abi_handler_list): Declare.
6994 (alpha_gdbarch_register_os_abi): New function.
6995 (alpha_gdbarch_init): Give registered ABI variant handlers a
6996 chance to tweak the gdbarch once we have set up defaults.
6997 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6998
6999 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7000
7001 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7002 to standard_coerce_float_to_double.
7003 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7004
7005 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7006
7007 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7008 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7009 from gdbarch_tdep rather than a constant.
7010 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7011 the default text address for all Alpha Unix ABIs.
7012 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7013 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7014
7015 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7016
7017 * alpha-tdep.h: New file. Includes several Alpha target constants
7018 taken from...
7019 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7020 let gdbarch deal with.
7021 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7022 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7023 to dependency list.
7024 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7025 Alpha target register names.
7026 * alphabsd-nat.c: Likewise.
7027 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7028 Alpha target register names. Make serveral routines static.
7029 (alpha_get_saved_register): New function.
7030 (alpha_abi_names): New.
7031 (process_note_abi_tag_sections): New function.
7032 (get_elfosabi): New function.
7033 (alpha_gdbarch_init): New function.
7034 (alpha_dump_tdep): New function.
7035 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7036
7037 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7038
7039 * frame.c (find_saved_register): Delete #ifdef
7040 HAVE_REGISTER_WINDOWS code.
7041 * config/sparc/tm-sparc.h: Update comments.
7042 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7043
7044 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7045
7046 * i960-tdep.c (i960_find_saved_register): New function.
7047 (i960_get_saved_register): New function.
7048 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7049 (i960_get_saved_register): Declare.
7050 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7051
7052 2002-04-20 David S. Miller <davem@redhat.com>
7053
7054 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7055
7056 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7057
7058 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7059 instead of NUM_PSEUDO_REGS.
7060
7061 2002-04-20 David S. Miller <davem@redhat.com>
7062
7063 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7064 GDB_MULTI_ARCH_PARTIAL
7065 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7066 define, let tm-sp64.h do it.
7067
7068 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * frame.c (find_saved_register): Avoid a NULL pointer
7071 dereference and actually walk the frame list.
7072
7073 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7074
7075 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7076 sorted in most most-recent-used order. Document.
7077 * gdbarch.h, gdbarch.c: Regenerate.
7078
7079 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7080
7081 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7082 instead of ->prev.
7083 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7084 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7085 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7086 instead of ->prev.
7087
7088 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7089
7090 Fix PR gdb/471.
7091 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7092 (build_builtin_type_vec128): Ditto.
7093 (append_composite_type_field): Fix calculation of type length in
7094 union case.
7095
7096 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7097
7098 * config/djgpp/README: Update.
7099
7100 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7101 compiler warnings.
7102
7103 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7104
7105 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7106 (alpha_setup_arbitrary_frame): ...to this.
7107 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7108 for alpha_setup_arbitrary_frame.
7109
7110 2002-04-18 Andrew Cagney <cagney@redhat.com>
7111
7112 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7113 * gdbarch.h, gdbarch.c: Regenerate.
7114
7115 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7116 * target.h (memory_breakpoint_from_pc): Update declaration.
7117 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7118
7119 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7120 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7121 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7122 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7123 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7124 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7125 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7126 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7127 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7128 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7129 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7130 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7131
7132 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7133 const pointer.
7134 * monitor.c (monitor_insert_breakpoint): Ditto.
7135 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7136
7137 * config/mcore/tm-mcore.h: Update copyright.
7138 * mem-break.c: Ditto.
7139 * xstormy16-tdep.c: Ditto.
7140
7141 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7142
7143 * p-exp.y: Add precedence rule for '^' token.
7144 This removes the shift/reduce conflicts.
7145 Remove the comment concerning these shift/reduce conflicts.
7146
7147 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7148
7149 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7150 (registers_powerpc_nofp): New register set for processors
7151 without floating point unit.
7152
7153 2002-04-18 David S. Miller <davem@redhat.com>
7154
7155 * MAINTAINERS: Add myself to write-after-approval.
7156
7157 2002-04-17 Michael Snyder <msnyder@redhat.com>
7158
7159 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7160
7161 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7162
7163 * rs6000-tdep.c (frame_initial_stack_address): Use
7164 frame_register_read to read the alloca_reg.
7165
7166 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7167
7168 * frame.c (find_saved_register): Find saved registers in the next
7169 not prev frame.
7170 Fix PR gdb/365.
7171
7172 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7173
7174 * gdbarch.sh (LANG): Set to ``c''.
7175
7176 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7177
7178 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7179
7180 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7181
7182 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7183 Update copyright.
7184
7185 * hpread.c (hpread_get_lntt): Add declaration.
7186 Also fix PR gdb/391.
7187
7188 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7189
7190 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7191 * aclocal.m4, configure: Re-generate.
7192 Fix PR gdb/391.
7193
7194 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7195
7196 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7197 instead of tm_print_insn.
7198
7199 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7200
7201 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7202
7203 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7204
7205 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7206 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7207 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7208
7209 2002-04-12 Don Howard <dhoward@redhat.com>
7210
7211 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7212 max_user_call_depth.
7213 (init_cmd_lists): Initialize the new value;
7214 * cli/cli-script.c (execute_user_command): Limit the call depth of
7215 user defined commands. This avoids a core-dump when user commands
7216 are infinitly recursive.
7217
7218 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7219
7220 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7221 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7222 from tdep struct instead of DEFAULT_LR_SAVE.
7223 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7224 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7225 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7226
7227 2002-04-12 Michael Snyder <msnyder@redhat.com>
7228
7229 * Remote.c: Spelling fix.
7230 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7231 If no symbol found for "sbrk", try "_sbrk".
7232 (make_output_phdrs): Use bfd_section_name.
7233 (gcore_copy_callback): Use bfd_section_name.
7234 * eval.c: Indentation fix-ups.
7235 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7236 in case it gets applied to an address that is already
7237 in the instruction space.
7238 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7239 * symfile.c: Fix indentation, long lines.
7240 * source.c: White space fix-up.
7241
7242 2002-04-12 Andrew Cagney <cagney@redhat.com>
7243
7244 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7245 * frame.c (frame_register_read): New function. Return non-zero on
7246 success.
7247 (read_relative_register_raw_bytes_for_frame): Delete.
7248 (read_relative_register_raw_bytes): Delete.
7249 * frame.h (frame_register_read): Declare.
7250 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7251 * sh-tdep.c: Ditto.
7252 * infcmd.c (do_registers_info): Ditto.
7253 * hppa-tdep.c: Ditto.
7254 * rs6000-tdep.c: Ditto.
7255 * h8500-tdep.c: Ditto.
7256 * mips-tdep.c: Ditto.
7257 * h8300-tdep.c: Ditto.
7258 * z8k-tdep.c: Ditto.
7259
7260 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7261
7262 From Jimi X <jimix@watson.ibm.com>:
7263 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7264 64-bit SysV ABI.
7265
7266 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7267
7268 From Jimi X <jimix@watson.ibm.com>:
7269 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7270 bfd info.
7271
7272 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7273
7274 From Jimi X <jimix@watson.ibm.com>:
7275 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7276 register sets for these processor variants.
7277
7278 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7279
7280 * regformats/reg-ppc.dat: Support FPSCR.
7281
7282 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7283
7284 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7285 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7286 Add fpscr as an invalid/unfetchable register.
7287 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7288 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7289 (fill_fpregset): Add support for register fpscr.
7290 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7291 (fill_gregset): Account for the fact that register ``mq'' might
7292 not exist.
7293 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7294 (registers_power): Add fpscr to register set at slot 71.
7295 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7296 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7297
7298 2002-04-11 Michael Snyder <msnyder@redhat.com>
7299
7300 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7301 * configure: Regenerate.
7302 * config.in: Regenerate.
7303 * acconfig.h: Add define for _SYSCALL32.
7304 * core-sol2.c: Remove #define _SYSCALL32.
7305 * solib-legacy.c: Remove #define _SYSCALL32.
7306
7307 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7308
7309 * stack.c (select_frame): Cleanup internal error message, do not
7310 use %p.
7311
7312 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7313
7314 * stack.c (select_frame): Check that selected_frame and the
7315 specified level are as expected.
7316 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7317 Update copyright.
7318 * frame.h (struct frame_info): Add field `level'. Update
7319 copyright.
7320 Work-in-progress PR gdb/464.
7321
7322 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7323
7324 * maint.c (maint_print_section_info): Rename print_section_info.
7325 (print_bfd_section_info, print_objfile_section_info): Update.
7326 * inferior.h (struct gdbarch): Add opaque declaration.
7327 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7328 * gdbarch.h: Regenerate.
7329
7330 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7331
7332 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7333 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7334 (kernel_u_size): Added.
7335 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7336 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7337
7338 2002-04-04 Jim Ingham <jingham@apple.com>
7339
7340 * valarith.c (find_size_for_pointer_math): New function, either returns
7341 the size for a pointer's target, returns 1 for void *, or errors for
7342 incomplete types.
7343 (value_add, value_sub): use find_size_for_pointer_math.
7344
7345 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7346
7347 * linux-low.c (linux_look_up_symbols): New hook.
7348 (linux_target_ops): Add linux_look_up_symbols.
7349 * remote-utils.c (decode_address): New function.
7350 (look_up_one_symbol): New function.
7351 * server.c (handle_query): Call target look_up_symbols hook.
7352 * server.h (look_up_one_symbol): Add prototype.
7353 * target.h (struct target_ops): Add look_up_symbols hook.
7354
7355 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7356
7357 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7358 override FP_REGNUM with frame->fp. Update copyright.
7359 * parse.c (num_std_regs, std_regs): Delete.
7360 (target_map_name_to_register): Do not search std_regs. Update
7361 function description.
7362 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7363 declarations. Update copyright.
7364 Fix PR gdb/251.
7365
7366 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7367
7368 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7369 after the last symbol in a block.
7370
7371 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7372
7373 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7374 is non zero as a found symbol.
7375
7376 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7377
7378 * findvar.c: Include "builtin-regs.h".
7379 (value_of_register): Call value_of_builtin_reg when applicable.
7380 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7381 (target_map_name_to_register): Call
7382 builtin_reg_map_name_to_regnum.
7383 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7384 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7385 (builtin_regs_h): Define.
7386 (builtin-regs.o): New target.
7387 (findvar.o): Add $(builtin_regs_h).
7388 * builtin-regs.c, builtin-regs.h: New files.
7389 * std-regs.c: New file.
7390 Partial fix for PR gdb/251.
7391
7392 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7393
7394 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7395 it's no longer required.
7396
7397 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7398
7399 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7400
7401 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7402
7403 From Jimi X <jimix@watson.ibm.com>:
7404 * rs6000-tdep.c (rs6000_software_single_step): Use
7405 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7406 and size. Use target_insert_breakpoint() and
7407 target_remove_breakpoint() to insert and remove breakpoints
7408 instead of explicit memory reads and writes.
7409
7410 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7411
7412 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7413 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7414 ELF_OBJECT_FORMAT ifdef.
7415
7416 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7417
7418 From Jimi X <jimix@watson.ibm.com>:
7419 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7420
7421 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7422
7423 From Jimi X <jimix@watson.ibm.com>:
7424 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7425 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7426
7427 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7428
7429 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7430 s/asprintf/xasprintf/.
7431 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7432
7433 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7434
7435 I believe Jeff Law denies responsability for this one:
7436 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7437 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7438 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7439 Work-around for PR gdb/366.
7440
7441 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7444 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7445 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7446
7447 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7448
7449 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7450 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7451 information.
7452
7453 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7454
7455 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7456 maintainer.
7457
7458 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7459
7460 * README (Reporting Bugs in GDB): Document the bug web page as the
7461 prefered way of submitting bugs.
7462 Fix PR gdb/402.
7463
7464 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7465
7466 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7467 -1. Update comment.
7468 * gdbarch.h, gdbarch.c: Re-generate.
7469
7470 2002-04-07 Andreas Schwab <schwab@suse.de>
7471
7472 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7473 buffer to regcache_collect.
7474
7475 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7476
7477 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7478 * gdbarch.c, gdbarch.h: Re-generate.
7479
7480 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7481
7482 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7483 declaration. Fix -Werror.
7484
7485 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7488 * gdbarch.c: Regenerate.
7489
7490 2002-04-05 Michael Snyder <msnyder@redhat.com>
7491
7492 * breakpoint.c (clear_command): Rewrite middle section to
7493 combine two loops with identical control conditions.
7494 Add a cleanup to eliminate a memory leak.
7495 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7496
7497 2002-04-05 H.J. Lu (hjl@gnu.org)
7498
7499 * solib-svr4.c (bkpt_names): Add "__start".
7500
7501 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7502
7503 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7504 as test for 64 bit target.
7505
7506 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7507
7508 * h8500-tdep.c (h8500_write_fp): Delete function.
7509 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7510 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7511 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7513 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7514 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7515 (s390_write_fp):
7516 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7517 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7518 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7519 (d10v_write_fp): Delete function.
7520 * inferior.h (write_fp, generic_target_write_fp): Delete
7521 declarations.
7522 * regcache.c (generic_target_write_fp): Delete function.
7523 (write_fp): Delete function.
7524 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7525 * gdbarch.h, gdbarch.c: Regenerate.
7526 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7527 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7528 (sparc64_write_fp): Delete declaration.
7529 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7530 (h8500_write_fp): Delete declaration.
7531
7532 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7533
7534 * sparc-tdep.c (sparc64_write_fp): Delete.
7535 (sparc_push_dummy_frame): Replace write_fp call with code to store
7536 the FP directly.
7537 (sparc_gdbarch_init): Do not initialize write_fp.
7538
7539 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7540
7541 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7542 clause.
7543
7544 2002-03-29 Jim Blandy <jimb@redhat.com>
7545
7546 * stack.c (get_selected_block): Add new argument `addr_in_block',
7547 used to return the exact code address we used to select the block,
7548 not just the block.
7549 * blockframe.c (get_frame_block, get_current_block): Same.
7550 * frame.h (get_frame_block, get_current_block,
7551 get_selected_block): Update declarations.
7552 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7553 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7554
7555 2002-04-05 Michael Snyder <msnyder@redhat.com>
7556
7557 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7558 warning message.
7559
7560 2002-04-05 J. Brobecker <brobecker@gnat.com>
7561
7562 * utils.c (xfullpath): New function.
7563 * defs.h (xfullpath): Add declaration.
7564 * source.c (openp): Use xfullpath in place of gdb_realpath to
7565 avoid resolving the basename part of filenames when the
7566 associated file is a symbolic link. This fixes a potential
7567 inconsistency between the filenames known to GDB and the
7568 filenames it prints in the annotations.
7569 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7570 to be able to match a filename with either the real filename, or
7571 the name of any symbolic link to this file.
7572 (lookup_partial_symtab): Ditto.
7573
7574 2002-04-04 Michael Snyder <msnyder@redhat.com>
7575
7576 * breakpoint.c: Add support for hardware breakpoints in overlays.
7577 (overlay_events_enabled): New state variable.
7578 (insert_breakpoints): Use overlay_events_enabled to decide
7579 whether to attempt to set a breakpoint at the overlay load addr.
7580 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7581 (remove_breakpoint): Use overlay_events_enabled to decide
7582 whether breakpoints need to be removed from overlay load addr.
7583 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7584 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7585 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7586 disable_overlay_breakpoints): Update overlay_events_enabled.
7587
7588 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * dwarf2read.c (struct function_range): New.
7591 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7592 (check_cu_functions): New.
7593 (read_file_scope): Initialize global function lists.
7594 Call dwarf_decode_line after processing children.
7595 (read_func_scope): Add to global function list.
7596 (dwarf_decode_lines): Call check_cu_functions everywhere
7597 record_line is called. Call record_line with a linenumber
7598 of 0 to mark sequence ends.
7599
7600 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7601
7602 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7603 change sync with glibc.
7604
7605 2002-04-03 Jim Blandy <jimb@redhat.com>
7606
7607 * configure.in: Call AC_C_INLINE.
7608 * configure: Regenerated.
7609
7610 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7611
7612 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7613 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7614
7615 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7616
7617 * NEWS: Mention gcore support on FreeBSD/i386.
7618
7619 * fbsd-proc.c: New file.
7620 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7621 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7622
7623 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7624 while statement.
7625
7626 2002-03-29 Jim Blandy <jimb@redhat.com>
7627
7628 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7629 unescaped newlines in string literals, but newer ones don't. So
7630 escape them.
7631
7632 2002-03-26 Michael Snyder <msnyder@redhat.com>
7633 Andrew Cagney <cagney@redhat.com>
7634
7635 * cli/cli-dump.c: New file. Dump memory to file,
7636 restore file to memory.
7637 * cli/cli-dump.h: New file.
7638 * Makefile.in: Add rules, dependencies for cli-dump.o.
7639 * NEWS: Mention new commands.
7640
7641 2002-03-28 Michael Snyder <msnyder@redhat.com>
7642
7643 * symfile.c (symbol_file_add): Move test for null symbols to later.
7644
7645 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7646
7647 From veksler at il.ibm.com:
7648 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7649 the xstrduped original path.
7650 Fix PR gdb/417.
7651
7652 2002-03-27 Michael Snyder <msnyder@redhat.com>
7653
7654 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7655 * infcmd.c (_initialize_infcmd): Ditto.
7656 * language.c (_initialize_language): Ditto.
7657 * symfile.c (_initialize_symfile): Ditto.
7658 * top.c (_init_main): Ditto.
7659 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7660
7661 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7662
7663 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7664 vector registers handling.
7665 (skip_prologue): Handle new AltiVec instructions. Fill in new
7666 fields of frame data.
7667 (frame_get_saved_regs): Fill in information for AltiVec registers.
7668
7669 2002-03-27 Jim Blandy <jimb@redhat.com>
7670
7671 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7672 a function; leave this macro here to invoke that function.
7673 (symbol_init_mangled_name): Declaration for that function.
7674 * symtab.c (symbol_init_mangled_name): New function.
7675
7676 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7677
7678 * valarith.c: Replace strerror with safe_strerror.
7679 * tracepoint.c: Ditto.
7680 * lin-lwp.c: Ditto.
7681 * go32-nat.c: Ditto.
7682 * inflow.c: Ditto.
7683 * gnu-nat.c: Ditto.
7684
7685 2002-03-27 Andreas Schwab <schwab@suse.de>
7686
7687 * event-top.c (command_line_handler): Remove useless if.
7688
7689 2002-03-27 Andreas Jaeger <aj@suse.de>
7690
7691 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7692 comment.
7693
7694 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7695
7696 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7697 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7698 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7699 (x86_64_linux_dr_get_status, supply_gregset),
7700 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7701 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7702 (x86_64_register_info_table): Add.
7703 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7704 (x86_64_register_raw_size, x86_64_register_virtual_type),
7705 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7706 general x86_64_register_info_table.
7707 (i386_gdbarch_init): gdbarch_register_bytes is now set
7708 dynamicaly during initialization.
7709 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7710 * gdbserver/linux-x86-64-low.c: Ditto.
7711
7712 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7713
7714 * gdbserver/server.c (main): Call target_signal_to_host_p
7715 and target_signal_to_host on signals received from the remote.
7716 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7717 target_signal_from_host on signals sent to the remote.
7718 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7719 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7720
7721 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7722
7723 * signals/signals.c: Include "server.h" in gdbserver build.
7724 (target_signal_from_name): Don't use STREQ.
7725 (_initialize_signals): Likewise. Don't include function in
7726 gdbserver build.
7727
7728 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7729
7730 * signals.c: Moved to...
7731 * signals/signals.c: Here.
7732 * Makefile (signals.o): Update.
7733
7734 2002-03-26 Jeff Law (law@redhat.com)
7735
7736 * somread.c (som_symtab_read): Remove some commented out code and
7737 updated related comments. Do not set the minimal symbol table to
7738 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7739 in a dynamic executable.
7740 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7741 where we are unable to find the minimal symbol for the given
7742 PC value.
7743
7744 2002-03-25 Jeff Law (law@redhat.com)
7745
7746 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7747
7748 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7749
7750 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7751
7752 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7753
7754 * command.h: Update copyright.
7755 (struct cmd_list_element): Replace definition with opaque
7756 declaration.
7757 (enum cmd_types): Document that it will eventually be moved to
7758 cli/cli-decode.h
7759 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7760 (MALLOCED_REPLACEMENT): Delete macro.
7761 * Makefile.in (cli_decode_h): Add $(command_h).
7762 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7763 * top.c: Include "cli/cli-decode.h".
7764 * completer.c: Include "cli/cli-decode.h".
7765 * maint.c: Include "cli/cli-decode.h".
7766 * cli/cli-decode.h: Include "command.h".
7767 (enum command_class): Delete.
7768 (enum cmd_types): Comment out.
7769 (enum cmd_auto_boolean): Delete.
7770 (enum var_types): Delete.
7771
7772 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7773
7774 * cli/cli-decode.c: Include "gdb_assert.h".
7775 (add_set_or_show_cmd): New static function.
7776 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7777 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7778 all fields, such as func, from the set command.
7779
7780 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7781
7782 * MAINTAINERS (sh-elf): Change warning flag to -w.
7783
7784 2002-03-23 Andrew Cagney <cagney@redhat.com>
7785
7786 * defs.h (error): Add printf format attribute.
7787 * thread-db.c (thread_from_lwp): Fix error format string.
7788 * stack.c (parse_frame_specification): Ditto.
7789 * cli/cli-decode.c (undef_cmd_error): Ditto.
7790 * scm-lang.c (scm_lookup_name): Ditto.
7791 * tracepoint.c (trace_error): Ditto.
7792 * remote-utils.c (usage): Ditto.
7793 * remote.c (compare_sections_command): Ditto.
7794 Fix PR gdb/328.
7795
7796 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7797
7798 * gdbtypes.c (append_composite_type_field): New function.
7799 (init_composite_type): New function.
7800 * gdbtypes.h (append_composite_type_field): Declare.
7801 (init_composite_type): Ditto.
7802
7803 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7804
7805 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7806 function.
7807 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7808 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7809 structure returning convention for SYSV ABI case, but not
7810 for GNU/Linux, FreeBSD, or NetBSD.
7811
7812 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7813
7814 * symtab.h (lookup_block_symbol): Add mangled_name argument
7815 to prototype.
7816
7817 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7818 with new mangled_name argument.
7819 * linespec.c (decode_line_1): Likewise.
7820 * valops (value_of_this): Likewise.
7821 * symtab.c (lookup_transparent_type): Likewise.
7822 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7823 (lookup_symbol): If we are given a mangled name, pass it down
7824 to lookup_symbol_aux.
7825 (lookup_block_symbol): If we are given a mangled name to check
7826 against, only return symbols which match it.
7827
7828 2002-03-22 Christopher Faylor <cgf@redhat.com>
7829
7830 * win32-nat.c (child_create_inferior): Check for proper shell to use
7831 here, in case the user changes it on the fly.
7832 (_initialize_inftarg): Remove shell path considerations.
7833
7834 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7835
7836 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7837 for gdbarch_max_register_raw_size and max_register_virtual_size.
7838 Adjust copyright year.
7839
7840 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7841
7842 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7843 in a function to cover the entire beginning of the function
7844 as well if it does not already.
7845
7846 2002-03-21 Tom Rix <trix@redhat.com>
7847
7848 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7849 (rs6000_ptrace64): Renamed from ptrace64.
7850
7851 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7852
7853 * gdbserver/remote-utils.c (remote_open): Don't call
7854 getprotobyname, we're all using TCP here so just use
7855 IPPROTO_TCP.
7856 * gdbserver/gdbreplay.c (remote_open): Ditto.
7857
7858 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7859
7860 * regcache.c (_initialize_regcache): No need to call
7861 build_regcache() at this time; it gets called whenever
7862 the gdbarch changes.
7863
7864 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7865
7866 * sparc-nat.c: Include sys/param.h where possible.
7867
7868 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7869
7870 Fix PR gdb/422.
7871 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7872 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7873 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7874 complex types.
7875 * stabsread.c (rs6000_builtin_type): Likewise.
7876 (read_sun_floating_type): Likewise.
7877
7878 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7879
7880 * stabsread.c (read_member_functions): Remove skip code for duplicate
7881 constructor/destructor methods. Use standard parsing for these
7882 methods and just do not chain them to the list of methods after
7883 parsing.
7884
7885 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7886
7887 * coffread.c: Remove redundant static declarations. Replace
7888 occurrences of `PTR' with `void *'.
7889 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7890 * top.h (quit_cover): Likewise.
7891 * defs.h (catch_errors): Likewise.
7892
7893 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7894
7895 * defs.h (XMALLOC): Define.
7896 * gdb-events.sh (XMALLOC): Delete macro.
7897 * gdb-events.c, gdb-events.h: Regenerate.
7898 * gdbarch.sh (XMALLOC): Delete macro.
7899 * gdbarch.c: Regenerate.
7900 * serial.c (XMALLOC): Delete macro.
7901 * ui-file.c (XMALLOC): Ditto.
7902 * ser-unix.h (XMALLOC): Ditto.
7903 * sh-tdep.c (XMALLOC): Ditto.
7904 * ui-out.c (XMALLOC): Ditto.
7905 * utils.c (XMALLOC): Ditto.
7906 * i386-tdep.c (XMALLOC): Ditto.
7907 * gdb-events.c (XMALLOC): Ditto.
7908 * d10v-tdep.c (XMALLOC): Ditto.
7909 * cli-out.c (XMALLOC): Ditto.
7910
7911 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7912 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7913 * ui-file.c, ui-out.c: Ditto.
7914
7915 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7916
7917 * command.h (struct cmd_list_element): Add field context.
7918 (set_cmd_context, get_cmd_context): Declare.
7919 * cli/cli-decode.h: Ditto.
7920 * cli/cli-decode.c (get_cmd_context): New function.
7921 (set_cmd_context): New function.
7922 (add_cmd): Initialize context.
7923 Part of fixing PR gdb/145 and PR gdb/146.
7924
7925 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7926
7927 * cli/cli-decode.c (cmd_type): New function.
7928 * command.h (cmd_type): Declare.
7929 * infrun.c (set_schedlock_func): Call function cmd_type.
7930 * kod.c (kod_set_os): Call cmd_type.
7931 * cris-tdep.c (cris_version_update): Use function cmd_type.
7932 (cris_mode_update, cris_abi_update): Ditto.
7933
7934 * command.h: (execute_cmd_post_hook): Declare.
7935 (execute_cmd_pre_hook): Declare.
7936 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7937 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7938 functions. Execute pre/post hook while ensuring that afterwords
7939 hook_in is cleared.
7940 * top.c (execute_command): Use execute_cmd_post_hook, and
7941 execute_cmd_pre_hook to execute pre/post commands.
7942 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7943 hook_stop_stub.
7944 (hook_stop_stub): Call execute_cmd_pre_hook.
7945
7946 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7947
7948 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7949 set'' and this leads to a core dump. Move xstrdup of
7950 operating_system to after check that it is not NULL.
7951
7952 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7953
7954 * kod.c (kod_set_os): Remove unnecessary check that
7955 ``command->type'' is set_cmd.
7956
7957 * valprint.c (set_input_radix): Use input_radix.
7958 (set_output_radix): Use output_radix.
7959 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7960 isn't reverted.
7961
7962 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7963
7964 * value.h (struct value): Delete field ``substring_addr''. Change
7965 aligner fields to force_doublest_align, force_longest_align,
7966 force_core_addr_align and force_pointer_aligh.
7967
7968 * value.h (struct value): Fix typo in above change.
7969
7970 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7971
7972 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7973 to fix internal_error from ``maintenance print architecture''.
7974
7975 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7976
7977 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7978 for gcc versions after gcc-2.8.1.
7979
7980 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7981
7982 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7983 for method resolution. Restore adjustment of ``this'' pointer after
7984 calling value_struct_elt, which was accidentally removed during the
7985 HP merge.
7986
7987 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7988
7989 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7990 value_of_register.
7991 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7992 get_saved_register.
7993 * value.h (value_of_register): Update.
7994
7995 2002-03-14 Richard Henderson <rth@redhat.com>
7996
7997 * configure.in: Detect declaration for canonicalize_file_name.
7998 * utils.c (canonicalize_file_name): Declare, if needed.
7999 (gdb_realpath): Prefer realpath if available and usable.
8000 * config.in, configure: Rebuild.
8001
8002 2002-03-14 Richard Henderson <rth@redhat.com>
8003
8004 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8005 a constant array bound.
8006
8007 * MAINTAINERS: Add myself to write-after-approval.
8008
8009 2002-03-14 Michael Snyder <msnyder@redhat.com>
8010
8011 * symfile.c (syms_from_objfile): Return immediately if no syms.
8012 (symbol_file_add): Return immediately if no syms.
8013 (find_sym_fns): Return immediately if no syms.
8014
8015 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8016
8017 * gdbserver/remote-util.c (remote_open): Print remote-side's
8018 IP address when remote debugging over the network.
8019
8020 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8021
8022 * config/sparc/fbsd.mh: Fix copyright.
8023 * config/sparc/fbsd.mt: Likewise.
8024
8025 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8026
8027 * MAINTAINERS: Fix typo in name of gdb warnings option.
8028 (x86-64): Fix formating so that this can be parsed by awk.
8029
8030 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8031
8032 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8033 * defs.h: Include "gdb/signals.h".
8034 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8035
8036 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8037
8038 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8039 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8040 from x86-64-tdep.h
8041
8042 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8043 Don Howard <dhoward@redhat.com>
8044
8045 * mips-tdep.c (ST0_FR): Define.
8046 (mips2_fp_compat): New function, temporarily disabled.
8047 (mips_read_fp_register_single): New function.
8048 (mips_read_fp_register_double): New function.
8049 (mips_print_register): Use them.
8050 (do_fp_register_row): Likewise.
8051
8052 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8053
8054 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8055 approval''.
8056
8057 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8058
8059 * stabsread.c (read_member_functions): Fix is_stub test for
8060 static member functions, improve comment.
8061
8062 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8063
8064 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8065 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8066 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8067 commands that set boolean values.
8068 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8069 (arm_rdi_resume): Always initialize PC.
8070 (arm_rdi_open): Don't use rslt as a boolean.
8071 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8072 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8073 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8074 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8075
8076 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8077
8078 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8079 * configure: Rebuilt.
8080
8081 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8082
8083 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8084 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8085
8086 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8087
8088 * cli/cli-decode.c (set_cmd_completer): New function.
8089 * command.h (set_cmd_completer): Declare.
8090 * cli/cli-decode.h (set_cmd_completer): Ditto.
8091
8092 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8093 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8094 * win32-nat.c (_initialize_inftarg): Ditto.
8095 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8096 * proc-api.c (_initialize_proc_api): Ditto.
8097 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8098 * source.c (_initialize_source): Ditto.
8099 * exec.c (_initialize_exec): Ditto.
8100 * solib.c (_initialize_solib): Ditto.
8101 * top.c (init_main): Ditto.
8102 * tracepoint.c (_initialize_tracepoint): Ditto.
8103 * symfile.c (_initialize_symfile): Ditto.
8104 * printcmd.c (_initialize_printcmd): Ditto.
8105 * infcmd.c (_initialize_infcmd): Ditto.
8106 * corefile.c (_initialize_core): Ditto.
8107
8108 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8109
8110 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8111
8112 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8113
8114 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8115
8116 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8117
8118 * NEWS: Update headings, 5.2 has branched.
8119
8120 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8121
8122 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8123 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8124 (register_addr, REGISTER_RAW_SIZE): Likewise.
8125 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8126 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8127
8128 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8129
8130 * MAINTAINERS (x86-64): Add myself.
8131 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8132 changed value_ptr -> struct value *
8133
8134 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8135
8136 * configure.host (sparc64-*-freebsd): Add.
8137 * configure.tgt: Likewise.
8138 * config/sparc/fbsd.mh: New file.
8139 * config/sparc/fbsd.mt: Likewise.
8140 * config/sparc/nm-fbsd.h: Likewise.
8141 * config/sparc/tm-fbsd.h: Likewise.
8142
8143 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8144
8145 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8146 regformats/reg-s390x.dat.
8147
8148 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8149
8150 * utils.c: Add FIXME explaining true/false problem.
8151
8152 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8153
8154 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8155
8156 2002-02-28 Michael Chastain <mec@shout.net>
8157
8158 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8159
8160 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8161
8162 * gdbserver/linux-s390-low.c: New file.
8163 * regformats/reg-s390.dat: New file.
8164 * regformats/reg-s390x.dat: New file.
8165 * gdbserver/configure.srv: Add S/390.
8166 * gdbserver/Makefile.in: Add S/390.
8167 * configure.tgt: Enable gdbserver for S/390.
8168
8169 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8170
8171 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8172 first line of the doc string for "info dos", except at the end of
8173 the sentence, since the short help stops at the first period.
8174
8175 2002-02-28 Jason Merrill <jason@redhat.com>
8176
8177 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8178
8179 2002-02-27 Fred Fish <fnf@redhat.com>
8180
8181 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8182 comment (dumy -> dummy).
8183
8184 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8185
8186 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8187
8188 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8189
8190 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8191
8192 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8193
8194 * gdbserver/acconfig.h: New file.
8195 * gdbserver/i387-fp.c: New file.
8196 * gdbserver/i387-fp.h: New file.
8197 * gdbserver/linux-x86-64.c: New file.
8198 * regformats/reg-x86-64.dat: New file.
8199 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8200 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8201 * gdbserver/configure.in: Add support for regsets.
8202 * gdbserver/config.in: Regenerate.
8203 * gdbserver/configure: Regenerate.
8204 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8205 * gdbserver/linux-low.h: New file.
8206 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8207 for regsets.
8208 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8209 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8210 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8211 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8212 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8213 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8214 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8215 "i387-fp.h". Add PTRACE_GETREGS and friends.
8216 * gdbserver/regcache.c (supply_register): New function.
8217 (supply_register_by_name): New function.
8218 (collect_register): New function.
8219 (collect_register_by_name): New function.
8220
8221 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8224 (config.status): Add configure.srv dependency.
8225 (server_h): Add config.h dependency.
8226
8227 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8228
8229 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8230 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8231 * gdbserver/configure.srv: Change i386-*-linux* to use
8232 reg-i386-linux.o.
8233
8234 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8235
8236 * x86-64-tdep.c: Re-indent. Update copyright date.
8237
8238 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8239
8240 From Michal Ludvig <mludvig@suse.cz>:
8241 * x86-64-tdep.c (value.h): Delete.
8242 (gdb_assert.h): Include.
8243 (x86_64_register_convert_to_virtual,
8244 x86_64_register_convert_to_raw ): Add check which lets only
8245 floating-point values to be converted.
8246 (value_push): Delete.
8247 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8248 (i386_gdbarch_init): Number of register_bytes fixed.
8249
8250 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8251
8252 * MAINTAINERS: Add x86-64 target.
8253
8254 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8255
8256 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8257 * osfsolib.c (solib_map_sections): Ditto.
8258 * irix5-nat.c (solib_map_sections): Ditto.
8259 * corelow.c (gdb_check_format): Ditto.
8260 * symfile.c (symfile_bfd_open): Ditto.
8261 * solib.c (solib_map_sections): Ditto.
8262 Fix PR gdb/354.
8263
8264 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8265
8266 * remote.c (_initialize_remote): By default, disable ``e'' and
8267 ``E'' step out-of-range packets.
8268
8269 2002-02-26 Andreas Schwab <schwab@suse.de>
8270
8271 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8272 m68k_linux_frame_saved_pc.
8273 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8274 in_sigtramp.
8275 (SIGCONTEXT_PC_OFFSET): Remove.
8276 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8277 m68k_linux_sigtramp_saved_pc): New functions.
8278 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8279 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8280 (UCONTEXT_PC_OFFSET): Define.
8281 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8282 non-RT and RT signal trampolines.
8283
8284 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8285
8286 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8287 (TARGET_NBPG, STACK_END_ADDR): Delete
8288 (VARIABLES_INSIDE_BLOCK): Delete.
8289
8290 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8291
8292 * utils.c (perror_with_name): Make string parameter constant.
8293 (print_sys_errmsg): Ditto.
8294 (query): Ditto.
8295 * defs.h (perror_with_name): Update.
8296 (print_sys_errmsg): Update.
8297 (query): Update.
8298
8299 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8300
8301 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8302 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8303
8304 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8305
8306 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8307 if it already matches the current architecture from the exec file.
8308 Include arch-utils.h for gdbarch_info_init prototype.
8309 * Makefile.in (rs6000-nat.o): Update dependencies.
8310
8311 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8312
8313 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8314 list of exported variables.
8315
8316 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8317
8318 * gdbserver/configure.srv: New file.
8319 * gdbserver/configure.in: Use configure.srv instead
8320 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8321 from it.
8322 * gdbserver/configure: Regenerated.
8323 * gdbserver/terminal.h: New file.
8324 * gdbserver/Makefile.in: Update for configure changes. Remove
8325 more unneeded include paths.
8326
8327 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8328
8329 From wiz at danbala:
8330 * config/sparc/tm-sp64.h: Fix grammar and typos.
8331 Fix PR gdb/287.
8332
8333 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8334
8335 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8336 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8337 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8338 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8339 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8340 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8341 * s390-tdep.c: Ditto.
8342 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8343 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8344 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8345 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8346 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8347 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8348 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8349 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8350 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8351 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8352 Fix PR gdb/378.
8353
8354 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8355
8356 * lin-thread.c: Delete file.
8357 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8358 to gdb_proc_service.h.
8359 * configure: Re-generate.
8360
8361 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8362 * serial.c (serial_open): Delete check for "ocd".
8363 Fix PR gdb/349.
8364
8365 * Makefile.in (linux-thread.o): Delete target.
8366 * linux-thread.c: Delete file.
8367
8368 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8369 renamed SH files to be consistent.
8370
8371 * symtab.c (sort_search_symbols): Use xfree.
8372
8373 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8374
8375 * arm-linux-tdep.c (arm_linux_init_abi): Register
8376 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8377 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8378 definition with undef, since we don't want the sysvr4 definition.
8379 (SKIP_TRAMPOLINE_CODE): Likewise.
8380
8381 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8382
8383 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8384
8385 * configure.in: (AC_CHECK_FUNCS) Added test for
8386 canonicalize_file_name Regenerated.
8387 * config.in, configure: Regenerated.
8388 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8389 defined use canonicalize_file_name.
8390
8391 2002-02-23 Michael Chastain <mec@shout.net>
8392
8393 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8394
8395 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8396
8397 * README: Remove references to cygnus.com.
8398 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8399 dot com'' form. Remove references to cygnus.com and sourceware.
8400
8401 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8402
8403 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8404 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8405 1003.1-2001 no longer allows "head -1".
8406 * gdb/Makefile.in (version.c): Likewise.
8407 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8408 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8409 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8410
8411 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8412
8413 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8414 * command.h (cmd_cfunc_eq): Declare.
8415 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8416
8417 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8418 ``struct cmd_list_element *''.
8419 * cli/cli-cmds.c (is_complete_command): Update. Use
8420 cmd_cfunc_eq.
8421 * top.c (execute_command): Pass the command to
8422 is_complete_command.
8423 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8424
8425 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8426
8427 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8428 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8429 architecture defines.
8430 * s390-tdep.c (s390_gdbarch_init): Likewise.
8431
8432 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8433
8434 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8435 (arm_linux_push_arguments): Likewise.
8436 (arm_linux_init_abi): Register them. Also register linux-specific
8437 call_dummy_words.
8438 (find_minsym_and_objfile): Use strcmp, not STREQ.
8439 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8440 (arm_linux_call_dummy_words): Delete declaration.
8441 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8442 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8443 declarations.
8444 (LOWEST_PC): Delete.
8445
8446 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8447
8448 * maint.c (print_section_info): Do not prepend `0x' to filepos
8449 output, it will be handled by local_hex_string_custom.
8450
8451 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8452
8453 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8454 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8455 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8456
8457 2002-02-22 Jim Blandy <jimb@redhat.com>
8458
8459 Indicate that the bcache functions don't change the strings
8460 they're passed.
8461 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8462 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8463
8464 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8465
8466 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8467
8468 2002-02-21 Christopher Faylor <cgf@redhat.com>
8469
8470 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8471 find the complete path to a loaded DLL.
8472
8473 2002-02-21 Fred Fish <fnf@redhat.com>
8474
8475 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8476 that marks the end of the range of a function, enter a line number
8477 entry that has a line number of zero and a PC offset that matches
8478 the end of the function. This starts a range of PC's for which no
8479 line number information is known.
8480 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8481 PC's for which no line number info is found (line number is zero)
8482 then we didn't find any valid line information.
8483 * symtab.h: Document use of zero line number entry.
8484
8485 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8488 (have_ptrace_getvrregs): Define for run time checks.
8489 (gdb_vrregset_t): New type for Altivec register handling.
8490 (fetch_register, store_register): Fetch/store altivec register
8491 when needed.
8492 (fetch_altivec_register, store_altivec_register): New functions.
8493 (supply_vrregset, fill_vrregset): New functions.
8494 (fetch_altivec_registers, store_altivec_registers): New functions.
8495 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8496 registers as well.
8497
8498 2002-02-21 Jiri Smid <smid@suse.cz>
8499
8500 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8501
8502 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8503
8504 * Makefile.in (armnbsd-nat.o): Update dependencies.
8505 * armnbsd-nat.c (supply_gregset): New function. Common code to
8506 supply the integer register set.
8507 (supply_fparegset): New function. Similar for FPA registers.
8508 (fetch_regs, fetch_fp_regs): Use them.
8509 (fetch_core_registers): Likewise.
8510 (fetch_elfcore_registers): New function.
8511 (arm_netbsd_elfcore_fns): New core-file type specification.
8512 (_initialize_arm_netbsd_nat): Register it.
8513
8514 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8515
8516 * armnbsd-nat.c: Include gdbcore.h.
8517 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8518 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8519 'void' to declaration, to shut up ARI.
8520 (fetch_core_registers): Make static. Rewrite using supply_register.
8521 (arm_netbsd_core_fns): New core-file type specification.
8522 (_initialize_arm_netbsd_nat): New function.
8523
8524 2002-02-21 Christopher Faylor <cgf@redhat.com>
8525
8526 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8527 value.
8528
8529 2002-02-20 Christopher Faylor <cgf@redhat.com>
8530
8531 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8532 fails.
8533
8534 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * jv-exp.y (parse_number): Change type of implicit longs
8537 to builtin_type_uint64.
8538
8539 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8540
8541 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8542 to be an integer instead of a `union wait'.
8543
8544 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8545
8546 * mips-linux-nat.c: Call the operating system GNU/Linux.
8547 * mips-linux-tdep.c: Likewise.
8548 * mips-tdep.c: Likewise.
8549
8550 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8551
8552 Fix PR gdb/265.
8553 * jv-exp.y (parse_number): Handle 64-bit integers.
8554
8555 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8556
8557 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8558 AC_STDC_HEADERS to AC_HEADER_STDC.
8559 * gdbserver/configure: Regenerated.
8560
8561 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8562
8563 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8564 is defined.
8565 * sparc-tdep.c (get_longjmp_target): Likewise.
8566
8567 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8568
8569 * News: Add news about ARM and Multi-arch. Mention the new target
8570 arm*-*-netbsd*.
8571
8572 2002-02-19 Jim Blandy <jimb@redhat.com>
8573
8574 * stabsread.c (error_type_complaint): Improve error message.
8575
8576 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8577
8578 * gdbserver/README: Update documentation.
8579 * gdbserver/configure.in: Update configury to match documentation.
8580 * gdbserver/Makefile.in: Likewise.
8581 * gdbserver/configure: Regenerated.
8582 * gdbserver/aclocal.m4: New file, generated by aclocal.
8583 * gdbserver/config.in: New file, generated by autoheader.
8584
8585 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8588 armnbsd-nat.c.
8589
8590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8591
8592 * arm-tdep.h (enum arm_float_model): New enum.
8593 (struct gdbarch_tdep): Add fp_model.
8594 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8595 up floating-point conversions until we know the floating-point model
8596 in use by the inferior. Don't complain about being unable to
8597 determine the ABI of the inferior when we don't have one.
8598 (arm_extract_return_value): Support different floating-point models.
8599 (arm_store_return_value): Likewise.
8600 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8601 ARM_FLOAT_SOFT.
8602 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8603
8604 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8605
8606 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8607 of ``current_gdbarch''.
8608
8609 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8610
8611 * armnbsd-nat.c : ANSIfy all function declarations.
8612 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8613 (fetch_inferior_registers): Re-implement in terms of above.
8614 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8615 (store_inferior_registers): Re-implement in terms of above.
8616
8617 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8618
8619 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8620 kernel.
8621 * arm-linux-tdep.c: Likewise.
8622 * config/arm/tm-linux.h: Likewise.
8623
8624 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8625
8626 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8627 * config/arm/nbsd.mt (TM_FILE): Delete.
8628 * config/arm/tm-nbsd.h: Delete.
8629
8630 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8631
8632 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8633 Initialize CALL_DUMMY_LENGTH.
8634
8635 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8636
8637 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8638 function.
8639 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8640 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8641 defines one thing and that is incorrect for this port.
8642 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8643
8644 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8645
8646 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8647
8648 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8649
8650 * win32-nat.c (display_selector): New function. Displays information
8651 about the information returned by GetThreadSelectorEntry API function.
8652 (display_selectors): New function. Displays the infomation of
8653 the selector given as argument, or of CS, DS ans FS selectors
8654 if no argument is given.
8655 ( _initialize_inftarg): Add "w32" as info prefix command.
8656 Add "info w32 selector" as command calling display_selectors.
8657
8658 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8659
8660 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8661 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8662 if not defined.
8663
8664 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8665
8666 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8667
8668 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8669
8670 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8671 (arm_fix_call_dummy): Call it.
8672 (arm_call_dummy_breakpoint_offset): Delete.
8673 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8674 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8675
8676 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8677
8678 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8679 Default to func_frame_chain_valid.
8680 * gdbarch.h, gdbarch.c: Re-generate.
8681 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8682
8683 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8684
8685 * ppc-linux-nat.c: Update copyright.
8686 (fetch_register, store_register): Add tid parameter, don't compute
8687 tid here.
8688 (fetch_ppc_registers, store_ppc_registers): Add tid
8689 parameter. Pass it along to callees.
8690 (fetch_inferior_registers, store_inferior_registers): Compute tid
8691 here, and pass it to calleed functions.
8692 (fill_gregset, supply_fpregset): Clean up formatting.
8693
8694 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8697 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8698
8699 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8700
8701 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8702 * gdbarch.c gdbarch.h: Regenerate.
8703 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8704 function.
8705 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8706 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8707 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8708
8709 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8710 * arm-tdep.c (arm_get_longjmp_target): New function.
8711 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8712 this to a positive value register arm_get_longjmp_target as the
8713 longjmp handler.
8714 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8715 (arm_linux_init_abi): Set up longjmp description in tdep.
8716 * armnbsd-nat.c (get_longjmp_target): Delete.
8717 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8718 description in tdep.
8719 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8720 (get_longjmp_target): Delete declaration.
8721 (GET_LONGJMP_TARGET): Delete.
8722 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8723 (GET_LONGJMP_TARGET): Delete.
8724
8725 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8726
8727 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8728 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8729 of ``current_gdbarch''.
8730
8731 2002-02-17 Tom Tromey <tromey@redhat.com>
8732
8733 * cli/cli-cmds.c (compare_strings): New function.
8734 (complete_command): Only print each unique item once.
8735 * completer.h (complete_line): Declare.
8736 * completer.c (complete_line): New function.
8737 (line_completion_function): Use it.
8738
8739 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8740
8741 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8742 * gdbarch.h, gdbarch.c: Re-generate.
8743
8744 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8745
8746 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8747
8748 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8749
8750 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8751 * valops.c (value_arg_coerce): Don't take the address of a reference
8752 to convert an argument to a reference.
8753
8754 2002-02-15 Christopher Faylor <cgf@redhat.com>
8755
8756 * win32-nat.c (get_image_name): New function.
8757 (handle_load_dll): Use get_image_name function.
8758 (get_child_debug_event): Avoid registering debug events until possibly
8759 execed process is started.
8760 (child_create_inferior): Allow invocation via shell so that command
8761 line redirection, etc. works ok.
8762 (_initialize_inftarg): Add new command: "set shell" to control whether
8763 a shell is used to start a process.
8764
8765 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8766
8767 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8768 instead of find_register_by_number.
8769 (cannot_store_register): Likewise.
8770
8771 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8772
8773 * dwarf2read.c: Replace fprintf (stderr, ...) by
8774 fprintf_unfiltered (gdb_stderr, ...).
8775
8776 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8777
8778 * gdbserver/gdbserver.1: Document --attach.
8779
8780 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8781
8782 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8783 descriptions.
8784 * arm-tdep.c (arm_default_arm_le_breakpoint)
8785 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8786 (arm_default_thumb_be_breakpoint): New. Initialize them from
8787 traditional breakpoint defines.
8788 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8789 (arm_gdbarch_init): Initialize new breakpoint variables.
8790 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8791 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8792 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8793 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8794 code out to ...
8795 (arm_netbsd_init_abi_common): ... here; new function.
8796 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8797 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8798 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8799 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8800
8801 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8802
8803 * arm-tdep.h (enum arm_abi): New enum.
8804 (struct gdbarch_tdep): New structure.
8805 (LOWEST_PC): Provide a default.
8806 (arm_gdbarch_register_os_abi): Declare new function.
8807 * arm-tdep.c (arm_abi_names): New array.
8808 (process_note_abi_tag_sections): New function.
8809 (get_elfosabi): New function.
8810 (arm_gdbarch_register_os_abi): New function.
8811 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8812 support for that ABI has been built in, then call the appropriate
8813 configuration routine. Use gdbarch_num_regs() to get the number
8814 of registers.
8815 (arm_dump_tdep): New function.
8816 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8817 place-holder functions.
8818 (_initialize_arm_tdep): Register them.
8819 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8820
8821 * armnbsd-tdep.c: New file.
8822 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8823 * config/arm/nbsd.mt (TDEPFILES): Add it.
8824 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8825
8826 * armnbsd-nat.c: Include regcache.h.
8827 * Makefile.in (armnbsd-nat.o): Update dependency list.
8828
8829 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8830
8831 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * gdbserver/Makefile.in: Fix typos in target rules.
8834
8835 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8836
8837 Fix part of PR gdb/267.
8838 * linespec.c (find_methods): Handle constructors specially for now.
8839
8840 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8841
8842 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8843 handling.
8844 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8845 standard_coerce_float_to_double().
8846
8847 2002-02-14 Christopher Faylor <cgf@redhat.com>
8848
8849 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8850 GDBINIT_FILENAME.
8851
8852 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8855 find_variant_by_name, because it confuses the multiarch
8856 framework. Return NULL if there isn't an architecture with the
8857 user supplied name, instead of forcing a different one without
8858 recording the change with the multiarch machinery.
8859 (find_variant_by_name): Delete.
8860
8861 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8862
8863 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8864 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8865
8866 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8867
8868 * stack.c (print_frame_info_base): When calling
8869 print_frame_info_listing_hook, set current_source_symtab.
8870
8871 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8874 and remove unused $(INCLUDE_DIR).
8875 Add regcache.c to OBS.
8876 Add generated register protocol files to clean target.
8877 Update dependencies for new objects, obsolete old target code.
8878
8879 * gdbserver/linux-low.c: Remove all platform-specific code to
8880 new files. Remove various dead code. Update to use regcache
8881 functionality.
8882 * gdbserver/remote-utils.c (fromhex): Add return statement
8883 to quiet warning.
8884 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8885 constant.
8886 (input_interrupt): Add integer parameter to match prototype
8887 of a signal handler.
8888 (outreg): Use register_data ().
8889 (prepare_resume_reply): Use gdbserver_expedite_regs.
8890 * gdbserver/server.c (main): Dynamically allocate own_buf because
8891 PBUFSIZ is no longer constant. Use registers_to_string () and
8892 registers_from_string ().
8893 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8894 for error (), fatal (), and warning (). Update definition of
8895 PBUFSIZ to use regcache functionality. Add include guard.
8896 * gdbserver/utils.c (fatal): Add missing ``const''.
8897 (warning): New function.
8898
8899 * regformats/regdat.sh: Include "regcache.h" in generated files.
8900 Provide init_registers () function.
8901 * regformats/regdef.h: Add prototype for set_register_cache ().
8902 Add include guard.
8903
8904 * gdbserver/linux-arm-low.c: New file.
8905 * gdbserver/linux-i386-low.c: New file.
8906 * gdbserver/linux-ia64-low.c: New file.
8907 * gdbserver/linux-m68k-low.c: New file.
8908 * gdbserver/linux-mips-low.c: New file.
8909 * gdbserver/linux-ppc-low.c: New file.
8910 * gdbserver/linux-sh-low.c: New file.
8911
8912 * gdbserver/regcache.c: New file.
8913 * gdbserver/regcache.h: New file.
8914
8915 * gdbserver/low-linux.c: Removed obsolete file.
8916
8917 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8920 * config/i386/linux.mt: Likewise.
8921 * config/ia64/linux.mt: Likewise.
8922 * config/m68k/linux.mh: Likewise.
8923 * config/powerpc/linux.mh: Likewise.
8924 * config/mips/linux.mt: Likewise.
8925
8926 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8927
8928 * config/i386/i386lynx.mh: Mark gdbserver variables
8929 as (currently) obsolete for this target.
8930 * config/i386/nbsd.mt: Likewise.
8931 * config/i386/nbsdelf.mt: Likewise.
8932 * config/m32r/m32r.mt: Likewise.
8933 * config/m68k/m68klynx.mh: Likewise.
8934 * config/m68k/nbsd.mt: Likewise.
8935 * config/m68k/sun3os4.mh: Likewise.
8936 * config/mips/vr5000.mt: Likewise.
8937 * config/ns32k/nbsd.mt: Likewise.
8938 * config/pa/hppabsd.mh: Likewise.
8939 * config/pa/hppaosf.mh: Likewise.
8940 * config/powerpc/nbsd.mt: Likewise.
8941 * config/rs6000/rs6000lynx.mh: Likewise.
8942 * config/s390/s390.mt: Likewise.
8943 * config/s390/s390x.mt: Likewise.
8944 * config/sparc/sparclynx.mh: Likewise.
8945 * config/sparc/sun4os4.mh: Likewise.
8946 * config/i386/x86-64linux.mt: Likewise.
8947 * config/sparc/linux.mh: Likewise.
8948
8949 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8950
8951 * configure.tgt: Configure gdbserver only for known working
8952 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8953 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8954 SUBDIRS if it is configured. Update comment for ${nativefile}.
8955 * configure: Regenerated.
8956
8957 2002-02-13 Michael Snyder <msnyder@redhat.com>
8958
8959 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8960
8961 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8962 (default_gcore_mach): Just return 0, work around a problem in bfd.
8963 (default_gcore_target): OK to return NULL if exec_bfd is null.
8964 (make_mem_sec): Use a cast, avoid a warning.
8965
8966 * procfs.c (find_memory_regions_callback): Use a cast instead of
8967 calling host_pointer_to_address (which complains if
8968 sizeof (host pointer) != sizeof (target pointer)).
8969 (procfs_make_note_section): Avoid overflow in psargs string.
8970
8971 * procfs.c (procfs_make_note_section): Make the default
8972 implementation return an error.
8973
8974 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8975
8976 * procfs.c (procfs_make_note_section): Provide a default definition
8977 (for alpha-dec-osf4.0f). Fix typos.
8978
8979 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8980
8981 * linux-proc.c: Add include of regcache.h.
8982 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8983
8984 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8985
8986 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8987 * memattr.c (create_mem_region): Disallow useless empty region.
8988 Regions are half-open intervals, so allow [A..B) [B..C) as
8989 non-overlapping.
8990
8991 2002-02-13 Michael Chastain <mec@shout.net>
8992
8993 * defs.h: Kill CONST_PTR.
8994 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8995 * c-lang.c (c_builtin_types): Likewise.
8996 * ch-lang.c (ch_builtin_types): Likewise.
8997 * f-lang.c (f_builtin_types): Likewise.
8998 * language.c (unknown_builtin_types): Likewise.
8999 * m2-lang.c (m2_builtin_types): Likewise.
9000 * p-lang.c (pascal_builtin_types): Likewise.
9001 * scm-lang.c (c_builtin_types): Likewise.
9002
9003 2002-02-13 Keith Seitz <keiths@redhat.com>
9004
9005 * arm-tdep.h (arm_get_next_pc): Add declaration.
9006
9007 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9008
9009 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9010 with other related struct-returning functions.
9011 (arm_extract_struct_value_address): New function.
9012 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9013 initialize float_format, double_format and long_double_format as
9014 appropriate to the endianness of the target.
9015 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9016 (arm_use_struct_convention): Delete declaration.
9017 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9018
9019 2002-02-13 Keith Seitz <keiths@redhat.com>
9020
9021 * defs.h (core_addr_to_string_nz): New function.
9022
9023 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9024
9025 Apply missing bits of 2002-01-15 patch.
9026 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9027 (fill_fpregset): Use i387_fill_fsave.
9028
9029 2002-02-12 Keith Seitz <keiths@redhat.com>
9030
9031 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9032 (core_addr_to_string_nz): New function.
9033
9034 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9035
9036 * arm-linux-nat.c: Really include arm-tdep.h.
9037 * config/arm/tm-linux.h (struct type, struct value): Declare.
9038
9039 2002-02-11 Michael Snyder <msnyder@redhat.com>
9040
9041 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9042 (gcore section): Ifdef for Solaris and Unixware only.
9043 (procfs_do_thread_registers): Unixware needs one lwpstatus
9044 per thread (not one prstatus or pstatus).
9045 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9046 not over all gdb threads. For unixware, call elfcore_write_pstatus
9047 once before iterating over threads.
9048
9049 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9050
9051 * arm-tdep.h: New file.
9052 * arm-tdep.c: Include arm-tdep.h.
9053 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9054 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9055 (arm_print_float_info, arm_register_type, convert_to_extended)
9056 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9057 (arm_extract_return_value, arm_register_name): Make static.
9058 (arm_software_single_step): Similarly. Fix types in declaration.
9059 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9060 (arm_store_return_value, arm_store_struct_return): New functions.
9061 (arm_gdbarch_init): Register the above functions. Also register
9062 call_dummy_start_offset, sizeof_call_dummy_words,
9063 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9064 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9065 max_register_virtual_size, register_size. Set up
9066 prologue_cache.saved_regs here, rather than ...
9067 (_initialize_arm_tdep): ... here.
9068 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9069 declarations.
9070 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9071 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9072 (arm_print_float_info, arm_register_type, convert_to_extended)
9073 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9074 (arm_extract_return_value, arm_register_name): Delete declarations.
9075 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9076 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9077 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9078 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9079 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9080 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9081 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9082 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9083 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9084 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9085 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9086 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9087 interface.
9088 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9089 * remote-rdi.c remote-rdp.c: Likewise.
9090 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9091 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9092 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9093 definition.
9094
9095 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9096 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9097 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9098 from non-ARM_ prefixed definitions.
9099 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9100 all uses of above.
9101 * remote-rdi.c remote-rdp.c: Likewise.
9102 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9103
9104 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9105
9106 * arm-tdep.c (arm_frameless_function_invocation)
9107 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9108 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9109 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9110 (arm_pop_frame, arm_get_next_pc): Make static.
9111 (arm_gdbarch_init): Register above in gdbarch structure.
9112 (arm_read_fp): Renamed from arm_target_read_fp.
9113 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9114 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9115 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9116 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9117 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9118 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9119 (arm_pc_is_thumb_dummy): Delete declarations.
9120 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9121 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9122 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9123 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9124
9125 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9126
9127 * symtab.c (compare_search_syms): New function.
9128 (sort_search_symbols): New function.
9129 (search_symbols): Sort symbols after searching rather than
9130 before.
9131
9132 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9133
9134 * NEWS: Linux -> GNU/Linux.
9135
9136 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9137
9138 * gdbarch.sh: For for level one methods, disallow a definition
9139 when partially multi-arched. Add comments explaining rationale.
9140 * gdbarch.h: Re-generate.
9141
9142 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9143
9144 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9145 multi-arch partial.
9146
9147 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9148
9149 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9150 field. Use diff -u.
9151 * gdbarch.c: Re-generate.
9152
9153 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9154
9155 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9156 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9157 partial.
9158
9159 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9160
9161 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9162 multi-arch partial.
9163 (PUSH_ARGUMENTS): Switch to using predefault.
9164 * gdbarch.c: Regenerate.
9165
9166 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9167
9168 * valops.c (PUSH_ARGUMENTS): Delete definition.
9169 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9170 partial. Default to default_push_arguments.
9171 * gdbarch.h, gdbarch.c: Regenerate.
9172
9173 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9174
9175 * defs.h (throw_exception): Rename return_to_top_level. Update
9176 comments.
9177 * utils.c (error_stream, internal_verror, quit): Ditto.
9178 * top.c (throw_exception, catcher): Ditto.
9179 * sparclet-rom.c (sparclet_load): Ditto.
9180 * remote.c (interrupt_query, minitelnet): Ditto.
9181 * remote-sds.c (interrupt_query): Ditto.
9182 * remote-mips.c (mips_error, mips_kill): Ditto.
9183 * ocd.c (interrupt_query): Ditto.
9184 * monitor.c (monitor_interrupt_query): Ditto.
9185 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9186 * target.h: Update comment.
9187
9188 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9189
9190 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9191
9192 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9193 default_double_format.
9194 * gdbarch.h, gdbarch.c: Re-generate.
9195 * findvar.c (floatformat_unknown): Delete variable definition.
9196 * doublest.h (floatformat_unknown): Delete variable declaration.
9197
9198 2002-02-09 Jim Blandy <jimb@redhat.com>
9199
9200 * stabsread.c (read_type): Add code to parse Sun's syntax for
9201 prototyped function types.
9202
9203 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9204
9205 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9206 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9207
9208 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9209
9210 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9211 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9212 now _initialize_xcoffsolib gets called again and overrides the
9213 commands from solib.c in a native configuration.
9214
9215 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9216
9217 * doublest.c (store_typed_floating): Don't try to return a value.
9218 Fixes PR gdb/290.
9219
9220 2002-02-08 Jim Blandy <jimb@redhat.com>
9221
9222 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9223 is prototyped and has no arguments, print its argument list as
9224 `(void)'.
9225
9226 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9227
9228 * MAINTAINERS (write-after-approval): Add myself.
9229 (paper-trail): I've escaped!
9230
9231 2002-02-08 Christopher Faylor <cgf@redhat.com>
9232
9233 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9234 changes.
9235 (_initialize_check_for_gdb_ini): Ditto.
9236
9237 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9238
9239 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9240 xaprintf -> xasprintf.
9241
9242 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9243
9244 * win32-nat.c: Remove use of printf and sprintf functions.
9245
9246 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9247
9248 * arm-tdep.c (arm_frame_chain_valid): Make static.
9249 (arm_push_arguments): Likewise.
9250 (arm_gdbarch_init): New function.
9251 (_initialize_arm_tdep): Call it.
9252 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9253 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9254 (FRAME_CHAIN_VALID): Delete.
9255 (arm_frame_chain_valid): Delete declaration.
9256 (PUSH_ARGUMENTS): Delete.
9257 (arm_push_arguments): Delete declaration.
9258 (CALL_DUMMY_P): Delete.
9259
9260 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9261 Corinna Vinschen <vinschen@redhat.com>
9262
9263 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9264 on builtin float types.
9265
9266 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9267
9268 * utils.c: Include <curses.h> before "bfd.h".
9269 * tui/tui-hooks.c: Likewise.
9270 * tui/tui.c: Likewise.
9271 * tui/tuiCommand.c: Likewise.
9272 * tui/tuiData.c: Likewise.
9273 * tui/tuiDataWin.c: Likewise.
9274 * tui/tuiDisassem.c: Likewise.
9275 * tui/tuiGeneralWin.c: Likewise.
9276 * tui/tuiIO.c: Likewise.
9277 * tui/tuiLayout.c: Likewise.
9278 * tui/tuiRegs.c: Likewise.
9279 * tui/tuiSource.c: Likewise.
9280 * tui/tuiSourceWin.c: Likewise.
9281 * tui/tuiStack.c: Likewise.
9282 * tui/tuiWin.c: Likewise.
9283
9284 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9285
9286 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9287 to include space for pseudoregs as well. Update loops accordingly.
9288 (sh_fp_frame_init_saved_regs): Ditto.
9289 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9290
9291 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9292
9293 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9294 Add Richard Earnshaw to Arm maintainers.
9295
9296 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9297
9298 * defs.h (warning_begin): Delete declaration.
9299
9300 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9301 Delete macro.
9302
9303 2002-02-07 Michael Snyder <msnyder@redhat.com>
9304
9305 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9306 Logic bug, remove misplaced else.
9307
9308 2002-02-07 Klee Dienes <klee@apple.com>
9309
9310 * fork-inferior.c (fork_inferior): Add '!' to the list of
9311 characters that need to be quoted when building a string for the
9312 shell. Quote '!' specifically with a backslash, since CSH chokes
9313 when trying to evaluate "str!str".
9314
9315 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9316
9317 * rdi-share/host.h: Only provide a typedef for bool if it is not
9318 defined.
9319
9320 2002-02-04 Michael Snyder <msnyder@redhat.com>
9321
9322 * breakpoint.h (enum bptype): Add new overlay event bp type.
9323 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9324
9325 * breakpoint.c (create_internal_breakpoint): New function.
9326 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9327 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9328 (create_thread_event_breakpoint): Ditto.
9329 (create_solib_event_breakpoint): Ditto.
9330 (create_overlay_event_breakpoint): New function.
9331 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9332 (update_breakpoints_after_exec): Delete and re-initialize
9333 overlay event breakpoints after an exec. Add FIXME comment
9334 about longjmp breakpoint.
9335 (print_it_typical): Ignore overlay event breakpoints.
9336 (print_one_breakpoint): Ditto.
9337 (mention): Ditto.
9338 (bpstat_what): Do not stop for overlay event breakpoints.
9339 (delete_breakpoint): Don't delete overlay event breakpoints.
9340 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9341 (breakpoint_re_set): Re-create overlay event breakpoint.
9342
9343 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9344 (overlay_manual_command): Disable overlay breakpoints.
9345 (overlay_off_command): Disable overlay breakpoints.
9346
9347 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9348
9349 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9350 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9351 to here from config/tm-arm.h.
9352 (coff_sym_is_thumb): Make static.
9353 (arm_elf_make_msymbol_special): New function.
9354 (arm_coff_make_msymbol_special): New function.
9355 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9356 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9357 (coff_sym_is_thumb): Delete declaration.
9358 (arm_elf_make_msymbol_special): Declare.
9359 (arm_coff_make_msymbol_special): Declare.
9360 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9361 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9362
9363 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9364
9365 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9366
9367 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9368
9369 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9370 * gdbarch.c gdbarch.h: Regenerate.
9371 * arch-utils.c (default_print_float_info): New function.
9372 * arch-utils.h (default_print_float_info): Prototype it.
9373 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9374 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9375 (PRINT_FLOAT_INFO): Document it.
9376
9377 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9378 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9379 (PRINT_FLOAT_INFO): Define.
9380
9381 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9382
9383 * win32-nat.c (_initialize_check_for_gdb_ini):
9384 Add typecast to sprintf argument to suppress a warning.
9385
9386 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9387
9388 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9389 to allow easier handling of pass state.
9390 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9391 that gives exception name and address.
9392 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9393 and set last_sig value to ourstatus->value.sig. Some missing
9394 exceptions added.
9395 (child_continue): Correctly report continue_status.
9396 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9397 TARGET_SIGNAL_0 (new default value).
9398 (child_resume): consider sig argument passed to decide if
9399 the exception should be passed to debuggee or not.
9400
9401 2002-02-05 Michael Snyder <msnyder@redhat.com>
9402
9403 * regcache.c (fetch_register): Call target_fetch_register
9404 only if we don't call FETCH_PSEUDO_REGISTER.
9405 (store_register): Call target_store_register only if we
9406 don't call STORE_PSEUDO_REGISTER.
9407
9408 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9409
9410 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9411 ELF_MAKE_MSYMBOL_SPECIAL.
9412 * gdbarch.c, gdbarch.h: Regenerate.
9413 * arch-utils.c (default_make_msymbol_special): New function.
9414 * arch-utils.h (default_make_msymbol_special): Export.
9415 * elfread.c (elf_symtab_read): Compile use of
9416 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9417 multiarched.
9418 * coffread.c (coff_symtab_read): Ditto, for
9419 COFF_MAKE_MSYMBOL_SPECIAL.
9420
9421 2002-02-05 Jim Blandy <jimb@redhat.com>
9422
9423 * solib-svr4.c (svr4_truncate_ptr): New function.
9424 (svr4_relocate_section_addresses): Do the address arithmetic with
9425 the appropriate truncation for target addresses, even when
9426 CORE_ADDR is larger than a target address.
9427
9428 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9431 to (int *).
9432
9433 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9434
9435 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9436 code.
9437
9438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9439
9440 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9441
9442 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9443
9444 * gdbserver/linux-low.c: Remove unused include files.
9445
9446 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9447
9448 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9449 (read_inferior_memory): Use it.
9450 (write_inferior_memory): Likewise.
9451
9452 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9455 grubbing through sys_errlist.
9456
9457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9460
9461 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9462 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9463
9464 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9465
9466 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9467 (do_sfunc, set_cmd_sfunc): New functions.
9468
9469 * command.h (struct cmd_list_element): Add field func.
9470 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9471 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9472 * cli/cli-decode.h: Ditto.
9473
9474 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9475 (help_all, help_cmd_list): Ditto.
9476 (find_cmd, complete_on_cmdlist): Ditto.
9477 * top.c (execute_command): Ditto.
9478
9479 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9480 function.sfunc.
9481
9482 * infcmd.c (notice_args_read): Fix function signature.
9483
9484 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9485 * cli/cli-decode.c (add_set_cmd): Ditto.
9486 * utils.c (initialize_utils): Ditto.
9487 * maint.c (_initialize_maint_cmds): Ditto.
9488 * infrun.c (_initialize_infrun): Ditto.
9489 * demangle.c (_initialize_demangler): Ditto.
9490 * remote.c (add_packet_config_cmd): Ditto.
9491 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9492 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9493 * proc-api.c (_initialize_proc_api): Ditto.
9494 * kod.c (_initialize_kod): Ditto.
9495 * valprint.c (_initialize_valprint): Ditto.
9496 * top.c (init_main): Ditto.
9497 * infcmd.c (_initialize_infcmd): Ditto.
9498 * corefile.c (_initialize_core): Ditto.
9499 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9500 * arch-utils.c (initialize_current_architecture): Ditto.
9501 (_initialize_gdbarch_utils): Ditto.
9502 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9503
9504 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9505 * wince.c (_initialize_inftarg): Ditto.
9506 * symfile.c (_initialize_symfile): Ditto.
9507 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9508 * language.c (_initialize_language): Ditto.
9509 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9510
9511 2002-02-04 Michael Snyder <msnyder@redhat.com>
9512
9513 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9514
9515 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9516
9517 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9518 Add rules for building the register data files.
9519
9520 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * regformats/regdat.sh: Add braces to the definition of
9523 expedite_regs_${arch}.
9524
9525 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9526
9527 * regformats/regdef.h (struct reg): Add comment describing the
9528 requirements for offset and size fields.
9529
9530 2002-02-04 Andreas Schwab <schwab@suse.de>
9531
9532 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9533 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9534
9535 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * gdbarch.sh (copyright): Update years in generated header.
9538 (SMASH_TEXT_ADDRESS): Add rule.
9539 * gdbarch.h, gdbarch.c: Re-generate.
9540 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9541 * dbxread.c: Likewise.
9542 * dwarfread.c: Likewise.
9543 * elfread.c: Likewise.
9544 * somread.c: Likewise.
9545
9546 * arm-tdep.c (arm_smash_text_address): New function.
9547 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9548
9549 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9550
9551 Add support for hardware watchpoints on win32 native.
9552 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9553 CONTEXT_DEBUG_REGISTERS.
9554 (dr variable): New variable. Static array containing a local copy
9555 of debug registers.
9556 (debug_registers_changed): New variable. Reflects when debug registers
9557 are changed and need to be written to inferior.
9558 (debug_registers_used): New variable. Reflects when any debug register
9559 was set, used when new threads are created.
9560 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9561 i386-nat code.
9562 (thread_rec): Set dr array if id is the thread of current_event .
9563 (child_continue, child_resume): Change the debug registers for all
9564 threads if debug_registers_changed.
9565 (child_add_thread): Change the debug registers if debug_registers_used.
9566 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9567 Link nm.h to new nm-cygwin.h file.
9568 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9569 of hardware registers.
9570
9571 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9572
9573 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9574 Restore behavour broken by 2002-01-20 Andrew Cagney
9575 <ac131313@redhat.com> IEEE_FLOAT removal.
9576
9577 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * c-valprint.c (c_val_print): Pass a proper valaddr to
9580 cp_print_class_method.
9581 * valops.c (search_struct_method): If there is only one method
9582 and args is NULL, return that method.
9583
9584 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9587 accessing tag_name directly.
9588
9589 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9590
9591 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9592 of accessing tag_name directly.
9593
9594 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9595
9596 PR gdb/280
9597 * gdbtypes.c (replace_type): New function.
9598 * gdbtypes.h (replace_type): Add prototype.
9599 * stabsread.c (read_type): Use replace_type.
9600
9601 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9602
9603 * Makefile.in (memattr.o): Add missing dependencies rule.
9604
9605 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9606
9607 * breakpoint.c (break_at_finish_command): Really export.
9608 (break_at_finish_at_depth_command): Ditto.
9609 (tbreak_at_finish_command): Ditto.
9610 * hppa-tdep.c: Include completer.h.
9611 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9612 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9613
9614 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9615
9616 * utils.c (do_write): New function.
9617 (error_stream): Rewrite combining the code from error_begin and
9618 verror.
9619 (verror): Rewrite using error_stream.
9620 (error_begin): Delete function.
9621
9622 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9623
9624 * utils.c (error_begin): Make static.
9625 * defs.h (error_begin): Delete declaration.
9626
9627 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9628 (decode_line_1): Use cplusplus_error instead of error_begin,
9629 cplusplus_hint and return_to_top_level.
9630 * coffread.c (coff_symfile_read): Use error instead of error_begin
9631 and return_to_top_level.
9632 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9633
9634 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9635
9636 * language.h (type_error, range_error): Make string parameter
9637 constant.
9638 * language.c (warning_pre_print): Delete extern declaration.
9639 * dwarfread.c (warning_pre_print): Ditto.
9640 * language.c (type_error, range_error): Rewrite to use verror and
9641 vwarning instead of warning_begin.
9642
9643 2002-02-01 Michael Snyder <msnyder@redhat.com>
9644
9645 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9646 (set_ignore_count): Move misplaced comment back where it belongs.
9647
9648 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9649
9650 * command.h (NO_FUNCTION): Delete macro.
9651 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9652 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9653 * tracepoint.c (_initialize_tracepoint): Ditto.
9654 * cli/cli-decode.c (add_set_cmd): Ditto.
9655 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9656
9657 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9658
9659 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9660 Update ``this'' pointer when calling virtual functions.
9661
9662 2002-02-01 Michael Snyder <msnyder@redhat.com>
9663
9664 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9665 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9666
9667 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9668
9669 * regformats/reg-arm.dat: New file.
9670 * regformats/reg-i386.dat: New file.
9671 * regformats/reg-ia64.dat: New file.
9672 * regformats/reg-m68k.dat: New file.
9673 * regformats/reg-mips.dat: New file.
9674 * regformats/reg-ppc.dat: New file.
9675 * regformats/reg-sh.dat: New file.
9676 * regformats/regdef.h: New file.
9677 * regformats/regdat.sh: New file.
9678
9679 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9680
9681 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9682 (arm_frame_args_address, arm_frame_locals_address): New functions.
9683 (arm_frame_num_args): New function.
9684 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9685 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9686 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9687
9688 2002-01-31 Michael Snyder <msnyder@redhat.com>
9689
9690 * breakpoint.c (break_at_finish_command): Export.
9691 (break_at_finish_at_depth_command): Export.
9692 (tbreak_at_finish_command): Export.
9693 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9694 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9695 "tbreak" commands, which are HPPA specific.
9696
9697 * printcmd.c (disassemble_command): Remove an ancient
9698 artifact of an old merge.
9699
9700 * symfile.h (enum overlay_debugging_state):
9701 Define enum constant values for overlay mode.
9702 * symfile.c (overlay_debugging): Use enums instead of literals.
9703 (overlay_is_mapped, overlay_auto_command,
9704 overlay_manual_command): Ditto.
9705
9706 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9707 breakpoint_here_p, breakpoint_inserted_here_p,
9708 breakpoint_thread_match, bpstat_stop_status,
9709 describe_other_breakpoints, check_duplicates, clear_command):
9710 Coding standard fixes.
9711
9712 * target.c (target_xfer_memory): Add spaces, coding standard.
9713 (do_xfer_memory): Add missing line to trust-readonly
9714 code: check bfd SEC_READONLY flag for section.
9715
9716 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9717
9718 * PROBLEMS: Fix typo, 5.1->5.1.1.
9719
9720 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9721
9722 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9723 data symbols, since we search based on textlow and texthigh.
9724 (find_pc_sect_symtab): Likewise.
9725
9726 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9727
9728 * defs.h (vwarning): Declare.
9729 * utils.c (vwarning): New function.
9730 (warning): Call vwarning.
9731 (warning_begin): Delete function.
9732
9733 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9734 the warning message.
9735 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9736 warning_begin.
9737
9738 2002-01-30 Michael Snyder <msnyder@redhat.com>
9739
9740 * NEWS: Mention "set trust-readonly-sections" command.
9741 Mention generate-core-file command.
9742
9743 2002-01-15 Michael Snyder <msnyder@redhat.com>
9744
9745 * target.c: New command, "set trust-readonly-sections on".
9746 (do_xfer_memory): Honor the suggestion to trust readonly sections
9747 by reading them from the object file instead of from the target.
9748 (initialize_targets): Register command "set trust-readonly-sections".
9749
9750 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9751
9752 * parse.c (target_map_name_to_register): Simplify, search regs and
9753 pseudo-regs using a single loop.
9754
9755 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9756
9757 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9758
9759 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9760
9761 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9762 * config/i386/i386v42mp.mh: Add i387-nat.o .
9763 * i386v4-nat.c: Include i387-nat.h.
9764 (supply_fpregset): Use i387_supply_fsave.
9765 (fill_fpregset): Use i387_fill_fsave.
9766
9767 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9768
9769 * arm-tdep.c (arm_call_dummy_words): Define.
9770 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9771 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9772 (CALL_DUMMY_WORDS): Define.
9773 (arm_call_dummy_words): Declare.
9774 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9775 (arm_linux_call_dummy_words): Declare.
9776
9777 2002-01-30 Andreas Schwab <schwab@suse.de>
9778
9779 * m68klinux-nat.c: Fix last change to use regcache_collect
9780 instead of referencing registers[] directly.
9781
9782 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9783
9784 * parse.c (target_map_name_to_register): Delete code wrapped in
9785 #ifdef REGISTER_NAME_ALIAS_HOOK.
9786
9787 2002-01-28 Michael Snyder <msnyder@redhat.com>
9788
9789 * regcache.c (legacy_read_register_gen): Need to be able to
9790 read pseudo-register as well as real register.
9791 (legacy_write_register_gen): Ditto.
9792
9793 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9794
9795 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9796 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9797 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9798 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9799 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9800 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9801 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9802 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9803 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9804 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9805 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9806 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9807 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9808 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9809 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9810 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9811 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9812 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9813 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9814 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9815
9816 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9817
9818 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9819 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9820 (initialize_current_architecture): Update target_byte_order using
9821 information from BFD.
9822 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9823 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9824
9825 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9826
9827 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9828 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9829
9830 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9831 #ifdef INVALID_FLOAT.
9832 * infcmd.c (do_registers_info): Ditto.
9833 * values.c (unpack_double): Ditto. Add comment.
9834
9835 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9836 already commented out.
9837
9838 2002-01-26 Andreas Schwab <schwab@suse.de>
9839
9840 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9841 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9842 registers and add support for PTRACE_GETREGS.
9843
9844 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9845
9846 GDB 5.1.1 released from 5.1 branch.
9847 * NEWS: Add 5.1.1 news.
9848 * README: Sync with 5.1 branch.
9849
9850 2002-01-23 Fred Fish <fnf@redhat.com>
9851
9852 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9853 stabstring on initial malloc. Reallocing will copy it for us,
9854 if necessary.
9855
9856 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * Makefile.in (hpread_h): Delete.
9859 (HFILES_NO_SRCDIR): Remove hpread.h.
9860 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9861 (hpread.o): Update dependencies.
9862 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9863
9864 * hp-psymtab-read.c: Remove file.
9865 * hp-symtab-read.c: Remove file.
9866 * hpread.h: Remove file.
9867
9868 * hpread.c: Merge all contents of hp-psymtab-read.c,
9869 hp-symtab-read.c and hpread.h into this file, as it was prior to
9870 January 1999.
9871
9872 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9873 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9874 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9875 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9876
9877 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9878
9879 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9880 fill_gregset): Call gdbarch_tdep() just once, assign result to
9881 variable and use that, instead of calling the function several
9882 times.
9883
9884 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9885
9886 * configure.host: Accept sparcv9 as alias for sparc64.
9887 * configure.tgt: Likewise.
9888
9889 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9890
9891 * solib-aix5.c (build_so_list_from_mapfile)
9892 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9893 arguments is not reversed.
9894 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9895 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9896
9897 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9898
9899 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9900 modified version of obsolete sh_fetch_pseudo_register.
9901 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9902 (sh4_register_read): New function.
9903 (sh_pseudo_register_write): New function. Renamed and modified
9904 version of obsolete sh_store_pseudo_register.
9905 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9906 (sh4_register_write): New function.
9907 (sh_gdbarch_init): Remove setting of gdbarch function
9908 fetch_pseudo_register and store_pseudo_register. Remove setting of
9909 register_convert_to_raw, register_convert_to_virtual,
9910 register_convertible.
9911 (sh_sh4_register_convertible): Delete. No longer needed. All is
9912 taken care by architecture specific functions
9913 register_read/register_write.
9914 (sh_sh4_register_convert_to_virtual): Make static.
9915 (sh_sh4_register_convert_to_raw): Ditto.
9916
9917 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9918
9919 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9920 (floatformat_is_nan, floatformat_mantissa): Ditto.
9921
9922 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9923 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9924 builtin_type_ieee_double_little,
9925 builtin_type_ieee_double_littlebyte_bigword,
9926 builtin_type_m68881_ext, builtin_type_i960_ext,
9927 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9928 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9929 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9930 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9931
9932 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9933
9934 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9935 parameter. Set frameless flag if it exists and depended of
9936 whether the scanned function is frameless or not.
9937 (xstormy16_skip_prologue): If function is frameless, return
9938 result of xstormy16_scan_prologue().
9939 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9940 call.
9941
9942 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9943
9944 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9945 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9946 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9947 sh_sh4_register_byte, sh_sh4_register_raw_size,
9948 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9949 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9950 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9951 sh_store_pseudo_register, sh_do_pseudo_register): Call
9952 gdbarch_tdep() just once, assign result to variable and use that,
9953 instead of calling the function several times.
9954
9955 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9956
9957 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9958 macros instead of LAST_FPU_CTRL_REGNUM.
9959 (store_register): Likewise.
9960
9961 2002-01-21 Jim Blandy <jimb@redhat.com>
9962
9963 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9964 is up-to-date before running the program, not just when a program
9965 exits.
9966
9967 2002-01-21 Fred Fish <fnf@redhat.com>
9968
9969 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9970 when we have found all instructions we are looking for.
9971
9972 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9973
9974 * arm-tdep.c (arm_register_name): New function.
9975 (arm_registers_names): Make static.
9976 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9977 (arm_register_name): Declare.
9978 (REGISTER_NAME): Use it.
9979
9980 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9981 Kevin Buettner <kevinb@redhat.com>
9982
9983 Convert arm targets to new FRAME interface.
9984 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9985 (arm_frame_find_save_regs): Delete.
9986 (arm_frame_init_saved_regs): New.
9987 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9988 Allocate extra_info as required. Convert all uses of fsr.regs
9989 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9990 to use extra_info.
9991 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9992 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9993 (check_prologue_cache, save_prologue_cache): Likewise.
9994 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9995 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9996 (FRAME_FIND_SAVED_REGS): Delete.
9997 (arm_frame_find_saved_regs): Delete prototype.
9998 (arm_frame_init_saved_regs): New prototype.
9999 (FRAME_INIT_SAVED_REGS): Define.
10000
10001 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10002
10003 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10004
10005 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10006
10007 From Jeff Law <law@redhat.com>:
10008 * infttrace.c: Include <sys/pstat.h>.
10009 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10010 exec file if the ttrace equivalent fails.
10011
10012 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10013
10014 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10015 (closeLogFile): Ditto.
10016
10017 2002-01-20 Michael Chastain <mec@shout.net>
10018
10019 * top.c (print_gdb_version): Bump copyright year to 2002.
10020
10021 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10022
10023 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10024 Zannoni and Eli Zaretskii.
10025
10026 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10027
10028 * buildsym.c: Update copyright years.
10029 * c-typeprint.c: Likewise.
10030 * dwarf2read.c: Likewise.
10031 * f-typeprint.c: Likewise.
10032 * gdbtypes.c: Likewise.
10033 * gdbtypes.h: Likewise.
10034 * hp-symtab-read.c: Likewise.
10035 * hpread.c: Likewise.
10036 * mdebugread.c: Likewise.
10037 * p-typeprint.c: Likewise.
10038
10039 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10040
10041 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10042 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10043 byte-order selectable.
10044 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10045 * arch-utils.c: Ditto.
10046 (set_endian): Ditto.
10047 (set_endian_from_file): Ditto.
10048 * gdbserver/low-sim.c (create_inferior): Ditto.
10049 * gdbarch.sh: Ditto.
10050 * gdbarch.h: Re-generate.
10051 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10052 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10053 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10054 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10055 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10056 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10057 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10058 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10059 macro definition.
10060 * config/mips/tm-wince.h: Remove #undef of macro
10061 TARGET_BYTE_ORDER_SELECTABLE.
10062 * config/sh/tm-wince.h: Ditto.
10063
10064 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10067 member function fields. Add accessor macro
10068 TYPE_FN_FIELD_ARTIFICIAL.
10069 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10070 * c-typeprint.c (c_type_print_base): Skip artificial member
10071 functions.
10072
10073 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * f-typeprint.c: Delete unused function f_type_print_args.
10076 * p-typeprint.c: Delete unused function pascal_type_print_args.
10077
10078 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10081 comment. Add ``artificial'' to ``union field_location''.
10082
10083 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10084
10085 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10086 * mdebugread.c (parse_symbol): Likewise.
10087 * stabsread.c (define_symbol): Likewise.
10088 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10089 initializing TYPE_FIELD_BITPOS to n (obsolete).
10090 (hpread_doc_function_type): Likewise.
10091 * hpread.c (hpread_function_type): Likewise.
10092
10093 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10094
10095 * configure.in (host_makefile_frag): Only require a host makefile
10096 fragment when a native build.
10097 * configure: Re-generate.
10098
10099 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10100
10101 * doublest.h (floatformat_from_type): Declare.
10102 * doublest.c (floatformat_from_type): New function.
10103 (convert_typed_floating): Use.
10104
10105 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10106 call to function floatformat_from_type.
10107
10108 * gdbarch.sh (IEEE_FLOAT): Delete.
10109 * gdbarch.h, gdbarch.c: Re-generate.
10110 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10111 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10112 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10113 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10114 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10115 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10116 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10117 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10118 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10119 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10120 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10121 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10122
10123 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10124 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10125 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10126 * sh-tdep.c (sh_gdbarch_init): Ditto.
10127 * mips-tdep.c (mips_gdbarch_init): Ditto.
10128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10129 * cris-tdep.c (cris_gdbarch_init): Ditto.
10130
10131 2002-01-20 Jiri Smid <smid@suse.cz>
10132
10133 * configure.host, configure.tgt: Support x86-64.
10134 * NEWS: Note new target x86-64.
10135
10136 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10137 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10138 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10139 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10140 x86-64-linux-nat.o): Fix dependencies.
10141
10142 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10143
10144 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10145 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10146 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10147 * config/sparc/xm-sun4os4.h: Delete file.
10148 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10149
10150 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10151
10152 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10153 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10154 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10155 * config/i386/i386lynx.mh (XM_FILE): Delete.
10156 * config/rs6000/xm-rs6000ly.h: Delete file.
10157 * config/sparc/xm-sparclynx.h: Delete file.
10158 * config/m68k/xm-m68klynx.h: Delete file.
10159 * config/i386/xm-i386lynx.h: Delete file.
10160 * config/xm-lynx.h: Delete file.
10161 * config/djgpp/fnchange.lst: Update.
10162
10163 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10164
10165 * alpha-tdep.c (alpha_register_byte): New function.
10166 (alpha_register_raw_size): Ditto.
10167 (alpha_register_virtual_size): Ditto.
10168 (alpha_skip_prologue_internal): Renamed from
10169 alpha_skip_prologue.
10170 (alpha_skip_prologue): New version that calls
10171 alpha_skip_prologue_internal.
10172 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10173 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10174 second argument from alpha_skip_prologue.
10175 (REGISTER_BYTE): Use alpha_register_byte.
10176 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10177 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10178 (FRAMELESS_FUNCTION_INVOCATION): Use
10179 generic_frameless_function_invocation_not.
10180 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10181 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10182
10183 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10184
10185 * config/mips/xm-news-mips.h: Delete file.
10186 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10187
10188 * config/m88k/xm-m88k.h: Delete file.
10189 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10190 * config/m88k/xm-delta88v4.h: Ditto.
10191 * config/m88k/xm-delta88.h: Ditto.
10192
10193 * config/alpha/xm-fbsd.h: Delete file.
10194 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10195
10196 * config/sparc/xm-sparc.h: Delete file.
10197 * Makefile.in (xm-sun4os4.h): Delete dependency.
10198 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10199 * config/sparc/xm-sun4os4.h: Ditto.
10200 * config/sparc/xm-linux.h: Ditto.
10201
10202 * config/i386/xm-windows.h: Delete file.
10203
10204 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10205
10206 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10207 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10208
10209 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10210
10211 * alpha-tdep.c (alpha_call_dummy_words): New.
10212 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10213 (CALL_DUMMY_P): Define.
10214 (CALL_DUMMY_WORDS): Define.
10215 (SIZEOF_CALL_DUMMY_WORDS): Define.
10216
10217 2002-01-19 Per Bothner <per@bothner.com>
10218
10219 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10220 isn't NULL, which can happen with some gcj-3.x-produced code.
10221
10222 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10223
10224 * alpha-tdep.c (alpha_register_virtual_type): New function.
10225 (alpha_init_frame_pc_first): Ditto.
10226 (alpha_fix_call_dummy): Ditto.
10227 (alpha_store_struct_return): Ditto.
10228 (alpha_extract_struct_value_address): Ditto.
10229 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10230 alpha_register_virtual_type.
10231 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10232 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10233 alpha_extract_struct_value_address.
10234 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10235 (INIT_FRAME_PC): Use init_frame_pc_noop.
10236 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10237
10238 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10239
10240 * i386gnu-nat.c: Include "i386-tdep.h".
10241 (fetch_fpregs): Simplify code dealing with uninitialized floating
10242 point states such that it doesn't require FP7_REGNUM.
10243
10244 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10245
10246 * alpha-tdep.c (frame_extra_info): New.
10247 (alpha_find_saved_regs): Make static. Use
10248 frame->extra_info.
10249 (alpha_frame_init_saved_regs): New function.
10250 (alpha_frame_saved_pc): Use frame->extra_info.
10251 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10252 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10253 (init_extra_frame_info): Rename to...
10254 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10255 (alpha_print_extra_frame_info): New function.
10256 (alpha_frame_locals_address): Ditto.
10257 (alpha_frame_args_address): Ditto.
10258 (alpha_pop_frame): Use frame->extra_info.
10259 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10260 alpha_frame_args_address.
10261 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10262 (alpha_find_saved_regs): Remove prototype.
10263 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10264 (EXTRA_FRAME_INFO): Remove.
10265 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10266 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10267
10268 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10269
10270 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10271 (alpha_cannot_fetch_register): Ditto.
10272 (alpha_cannot_store_register): Ditto.
10273 (alpha_register_convertible): Ditto.
10274 (alpha_use_struct_convention): Ditto.
10275 * config/alpha/tm-alpha.h: Update copyright years.
10276 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10277 (INNER_THAN): Use core_addr_lessthan.
10278 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10279 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10280 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10281 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10282 (FRAME_CHAIN): Remove unnecessary cast.
10283
10284 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10285
10286 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10287 obsolete.
10288
10289 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10290
10291 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10292 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10293 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10294 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10295 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10296 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10297 * x86-64-linux-nat.c: Ditto.
10298
10299 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10300
10301 * alpha-tdep.c (alpha_register_name): New function.
10302 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10303 (REGISTER_NAME): Define.
10304
10305 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10306
10307 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10308
10309 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10310
10311 * alpha-tdep.c: Update copyright years.
10312 (alpha_next_pc): New function.
10313 (alpha_software_single_step): Ditto.
10314 * config/alpha/tm-alpha.h: Add prototype for
10315 alpha_software_single_step.
10316
10317 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10318
10319 * alphabsd-nat.c: Update copyright years.
10320 (fill_gregset): Use regcache_collect.
10321 (fill_fpregset): Likewise.
10322 (fetch_inferior_registers): Only fetch integer registers
10323 if requested to do so.
10324 (store_inferior_registers): Only store integer registers
10325 if requested to do so.
10326
10327 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10328
10329 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10330 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10331 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10332 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10333 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10334 * config/arm/linux.mh (XDEPFILES): Delete.
10335 * config/arm/nbsd.mh (XDEPFILES): Delete.
10336 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10337 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10338 * config/i386/i386m3.mh (XDEPFILES): Delete.
10339 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10340 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10341 * config/i386/fbsd.mh (XDEPFILES): Delete.
10342 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10343 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10344 * config/i386/i386v4.mh (XDEPFILES): Delete.
10345 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10346 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10347 * config/i386/i386aix.mh (XDEPFILES): Delete.
10348 * config/i386/go32.mh (XDEPFILES): Delete.
10349 * config/i386/cygwin.mh (XDEPFILES): Delete.
10350 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10351 * config/i386/i386mach.mh (XDEPFILES): Delete.
10352 * config/i386/i386v32.mh (XDEPFILES): Delete.
10353 * config/i386/linux.mh (XDEPFILES): Delete.
10354 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10355 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10356 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10357 * config/i386/i386sco.mh (XDEPFILES): Delete.
10358 * config/i386/i386v.mh (XDEPFILES): Delete.
10359 * config/i386/nbsd.mh (XDEPFILES): Delete.
10360 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10361 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10362 * config/i386/symmetry.mh (XDEPFILES): Delete.
10363 * config/i386/obsd.mh (XDEPFILES): Delete.
10364 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10365 * config/ia64/linux.mh (XDEPFILES): Delete.
10366 * config/ia64/aix.mh (XDEPFILES): Delete.
10367 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10368 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10369 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10370 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10371 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10372 * config/m68k/linux.mh (XDEPFILES): Delete.
10373 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10374 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10375 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10376 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10377 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10378 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10379 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10380 * config/m88k/delta88.mh (XDEPFILES): Delete.
10381 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10382 * config/m88k/m88k.mh (XDEPFILES): Delete.
10383 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10384 * config/mips/linux.mh (XDEPFILES): Delete.
10385 * config/mips/irix6.mh (XDEPFILES): Delete.
10386 * config/mips/irix5.mh (XDEPFILES): Delete.
10387 * config/mips/irix4.mh (XDEPFILES): Delete.
10388 * config/mips/irix3.mh (XDEPFILES): Delete.
10389 * config/mips/decstation.mh (XDEPFILES): Delete.
10390 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10391 (NATDEPFILES): Move core-aout.o to here.
10392 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10393 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10394 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10395 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10396 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10397 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10398 * config/pa/hpux11.mh (XDEPFILES): Delete.
10399 * config/powerpc/aix.mh (XDEPFILES): Delete.
10400 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10401 * config/powerpc/linux.mh (XDEPFILES): Delete.
10402 * config/romp/rtbsd.mh: Rename XDEPFILES.
10403 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10404 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10405 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10406 * config/s390/s390.mh (XDEPFILES): Delete.
10407 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10408 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10409 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10410 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10411 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10412 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10413 * config/sparc/linux.mh (XDEPFILES): Delete.
10414 * config/vax/vaxult.mh (XDEPFILES): Delete.
10415 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10416 * Makefile.in (DEPFILES): Remove XDEPFILES.
10417
10418 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10419
10420 * utils.c (internal_verror): Fix comments, default is yes not no.
10421 Update queries to match. Default to quit and dump core.
10422
10423 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10424
10425 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10426 copyright.
10427 * defs.h, event-top.c, gdbcmd.h: Ditto.
10428 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10429 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10430 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10431 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10432 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10433 * mi/mi-main.c:Ditto.
10434
10435 * stack.c, symfile.c: Update copyright.
10436
10437 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10438
10439 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10440 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10441 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10442 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10443
10444 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10445
10446 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10447 * gdbserver/low-lynx.c (myattach): Likewise.
10448 * gdbserver/low-nbsd.c (myattach): Likewise.
10449 * gdbserver/low-sim.c (myattach): Likewise.
10450 * gdbserver/low-sparc.c (myattach): Likewise.
10451 * gdbserver/low-sun3.c (myattach): Likewise.
10452
10453 * gdbserver/low-linux.c (myattach): New function.
10454
10455 * gdbserver/server.c (attach_inferior): New function.
10456 (main): Handle "--attach".
10457
10458 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10459
10460 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10461 maintainer.
10462
10463 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * c-typeprint.c (is_type_conversion_operator): Add additional
10466 check for non-conversion operators.
10467
10468 2002-01-15 Michael Snyder <msnyder@redhat.com>
10469
10470 * linux-proc.c: Add "info proc" command, a la procfs.c.
10471 (read_mapping): New function, abstract and re-use code.
10472 (linux_find_memory_regions): Use new func read_mapping.
10473 (linux_info_proc_cmd): New function, implement "info proc".
10474 (_initialize_linux_proc): Add new command "info proc".
10475
10476 2002-01-15 Michael Snyder <msnyder@redhat.com>
10477
10478 * symfile.c (generic_load): Use bfd_map_over_sections method
10479 instead of manipulating bfd structure members directly.
10480 (add_section_size_callback): New function, bfd sections callback
10481 used by generic_load.
10482 (load_sections_callback): New function, bfd sections callback
10483 used by generic_load.
10484
10485 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10486
10487 [Based on work by Jim Blandy]
10488 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10489 (builtin_type_vec128): Export.
10490 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10491 types.
10492 (builtin_type_vec128): New builtin type for 128 bit vector
10493 registers.
10494 (build_gdbtypes): Initialize builtin_type_v16qi and
10495 builtin_type_v8hi. Create the vec128 register builtin type
10496 structure.
10497 (build_builtin_type_vec128): New function.
10498 (_initialize_gdbtypes): Register builtin_type_v16qi and
10499 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10500 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10501 AltiVec register to new builtin type.
10502
10503 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10506 to make_cv_type.
10507
10508 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10509
10510 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10511 CLEAN_UP_REGISTER_VALUE.
10512 * regcache.c (supply_register): Update only call.
10513
10514 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10515
10516 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10517 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10518 a29k-*-vxworks* targets as obsolete.
10519
10520 2002-01-14 Michael Snyder <msnyder@redhat.com>
10521
10522 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10523 until we can resolve portability issues.
10524 * gregset.h: Remove references to fpxregs.
10525 * gcore.c (gcore_command): Initialize note_sec to NULL.
10526
10527 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10528
10529 * signals.c (target_signal_to_name): Rewrite. Only use
10530 signals[].name when in bounds and non-NULL.
10531
10532 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10533
10534 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10535 * signals.c (target_signal_to_name): Verify that SIG is within the
10536 bounds of the signals array.
10537
10538 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10539
10540 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10541
10542 2002-01-13 Keith Seitz <keiths@redhat.com>
10543
10544 * stack.c (print_frame_info_base): Print the frame's pc
10545 only if when print_frame_info_listing_hook is not defined.
10546
10547 2002-01-13 Keith Seitz <keiths@redhat.com>
10548
10549 * varobj.c (varobj_set_value): Make sure that there were no
10550 errors evaluating the object before attempting to set its
10551 value.
10552 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10553 so this offset adjustment is no longer necessary.
10554 (create_child): Don't set the error flag if the child is
10555 a CPLUS_FAKE_CHILD.
10556 (value_of_child): If value_fetch_lazy fails, return NULL
10557 so that callers will be notified that an error occurred.
10558 (c_value_of_variable): Delay check of variable's validity
10559 until later. We actually want all structs and unions to have
10560 the value "{...}".
10561 Do not return "???" for variables which could not be evaluated.
10562 This error condition must be returned to the caller so that it
10563 can get the error condition from gdb.
10564 (cplus_name_of_child): Adjust index for vptr before figuring
10565 out the name of the child.
10566 (cplus_value_of_child): If a child's (real) parent is not valid,
10567 don't even bother trying to give a value for it. Just return
10568 an error. Change all instances in this function.
10569 (cplus_type_of_child): If our parent is one of the "fake"
10570 parents, we need to get at the type of the real parent, and
10571 derive the child's true type using this information.
10572
10573 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10574
10575 From 2002-01-09 John Marshall <johnm@falch.net>:
10576 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10577 sources.redhat.com, and tweak some related URLs which had
10578 suffered from linkrot.
10579
10580 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10581
10582 From Jeff law:
10583 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10584 structures passed in registers.
10585
10586 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10587
10588 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10589 white space which prevented compilation. Reported by DSK
10590 <dsk@student.unsw.edu.au>.
10591
10592 2002-01-11 Michael Snyder <msnyder@redhat.com>
10593
10594 * symfile.c (build_section_addr_info_from_section_tab):
10595 Use bfd access method instead of manipulating bfd directly.
10596 (syms_from_objfile): Ditto.
10597 (simple_overlay_update_1): Ditto.
10598 (simple_overlay_update): Ditto.
10599 (generic_load): Ditto.
10600 (overlay_unmapped_address): FIXME comment, bfd access methods.
10601 (sections_overlap): FIXME comment, bfd access methods.
10602 (pc_in_mapped_range): FIXME comment, bfd access methods.
10603 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10604 (section_is_mapped): FIXME comment, bfd access methods.
10605 (section_is_overlay): FIXME comment, bfd access methods.
10606
10607 * symfile.c (generic_load): Whitespace and long line cleanups.
10608 Remove duplicate variable, change several local variables to
10609 more appropriate data types.
10610 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10611
10612 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10613
10614 From Peter Schauer:
10615 * language.c (longest_local_hex_string_custom): Use phex_nz to
10616 convert NUM to a hex string.
10617
10618 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10619
10620 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10621 the function.
10622 Update Copyright year.
10623
10624 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10625
10626 * language.c (longest_raw_hex_string): Delete unused function.
10627
10628 2002-01-11 Petr Sorfa <petrs@caldera.com>
10629
10630 * MAINTAINERS (write-after-approval): Add myself.
10631 * dwarf2read.c (read_tag_string_type): Handling of
10632 DW_AT_byte_size.
10633 (read_tag_string_type): FORTRAN fix to prevent propagation of
10634 first string size.
10635 (set_cu_language): Handling of DW_LANG_Fortran95
10636
10637 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10638
10639 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10640 GETPID(inferior_ptid).
10641 (store_inferior_registers): Likewise.
10642
10643 2002-01-10 Jason Merrill <jason@redhat.com>
10644
10645 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10646 Fix DW_OP_minus.
10647
10648 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10649
10650 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10651 and bfd/elf32-sh-nbsd.c.
10652
10653 2002-01-10 Michael Snyder <msnyder@redhat.com>
10654
10655 * NEWS: Mention --pid and corefile/proc-id behavior change.
10656
10657 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10658 * gcore.c: Include cli/cli-decode.h instead of command.h.
10659
10660 * main.c (captured_main): Add new command line option "--pid".
10661 If the second command line argument (following the symbol-file)
10662 begins with a digit, try to attach to it before trying to open
10663 it as a corefile.
10664 (print_gdb_help): Document the "--pid" argument.
10665
10666 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10667
10668 * completer.c (command_completer): New function.
10669
10670 * completer.h <command_completer>: Add prototype.
10671
10672 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10673 completer for the "help" command.
10674
10675 2002-01-09 Jason Merrill <jason@redhat.com>
10676
10677 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10678
10679 2002-01-09 Michael Snyder <msnyder@redhat.com>
10680
10681 * i386-linux-nat.c (fill_fpxregset): Make global.
10682 (store_fpxregset): Ditto.
10683
10684 * gregset.h (gdb_fpxregset_t): Define.
10685 (supply_fpxregset): Prototype.
10686 (fill_fpxregset): Prototype.
10687
10688 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10689
10690 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10691
10692 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10693 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10694 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10695
10696 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10697
10698 * MAINTAINERS: Update target maintainer rules so that any
10699 Maintainer can approve a tested patch for a maintenance-only
10700 target.
10701
10702 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10703
10704 * MAINTAINERS (write-after-approval): Add myself.
10705
10706 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10707 IN_SIGTRAMP.
10708
10709 2002-01-08 Michael Snyder <msnyder@redhat.com>
10710
10711 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10712 real name of the executable, rather than the /proc name.
10713
10714 2002-01-03 Michael Snyder <msnyder@redhat.com>
10715
10716 Implement a "generate-core-file" command in gdb, save target state.
10717 * gcore.c: New file. Implement new command 'generate-core-file'.
10718 Save a corefile image of the current state of the inferior.
10719 * linux-proc.c: Add linux-specific code for saving corefiles.
10720 * target.h (struct target_ops): Add new target vectors for saving
10721 corefiles; to_find_memory_regions and to_make_corefile_notes.
10722 (target_find_memory_regions): New macro.
10723 (target_make_corefile_notes): New macro.
10724 * target.c (update_current_target): Inherit new target methods.
10725 (dummy_find_memory_regions): New place-holder method.
10726 (dummy_make_corefile_notes): New place-holder method.
10727 (init_dummy_target): Initialize new dummy target vectors.
10728 * exec.c (exec_set_find_memory_regions): New function.
10729 Allow the exec_ops vector for memory regions to be taken over.
10730 (exec_make_note_section): New function, target vector method.
10731 * defs.h (exec_set_find_memory_regions): Export prototype.
10732 * procfs.c (proc_find_memory_regions): New function, corefile method.
10733 (procfs_make_note_section): New function, corefile method.
10734 (init_procfs_ops): Set new target vector pointers.
10735 (find_memory_regions_callback): New function.
10736 (procfs_do_thread_registers): New function.
10737 (procfs_corefile_thread_callback): New function.
10738 * sol-thread.c (sol_find_memory_regions): New function.
10739 (sol_make_note_section): New function.
10740 (init_sol_thread_ops): Initialize new target vectors.
10741 * inftarg.c (inftarg_set_find_memory_regions): New function.
10742 Allow to_find_memory_regions vector to be taken over.
10743 (inftarg_set_make_corefile_notes): New function.
10744 Allow to_make_corefile_notes vector to be taken over.
10745 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10746 interface layer if not target_has_execution (may be a corefile).
10747 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10748 * config/sparc/sun4sol2.mh: Ditto.
10749 * config/alpha/alpha-linux.mh: Ditto.
10750 * config/arm/linux.mh: Ditto.
10751 * config/i386/x86-64linux.mh: Ditto.
10752 * config/ia64/linux.mh: Ditto.
10753 * config/m68k/linux.mh: Ditto.
10754 * config/mips/linux.mh: Ditto.
10755 * config/powerpc/linux.mh: Ditto.
10756 * config/sparc/linux.mh: Ditto.
10757
10758 2002-01-07 Michael Snyder <msnyder@redhat.com>
10759
10760 * arm-linux-nat.c: Remove references to regcache.c internal data
10761 (registers[] and register_valid[]).
10762
10763 2002-01-07 Michael Snyder <msnyder@redhat.com>
10764
10765 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10766 so that attaching to a pid will automatically read the process's
10767 symbol file and shlibs.
10768 * Makefile.in: Add rule for linux-proc.o.
10769 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10770 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10771 * config/arm/linux.mh: Ditto.
10772 * config/i386/linux.mh: Ditto.
10773 * config/i386/x86-64linux.mh: Ditto.
10774 * config/ia64/linux.mh: Ditto.
10775 * config/m68k/linux.mh: Ditto.
10776 * config/mips/linux.mh: Ditto.
10777 * config/powerpc/linux.mh: Ditto.
10778 * config/sparc/linux.mh: Ditto.
10779
10780 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10781
10782 * win32-nat.c: Add i386-tdep.h dependency.
10783
10784 2002-01-07 Michael Snyder <msnyder@redhat.com>
10785
10786 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10787 instead of bfd_get_arch_size. Don't bail out just because
10788 there's no exec_bfd.
10789
10790 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10791 * p-valprint.c (pascal_object_print_value): Ditto.
10792 * somread.c (som_symtab_read): Ditto.
10793 * symfile.c (simple_free_overlay_region_table): Ditto.
10794 * valops.c (value_assign): Ditto.
10795
10796 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10797 use tilde_expand and strerror for opening save-tracepoints file.
10798
10799 * thread-db.c (thread_db_new_objfile): Indendation fix.
10800
10801 * infptrace.c (GDB_MAX_ALLOCA): New define.
10802 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10803 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10804 can be overridden with whatever value is appropriate to the host).
10805 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10806 alloca to allocate potentially large buffer.
10807 * rs6000-nat.c (child_xfer_memory): Ditto.
10808 * symm-nat.c (child_xfer_memory): Ditto.
10809 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10810
10811 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10812
10813 From Nick Clifton <nickc@redhat.com>
10814 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10815
10816 2002-01-07 Michael Snyder <msnyder@redhat.com>
10817
10818 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10819 Don't use exec_bfd if it's NULL.
10820
10821 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10822
10823 * valops.c (value_arg_coerce): Fix formatting.
10824
10825 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10826
10827 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10828 * gnu-nat.c: Ditto.
10829
10830 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10831
10832 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10833 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10834 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10835 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10836 z8k-coff have not been multi-arched. Update z8k-coff build
10837 status.
10838
10839 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10840
10841 * MAINTAINERS: Mark a29k target as obsolete.
10842 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10843 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10844 comments.
10845 * NEWS: Note that a29k targets are obsolete.
10846 * a29k-tdep.c: Mark as obsolete.
10847 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10848 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10849 a29k-*-vxworks* targets as obsolete.
10850 * remote-adapt.c: Obsolete.
10851 * remote-eb.c: Obsolete.
10852 * remote-mm.c: Obsolete.
10853 * remote-udi.c: Obsolete.
10854 * config/a29k/a29k-udi.mt: Obsolete.
10855 * config/a29k/a29k.mt: Obsolete.
10856 * config/a29k/tm-a29k.h: Obsolete.
10857 * config/a29k/tm-vx29k.h: Obsolete.
10858 * config/a29k/vx29k.mt: Obsolete.
10859
10860 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10861
10862 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10863 with BFD_ENDIAN_BIG.
10864
10865 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10866
10867 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10868 * configure, config.in: Re-generate.
10869 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10870 * defs.h: Do not include <endian.h>.
10871
10872 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10873
10874 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10875 * config.in: Regenerate.
10876 * configure.in: Update copyright years.
10877 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10878 * configure: Regenerate.
10879 * i386bsd-nat.c: Update copyright years.
10880 (fill_gregset): Use regcache_collect.
10881 (fetch_inferior_registers): Only fetch integer registers
10882 if requested to do so. Add support for XMM registers
10883 using PT_GETXMMREGS.
10884 (store_inferior_registers): Only store integer registers
10885 if requested to do so. Add support for XMM registers
10886 using PT_SETXMMREGS.
10887 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10888 (store_inferior_registers): Remove.
10889 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10890 (fetch_elfcore_registers): New function.
10891 (i386nbsd_elfcore_fns): New.
10892 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10893 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10894 i386bsd-nat.o.
10895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10896 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10897 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10898 * config/i386/tm-nbsd.h: Update copyright years.
10899 (HAVE_SSE_REGS): Define.
10900 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10901 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10902 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10903 (SIGCONTEXT_PC_OFFSET): Remove.
10904 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10905
10906 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10907
10908 * configure.tgt: Remove powerpc-*-macos* target.
10909 * config/m68k/xm-mpw.h: Delete file.
10910 * config/xm-mpw.h: Delete file.
10911 * ser-mac.c: Delete file.
10912 * mpw-make.sed: Delete file.
10913 * mpw-config.in: Delete file.
10914 * mac-xdep.c: Delete file.
10915 * mac-gdb.r: Delete file.
10916 * mac-defs.h: Delete file.
10917 * mac-nat.c: Delete file.
10918 * config/powerpc/macos.mh: Delete file.
10919 * config/powerpc/macos.mt: Delete file.
10920 * config/powerpc/nm-macos.h: Delete file.
10921 * config/powerpc/tm-macos.h: Delete file.
10922 * source.c (openp, open_source_file): Remove obsolete code.
10923 * top.c (gdb_readline): Ditto.
10924 * utils.c (query): Ditto.
10925 * event-top.c (display_gdb_prompt): Ditto.
10926 * Makefile.in (ser-mac.o): Delete obsolete target.
10927 * NEWS: Update.
10928
10929 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10930
10931 * defs.h (BIG_ENDIAN): Delete macro definition.
10932 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10933 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10934 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10935 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10936 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10937 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10938 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10939 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10940 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10941 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10942 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10943 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10944 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10945 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10946 * gdbarch.c: Re-generate.
10947
10948 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10949
10950 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10951 for core files.
10952
10953 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10954
10955 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10956
10957 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10958
10959 * value.h (value_ptr): Delete typedef.
10960
10961 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10962
10963 * i386nbsd-nat.c: Update copyright years.
10964 Include i386-tdep.h.
10965
10966 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10967
10968 * stabsread.c: Update copyright years.
10969
10970 From Debashis Mahata <debashis.mahata@wipro.com>:
10971 (read_struct_fields): Deal with Sun C compiler erroneous stab
10972 output for structs and unions.
10973 Fix PR gdb/269.
10974
10975 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10978 prototype.
10979
10980 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10981
10982 * cp-abi.c: Fix whitespace.
10983 (baseclass_offset): New wrapper function.
10984 * cp-abi.h (baseclass_offset): Add prototype.
10985 (struct cp_abi_ops): Add baseclass_offset pointer.
10986
10987 * valops.c (vb_match): Move to...
10988 * gnu-v2-abi.c (vb_match): here.
10989 * valops.c (baseclass_offset): Move to...
10990 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10991
10992 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10993
10994 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10995 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10996 * hpacc-abi.c (init_hpacc_ops): Likewise.
10997
10998 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * valops.c (find_overload_match): Accept obj as a
11001 reference parameter. Update it before returning.
11002 * value.h (find_overload_match): Update prototype.
11003 * eval.c (evaluate_subexp_standard): Pass object to
11004 find_overload_match by reference.
11005
11006 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11007
11008 * valarith.c: Replace value_ptr with struct value pointer. Remove
11009 register attribute from value declarations.
11010 * valops.c: Ditto.
11011 * value.h: Ditto.
11012 * scm-lang.c (scm_lookup_name): Ditto.
11013
11014 2002-01-03 Michael Snyder <msnyder@redhat.com>
11015
11016 Abstract the functionality of iterating over mapped memory
11017 regions into a general purpose iterator function.
11018 * procfs.c (iterate_over_mappings): New function, general purpose
11019 iterator for memory sections.
11020 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11021 (solib_mappings_callback): New function, callback for above.
11022 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11023 (info_mappings_callback): New function, callback for above.
11024
11025 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11026
11027 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11028
11029 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11030 * i386-tdep.c: Include "elf-bfd.h".
11031 (process_note_abi_tag_sections): New function.
11032 (i386_gdbarch_init): Add code to recognize various OS/ABI
11033 combinations.
11034
11035 * maint.c (_initialize_maint_cmds): Add missing \ in
11036 string-literal.
11037
11038 For older changes see ChangeLog-2001
11039 \f
11040 Local Variables:
11041 mode: change-log
11042 left-margin: 8
11043 fill-column: 74
11044 version-control: never
11045 End:
This page took 0.248034 seconds and 5 git commands to generate.