* bfd-in.h (align_power): Cast constants to bfd_vma type.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4 watchpoints to NULL.
5 (insert_breakpoints): set val field of watchpoints if NULL.
6
7
8 2002-08-29 Jim Blandy <jimb@redhat.com>
9
10 * symtab.c (lookup_symbol_aux): In the cases where we find a
11 minimal symbol of an appropriate name and use its address to
12 select a symtab to read and search, use `name' (as passed to us)
13 as the demangled name when searching the symtab's global and
14 static blocks, not the minsym's name.
15
16 2002-08-29 Keith Seitz <keiths@redhat.com>
17
18 * stack.c (print_frame_info_base): Always set current_source_symtab
19 and current_source_line.
20
21 2002-08-29 Donn Terry <donnte@microsoft.com>
22
23 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
24
25 2002-08-28 Keith Seitz <keiths@redhat.com>
26
27 * stack.c (select_frame): Add FIXME concerning selected-frame
28 events.
29 (select_frame_command): Send selected-frame-level-changed
30 event notification, but only if the level actually changed.
31 (up_silently_base): Add selected-frame-level-changed event
32 notification.
33 (down_silently_base): Likewise.
34
35 2002-08-28 Andrew Cagney <ac131313@redhat.com>
36
37 * Makefile.in: Update dependencies for all gdb/*.c files.
38
39 2002-08-27 Tom Tromey <tromey@redhat.com>
40
41 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
42 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
43 Update dependencies.
44 * i387-tdep.c: Include gdb_string.h.
45 * osabi.c: Likewise.
46 * i386-linux-nat.c: Likewise.
47 * lin-lwp.c: Likewise.
48 * ax-gdb.c: Likewise.
49 * signals/signals.c: Likewise.
50 * jv-valprint.c: Likewise.
51 * p-lang.c: Likewise.
52 * c-valprint.c: Likewise.
53 * cp-abi.c: Likewise.
54
55 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
56
57 * cli/cli-script.h (copy_command_lines): Export.
58 * breakpoint.c: Include cli/cli-script.h.
59 * Makefile.in (breakpoint.o): Update dependencies.
60
61 2002-08-26 Joel Brobecker <brobecker@gnat.com>
62
63 * cli/cli-script.c (copy_command_lines): New function.
64 * defs.h (copy_command_lines): Export.
65 * testsuite/gdb.base/commands.exp: New tests for commands
66 attached to a temporary breakpoint, and for commands that
67 delete the breakpoint they are attached to.
68
69 2002-08-26 Michael Snyder <msnyder@redhat.com>
70
71 * breakpoint.c (bpstat_stop_status): Instead of copying the
72 pointer to the breakpoint commands struct, make a new copy
73 of the struct and point to that.
74 (bpstat_clear): Free the commands struct.
75 (bpstat_clear_actions): Free the commands struct.
76 (bpstat_do_actions): Free the command actions. Also execute
77 the local cleanups, instead of deleting them.
78 (delete_breakpoint): Leave the commands field of the bpstat
79 chain alone -- it will be freed later.
80
81 2002-08-26 Kevin Buettner <kevinb@redhat.com>
82
83 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
84 deleted in 2002-08-20 commit. This function is still used by
85 ppc-linux-nat.c.
86
87 2002-08-26 Keith Seitz <keiths@redhat.com>
88
89 * gdb-events.sh: Add selected-frame-level-changed event.
90 * gdb-events.c: Regenerated.
91 * gdb-events.h: Regenerated.
92
93 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
94
95 Fix PR gdb/393:
96 * inflow.c (terminal_save_ours): New function to save terminal
97 settings.
98 * inferior.h (terminal_save_ours): Declare.
99 * target.c (debug_to_terminal_save_ours): New function.
100 (cleanup_target): Defaults to_terminal_save_ours.
101 (update_current_target): Inherit to_terminal_save_ours.
102 (setup_target_debug): Set to_terminal_save_ours.
103 * target.h (target_terminal_save_ours): New to save terminal settings.
104 (target_ops): New member to_terminal_save_ours.
105 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
106 * hpux-thread.c (init_hpux_thread_ops): Likewise.
107 * inftarg.c (init_child_ops): Likewise.
108 * m3-nat.c (init_m3_ops): Likewise.
109 * procfs.c (init_procfs_ops): Likewise.
110 * wince.c (init_child_ops): Likewise.
111 * win32-nat.c (init_child_ops): Likewise.
112 * sol-thread.c (init_sol_thread_ops): Likewise.
113
114 2002-08-26 Mark Kettenis <kettenis@gnu.org>
115
116 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
117 use regcache_* functions.
118 (i386_gdbarch_init): Set store_return_value instead of
119 deprecated_store_return_value.
120
121 * regcache.c (regcache_raw_write_signed,
122 regcache_raw_write_unsigned): New functions.
123 * regcache.h (regcache_raw_write_signed,
124 regcache_raw_write_unsigned): New prototypes.
125
126 2002-08-25 Andrew Cagney <ac131313@redhat.com>
127
128 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
129 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
130 source file dependencies. Cleanup corresponding generator rules.
131
132 2002-08-25 Andrew Cagney <ac131313@redhat.com>
133
134 * regcache.h (register_offset_hack): Declare.
135 (regcache_cooked_read_using_offset_hack): Declare.
136 (regcache_cooked_write_using_offset_hack): Declare.
137
138 * regcache.c (register_offset_hack): New function.
139 (regcache_cooked_read_using_offset_hack): New function.
140 (regcache_cooked_write_using_offset_hack): New function.
141 (regcache_dump): Check that the registers, according to their
142 offset, are packed hard against each other.
143 (cooked_xfer_using_offset_hack): New function.
144
145 2002-08-25 Andrew Cagney <ac131313@redhat.com>
146
147 * regcache.c (struct regcache_descr): Add field register_type.
148 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
149 in as a parameter
150 (init_regcache_descr): Initialize register_type. Pass the descr
151 to init_legacy_regcache_descr. Use register_type instead of
152 REGISTER_VIRTUAL_TYPE.
153 (register_type): New function.
154 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
155 * regcache.h (register_type): Declare.
156
157 2002-08-25 Andrew Cagney <ac131313@redhat.com>
158
159 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
160 instead of deprecated_store_return_value. Fix fallout from
161 2002-08-23 Andrew Cagney <cagney@redhat.com>.
162
163 2002-08-25 Andrew Cagney <ac131313@redhat.com>
164
165 * regcache.c (max_register_size): New function.
166 (init_legacy_regcache_descr): Ensure that max_register_size is
167 large enough for REGISTER_VIRTUAL_SIZE.
168 * regcache.h (max_register_size): Declare.
169
170 2002-08-24 Andrew Cagney <ac131313@redhat.com>
171
172 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
173 store_return_value.
174 (e500_extract_return_value): Change type of valbuf pointer to
175 void.
176
177 2002-08-24 Mark Kettenis <kettenis@gnu.org>
178
179 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
180 workaround.
181
182 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
183 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
184 long long) to prevent compiler warning on 64-bit systems.
185
186 2002-08-23 Andrew Cagney <cagney@redhat.com>
187
188 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
189 (DEPRECATED_STORE_RETURN_VALUE): New method.
190 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
191 * gdbarch.h, gdbarch.c: Re-generate.
192
193 * values.c (set_return_value): Pass current_regcache to
194 STORE_RETURN_VALUE.
195 * arch-utils.h (legacy_store_return_value): Declare.
196 * arch-utils.c (legacy_store_return_value): New function.
197 (legacy_extract_return_value): Update parameters.
198
199 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
200 STORE_RETURN_VALUE.
201 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
202 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
203 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
204 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
205 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
206 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
207 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
208 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
209 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
210 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
211
212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
213 * i386-tdep.c (i386_extract_return_value): Update.
214 * arch-utils.c (legacy_extract_return_value): Update.
215 * frv-tdep.c (frv_gdbarch_init): Update.
216 * cris-tdep.c (cris_gdbarch_init): Update.
217 * d10v-tdep.c (d10v_gdbarch_init): Update.
218 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
219 * m68k-tdep.c (m68k_gdbarch_init): Update.
220 * mcore-tdep.c (mcore_gdbarch_init): Update.
221 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
222 * s390-tdep.c (s390_gdbarch_init): Update.
223 * sparc-tdep.c (sparc_gdbarch_init): Update.
224 * sh-tdep.c (sh_gdbarch_init): Update.
225 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
226 * v850-tdep.c (v850_gdbarch_init): Update.
227 * avr-tdep.c (avr_gdbarch_init): Update.
228 * ia64-tdep.c (ia64_gdbarch_init): Update.
229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
230 * vax-tdep.c (vax_gdbarch_init): Update.
231 * alpha-tdep.c (alpha_gdbarch_init): Update.
232 * arm-tdep.c (arm_gdbarch_init): Update.
233 * mips-tdep.c (mips_gdbarch_init): Update.
234 * i386-tdep.c (i386_gdbarch_init): Update.
235
236 2002-08-23 Andrew Cagney <ac131313@redhat.com>
237
238 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
239 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
240
241 2002-08-24 Mark Kettenis <kettenis@gnu.org>
242
243 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
244 problems.
245
246 2002-08-23 Joel Brobecker <brobecker@gnat.com>
247
248 * infrun.c (handle_inferior_event): Move a comment outside of a
249 function call, in order to avoid indent reformatting this part
250 of the code in an unreadable way.
251
252 2002-08-23 Grace Sainsbury <graces@redhat.com>
253
254 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
255 when breakpoints fail. Move general breakpoint error messages to
256 insert_breakpoints.
257 * breakpoint.c (insert_breakpoints): Change warnings when
258 breakpoints are nto inserted to specify the type. Remove call to
259 memory_error when hardware breakpoints can't be inserted. Remove
260 multiple calls to warning so all messages are sent to the user at
261 once.
262 (delete_breakpoints): Make insert error messsages more explicit.
263
264 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
265
266 * ChangeLog: Move gdbserver entries after GDB 5.2 to
267 gdbserver/ChangeLog.
268
269 2002-08-23 Mark Kettenis <kettenis@gnu.org>
270
271 * i386-tdep.c: Include "objfiles.h".
272 (i386_svr4_init_abi): Set in_solib_call_trampoline and
273 skip_trampoline_code.
274 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
275 (CPLUS_MARKER): Define to '.'.
276
277 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
278 member.
279 (linux_corefile_thread_callback): Increase args->num_notes.
280 (linux_make_note_section): Initialize thread_args.num_notes, and
281 use it to determine whether notes for any threads were created.
282
283 2002-08-23 Donn Terry <donnte@microsoft.com>
284
285 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
286 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
287 and PCUNKILL.
288 (write_with_trace): Conditionalize out the switch branch handling
289 PCSHOLD if the corresponding macro is not defined. Likewise for
290 PRSABORT and PRSTOP.
291 This change will be needed by the Interix port.
292
293 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
294
295 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
296 write_register wherever possible instead of manipulating the
297 register bytes directly.
298 Assign VALUE_CONTENTS to a variable and use that.
299 The GPR numbers are now dependent on the architecture.
300
301 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
302
303 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
304 ev_offset fields.
305 (skip_prologue): Add support for BookE/e500 instructions.
306 (e500_extract_return_value): New function.
307 (frame_get_saved_regs): Add support for saving ev registers and
308 pseudo gpr's.
309 (e500_store_return_value): New function.
310 (rs6000_gdbarch_init): Move up default intializations of
311 deprecated_extract_return_value and store_return_value. Overwrite
312 init of store_return_value with e500 specific version.
313 Set extract_return_value for e500.
314
315 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
316
317 * blockframe.c (generic_call_dummy_register_unwind): Use
318 regcache_cooked_read to catch cases in which the variable is
319 stored in a pseudo register.
320
321 2002-08-22 Andrew Cagney <cagney@redhat.com>
322
323 * NEWS: Mention that the i960 has been made obsolete.
324 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
325 i960-tdep.c
326 (remote-nrom.o): Obsolete target.
327 (remote-nindy.o, i960-tdep.o): Ditto.
328 * remote-nrom.c: Make file obsolete.
329 * remote-nindy.c, remote-vx960.c: Ditto.
330 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
331 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
332 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
333 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
334 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
335 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
336 i960-*-vxworks* obsolete.
337 * MAINTAINERS: Note that the i960 is obsolete.
338
339 2002-08-21 Corinna Vinschen <vinschen@redhat.com
340
341 * aix-thread.c (aix_thread_detach): Disable thread debugging on
342 detach to allow reinitialization.
343
344 2002-08-22 Andrew Cagney <ac131313@redhat.com>
345
346 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
347 attempt).
348
349 2002-08-22 Jim Blandy <jimb@redhat.com>
350
351 * coffread.c (coff_symfile_read): Don't try to read the line
352 number table from disk if the image file doesn't have a symbol
353 table; we'll never actually look at the info anyway, and Windows
354 ships DLL's with bogus file offsets for the line number data.
355
356 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
357
358 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
359 an e500 executable.
360
361 2002-08-21 Michael Snyder <msnyder@redhat.com>
362
363 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
364 (MSYMBOL_SIZE): Replace macro with function.
365 (DEFAULT_MIPS_TYPE): Delete unused macro.
366 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
367 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
368
369 2002-08-21 Jim Blandy <jimb@redhat.com>
370
371 * valops.c (value_cast): Simplify and correct logic for doing a
372 static cast from a pointer to a base class to a pointer to a
373 derived class.
374
375 2002-08-21 Andrew Cagney <ac131313@redhat.com>
376
377 * infcmd.c (default_print_registers_info): Replace
378 do_registers_info.
379 (registers_info): Use gdbarch_print_registers_info instead of
380 DO_REGISTERS_INFO.
381 * inferior.h (default_print_registers_info): Replace
382 do_registers_info.
383 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
384 (DO_REGISTERS_INFO): Change to a predicate function.
385 * gdbarch.h, gdbarch.c: Regenerate.
386
387 2002-08-21 Keith Seitz <keiths@redhat.com>
388
389 * gdb-events.sh: Add target-changed event.
390 * gdb-events.c: Regenerated.
391 * gdb-events.c: Regenerated.
392 * valops.c (value_assign): Add target-changed event notification
393 to inlval_register, lval_memory, and lval_reg_frame_relative.
394
395 2002-08-21 Joel Brobecker <brobecker@gnat.com>
396
397 * NEWS: Add an entry regarding the improvement of the next/step
398 operation on Alpha Tru64 multi-processor machines.
399
400 2002-08-21 Andrew Cagney <ac131313@redhat.com>
401
402 * Makefile.in: Update dependencies for mi/ cli/ and tui/
403 directores.
404 * Makefile.in: Update all _h macro definitions.
405 * Makefile.in (install-gdbtk): Move to install section.
406 (rdi-share/libangsd.a): Move to end of file.
407
408 2002-08-19 Andrew Cagney <ac131313@redhat.com>
409
410 * frame.c (frame_register_unwind): When a register, set addrp to
411 the register's byte.
412
413 2002-08-20 Michael Snyder <msnyder@redhat.com>
414
415 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
416 used locally, so move them from the target machine header to here.
417 (mips_set_processor_type, mips_register_name, mips32_next_pc,
418 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
419 Make static.
420 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
421
422 2002-08-20 Andrew Cagney <cagney@redhat.com>
423
424 * NEWS: Mention that the Apollo line was made obsolete.
425 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
426 m68*-hp-hpux* obsolete.
427 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
428 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
429 * buildsym.c (make_blockvector): Make static.
430 * buildsym.h (make_blockvector): Make extern declaration obsolete.
431 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
432 (ALLDEPFILES): Remove dstread.c.
433 (dstread.o): Obsolete make rule.
434 * dstread.c: Makefile obsolete.
435 * dst.h: Ditto.
436 * config/m68k/hp300hpux.mt: Ditto.
437 * config/m68k/hp300hpux.mh: Ditto.
438 * config/m68k/hp300bsd.mt: Ditto.
439 * config/m68k/hp300bsd.mh: Ditto.
440 * config/m68k/apollo68b.mt: Ditto.
441 * config/m68k/apollo68v.mh: Ditto.
442 * config/m68k/apollo68b.mh: Ditto.
443
444 2002-08-20 Michael Snyder <msnyder@redhat.com>
445
446 * mips-tdep.c (mips_in_return_stub): Make static.
447 (mips_gdbarch_init): Set in_solib_return_trampoline.
448 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
449
450 2002-08-20 Michael Snyder <msnyder@redhat.com>
451
452 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
453 * gdbarch.c, gdbarch.h: Regenerate.
454 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
455 Add.
456 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
457
458 2002-08-20 Michael Snyder <msnyder@redhat.com>
459
460 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
461 (mips_gdbarch_init): Set skip_trampoline_code,
462 in_solib_call_trampoline.
463 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
464 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
465
466 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
467
468 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
469
470 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
471 vector type for ev registers.
472 (e500_pseudo_register_read): New function.
473 (e500_pseudo_register_write): New function.
474 (e500_dwarf2_reg_to_regnum): New function.
475 (PPC_UISA_NOFP_SPRS): New macro.
476 (PPC_EV_REGS): New macro.
477 (PPC_GPRS_PSEUDO_REGS): New macro.
478 (registers_e500): New register set for e500.
479 (variants): Add e500 variant.
480 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
481 before setting architectural dependent variations. Initialize ev
482 registers numbers. Add case for e500 architecture. Set the
483 number of pseudo registers.
484
485 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
486
487 * rs6000-tdep.c: Clean up comments.
488
489 2002-08-20 Andrew Cagney <cagney@redhat.com>
490
491 * h8300-tdep.c: Re-indent file.
492
493 2002-08-20 Jim Blandy <jimb@redhat.com>
494
495 * Makefile.in (LDFLAGS): Allow the configure script to establish a
496 default for this.
497
498 2002-08-20 Keith Seitz <keiths@redhat.com>
499
500 * breakpoints.c (watch_command_1): Use internal breakpoint
501 when setting a watchpoint_scope breakpoint.
502
503 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
504
505 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
506 (build_builtin_type_vec64i): Ditto.
507 (build_builtin_type_vec128): Ditto.
508 (build_builtin_type_vec128i): Ditto.
509
510 2002-08-19 Michael Snyder <msnyder@redhat.com>
511
512 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
513 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
514 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
515 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
516 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
517 CALL_DUMMY_ADDRESS): Delete.
518 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
519 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
520 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
521 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
522 push_return_address.
523 (mips_register_raw_size, mips_eabi_use_struct_convention,
524 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
525 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
526 mips_init_extra_frame_info, mips_eabi_push_arguments,
527 mips_n32n64_push_arguments, mips_push_return_address,
528 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
529 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
530
531 2002-08-19 Michael Snyder <msnyder@redhat.com>
532
533 * mips-tdep.c (mips_frame_num_args): New function.
534 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
535 frame_saved_pc, frame_args_address, frame_locals_address,
536 frame_num_args, and frame_args_skip.
537 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
538 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
539 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
540 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
541
542 2002-08-20 Michael Snyder <msnyder@redhat.com>
543
544 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
545 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
546 * mips-tdep.c (mips_store_struct_return): New function.
547 (mips_extract_struct_value_address): New function.
548 (mips_gdbarch_init): Set store_struct_return and
549 extract_struct_value_address.
550
551 2002-08-20 David Carlton <carlton@math.stanford.edu>
552
553 * dwarf2read.c (dwarf2_build_psymtabs): Check that
554 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
555 (read_file_scope): Check that line_header is nonzero before
556 decoding macro information.
557
558 2002-08-20 Mark Kettenis <kettenis@gnu.org>
559
560 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
561 flag the general-purpose registers as floating-point on targets
562 that don't support the floating-point registers.
563
564 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
565
566 * rs6000-tdep.c (altivec_register_p): Delete.
567 (rs6000_do_altivec_registers): Delete.
568 (rs6000_altivec_registers_info): Delete.
569 (rs6000_do_registers_info): Delete.
570 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
571 (rs6000_gdbarch_init): Remove setting of do_registers_info.
572
573 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
574
575 * infcmd.c (do_registers_info): Print vector registers in hex
576 format only.
577 (print_vector_info): Check that printing registers
578 makes sense.
579 (print_float_info): Ditto.
580
581 2002-08-20 Andrew Cagney <ac131313@redhat.com>
582
583 * mips-tdep.c (mips_gdbarch_init): Update.
584 (mips_o32_extract_return_value): Rewrite.
585 (mips_o32_store_return_value): Rewrite.
586 (mips_o32_xfer_return_value): New function.
587 (mips_xfer_register): Tweak debug print message. Allow for
588 buf_offset when dumping the value transfered.
589
590 2002-08-20 Andrew Cagney <ac131313@redhat.com>
591
592 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
593 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
594 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
595 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
596 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
597
598 2002-08-14 Michael Snyder <msnyder@redhat.com>
599
600 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
601
602 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
603
604 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
605 register.
606 (P): New macro to define a register as a pseudo register.
607 (R, R4, R8, R16, FR32, R64, R0): Updated.
608 (struct variant): Add new fields for number of pseudo registers
609 and number of total registers.
610 (tot_num_registers): New macro replacing....
611 (num_registers): ...deleted macro.
612 (num_registers): New function.
613 (num_pseudo_registers): New function.
614 (variants): Update all variants to intialize new fields correctly.
615 Postpone initialization of number of pseudo regs and real regs.
616 (init_variants): New function.
617 (rs6000_gdbarch_init): Initialize variants. Update calculation of
618 registers offsets.
619
620 2002-08-19 David Carlton <carlton@math.stanford.edu>
621
622 * valops.c (search_struct_field): Change error message to treat
623 return value of 0 from value_static_field as meaning that field is
624 optimized out.
625 (value_struct_elt_for_reference): Ditto.
626 * values.c (value_static_field): Treat an unresolved location the
627 same as a nonexistent symbol. Fix PR gdb/635.
628 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
629 enclosed. Fix PR gdb/574.
630 * MAINTAINERS: Add self to Write After Approval list.
631
632 2002-08-19 Andrew Cagney <ac131313@redhat.com>
633
634 * mips-tdep.c (mips_xfer_register): New function.
635 (mips_n32n64_extract_return_value): Rewrite.
636 (mips_gdbarch_init): For N32 and N64, set extract_return_value
637 instead of deprecated_extract_return_value.
638
639 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
640
641 * rs6000-tdep.c (TDEP): Delete macro.
642 (branch_dest): Replace use of TDEP macro with its body.
643 (rs6000_pop_frame): Ditto.
644 (rs6000_push_arguments): Ditto.
645 (rs6000_skip_trampoline_code): Ditto.
646 (rs6000_frame_saved_pc): Ditto.
647 (rs6000_frame_chain): Ditto.
648 (rs6000_register_name): Ditto.
649 (rs6000_register_byte): Ditto.
650 (rs6000_register_raw_size): Ditto.
651 (rs6000_register_virtual_type): Ditto.
652 (rs6000_register_convertible): Ditto.
653 (rs6000_convert_from_func_ptr_addr): Ditto.
654
655 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
656
657 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
658 conditionally.
659 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
660 MIPS_LINUX_JB_ELEMENT_SIZE.
661 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
662 for MAX_REGISTER_RAW_SIZE arrays.
663 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
664 MIPS_LINUX_JB_ELEMENT_SIZE.
665
666 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
667
668 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
669
670 2002-08-19 Aidan Skinner <aidan@velvet.net>
671
672 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
673 ada-valprint.c ada-tasks.c.
674 (YYFILES): Add ada-exp.y.
675 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
676 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
677 (ada-exp.tab.o): New target.
678
679 2002-08-18 Andrew Cagney <ac131313@redhat.com>
680
681 * regcache.c (regcache_xfer_part): New function.
682 (regcache_raw_read_part): New function.
683 (regcache_raw_write_part): New function.
684 (regcache_cooked_read_part): New function.
685 (regcache_cooked_write_part): New function.
686 * regcache.h (regcache_raw_read_part): Declare.
687 (regcache_raw_write_part): Declare.
688 (regcache_cooked_read_part): Declare.
689 (regcache_cooked_write_part): Declare.
690
691 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
692
693 * remote.c (remote_open_1): Add async_p.
694 (remote_async_open_1): Delete.
695 (open_remote_target): Delete.
696 (remote_open, extended_remote_open): Update calls to remote_open_1.
697 (remote_async_open, extended_remote_async_open): Call
698 remote_open_1 instead of remote_async_open_1.
699
700 2002-08-19 Mark Kettenis <kettenis@gnu.org>
701
702 * blockframe.c: Fix a few coding standard violations.
703
704 2002-08-19 Mark Kettenis <kettenis@gnu.org>
705
706 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
707 here from ...
708 * config/i386/tm-i386sco5.h: ... here. File removed.
709 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
710
711 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
712 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
713 (TM_FILE): Set to tm-i386.h.
714 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
715 * config/i386/tm-i386v.h: Remove file.
716 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
717 instead of "i386/tm-i386v.h".
718 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
719 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
720 "i386/tm-i386v.h".
721 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
722 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
723 "i386/tm-i386.h".
724
725 2002-08-18 Mark Kettenis <kettenis@gnu.org>
726
727 * config/i386/nm-i386v.h: Add protection against
728 multiple-inclusion.
729 (i386_register_u_addr): Remove prototype.
730 (register_u_addr): New prototype.
731 (REGISTER_U_ADDR): Redefine accordingly.
732 * i386v-nat.c: Improve several comments.
733 (i386_register_u_addr): Change signature and rename to
734 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
735 ubase variable.
736
737 2002-08-18 Andrew Cagney <ac131313@redhat.com>
738
739 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
740 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
741 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
742 deprecated_extract_return_value.
743 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
744 rename mips_o32o64_push_arguments.
745 (mips_gdbarch_init): Update.
746 (mips_extract_return_value): Delete.
747 (mips_o32_extract_return_value): Clone mips_extract_return_value.
748 (mips_o64_extract_return_value): Clone mips_extract_return_value.
749 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
750 (mips_n32n64_extract_return_value): Clone
751 mips_extract_return_value.
752 (mips_store_return_value): Delete.
753 (mips_o32_store_return_value): Clone mips_store_return_value.
754 (mips_o64_store_return_value): Clone mips_store_return_value.
755 (mips_eabi_store_return_value): Clone mips_store_return_value.
756 (mips_n32n64_store_return_value): Clone mips_store_return_value.
757
758 2002-08-18 Aidan Skinner <aidan@velvet.net>
759
760 * ada-lang.c: Use gdb_string.h instead of <string.h>.
761 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
762
763 2002-08-18 Aidan Skinner <aidan@velvet.net>
764
765 * ada-lang.c: Run through gdb_indent.sh.
766 * ada-lang.h: Run through gdb_indent.sh.
767 * ada-tasks.c: Run through gdb_indent.sh.
768 * ada-typeprint.c: Run through gdb_indent.sh.
769 * ada-valprint.c: Run through gdb_indent.sh.
770
771 2002-08-18 Andrew Cagney <ac131313@redhat.com>
772
773 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
774 ABI.
775
776 2002-08-18 Mark Kettenis <kettenis@gnu.org>
777
778 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
779
780 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
781 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
782
783 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
784 write_register_gen instead of write_register_bytes.
785
786 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
787 i[3456]-*-osf1mk* configurations have been made obsolete.
788 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
789 i[3456]86-*-osf1mk* hosts obsolete.
790 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
791 targets obsolete.
792 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
793 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
794 config/i386/i386m3.mt, config/i386/nm-m3.h,
795 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
796 config/i386/i386mk.mh, config/i386/i386mk.mt,
797 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
798 obsolete.
799 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
800 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
801 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
802
803 2002-08-18 Andrew Cagney <ac131313@redhat.com>
804
805 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
806 (hppa_value_returned_from_stack): Declare.
807 (hppa_extract_return_value): Declare.
808 * config/pa/hppa.mt: New file.
809 * configure.tgt: Recognize hppa*-*-*.
810 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
811
812 2002-08-18 Mark Kettenis <kettenis@gnu.org>
813
814 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
815 comment.
816
817 2002-08-17 Mark Kettenis <kettenis@gnu.org>
818
819 * top.c (gdb_rl_operate_and_get_next): Make sure
820 operate-and-get-next functions correctly even when the history
821 list is completely filled.
822
823 2002-08-18 Andrew Cagney <ac131313@redhat.com>
824
825 * MAINTAINERS (Target Instruction Set Architectures): Rename
826 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
827 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
828 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
829 already listed under Host/Native.
830
831 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
832 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
833 mips*-*-*.
834
835 2002-08-17 Andrew Cagney <ac131313@redhat.com>
836
837 * config/ia64/ia64.mt: New file.
838 * config/alpha/alpha.mt: New file.
839 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
840 ia64-linux-gnu. Mention that ia64-elf is broken.
841 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
842
843 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
844
845 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
846 generic_func_frame_valid instead of func_frame_valid.
847
848 2002-08-16 Joel Brobecker <brobecker@gnat.com>
849
850 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
851 procfs appears to be broken when debugging on multi-processor
852 machines. So enable software single stepping in order to avoid
853 using the procfs interface to do next/step operations, using
854 internal breakpoints instead.
855
856 * infrun.c (handle_inferior_event): Readjust the stop_pc by
857 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
858 make this pc address equal to the value it would have if the
859 system stepping capability was used. Also set a new flag used
860 to ensure that we don't readjust the PC one more time later.
861
862 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
863 address by DECR_PC_AFTER_BREAK when software single step is
864 in use for this architecture, as this has already been taken
865 care of in handle_inferior_event().
866
867 2002-08-16 Joel Brobecker <brobecker@gnat.com>
868
869 * infrun.c (handle_inferior_event): Minor reformatting, to make
870 a rather long condition expression easier to read.
871
872 2002-08-16 Andrew Cagney <ac131313@redhat.com>
873
874 * Makefile.in (gdbtk.o): Move to end of file.
875 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
876 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
877 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
878 (gdbtk-wrapper.o, gdbres.o): Ditto.
879
880 2002-08-16 Andrew Cagney <ac131313@redhat.com>
881
882 * Makefile.in (copying.o): Separate out compile rule.
883 (hpux-thread.o, procfs.o, signals.o): Ditto.
884 (v850ice.o, z8k-tdep.o): Ditto.
885 (tui-file.o): Move to TUI section.
886 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
887 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
888
889 2002-08-16 Joel Brobecker <brobecker@gnat.com>
890
891 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
892 skip_trampoline_code, for better namespace-proofing.
893
894 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
895
896 2002-08-16 Joel Brobecker <brobecker@gnat.com>
897
898 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
899
900 2002-08-16 Joel Brobecker <brobecker@gnat.com>
901
902 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
903 signal, check whether we hit a breakpoint before checking for a
904 single step breakpoint. Otherwise, GDB fails to notice that a
905 breakpoint has been hit when stepping onto a breakpoint.
906
907 2002-08-16 Keith Seitz <keiths@redhat.com>
908
909 * gdb-events.sh (clear_gdb_event_hooks): New function.
910 * gdb-events.c: Regenerate.
911 * gdb-events.h: Regenerate.
912
913 2002-08-16 Andrew Cagney <ac131313@redhat.com>
914
915 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
916 not_a_sw_breakpoint.
917 * breakpoint.h (bpstat_stop_status): Add parameter names.
918
919 2002-08-16 Grace Sainsbury <graces@redhat.com>
920
921 * remote.c (remote_insert_hw_breakpoint)
922 (remote_remove_hw_breakpoint): Fix calculation of length field
923 for Z-packet.
924
925 2002-08-15 Michael Snyder <msnyder@redhat.com>
926
927 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
928 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
929 (supply_fpregset): Ditto.
930
931 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
932 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
933 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
934 (TARGET_READ_SP): Delete.
935 (DO_REGISTERS_INFO): Delete.
936 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
937 Delete.
938 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
939 from macros to functions.
940
941 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
942 (mips_register_convertible, mips_register_convert_to_virtual,
943 mips_register_convert_to_raw): Make static.
944 (mips_read_sp): New function.
945 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
946 (mips_do_registers_info): Make static.
947 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
948 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
949 (mips_register_convert_from_type, mips_register_convert_to_type):
950 New functions.
951 (mips_gdbarch_init): Set up function_start_offset,
952 register_virtual_size, pc_in_sigtramp.
953
954 2002-08-15 Andrew Cagney <ac131313@redhat.com>
955
956 * infcmd.c (vector_info): New function.
957 (_initialize_infcmd): Add command "info vector".
958 (print_vector_info): New function.
959
960 * gdbarch.sh (PRINT_VECTOR_INFO): New method
961 * gdbarch.h, gdbarch.c: Regenerate.
962
963 2002-08-15 Andrew Cagney <ac131313@redhat.com>
964
965 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
966 ``print_all''. Only print vector registers when ``print_all''.
967
968 2002-08-15 Andrew Cagney <ac131313@redhat.com>
969
970 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
971 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
972
973 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
974 Add `args' parameter.
975 * gdbarch.h, gdbarch.c: Regenerate.
976
977 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
978
979 * infcmd.c (float_info): Call print_float_info.
980 (print_float_info): New function. By default, print the
981 floating-point registers.
982
983 * arch-utils.h (default_print_float_info): Delete declaration.
984 * arch-utils.c (default_print_float_info): Delete function.
985
986 2002-08-16 Mark Kettenis <kettenis@gnu.org>
987
988 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
989 out define.
990
991 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
992 FRAME.
993
994 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
995 * configure.host: Make i[3456]86-*-aix host obsolete.
996 * configure.tgt: Make i[3456]86-*-aix target obsolete.
997 * config/i386/i386aix.mh, config/i386/i386aix.mt,
998 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
999 config/i386/xm-i386aix.h: Make files obsolete.
1000 * i386aix-nat.c: Make file obsolete.
1001 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1002 (i386aix-nat.o): Make target obsolete.
1003
1004 * config/i386/nm-gnu.h: Removed.
1005 * config/i386/nm-i386gnu.h: New file.
1006 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1007 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1008 Moved here from ...
1009 * config/i386/tm-i386gnu.h: ... here. Removed.
1010 * config/i386/xm-i386gnu.h: Removed.
1011 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1012 (NAT_FILE): Set to nm-i386gnu.h.
1013 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1014 * i386-tdep.c: New file.
1015 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1016 (i386gnu-tdep.o): Specify dependencies.
1017
1018 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1019
1020 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1021 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1022 Adjust a few comments to reflect reality a bit closer.
1023 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1024 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1025 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1026 target_insert_watchpoint, target_remove_watchpoint):
1027 Move defines to ...
1028 * config/i386/nm-i386sco5.h: ... here.
1029 (kernel_u_size): Add prototype. Improve a few comments and add
1030 protection against multiple inclusion.
1031
1032 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1033 out define.
1034
1035 * uw-thread.c (SP_ARG0): Define if not already defined.
1036 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1037
1038 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1039
1040 * config/i386/tm-i386.h: Don't include "regcache.h".
1041
1042 * i387-tdep.h (i387_print_float_info): New prototype.
1043 * i387-tdep.c (print_i387_value, print_i387_ext,
1044 print_i387_status_word, print_i387_control_word): Add `struct
1045 ui_file *' argument and use it for output.
1046 (i387_print_float_info): Renamed from i387_float_info. Add
1047 `struct gdbarch *' and `struct ui_file *' arguments and use the
1048 latter for output.
1049 * i386-tdep.c: Include "i387-tdep.h".
1050 (i386_gdbarch_init): Set print_float_info.
1051 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1052 (FLOAT_INFO): Remove define.
1053
1054 2002-08-13 Michael Snyder <msnyder@redhat.com>
1055
1056 * mips-tdep.c (mips_push_arguments): Rename to
1057 mips_eabi_push_arguments, and tune for EABI.
1058 (MIPS_REGS_HAVE_HOME_P): Delete.
1059 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1060 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1061 Delete references to mips_regs_have_home_p.
1062
1063 2002-08-14 Keith Seitz <keiths@redhat.com>
1064
1065 * Makefile.in (install-gdbtk): Create insight plugin directory.
1066 Install plugins.tcl file.
1067
1068 2002-08-14 Keith Seitz <keiths@redhat.com>
1069
1070 * configure.in: Move SUBDIRS to near top of the file so that
1071 --enable options may add things to it.
1072 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1073 * configure: Regenerate.
1074
1075 2002-08-13 Michael Snyder <msnyder@redhat.com>
1076
1077 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1078 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1079 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1080
1081 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1082
1083 * vax-tdep.c (vax_get_saved_register): Delete function.
1084 (vax_gdbarch_init): Update.
1085 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1086 (ns32k_gdbarch_init): Update.
1087 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1088 (alpha_gdbarch_init): Update.
1089
1090 2002-08-13 Andrew Cagney <cagney@redhat.com>
1091
1092 * regcache.c (init_regcache_descr): Overallocate the
1093 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1094 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1095 nr_raw_registers.
1096 (set_register_cached): Add range checking assertions. Use
1097 current_regcache.
1098
1099 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1100
1101 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1102 numbers for MMX registers.
1103
1104 2002-08-13 Andrew Cagney <cagney@redhat.com>
1105
1106 * i386-tdep.c (i386_gdbarch_init): Use
1107 generic_unwind_get_saved_register.
1108
1109 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1110
1111 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1112 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1113 target vector.
1114 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1115 Delete. Add comment regarding this now-deleted target method.
1116
1117 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1118
1119 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1120 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1121 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1122 real PC and the page number (if it's within the memory bank window).
1123 (m68hc11_pseudo_register_write): Likewise when saving.
1124 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1125 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1126 (m68hc11_register_raw_size): And use 32-bit for it.
1127 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1128 16K memory bank is used by the prog; also use the virtual pc.
1129
1130 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1131
1132 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1133 (m68hc11_gdbarch_init): Install it in gdbarch.
1134 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1135 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1136 (MSYMBOL_SIZE): New for documentation.
1137 (insn_return_kind): Enum to specify how a function returns.
1138 (frame_extra_info): Cleanup and record the return mode.
1139 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1140 register in address computation.
1141 (m68hc11_get_return_insn): New to obtain the return instruction used
1142 by the function.
1143 (m68hc11_frame_init_saved_regs): Take into account the return
1144 instruction used by the function for far and interrupt functions.
1145 (m68hc11_init_extra_frame_info): Take into account page register.
1146 (m68hc11_frame_args_address): Adjust according to the return mode.
1147 (show_regs): Print page register only when it's used.
1148
1149 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1150
1151 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1152 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1153 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1154 registers.
1155 (m68hc11_register_raw_size): Likewise.
1156
1157 2002-08-13 Andrew Cagney <cagney@redhat.com>
1158
1159 * i386-tdep.c (i386_register_name): Handle mmx registers.
1160 (mmx_regnum_p): New function.
1161 (i386_mmx_names): New array.
1162 (mmx_num_regs): New variable.
1163 (i386_pseudo_register_read): New function.
1164 (i386_pseudo_register_write): New function.
1165 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1166
1167 * regcache.c (regcache_raw_read_unsigned): New function.
1168 (regcache_raw_read_signed): New function.
1169 * regcache.h (regcache_raw_read_unsigned): Declare.
1170 (regcache_raw_read_signed): Declare.
1171
1172 2002-08-13 Andrew Cagney <cagney@redhat.com>
1173
1174 * regcache.c (regcache_raw_read_as_address): Delete function.
1175 (regcache_cooked_read_signed): New function.
1176 (regcache_cooked_read_unsigned): New function.
1177 * regcache.h (regcache_cooked_read_signed): Declare.
1178 (regcache_cooked_read_unsigned): Declare.
1179 (regcache_raw_read_as_address): Delete declaration.
1180
1181 * blockframe.c (generic_read_register_dummy): Use
1182 regcache_cooked_read_unsigned.
1183 * i386-tdep.c (i386_extract_struct_value_address): Use
1184 regcache_cooked_read_unsigned.
1185
1186 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1187
1188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1189 double sizes according to ELF ABI flags.
1190 (gdbarch_tdep): Record elf_flags.
1191
1192 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1193
1194 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1195 (m6812_prolog): They can appear in 68HC12 function prologue.
1196 (m68hc11_frame_chain): Cleanup.
1197
1198 2002-08-12 Andrew Cagney <cagney@redhat.com>
1199
1200 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1201 declarations.
1202 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1203 (i386_linux_register_raw_size): Delete function.
1204 (i386_linux_init_abi): Update.
1205 * i386-tdep.c (i386_register_raw_size): Delete function.
1206 (i386_register_byte): Delete function.
1207 (i386_gdbarch_init): Update.
1208 (i386_register_size): Delete array.
1209 (i386_register_offset): Delete array.
1210
1211 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1212 (REGISTER_RAW_SIZE): Delete macro.
1213 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1214 (REGISTER_BYTE): Delete macro.
1215
1216 2002-08-11 Aidan Skinner <aidan@velvet.net>
1217
1218 * ada-lang.c (ada_lookup_partial_symbol)
1219 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1220 prototype names so that grep ^func works properly.
1221
1222 * ada-lang.c (ada_array_element_type)
1223 (ada_lookup_partial_symbol): Fix typos in parameter list.
1224
1225 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1226 Fix prototype names so that grep ^func works properly.
1227
1228 2002-08-10 Andrew Cagney <cagney@redhat.com>
1229 Elena Zannoni <ezannoni@redhat.com>
1230 Martin M. Hunt <hunt@redhat.com>
1231
1232 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1233 (build_builtin_type_vec128i): Set the vector bit.
1234 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1235 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1236 (build_builtin_type_vec64): New function.
1237 (build_builtin_type_vec64i): New function.
1238 (build_gdbtypes): Initialize builtin_type_vec64 and
1239 builtin_type_vec64i.
1240
1241 2002-08-09 Andrew Cagney <cagney@redhat.com>
1242
1243 * regcache.c (regcache_dump): Compare the register offset
1244 with REGISTER_BYTE.
1245 * arch-utils.c (generic_register_byte): New function.
1246 * arch-utils.h (generic_register_byte): Declare.
1247 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1248 * gdbarch.h, gdbarch.c: Regenerate.
1249
1250 2002-08-09 Andrew Cagney <cagney@redhat.com>
1251
1252 * regcache.c: Include "gdbcmd.h"
1253 (_initialize_regcache): Add commands "maintenance print
1254 registers", "maintenance print raw-registers" and "maintenance
1255 print cooked-registers".
1256 (enum regcache_dump_what): Define.
1257 (dump_endian_bytes): New function.
1258 (regcache_dump): New function.
1259 (regcache_print): New function.
1260 (maintenance_print_registers): New function.
1261 (maintenance_print_raw_registers): New function.
1262 (maintenance_print_cooked_registers): New function.
1263 * Makefile.in (regcache.o): Update dependencies.
1264
1265 2002-08-09 Michael Snyder <msnyder@redhat.com>
1266
1267 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1268 (mips_push_arguments): Correct some comments. Use paddr_nz
1269 for printing addresses in debug output. Replace static
1270 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1271 (mips_n32n64_push_arguments): New function, cloned from
1272 mips_push_arguments and tuned for the n32/n64 ABI.
1273 (mips_push_register): Buffer needs dynamic allocation.
1274 (mips_print_register): Ditto.
1275 (do_gp_register_row): Ditto.
1276 (mips_store_return_value): Ditto.
1277 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1278
1279 2002-08-09 Don Howard <dhoward@redhat.com>
1280
1281 * memattr.c (mem_info_command): Print special case of upper bound
1282 as max CORE_ADDR + 1.
1283
1284 2002-08-08 Michael Snyder <msnyder@redhat.com>
1285
1286 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1287 returns structs by ref if they're too big to fit in two registers.
1288
1289 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1290
1291 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1292 saved regs value.
1293 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1294 mips_find_saved_regs().
1295 (mips_pop_frame): Likewise.
1296
1297 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1298
1299 * blockframe.c (frame_saved_regs_register_unwind): Revise
1300 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1301 frames are in use.
1302
1303 2002-08-09 Grace Sainsbury <graces@redhat.com>
1304
1305 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1306 T-packets; the 'a' is not taken as a register number.
1307 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1308 (remote_stopped_data_address): New functions; add to target
1309 vector.
1310 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1311 prototypes to match other implementations of this
1312 function. replace integer argument with pointer -- the length
1313 field in the Z-packet is the length of what is pointed to or 1 if
1314 pointer is null. Add to target vector.
1315 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1316 target vector.
1317
1318 From Mark Salter:
1319 * remote.c (remote_wait): Add support to extract optional
1320 watchpoint information from T-packet. Ignore unrecognized
1321 optional info in T-packet.
1322 (remote_async_wait): Ditto.
1323
1324 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1325
1326 * cli/cli-dump.c: Change fopen modes to use binary open modes
1327 as defined in include/fopen-bin.h throughout.
1328
1329 2002-08-08 Michael Snyder <msnyder@redhat.com>
1330
1331 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1332
1333 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1334
1335 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1336 assertion failure by returning early after a warning.
1337
1338 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1339
1340 * mips-tdep.c (mips_find_saved_regs): Make static.
1341 (mips_frame_init_saved_regs): New function.
1342 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1343 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1344 (mips_find_saved_regs): Delete declaration.
1345
1346 2002-08-08 Grace Sainsbury <graces@redhat.com>
1347
1348 * remote.c (remote_wait, remote_async_wait): Change
1349 thread_num from int to ULONGEST.
1350 (unpack_varlen_hex): Change result parameter from
1351 int * to ULONGEST *.
1352
1353 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1354
1355 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1356 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1357 powerpc*-*-*.
1358 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1359
1360 2002-08-08 Andrew Cagney <cagney@redhat.com>
1361
1362 * gcore.c (override_derive_stack_segment): Delete variable.
1363 (preempt_derive_stack_segment): Delete function.
1364 (derive_stack_segment): Delete function.
1365 (default_derive_stack_segment): Renamed to derive_stack_segment.
1366 (override_derive_heap_segment): Delete variable.
1367 (preempt_derive_heap_segment): Delete function.
1368 (derive_heap_segment): Delete function.
1369 (default_derive_heap_segment): Rename to derive_heap_segment.
1370
1371 2002-08-06 Michael Snyder <msnyder@redhat.com>
1372
1373 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1374 * mips-tdep.c (mips_EABI_use_struct_convention,
1375 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1376 New functions. (mips_use_struct_convention): Delete.
1377 (mips_gdbarch_init): set use_gdbarch_convention.
1378
1379 2002-08-06 Michael Snyder <msnyder@redhat.com>
1380
1381 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1382 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1383 mips_o32_reg_struct_has_addr): New functions.
1384 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1385
1386 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1387
1388 * regcache.c (pseudo_register): Delete function.
1389 (fetch_register): Delete function.
1390 (store_register): Delete function.
1391 (regcache_raw_read, legacy_read_register_gen): Use
1392 target_fetch_registers instead of fetch_register.
1393 (legacy_write_register_gen, regcache_raw_write): Use
1394 target_store_register instead of store_register.
1395 (write_register_bytes): Ditto.
1396
1397 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1398 (STORE_PSEUDO_REGISTER): Delete.
1399 * gdbarch.h, gdbarch.c: Regenerate.
1400
1401 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1402
1403 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1404 write dump file binary.
1405
1406 2002-08-05 Michael Snyder <msnyder@redhat.com>
1407
1408 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1409 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1410 (mips_gdbarch_init): Set N32 target to be mips64.
1411
1412 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1413
1414 * frame.c (find_saved_register): Break out of loop once saved
1415 register address is found. Don't mention sparc in loop comment
1416 anymore.
1417
1418 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1419
1420 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1421 mips_default_saved_regsize to 8.
1422
1423 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1424
1425 * gcore.c: Do not include <sys/procfs.h>.
1426 * Makefile.in (gcore.o): Update dependencies.
1427
1428 2002-08-06 Andrew Cagney <cagney@redhat.com>
1429
1430 * configure.tgt: Make arc-*-* obsolete.
1431 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1432 * MAINTAINERS: Make arc-elf obsolete.
1433 * arc-tdep.c: Make file obsolete.
1434 * config/arc/arc.mt: Ditto.
1435 * config/arc/tm-arc.h: Ditto.
1436
1437 2002-08-05 Theodore A. Roth <troth@verinet.com>
1438
1439 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1440
1441 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1442
1443 * mcore-tdep.c (mcore_gdbarch_init): Use
1444 generic_unwind_get_saved_register instead of
1445 generic_get_saved_register.
1446 * v850-tdep.c (v850_gdbarch_init): Ditto.
1447 * frv-tdep.c (frv_gdbarch_init): Ditto.
1448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1449 * s390-tdep.c (s390_gdbarch_init): Ditto.
1450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1451 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1452 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1453
1454 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1455
1456 * objfiles.h: Add missing #include "symfile.h"
1457
1458 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1459
1460 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1461
1462 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1463 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1464 of FIELD_BITSIZE.
1465
1466 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1467
1468 * NEWS: Cleanup and nitpick.
1469
1470 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1471
1472 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1473
1474 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1475
1476 * Makefile.in (gdbtk-bp.o): Update dependencies.
1477 (gdbtk-register.o): Ditto.
1478 (gdbtk-varobj.o): Ditto.
1479
1480 2002-08-03 Andrew Cagney <cagney@redhat.com>
1481
1482 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1483 m68hc11_fetch_pseudo_register.
1484 (m68hc11_pseudo_register_write): Replace
1485 m68hc11_store_pseudo_register.
1486 (m68hc11_gdbarch_init): Update.
1487
1488 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1489
1490 * gdbarch.sh: Include "gdb_string.h".
1491 * gdbarch.c: Regenerate.
1492
1493 * regcache.c: Include "gdb_string.h".
1494 * ax-general.c: Ditto.
1495 * varobj.c: Ditto.
1496 * std-regs.c: Ditto.
1497 * fbsd-proc.c: Ditto.
1498 * thread.c: Ditto.
1499
1500 * Makefile.in (regcache.o): Update dependencies.
1501 (thread.o, gdbarch.o): Ditto.
1502 (ax-general.o, gdbarch.o): Ditto.
1503 (varobj.o, std-regs.o): Ditto.
1504 (fbsd-proc.o): Specify dependencies.
1505
1506 2002-08-02 Andrew Cagney <cagney@redhat.com>
1507
1508 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1509 regnum.
1510 (regcache_cooked_write): Ditto.
1511
1512 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1513
1514 * regcache.c (regcache_cooked_read): New function.
1515 (regcache_cooked_write): New function.
1516 (read_register_gen): Rewrite using regcache_cooked_read.
1517 (write_register_gen): Rewrite using regcache_cooked_write.
1518
1519 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1520 Declare.
1521
1522 2002-08-02 Andrew Cagney <cagney@redhat.com>
1523
1524 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1525 Replace the architecture methods register_read and register_write.
1526 * gdbarch.h, gdbarch.c: Regenerate.
1527 * regcache.c (init_regcache_descr): Update.
1528 (read_register_gen): Update.
1529 (write_register_gen): Update.
1530 (supply_register): Update comment.
1531
1532 * sh-tdep.c (sh_gdbarch_init): Update.
1533 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1534 `regcache' and `gdbarch' parameters. Make `buffer' a void
1535 pointer. Update code.
1536 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1537 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1538 void pointer. Update code.
1539 (sh64_register_write): Delete.
1540 (sh4_register_read): Delete.
1541 (sh64_register_read): Delete.
1542 (sh4_register_write): Delete.
1543 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1544 void pointer, `to' parameter a void pointer.
1545 (sh_sh64_register_convert_to_raw): Ditto.
1546
1547 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1548
1549 * mips-tdep.c (mips_register_virtual_type): Use architecture
1550 invariant return values.
1551
1552 2002-08-01 Andrew Cagney <cagney@redhat.com>
1553
1554 * linux-proc.c: Include "gdb_string.h".
1555 * Makefile.in (linux-proc.o): Update dependency list.
1556
1557 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1558
1559 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1560 comment.
1561
1562 2002-08-01 Grace Sainsbury <graces@redhat.com>
1563
1564 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1565 to_insert_watchpoint, to_remove_watchpoint,
1566 to_stopped_by_watchpoint, to_stopped_data_address,
1567 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1568 target vecctor. Define their corresponding macros so they call
1569 them.
1570
1571 * target.c: Add default and debug versions of for
1572 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1573 to_insert_watchpoint, to_remove_watchpoint,
1574 to_stopped_by_watchpoint, to_stopped_data_address,
1575 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1576
1577 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1578
1579 * mips-tdep.c (mips_register_virtual_type): New function.
1580 (mips_gdbarch_init): Register mips_register_virtual_type()
1581 with gdbarch machinery.
1582 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1583 this file instead of tm-bigmips.h.
1584 (MIPS_REGSIZE): Delete this macro.
1585 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1586 multiarch version in mips-tdep.c will be found.
1587
1588 2002-08-01 Andrew Cagney <cagney@redhat.com>
1589
1590 * NEWS: Menion that CHILL has been made obsolete.
1591
1592 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1593 * stabsread.c (read_range_type): Ditto.
1594 * gdbtypes.h: Ditto.
1595 * language.c (binop_type_check): Ditto.
1596 (binop_result_type): Ditto.
1597 (integral_type): Ditto.
1598 (character_type): Ditto.
1599 (string_type): Ditto.
1600 (boolean_type): Ditto.
1601 (structured_type): Ditto.
1602 (lang_bool_type): Ditto.
1603 (binop_type_check): Ditto.
1604 * language.h (_LANG_chill): Ditto.
1605 * dwarfread.c (set_cu_language): Ditto.
1606 * dwarfread.c (CHILL_PRODUCER): Ditto.
1607 * dwarfread.c (handle_producer): Ditto.
1608 * expression.h (enum exp_opcode): Ditto.
1609 * eval.c: Ditto for comments.
1610 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1611 * expprint.c (print_subexp): Ditto.
1612 (print_subexp): Ditto.
1613 * valops.c (value_cast): Ditto.
1614 (search_struct_field): Ditto.
1615 * value.h (COERCE_VARYING_ARRAY): Ditto.
1616 * symfile.c (init_filename_language_table): Ditto.
1617 (add_psymbol_with_dem_name_to_list): Ditto.
1618 * valarith.c (value_binop): Ditto.
1619 (value_neg): Ditto.
1620 * valops.c (value_slice): Ditto.
1621 * symtab.h (union language_specific): Ditto.
1622 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1623 (SYMBOL_DEMANGLED_NAME): Ditto.
1624 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1625 * defs.h (enum language): Ditto.
1626 * symtab.c (got_symtab): Ditto.
1627 * utils.c (fprintf_symbol_filtered): Ditto.
1628
1629 * ch-typeprint.c: Make file obsolete.
1630 * ch-valprint.c: Make file obsolete.
1631 * ch-lang.h: Make file obsolete.
1632 * ch-exp.c: Make file obsolete.
1633 * ch-lang.c: Make file obsolete.
1634
1635 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1636 CHILL_LIB.
1637 (TARGET_FLAGS_TO_PASS): Ditto.
1638 (CHILLFLAGS): Obsolete.
1639 (CHILL): Obsolete.
1640 (CHILL_FOR_TARGET): Obsolete.
1641 (CHILL_LIB): Obsolete.
1642 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1643 ch-valprint.c.
1644 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1645 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1646 ch-lang.o.
1647 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1648 targets.
1649
1650 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1651
1652 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1653 This does not change anything at the moment, but will be helpful
1654 later when full Ada support is integrated.
1655
1656 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1657
1658 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1659 help message.
1660
1661 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1662
1663 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1664 and save it in a local variable. Use variable in later test.
1665
1666 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1667
1668 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1669 test. (Thanks to Daniel Jacobowitz.)
1670
1671 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1672
1673 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1674 (mips_abi_strings): Add "n64".
1675 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1676
1677 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1678
1679 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1680 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1681
1682 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1683
1684 * utils.c (host_pointer_to_address, address_to_host_pointer):
1685 Use gdb_assert() instead of explicit call to internal_error().
1686
1687 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1688
1689 * Makefile.in (rs6000-nat.o): Update dependencies.
1690
1691 From Nicholas Duffek:
1692 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1693 (aix-thread.o): New rule.
1694 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1695 * config/powerpc/aix432.mh: New file.
1696
1697 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1698
1699 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1700 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1701 (fetch_core_registers, ppc_linux_supply_gregset)
1702 (ppc_linux_supply_fpregset): New functions.
1703 (ppc_linux_regset_core_fns): New.
1704 (_initialize_ppc_linux_tdep): Call add_core_fns.
1705 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1706 and ppc_linux_supply_gregset.
1707 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1708 (supply_fpregset): Call ppc_linux_supply_fpregset.
1709 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1710 corelow.o.
1711 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1712
1713 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1714
1715 * symtab.c (lookup_symbol): Demangle before lowercasing.
1716
1717 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1718
1719 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1720 declaration.
1721 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1722 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1723 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1724 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1725 "gdb_string.h".
1726 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1727 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1728 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1729 (avr-tdep.o, mon960-rom.o): Ditto.
1730 (aout_stabs_gnu_h): Define.
1731 (symtab_h): Remove $(gdb_obstack_h).
1732
1733 2002-07-30 Jim Blandy <jimb@redhat.com>
1734
1735 Patch from David Carlton <carlton@math.stanford.edu>:
1736 * gdbinit.in: Move the `dir' commands that add GDB's own source
1737 directory to the search path to the end, so that the `gdb' source
1738 directory will be searched first.
1739
1740 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1741
1742 * gdb_obstack.h: New file.
1743 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1744 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1745 * objfiles.h: Include "gdb_obstack.h".
1746 * Makefile.in (gdb_obstack_h): Define.
1747 (symtab_h): Add $(gdb_obstack_h).
1748 (objfiles_h): Add $(gdb_obstack_h).
1749
1750 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1751 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1752 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1753 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1754 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1755 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1756 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1757 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1758
1759 * Makefile.in (bcache.o): Update dependencies.
1760 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1761 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1762 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1763 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1764 (stabsread.o, symfile.o, symmisc.o): Ditto.
1765 (symtab.o, typeprint.o, macroexp.o): Ditto.
1766 (macrotab.o, mdebugread.o): Ditto.
1767 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1768 (coff_ecoff_h, aout_aout64_h): Define.
1769 (aout_stabs_gnu_h, libaout_h): Define.
1770
1771 2002-07-29 Andrew Cagney <cagney@redhat.com>
1772
1773 * regcache.c (struct regcache_descr): Rename nr_registers to
1774 nr_cooked_registers. Revise comments describing the structure
1775 member fields.
1776 (init_regcache_descr): Update.
1777 (init_legacy_regcache_descr): Update.
1778 (read_register_gen, write_register_gen): When a cooked register in
1779 the raw register range, directly access the value from the raw
1780 register cache.
1781
1782 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1783
1784 * z8k-tdep.c: Do not include "obstack.h".
1785 * h8300-tdep.c, h8500-tdep.c: Ditto.
1786 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1787 * valprint.c, v850-tdep.c: Ditto.
1788 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1789 * mn10200-tdep.c: Ditto.
1790
1791 * Makefile.in (z8k-tdep.o): Update dependencies.
1792 (m68hc11-tdep.o, valprint.o): Ditto.
1793 (v850-tdep.o, d10v-tdep.o): Ditto.
1794 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1795 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1796 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1797 (sh_opc_h, gdb_sim_sh_h): Define.
1798 (elf_sh_h, elf_bfd_h): Define.
1799 (opcode_m68hc11_h): Define.
1800 (OPCODES_SRC, OPCODES_DIR): define.
1801 (OPCODES): Use $(OPCODES_DIR).
1802 (gdb_sim_d10v_h): Rename sim_d10v_h.
1803 (gdb_sim_arm_h): Rename sim_arm_h.
1804
1805 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1806
1807 * utils.c (host_pointer_to_address, address_to_host_pointer):
1808 Change internal_error() message to indicate function responsible
1809 for the error.
1810
1811 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1812
1813 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1814 calls to local_hex_string_custom().
1815
1816 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1817
1818 * irix5-nat.c: Move IRIX shared library support from here...
1819 * solib-irix.c: ...to here. Revised substantially to work with
1820 generic solib framework.
1821
1822 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1823 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1824 * mips-irix-tdep.c: New file.
1825
1826 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1827 (mips-irix-tdep.o, solib-irix.o): New rules.
1828 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1829 solib-irix.o.
1830 * config/mips/irix6.mt (TDEPFILES): Likewise.
1831 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1832
1833 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1834
1835 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1836 disabled (via ``#if 0'') includes.
1837
1838 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1839
1840 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1841 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1842 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1843 Add support for the fpscr register.
1844 * rs6000-nat.c (regmap, fetch_inferior_registers)
1845 (store_inferior_registers, fetch_core_registers): Likewise.
1846
1847 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1848
1849 * rs6000-nat.c (language.h): Include.
1850 (special_regs): Delete this array.
1851 (regmap): New function.
1852 (fetch_register, store_register): Use regmap() to map gdb
1853 register numbers to ptrace register numbers. Also, use
1854 outputs from regmap() to make decisions regarding type of
1855 ptrace() call to make. In particular, don't compare against
1856 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1857 (fetch_inferior_registers, store_inferior_registers): Where
1858 possible, obtain register numbers from tdep struct. Don't
1859 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1860 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1861 (LAST_UISA_SP_REGNUM): Delete.
1862
1863 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1864
1865 * rs6000-nat.c (ppc-tdep.h): Include.
1866 (fetch_registers, store_register, fetch_core_registers): Don't
1867 access registers[] directly. Instead, use supply_register() or
1868 regcache_collect() as appropriate.
1869 (find_toc_address): Format hex address with local_hex_string().
1870
1871 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1872
1873 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1874 bfd/elf32-frv.c.
1875
1876 2002-07-24 Tom Tromey <tromey@redhat.com>
1877
1878 * jv-exp.y: Marked all strings with _().
1879 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1880 internal_error.
1881 (MethodInvocation, CastExpression, parse_number, yyerror,
1882 java_type_from_name, push_expression_name, yylex): Typo fixes.
1883
1884 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1885
1886 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1887 (tee_file_flush, tee_file_write, tee_file_fputs)
1888 (tee_file_isatty): New.
1889 * ui-file.h (tee_file_new): Add prototype.
1890
1891 2002-07-24 Aidan Skinner <aidan@velvet.net>
1892
1893 * ada-lang.c: Change k&r style function definitions to prototyped
1894 form.
1895 * ada-typeprint.c: Change k&r style function definitions to prototyped
1896 form.
1897 * ada-valprint.c: Change k&r style function definitions to prototyped
1898 form.
1899
1900 2002-07-24 Andrew Cagney <cagney@redhat.com>
1901
1902 * README: Remove reference to remote-bug.
1903 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1904 remote-bug.c.
1905 (m88k-nat.o): Delete rule.
1906 (m88k-tdep.o): Delete rule.
1907 (remote-bug.o): Delete rule.
1908 * MAINTAINERS: Mark as obsolete.
1909 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1910 * m88k-tdep.c: Make file obsolete.
1911 * config/m88k/m88k.mh: Ditto.
1912 * config/m88k/delta88v4.mh: Ditto.
1913 * config/m88k/delta88v4.mt: Ditto.
1914 * config/m88k/delta88.mt: Ditto.
1915 * config/m88k/delta88.mh: Ditto.
1916 * remote-bug.c: Ditto.
1917 * config/m88k/tm-delta88.h: Ditto.
1918 * config/m88k/nm-delta88v4.h: Ditto.
1919 * config/m88k/xm-delta88.h: Ditto.
1920 * config/m88k/xm-dgux.h: Ditto.
1921 * config/m88k/tm-m88k.h: Ditto.
1922 * config/m88k/nm-m88k.h: Ditto.
1923 * config/m88k/tm-delta88v4.h: Ditto.
1924 * m88k-nat.c: Ditto.
1925 * cxux-nat.c: Ditto.
1926 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1927 and m88*-*-* obsolete.
1928 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1929 m88*-*-* obsolete.
1930
1931 2002-07-24 Andrew Cagney <cagney@redhat.com>
1932
1933 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1934 constant. Same for local pointer variables.
1935 (extract_signed_integer): Ditto.
1936 * defs.h (extract_unsigned_integer): Update.
1937 (extract_signed_integer): Update.
1938
1939 2002-07-24 Andrew Cagney <cagney@redhat.com>
1940
1941 * regcache.c (regcache_raw_write): Change buf parameter to a
1942 constant void pointer.
1943 (regcache_raw_read): Change buf parameter to a void pointer.
1944 (legacy_write_register_gen): Change myaddr parameter a constant
1945 void pointer.
1946 (supply_register): Change val parameter to a const void pointer.
1947 * regcache.h (regcache_raw_write): Update declaration.
1948 (regcache_raw_read): Update declaration.
1949 (supply_register): Update declaration.
1950
1951 2002-07-24 Tom Tromey <tromey@redhat.com>
1952
1953 * defs.h (gdb_readline_wrapper): Declare.
1954 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1955 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1956 * top.c (gdb_readline_wrapper): New function.
1957 (command_line_input): Use it.
1958
1959 2002-07-24 Andrew Cagney <cagney@redhat.com>
1960
1961 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1962 regcache_read and regcache_write.
1963 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1964 * regcache.c: Update.
1965 * sh-tdep.c (sh64_push_arguments): Update comment.
1966 (sh_pseudo_register_read): Update.
1967 (sh_pseudo_register_write): Update.
1968 (sh4_register_read): Update.
1969 (sh4_register_write): Update.
1970 (sh64_pseudo_register_read): Update.
1971 (sh64_pseudo_register_write): Update.
1972 (sh64_register_read): Update.
1973 (sh64_register_write): Update.
1974 * i386-tdep.c (i386_extract_return_value): Update.
1975 (i386_extract_struct_value_address): Update.
1976 (i386_extract_return_value): Update.
1977 * blockframe.c (generic_read_register_dummy): Update.
1978 (generic_call_dummy_register_unwind): Update
1979 * infrun.c (write_inferior_status_register): Update.
1980
1981 2002-07-23 Jim Blandy <jimb@redhat.com>
1982
1983 * parser-defs.h (expression_context_pc): Make this extern.
1984 (Thanks to Michael Snyder.)
1985
1986 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1987
1988 GDB 5.2.1 released from 5.2 branch.
1989 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1990 * README: Update to mention 5.2.1.
1991
1992 2002-07-23 Mark Salter <msalter@redhat.com>
1993
1994 * remote.c (remote_read_bytes): Fix check for error.
1995
1996 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1997
1998 * aix-thread.c (language.h): Include.
1999 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2000 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2001 Print newlines at end of debug messages.
2002 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2003 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2004
2005 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2006
2007 * aix-thread.c (ppc-tdep.h): Include.
2008 (special_register_p): New function.
2009 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2010 (store_regs_user_thread): Use register number information from
2011 gdbarch_tdep struct instead of hardcoded offsets relative to
2012 FIRST_UISA_SP_REGNUM.
2013 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2014 special_register_p() instead of using FPLAST_REGNUM and
2015 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2016 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2017 will be MQ's register number.
2018
2019 2002-07-22 Michael Snyder <msnyder@redhat.com>
2020
2021 * aix-thread.c (ops): Rename to aix_thread_ops.
2022 (base_ops): Rename to base_target.
2023 (ops_attach): Rename to aix_thread_attach.
2024 (ops_detach): Rename to aix_thread_detach.
2025 (ops_resume): Rename to aix_thread_detach.
2026 (ops_wait): Rename to aix_thread_wait.
2027 (ops_kill): Rename to aix_thread_kill.
2028 (init_ops): Rename to init_aix_thread_ops.
2029 (ops_fetch_register): Rename to aix_thread_fetch_register.
2030 (ops_store_register): Rename to aix_thread_store_register.
2031 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2032 (ops_thread_alive): Rename to aix_thread_thread_alive.
2033 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2034 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2035 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2036 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2037 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2038 (store_regs_lib): Rename to store_regs_user_thread.
2039 (store_regs_kern): Rename to store_regs_kernel_thread.
2040
2041 2002-07-22 Michael Snyder <msnyder@redhat.com>
2042
2043 * aix-thread.c (ops_prepare_to_store): Eliminate.
2044 (init_ops): Don't initialize ops.prepare_to_store.
2045 (store_regs_kern): Pre-fetch register buffers from child,
2046 because some registers may not be in the cache. Copy
2047 regs from register cache only if they are cached.
2048 (store_regs_lib): Copy regs from register cache only
2049 if they are cached.
2050 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2051 fill_gprs64): Ditto.
2052
2053 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2054
2055 * aix-thread.c (gdb_assert.h): Include.
2056 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2057 register sizes (from register cache) match size of buffer holding
2058 register data.
2059 (fill_sprs32): Change parameter types to match those in the ptrace()
2060 buffer.
2061 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2062 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2063
2064 2002-07-22 Michael Snyder <msnyder@redhat.com>
2065
2066 * aix-thread.c (supply_sprs64): Cosmetic change.
2067 (supply_sprs32): Cosmetic change.
2068 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2069 (fill_sprs64): Use regcache_collect instead of read_register.
2070 (store_regs_lib): Use regcache_collect instead of
2071 read_register. Use fill_sprs32 instead of fill_sprs64,
2072 if debugging a 32-bit architecture.
2073 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2074 out of the register cache, instead of passing a pointer into
2075 the register cache directly to ptrace. Use regcache_collect
2076 insteaad of read_register.
2077 (ops_prepare_to_store): Use target_read_registers instead
2078 of read_register_bytes.
2079
2080 2002-07-20 Aidan Skinner <aidan@velvet.net>
2081
2082 * MAINTAINERS: Add self under write after approval.
2083
2084 2002-07-20 Aidan Skinner <aidan@velvet.net>
2085
2086 * ada-tasks.c: Change k&r style function definitions to prototyped
2087 form.
2088
2089 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2090
2091 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2092 * x86-64-tdep.c: Include "objfiles.h".
2093 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2094 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2095
2096 2002-07-17 Michal Ludvig <michal@suse.cz>
2097
2098 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2099 (update_context): Initialise cfa variable.
2100
2101 2002-07-17 Michael Snyder <msnyder@redhat.com>
2102
2103 * aix-thread.c: Shorten some long lines.
2104 Bring comments into line with code spec.
2105
2106 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2107
2108 * infrun.c: Re-indent using gdb_indent.sh.
2109
2110 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2111
2112 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2113 Leave the indentation temporarily untouched, to minimize the diffs.
2114
2115 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2116
2117 * stabsread.c: Make os9k sections of the code obsolete,
2118 for real this time.
2119 * stabsread.h: Make os9k sections of the code obsolete.
2120
2121 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2122
2123 * linux-low.c (regsets_store_inferior_registers): Add free()
2124 at the end of a loop to prevent memory leak.
2125 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2126 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2127 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2128 line a comment.
2129 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2130
2131 2002-07-17 Jim Blandy <jimb@redhat.com>
2132
2133 * macrocmd.c (info_macro_command): Remove newline from error
2134 message.
2135
2136 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2137
2138 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2139 (sh_gdbarch_init): Use it for sh-dsp.
2140
2141 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2142
2143 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2144 64-bit DWARF2 format.
2145
2146 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2147
2148 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2149 <sys/proc.h> when not available.
2150
2151 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2152
2153 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2154 * stabsread.c: Make os9k sections of the code obsolete.
2155 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2156 * config/i386/i386os9k.mt: Make file obsolete.
2157 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2158 (COMMON_OBS): Remove os9kread.o
2159 (SFILES): Remove os9kread.c.
2160 (os9kread.o, remote-os9k.o): Make target obsolete.
2161 * remote-os9k.c: Make file obsolete.
2162 * os9kread.c: Make file obsolete.
2163 * Makefile.in
2164
2165 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2166
2167 * NEWS: Mention that the FR30 has been made obsolete.
2168 * fr30-tdep.c: Make file obsolete.
2169 * config/fr30/tm-fr30.h: Ditto.
2170 * config/fr30/fr30.mt: Ditto.
2171 * configure.tgt: Make fr30-*-elf obsolete.
2172 * MAINTAINERS: Make fr30-elf obsolete.
2173
2174 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2175
2176 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2177 found is not inside a section.
2178
2179 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2180
2181 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2182 strerror().
2183 (pdc_realloc): Use xrealloc() instead of realloc().
2184
2185 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2186
2187 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2188 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2189 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2190 macros.
2191
2192 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2193
2194 * aix-thread.c (ptrace_check): Eliminate goto.
2195 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2196 problem.
2197
2198 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2199
2200 * aix-thread.c (gdbcmd.h): Include.
2201 (DEBUG, DBG, DBG2, dbg): Eliminate.
2202 (debug_aix_thread): New static global.
2203 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2204 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2205 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2206 invocations to DBG and DBG2 macros to test against
2207 ``debug_aix_thread'' and call fprintf_unfiltered().
2208 (_initialize_aix_thread): Add new command "set debug aix-thread".
2209
2210 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2211
2212 From Gerhard Tonn <TON@de.ibm.com>:
2213 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2214 instead of supply_register.
2215
2216 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2217
2218 * dwarf2cfi.c: Include "gdb_assert.h".
2219 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2220 non-NULL.
2221 (update_context): Do not use __func__. Add missing ``break''.
2222 (update_context): Do not use __func__.
2223
2224 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2225
2226 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2227 and its setting. Set gdbarch instruction printing functions
2228 directly. For non-rs6000 case use new function
2229 gdb_print_insn_powerpc.
2230 (gdb_print_insn_powerpc): New function.
2231
2232 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2233
2234 * NEWS: Mention that the d30v has been marked obsolete.
2235 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2236 * configure.tgt: Mark d30v-*-* as obsolete.
2237 * d30v-tdep.c: Mark file as obsolete.
2238 * config/d30v/d30v.mt: Ditto.
2239 * config/d30v/tm-d30v.h: Ditto.
2240
2241 2002-07-13 Aidan Skinner <aidan@velvet.net>
2242
2243 * ada-tasks.c (add_task_entry): replace calls to
2244 malloc() with xmalloc
2245 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2246
2247 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2248 ada_finish_decode_line_1, all_sals_for_line
2249 ada_breakpoint_rewrite): replace calls to free() with xfree()
2250
2251 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2252
2253 From Nicholas Duffek (with minor changes by Martin Hunt,
2254 Louis Hamilton, and Kevin Buettner):
2255 * aix-thread.c: New file.
2256
2257 2002-07-12 Petr Sorfa <petrs@caldera.com>
2258
2259 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2260 complaint for invalid attribute class or form.
2261 (read_func_scope): DW_AT_frame_base
2262 better handling of DW_AT_block*.
2263 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2264 better handling of DW_AT_block*.
2265 (read_common_block): DW_AT_location
2266 better handling of DW_AT_block*.
2267 (read_partial_die): DW_AT_location better handling
2268 of DW_AT_block*.
2269 (new_symbol): DW_AT_external better handling of
2270 DW_AT_block*. Proper initialization of variable
2271 "addr".
2272 (attr_form_is_block): New function that returns true
2273 if the attribute's form is of DW_FORM_block*.
2274
2275 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2276
2277 * valops.c (find_method_list): Remove comment about
2278 removed STATIC_MEMFUNCP argument.
2279 (value_find_oload_method_list): Likewise.
2280
2281 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2282
2283 From Nicholas Duffek:
2284 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2285 target_new_objfile_hook.
2286
2287 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2288
2289 From Nicholas Duffek:
2290 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2291 csect.
2292
2293 2002-07-12 Andrew Cagney <cagney@redhat.com>
2294
2295 * MAINTAINERS: Mention --enable-sim-build-warnings.
2296 (m68hc11-elf): Disable sim build warnings.
2297 (m32r-elf): Mark as broken obsolete candidate.
2298 (x86_64-linux-gnu): Mark as buildable with -Werror.
2299 (arm-elf): Change -w to ``,'' which enables warnings but not
2300 -Werror.
2301
2302 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2303
2304 * bcache.h: Update copyright.
2305 (struct bstring, struct bcache): Move definition to "bcache.c".
2306 Replaced by opaque declaration.
2307 (bcache_xfree): Replace free_bcache.
2308 (bcache_xmalloc, bcache_memory_used): Declare.
2309
2310 * bcache.c: Update copyright.
2311 (struct bstring, struct bcache): Moved to here from "bcache.h".
2312 Update comments.
2313 (bcache_xmalloc, bcache_memory_used): New functions.
2314 (bcache_xfree): Replace function free_bcache.
2315
2316 * Makefile.in (objfiles.o): Add $(bcache_h).
2317 (objfiles_h): Remove $(bcache_h).
2318 (symfile.o): Add $(bcache_h).
2319
2320 * symmisc.c: Update copyright.
2321 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2322 (print_objfile_statistics): Use bcache_memory_used.
2323
2324 * symfile.c: Include "bcache.h".
2325 (reread_symbols): Use bcache_xfree.
2326 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2327 (add_psymbol_to_list): Pass psymbol_cache by value.
2328 (add_psymbol_with_dem_name_to_list): Ditto.
2329
2330 * objfiles.h: Update copyright.
2331 (struct bcache): Declare opaque. Do not include "bcache.h".
2332 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2333 bcache'' pointers.
2334 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2335
2336 * objfiles.c: Include "bcache.h". Update copyright.
2337 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2338 macro_cache.
2339 (free_objfile): Use bcache_xfree.
2340
2341 2002-07-11 Grace Sainsbury <graces@redhat.com>
2342
2343 * monitor.c (monitor_fetch_register): Make name a constant.
2344 (monitor_store_register): Same.
2345
2346 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2347
2348 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2349 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2350 (finish_block) For non-function blocks, hash the symbol table. For
2351 function blocks, mark the symbol table as unhashed.
2352 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2353 (msymbol_hash_iw): Likewise.
2354 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2355 value.
2356 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2357 (lookup_minimal_symbol): Likewise for both.
2358 * symtab.h (struct block): Add `hashtable' flag. Comment the
2359 hashtable.
2360 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2361 (ALL_BLOCK_SYMBOLS): Update.
2362 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2363 (struct symbol): Add `hash_next' pointer.
2364 * symtab.c (lookup_block_symbol): Search using the hash table when
2365 possible.
2366 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2367 (search_symbols, find_addr_symbol): Likewise.
2368
2369 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2370 (read_dst_symtab): Likewise.
2371 * jv-lang.c (get_java_class_symtab): Likewise.
2372 * mdebugread.c: Include "gdb_assert.h".
2373 (shrink_block): Assert that the block being modified is not hashed.
2374 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2375 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2376 symbols.
2377 (dump_symtab): Recognize hashed blocks.
2378 * printcmd.c (print_frame_args): Assert that function blocks do not
2379 have hashed symbol tables.
2380 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2381 (fill_in_ada_prototype, debug_print_block): Likewise.
2382 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2383
2384 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2385
2386 * stack.c (print_frame): Use result of frame_address_in_block()
2387 instead of fi->pc when evaluating symbols.
2388 (backtrace_command_1): Ditto.
2389
2390 2002-07-11 Andrew Cagney <cagney@redhat.com>
2391
2392 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2393 Make static.
2394
2395 * arm-tdep.c (arm_register_name): Make return type constant.
2396
2397 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2398
2399 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2400 prototype.
2401 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2402 * s390-tdep.c (s390_fp_regnum): Ditto.
2403 (s390_read_fp): Ditto.
2404 (s390_pop_frame): Ditto.
2405 (_initialize_s390_tdep): Ditto.
2406 * remote.c (get_remote_state): Ditto.
2407 * procfs.c (mappingflags): Ditto.
2408 * memattr.c (_initialize_mem): Ditto.
2409 * mcore-tdep.c (mcore_pop_frame): Ditto.
2410 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2411 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2412 * language.c (set_case_str): Ditto.
2413 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2414 * frv-tdep.c (new_variant): Ditto.
2415 (frv_stopped_data_address): Ditto.
2416 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2417 (context_alloc): Ditto.
2418 (frame_state_alloc): Ditto.
2419 (unwind_tmp_obstack_init): Ditto.
2420 (unwind_tmp_obstack_free): Ditto.
2421 (cfi_read_fp): Ditto.
2422 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2423 (cris_pop_frame): Ditto.
2424 * c-lang.c (scanning_macro_expansion): Ditto.
2425 (finished_macro_expansion): Ditto.
2426 (c_preprocess_and_parse): Ditto.
2427 * gdbarch.sh: Ditto.
2428 * gdbarch.h, gdbarch.c: Regenerate.
2429 * config/mn10200/tm-mn10200.h: Adjust indentation.
2430 * target.c: Adjust indentation.
2431 * symtab.h: Adjust indentation.
2432 * stabsread.h: Adjust indentation.
2433 * remote-es.c: Adjust indentation.
2434 * os9kread.c: Adjust indentation.
2435
2436 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2437
2438 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2439 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2440
2441 2002-07-10 Grace Sainsbury <graces@redhat.com>
2442
2443 * NEWS: Mention m68k, mcore multi-arching.
2444 * MAINTAINERS: Change status of m68k, mcore to reflect
2445 multi-arching.
2446
2447 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2448
2449 * valops.c (find_overload_match): Free oload_syms.
2450
2451 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2452
2453 Define HAVE_SYS_PROC_H if sys/proc.h exists
2454 * configure.in: Add check for sys/proc.h
2455 * config.in: Regenerate.
2456 * configure: Regenerate.
2457
2458 2002-07-09 Grace Sainsbury <graces@redhat.com>
2459
2460 * config/m68k/tm-m68k.h: Remove macros wrapped in
2461 #if !GDB_MULTI_ARCH.
2462
2463 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2464
2465 * config.in, configure: Regenerate.
2466
2467 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2468
2469 * dwarf2cfi.c: Include "gcore.h".
2470 (execute_stack_op): Fix implementation of the
2471 DW_OP_deref and DW_OP_deref_size operators by letting do their
2472 lookup in the target.
2473
2474 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2475
2476 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2477 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2478 tdep->sc_sp_offset.
2479
2480 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2481
2482 Fix PR gdb/595, gdb/602
2483 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2484 Don't call value_cast, just read the vtable pointer; update comments
2485 to match.
2486
2487 2002-07-05 Grace Sainsbury <graces@redhat.com>
2488
2489 * config/mcore/tm-mcore.h: Remove file.
2490 * config/mcore/mcore.mt: Remove definition of TM_FILE
2491 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2492
2493 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2494
2495 * i386bsd-tdep.c: Include "gdb_string.h".
2496
2497 2002-07-04 Grace Sainsbury <graces@redhat.com>
2498
2499 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2500 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2501 mcore-tdep.
2502 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2503 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2504 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2505 (RETVAL_REGNUM): Move macros from tm-mcore.h
2506 (mcore_reg_struct_has_addr): New function.
2507 (mcore_gdbarch_init): Added initializations for the macros removed
2508 from tm-mcore.h.
2509
2510 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2511
2512 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2513 traditonal string branding within the ELF header.
2514
2515 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2516
2517 * symtab.c (remove_params): New function.
2518 (make_symbol_overload_list): Use it instead of cplus_demangle.
2519 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2520
2521 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2522
2523 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2524
2525 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2526 New variables.
2527 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2528 and tdep->sigtramp_end.
2529 * i386obsd-nat.c: New file.
2530 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2531
2532 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2533 Don't call get_current_frame().
2534
2535 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2536
2537 * i386-nat.c (child_post_startup_inferior): New function
2538 calling i386_cleanup_dregs if
2539 I386_USE_GENERIC_WATCHPOINTS is defined.
2540 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2541 conditional to acknowledge that i386-nat.c has its
2542 own child_post_startup_inferior function.
2543
2544 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2545
2546 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2547 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2548 instead of MAX_REGISTER_RAW_SIZE.
2549 (i386_extract_return_value, i386_extract_struct_value_address):
2550 Convert to use regcache.
2551 (i386_gdbarch_init): Set max_register_raw_size and
2552 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2553 Set extract_return_value and extract_struct_value_address instead
2554 of their deprecated variants.
2555
2556 Convert i386 target to generic dummy frames.
2557 * i386-tdep.c: Include "symfile.h".
2558 (i386_frameless_signal_p): Consider a function to be frameless if
2559 the pc points at the first instruction of the function.
2560 (i386_frame_chain): Handle (generic) call dummies.
2561 (i386_frame_saved_pc): Likewise.
2562 (i386_frame_init_saved_regs): Remove code dealing with call
2563 dummies on the stack.
2564 (i386_push_dummy_frame): Removed.
2565 (i386_call_dummy_words): Removed.
2566 (i386_fix_call_dummy): Removed.
2567 (i386_push_return_address): New function.
2568 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2569 parameter, and don't call get_current_frame.
2570 (i386_pop_frame): New function.
2571 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2572 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2573 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2574 call_dummy_length to 0, set call_dummy_words to NULL, set
2575 sizeof_call_dummy_words to 0, set fix_call_dummy to
2576 generic_fix_call_dummy, set pc_in_call_dummy to
2577 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2578 generic_push_dummy_frame, set push_return_address to
2579 i386_push_return_address and set frame_chain_valid to
2580 generic_file_frame_chain_valid.
2581
2582 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2583
2584 * gdbarch.sh (struct regcache): Add opaque declaration.
2585 (EXTRACT_RETURN_VALUE): New architecture method.
2586 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2587 * gdbarch.h, gdbarch.c: Regenerate.
2588 * arch-utils.c (legacy_extract_return_value): New function.
2589 * arch-utils.h (legacy_extract_return_value): Declare.
2590 * values.c (value_being_returned): Re-enable code handling
2591 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2592 deprecated_grub_regcache_for_registers call to block handling
2593 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2594 (EXTRACT_RETURN_VALUE): Do not define.
2595
2596 2002-07-03 Grace Sainsbury <graces@redhat.com>
2597
2598 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2599 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2600 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2601 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2602 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2603 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2604 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2605 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2606 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2607 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2608 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2609 argument so the function fits the prototype in the architecture
2610 vector.
2611 (mcore_pop_frame): Remove argument so the function fits the
2612 prototype. Use get_current_frame instead of the argument.
2613 (mcore_push_arguments): Change type of struct_return so the
2614 function can be used in the architecture vector.
2615 (mcore_store_struct_return): Add.
2616 (mcore_frame_init_saved_regs): Add.
2617 (mcore_gdbarch_init): Add function calls to replace the macros
2618 removed from tm-mcore.h
2619
2620 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2621
2622 * infcmd.c (print_return_value): Remove compatibility code calling
2623 deprecated_grub_regcache_for_registers.
2624
2625 * values.c: Include "regcache.h".
2626 (value_being_returned): Update. Use
2627 deprecated_grub_regcache_for_registers to extract the register
2628 buffer address.
2629 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2630 ``struct regcache''.
2631 * Makefile.in (values.o): Add dependency on $(regcache_h).
2632
2633 * inferior.h (run_stack_dummy): Change type of second parameter to
2634 a ``struct regcache''.
2635 * valops.c (hand_function_call): Change type of retbuf to ``struct
2636 regcache''. Allocate using regcache_xmalloc, clean using
2637 make_cleanup_regcache_xfree.
2638 * infcmd.c (run_stack_dummy): Update. Use
2639 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2640
2641 * regcache.c (do_regcache_xfree): New function.
2642 (make_cleanup_regcache_xfree): New function.
2643 * regcache.h (make_cleanup_regcache_xfree): Declare.
2644
2645 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2646
2647 * event-top.c (command_line_handler): Don't read past
2648 beginning of buffer.
2649
2650 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2651
2652 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2653 struct frame_id.
2654 (varobj_create): Store frame_id for root.
2655 (varobj_gen_name): Use xasprintf.
2656 (varobj_update): Save and restore frame using get_frame_id() and
2657 frame_find_by_id().
2658 (create_child): Use xasprintf.
2659 (new_root_variable): Initialize frame_id.
2660 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2661 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2662 to prevent memory leak.
2663
2664 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2665
2666 * valops.c (hand_function_call): Move declaration of retbuf to
2667 start of function, allocate using malloc, add a cleanup but before
2668 the inf_status cleanup, cleanup the buffer. Rename local variable
2669 old_chain to inf_status_cleanup.
2670
2671 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2672
2673 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2674
2675 * cli/cli-decode.c (cmd_func_p): New function.
2676 (cmd_func): New function.
2677
2678 * command.h: Add cmd_func() and cmd_func_p().
2679
2680 2002-07-03 Grace Sainsbury <graces@redhat.com>
2681
2682 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2683 (REGISTER_SIZE): Remove.
2684 (MAX_REGISTER_RAW_SIZE): Remove.
2685 (REGISTER_VIRTUAL_TYPE): Remove.
2686 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2687 (REGISTER_NAME): Remove.
2688 (USE_GENERIC_DUMMY_FRAMES): Remove.
2689 (CALL_DUMMY): Remove.
2690 (CALL_DUMMY_START_OFFSET): Remove.
2691 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2692 (CALL_DUMMY_LOCATION): Remove.
2693 (FIX_CALL_DUMMY): Remove.
2694 (CALL_DUMMY_ADDRESS): Remove.
2695 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2696 (SAVE_DUMMY_FRAME_TOS): Remove.
2697 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2698 (mcore_register_virtual_type): New function.
2699 (mcore_register_byte): New function.
2700 (mcore_register_size): New function.
2701 (mcore_register_name): New function.
2702 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2703 macros removed from tm-mcore.h.
2704 (mcore_dump_tdep): Add.
2705 (_initialize_mcore_tdep): Add gdbarch_register call.
2706
2707 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2708
2709 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2710 frameless_look_for_prologue, such that we actually call this
2711 function.
2712
2713 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2714
2715 * frame.h (frame_address_in_block): New function.
2716
2717 * blockframe.c (frame_address_in_block): New function extracted
2718 from get_frame_block().
2719 (get_frame_block): Use frame_address_in_block().
2720 (block_innermost_frame): Use frame_address_in_block() to match
2721 the frame pc address against the block boundaries rather than
2722 the frame pc directly. This prevents a failure when a frame pc
2723 is actually a return-address pointing immediately after the end
2724 of the given block.
2725
2726 2002-07-02 Grace Sainsbury <graces@redhat.com>
2727
2728 * MAINTAINERS: Add self under write after approval.
2729
2730 2002-07-02 Grace Sainsbury <graces@redhat.com>
2731
2732 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2733 used in architecture vector. The default is
2734 m68k_local_breakpoint_from_pc.
2735 (m68k_local_breakpoint_from_pc): Add.
2736 (enum): Add register numbers from tm-m68k.h.
2737 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2738 vector.
2739 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2740 GDB_MULTI_ARCH_PARTIAL.
2741 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2742 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2743 m68k-tdep.c.
2744 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2745 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2746 to enum in m68k-tdep.c
2747
2748 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2749
2750 * solib-osf.c (open_map): Compute the list of shared libraries
2751 loaded by the inferior, rather than the list of libraries loaded
2752 by GDB itself. Otherwise, GDB ends up reading the symbols from
2753 the wrong shared libraries...
2754
2755 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2756
2757 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2758 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2759 macros.
2760 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2761 Remove functions.
2762 (FRAMELESS_SIGNAL): Remove function.
2763 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2764 i386_linux_saved_pc_after_call): Removed.
2765 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2766 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2767 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2768
2769 * i386-tdep.c (i386_frameless_signal_p): New function.
2770 (i386_frame_chain): Deal with frameless signals.
2771 (i386_sigtramp_saved_sp): New function.
2772 (i386_frame_saved_pc): Deal with frameless signals.
2773 (i386_saved_pc_after_call): Make sure the correct value is
2774 returned just after entry into a sigtramp.
2775 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2776 i386fbsd4_sc_sp_offset): New variables.
2777 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2778 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2779 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2780 similiar to what we already did for sc_pc_offset.
2781 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2782 tdep->sc_sp_offset.
2783
2784 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2785
2786 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2787
2788 * config/i386/tm-x86-64linux.h: New.
2789 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2790 definitions.
2791 * config/i386/nm-x86-64.h: Rename to ...
2792 * config/i386/nm-x86-64linux.h: ... this one.
2793 * config/i386/x86-64linux.mh: Reflect the above change.
2794
2795 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2796
2797 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2798 with sigcontext_addr. Add sc_sp_offset.
2799 (i386bsd_sigtramp_saved_pc): Remove prototype.
2800 (i386bsd_sicontext_addr): Add prototype.
2801 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2802 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2803 (i386_svr4_sigtramp_saved_pc): Removed.
2804 (i386_svr4_sigcontext_addr): New function.
2805 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2806 Initialize tdep->sigcontext_addr instead. Initialize
2807 tdep->sc_pc_offset and tdep->sc_sp_offset.
2808 (i386_gdbarch_init): Likewise.
2809 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2810 any more.
2811 (i386bsd_sigtramp_saved_pc): Remove function.
2812 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2813 Initialize tdep->sigcontext_addr instead. Initialize
2814 tdep->sc_pc_offset.
2815 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2816 of tdep->sigtramp_saved_pc.
2817 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2818 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2819 instead.
2820
2821 * i386-tdep.c (i386_frameless_function_invocation,
2822 i386_frame_num_args, i386_frame_init_saved_regs,
2823 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2824 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2825 i386_extract_return_value, i386_store_return_value,
2826 i386_extract_struct_value_address, i386_register_virtual_type,
2827 i386_register_convertible, i386_register_convert_to_virtual,
2828 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2829 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2830 static.
2831
2832 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2833
2834 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2835
2836 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2837 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2838 this macro. Include "value.h".
2839
2840 2002-06-30 Aidan Skinner <aidan@velvet.net>
2841
2842 * ada-exp.tab.c: remove as it's a generated file
2843 * ada-lex.c: remove as it's a generated file
2844
2845 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2846
2847 * config/i386/tm-i386.h (struct frame_info, struct
2848 frame_saved_regs, struct value, struct type): Remove forward
2849 declarations.
2850
2851 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2852 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2853 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2854 (FILL_FPXREGSET): Define.
2855
2856 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2857
2858 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2859 i[3456]86-*-netbsd* case.
2860 * config/i386/tm-obsd.h: Removed.
2861 * config/i386/obsd.mt: Removed.
2862 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2863 core-aout.o.
2864 (MH_CFLAGS): Add -DYYDEBUG=0.
2865
2866 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2867 i386nbsd_sc_pc_offset on OpenBSD too.
2868
2869 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2870 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2871 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2872 define.
2873 * i386bsd-tdep.c: Include "arch-utils.h".
2874 (i386bsd_aout_in_solib_call_trampoline): New function.
2875 (i386bsd_init_abi): Set in_solib_call_trampoline to
2876 i386bsd_aout_in_solib_call_trampoline.
2877 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2878 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2879
2880 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2881
2882 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2883 (struct obstack, struct bcache): Add opaque declarations.
2884 * Makefile.in (macrotab_h): Update
2885
2886 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2887
2888 * blockframe.c (generic_find_dummy_frame): Change return type to
2889 ``struct regcache''.
2890 (struct dummy_frame): Replace field ``registers'' with regcache, a
2891 struct regcache object.
2892 (generic_find_dummy_frame): Update.
2893 (generic_push_dummy_frame): Update. Use regcache_xfree,
2894 regcache_xmalloc and regcache_cpy.
2895 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2896 regcache_xfree.
2897 (deprecated_generic_find_dummy_frame): Update.
2898 (generic_read_register_dummy): Update. Use
2899 regcache_read_as_address.
2900 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2901 (generic_get_saved_register): Update. Use regcache_read.
2902
2903 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2904
2905 * Makefile.in (objfiles_h): Add $(bcache_h).
2906 * objfiles.h: Include "bcache.h".
2907
2908 * Makefile.in (symtab_h): Remove $(bcache_h).
2909 * symtab.h: Do not include "bcache.h".
2910
2911 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2912
2913 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2914 generic_func_frame_chain_valid.
2915
2916 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2917
2918 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2919 * config/i386/tm-fbsd.h: Likewise.
2920
2921 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2922
2923 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2924 generic_unwind_get_saved_register.
2925
2926 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2927
2928 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2929 * regcache.c (supply_register): Add missing argument to
2930 register_buffer call.
2931
2932 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2933
2934 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2935 Solaris /bin/grep does not not like it. From Peter Schauer.
2936
2937 2002-06-26 Tom Tromey <tromey@redhat.com>
2938
2939 * command.h (add_setshow_cmd): Declare.
2940 (add_setshow_cmd_full): Declare.
2941 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2942 returns void. Use add_setshow_cmd_full.
2943 (add_setshow_cmd_full): New function.
2944 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2945 (add_setshow_boolean_cmd): Likewise.
2946
2947 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2948
2949 * config/vax/tm-vax.h: Protect from multiple inclusion.
2950 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2951 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2952 * config/vax/tm-vaxbsd.h: ...here. New file.
2953 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2954
2955 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2956
2957 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2958 (BELIEVE_PCC_PROMOTION): Remove.
2959 (AP_REGNUM): Move to...
2960 * config/vax/nm-vax.h: ...here.
2961 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2962 (vax_breakpoint_from_pc): New function.
2963 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2964 and gdbarch_believe_pcc_promotion.
2965
2966 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2967
2968 * Makefile.in (vax_tdep_h): Define.
2969 (vax-tdep.o): Use $(vax_tdep_h).
2970 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2971 (vax_dump_tdep): New function.
2972 (_initialize_vax_tdep): Register vax_dump_tdep.
2973 * vax-tdep.h: Include osabi.h.
2974 (struct gdbarch_tdep): New.
2975
2976 2002-06-26 Andrew Cagney <cagney@redhat.com>
2977
2978 * frame.h (deprecated_generic_find_dummy_frame): Rename
2979 generic_find_dummy_frame.
2980 * blockframe.c (generic_find_dummy_frame): Make static.
2981 (deprecated_generic_find_dummy_frame): New function.
2982 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2983 generic_find_dummy_frame with deprecated_find_dummy_frame.
2984 (sh64_nofp_frame_init_saved_regs): Ditto.
2985 (sh_fp_frame_init_saved_regs): Ditto.
2986 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2987 (s390_frame_chain): Ditto.
2988 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2989
2990 2002-06-26 Grace Sainsbury <graces@redhat.com>
2991
2992 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2993 gdbarch vector are at the top.
2994 (NUM_REGS): Remove.
2995 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2996 (FRAME_ARGS_ADDRESS): Remove.
2997 (FRAME_LOCALS_ADDRESS): Remove.
2998 (FRAME_NUM_ARGS): Remove.
2999 (FRAME_ARGS_SKIP): Remove.
3000 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3001 (m68k_gdbarch_init): Add gdbarch initializations for macros
3002 undefined in tm-m68k.h
3003
3004 2002-06-26 Grace Sainsbury <graces@redhat.com>
3005
3006 * monitor.h: Add the function regname to monitor_ops
3007 structure. This way NUM_REGS does not have to be a constant.
3008 * monitor.c (monitor_fetch_register): Added support for regname
3009 function. The function is called if the array regnames is NULL.
3010 (monitor_store_register): Same.
3011 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3012 regnames array.
3013 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3014 cpu32bug_cmds.regname to point to new function.
3015 * abug-rom.c (abug_regname): Same as above.
3016 (init_abug_cmds): Same.
3017 * dbug-rom.c (dbug_regname): Same as above.
3018 (init_dbug_cmds): Same.
3019 * remote-est.c (est_regname): Same.
3020 (init_est_cmds): Same.
3021 * rom68k-rom.c (rom68k_regname): Same.
3022 (init_rom68k_cmds): Same.
3023
3024 2002-06-25 Tom Tromey <tromey@redhat.com>
3025
3026 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3027
3028 2002-06-25 Andrew Cagney <cagney@redhat.com>
3029
3030 * infrun.c (stop_registers): Change variable's type to ``struct
3031 regcache'''.
3032 (xmalloc_inferior_status): Delete function.
3033 (free_inferior_status): Delete function.
3034 (normal_stop): Use regcache_cpy.
3035 (struct inferior_status): Change type of fields ``stop_registers''
3036 and ``registers'' to ``struct regcache''.
3037 (write_inferior_status_register): Use regcache_write.
3038 (save_inferior_status): Instead of calling
3039 xmalloc_inferior_status, allocate the inf_status buffer directly.
3040 Use regcache_dup_no_passthrough and regcache_dup to save the
3041 buffers.
3042 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3043 Replace the stop_registers regcache instead of overriding it. Use
3044 regcache_xfree. Instead of calling free_inferior_status, xfree
3045 the buffer directly.
3046 (discard_inferior_status): Use regcache_xfree. Instead of calling
3047 free_inferior_status, xfree the buffer directly.
3048 (build_infrun): Use regcache_xmalloc.
3049 (_initialize_infrun): Delete redundant call to build_infrun.
3050
3051 * Makefile.in (infcmd.o): Add $(regcache_h).
3052
3053 * infcmd.c: Include "regcache.h".
3054 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3055 obtain the address of `stop_registers' register buffer.
3056 (print_return_value): Ditto.
3057
3058 * inferior.h (struct regcache): Add opaque declaration.
3059 (stop_registers): Change variable's declared type to ``struct
3060 regcache''.
3061
3062 2002-06-24 Tom Tromey <tromey@redhat.com>
3063
3064 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3065 * target.c (initialize_targets): Fixed typo in
3066 trust-readonly-sections `show' documentation.
3067
3068 * main.c: Marked all strings with _().
3069
3070 2002-06-24 Don Howard <dhoward@redhat.com>
3071
3072 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3073 that means max CORE_ADDR+1.
3074 (lookup_mem_region): Ditto.
3075 (mem_info_command): Ditto.
3076
3077 2002-06-24 Grace Sainsbury <graces@redhat.com>
3078
3079 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3080 (REGISTER_BYTES_OK): Remove.
3081 (REGISTER_BYTES): Remove.
3082 (STORE_STRUCT_RETURN): Remove.
3083 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3084 (STORE_RETURN_VALUE): Remove.
3085 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3086 (FRAME_CHAIN): Remove.
3087 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3088 (FRAME_SAVED_PC): Remove.
3089 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3090 (m68k_store_struct_return): Add.
3091 (m68k_deprecated_extract_return_value): Add.
3092 (m68k_deprecated_extract_struct_value_address): Add.
3093 (m68k_store_return_value): Add.
3094 (m68k_frame_chain): Add.
3095 (m68k_frameless_function_invocation): Add.
3096 (m68k_frame_saved_pc): Add.
3097 (m68k_gdbarch_init): added set_gdbarch calls for new
3098 functions and deleted macros.
3099
3100 2002-06-23 Tom Tromey <tromey@redhat.com>
3101
3102 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3103 (ALLDEPFILES): Likewise.
3104 (udiheaders): Removed.
3105 (udip2soc.o): Likewise.
3106 (udi2go32.o): Likewise.
3107 (udr.o): Likewise.
3108 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3109
3110 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3111
3112 * infrun.c (_initialize_infrun): Delete unnecessary call to
3113 build_infrun.
3114
3115 * regcache.h: Update comments describing the regcache_cpy family
3116 of functions.
3117 (regcache_save, regcache_restore): Delete declaration.
3118 (regcache_save_no_passthrough): Delete declaration.
3119 (regcache_restore_no_passthrough): Delete declaration.
3120 * regcache.c (regcache_save): Delete function.
3121 (regcache_save_no_passthrough): Delete function.
3122 (regcache_restore): Delete function.
3123 (regcache_restore_no_passthrough): Delete function.
3124
3125 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3126
3127 * config/m68k/tm-m68k.h: Fix typo.
3128 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3129 (m68k_frame_init_saved_regs): Declare.
3130
3131 2002-06-21 Jim Blandy <jimb@redhat.com>
3132
3133 Remove some vestiges of Harris 88k support.
3134 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3135 register numbering quirk.
3136 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3137 odd symbols occurring in Harris 88k ELF targets.
3138
3139 2002-06-21 Tom Tromey <tromey@redhat.com>
3140
3141 * gdb_locale.h: New file.
3142 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3143 (defs_h): Added gdb_locale.h.
3144 * configure, config.in: Rebuilt.
3145 * configure.in (PACKAGE): Define.
3146 * defs.h: Include gdb_locale.h.
3147 * main.c (captured_main): Call setlocale, bindtextdomain,
3148 textdomain.
3149
3150 2002-06-21 Dave Brolley <brolley@redhat.com>
3151
3152 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3153 * config/frv/frv.mt: New file.
3154 * config/frv/tm-frv.h: New file.
3155 * configure.tgt: Support frv-*-*.
3156 * Makefile.in (frv-tdep.o): New target.
3157 * frv-tdep.c: New file.
3158 * NEWS: Mention frv.
3159
3160 2002-06-21 Dave Brolley <brolley@redhat.com>
3161
3162 * MAINTAINERS: Add self to "Write After Approval" list.
3163
3164 2002-06-21 Grace Sainsbury <graces@redhat.com>
3165
3166 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3167 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3168 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3169 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3170 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3171
3172 * m68k-tdep.c: Include arch-utils.h
3173 (m68k_register_raw_size): Add.
3174 (m68k_register_virtual_size): Add.
3175 (m68k_register_virtual_type): Add.
3176 (m68k_register_name): Add.
3177 (m68k_stack_align): Add.
3178 (m68k_register_byte): Add.
3179 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3180 tm-m68k.h.
3181
3182 2002-06-21 Grace Sainsbury <graces@redhat.com>
3183
3184 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3185 m68k_find_saved_regs.
3186 (m68k_pop_frame): Removed saved_regs structure, and replaced
3187 references to it with frame->saved_regs.
3188 (m68k_gdbarch_init): Added function calls to initialize the
3189 gdbarch structure.
3190 (m68k_fix_call_dummy): Add.
3191 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3192 (CALL_DUMMY): Remove.
3193 (CALL_DUMMY_LENGTH): Remove.
3194 (CALL_DUMMY_START_OFFSET): Remove.
3195 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3196 (FIX_CALL_DUMMY): Remove.
3197 (PUSH_DUMMY_FRAME): Remove.
3198 (POP_FRAME): Remove.
3199
3200 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3201
3202 * parse.c (parse_fprintf): New function used to avoid calls to
3203 fprintf in bison parser generated debug code.
3204 * parser-defs.h: Declaration of new parse_fprintf function.
3205 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3206 Set YYDEBUG to 1 by default.
3207 Set YYFPRINTF as parse_fprintf.
3208
3209 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3210
3211 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3212 encoding anymore.
3213 (pointer_encoding, enum ptr_encoding): New.
3214 (execute_cfa_program): Take care about pointer encoding.
3215 (dwarf2_build_frame_info): Only call parse_frame_info for
3216 .debug_frame and .eh_frame.
3217 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3218 fixed augmentation handling, added relative addressing,
3219 ignore duplicate FDEs. Added comments.
3220 * dwarf2cfi.c: Reindented.
3221
3222 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3223
3224 * event-top.c (command_handler): Don't use space_at_cmd_start
3225 unless there is sbrk() on the host. Assign time and space data
3226 to union fields of the appropriate length.
3227
3228 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3229
3230 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3231 x86_64_register_name. Return type changed to 'const char *'.
3232 (x86_64_register_name2nr): Rename to x86_64_register_number.
3233 (x86_64_gdbarch_init): Update to reflect the change.
3234 * x86-64-tdep.h: Ditto.
3235 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3236 (supply_fpregset): Ditto.
3237
3238 2002-06-19 Andrew Cagney <cagney@redhat.com>
3239
3240 * regcache.h: Update copyright.
3241 (struct regcache, struct gdbarch): Add opaque declarations.
3242 (current_regcache): Declare global variable.
3243 (regcache_read, regcache_write): Add gdbarch parameter.
3244 (regcache_save, regcache_save_no_passthrough)
3245 (regcache_restore, regcache_restore_no_passthrough)
3246 (regcache_dup, regcache_dup_no_passthrough)
3247 (regcache_cpy, regcache_cpy_no_passthrough)
3248 (deprecated_grub_regcache_for_registers)
3249 (deprecated_grub_regcache_for_register_valid)
3250 (regcache_valid_p): Add function declarations.
3251
3252 * regcache.c: Update copyright.
3253 (regcache_descr_handle): New global variable.
3254 (struct regcache_descr): Define.
3255 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3256 (regcache_descr, xfree_regcache_descr): New functions.
3257 (struct regcache): Define.
3258 (regcache_xmalloc, regcache_xfree): New functions.
3259 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3260 (regcache_dup, regcache_dup_no_passthrough): New functions.
3261 (regcache_valid_p, regcache_read_as_address): New functions.
3262 (deprecated_grub_regcache_for_registers): New function.
3263 (deprecated_grub_regcache_for_register_valid): New function.
3264 (current_regcache): New global variable.
3265 (register_buffer): Add regcache parameter. Update calls.
3266 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3267 (read_register_gen, write_register_gen): Update register_buffer
3268 call. Test for legacy_p instead of gdbarch_register_read_p or
3269 gdbarch_register_write_p.
3270 (regcache_collect): Update register_buffer call.
3271 (build_regcache): Rewrite. Use deprecated grub functions.
3272 (regcache_save, regcache_save_no_passthrough): New functions.
3273 (regcache_restore, regcache_restore_no_passthrough): New
3274 functions.
3275 (_initialize_regcache): Create the regcache_data_handle. Swap
3276 current_regcache global variable.
3277
3278 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3279 parameter to regcache_read and regcache_write calls.
3280 (sh4_register_read): Ditto.
3281 (sh64_pseudo_register_read): Ditto.
3282 (sh64_register_read): Ditto.
3283 (sh_pseudo_register_write): Ditto.
3284 (sh4_register_write): Ditto.
3285 (sh64_pseudo_register_write): Ditto.
3286 (sh64_register_write): Ditto.
3287
3288 * defs.h (XCALLOC): Define.
3289
3290 2002-06-19 Grace Sainsbury <graces@redhat.com>
3291
3292 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3293 * m68k-tdep.c (m68k_gdbarch_init): Added.
3294 (m68k_dump_tdep): Added.
3295
3296 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3297
3298 * ada-lang.c (fill_in_ada_prototype): Update comment.
3299
3300 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3303 MIPS_ABI_LAST.
3304 (mips_abi_string, mips_abi_strings): New.
3305 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3306 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3307 tdep->mips_abi_string. Honor mips_abi_string. Default to
3308 O32 if no ABI is found.
3309 (mips_dump_tdep): Use mips_abi_strings.
3310 (mips_abi_update): New function.
3311 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3312 ``set mips abi'' and ``show mips abi''. Check the size of
3313 mips_abi_strings.
3314
3315 2002-06-19 Andrew Cagney <cagney@redhat.com>
3316
3317 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3318 constant.
3319
3320 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3321
3322 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3323 current frame using only the first stack size adjustment. All
3324 subsequent size adjustments are not considered to be part of
3325 the "static" part of the current frame.
3326 Compute the address of the saved registers relative to the
3327 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3328 in use in this frame.
3329
3330 2002-06-18 Don Howard <dhoward@redhat.com>
3331
3332 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3333 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3334 suggesting this solution.
3335
3336 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3337
3338 * config/romp/xm-rtbsd.h: Delete file.
3339 * config/romp/rtbsd.mh: Delete file.
3340
3341 2002-06-18 Keith Seitz <keiths@redhat.com>
3342
3343 * breakpoint.c (condition_command): Post breakpoint_modify
3344 when a condition is added to an existing breakpoint.
3345 (commands_command): Likewise for commands.
3346 (set_ignore_count): Likewise for ignore counts.
3347 If no tty, do not simply return, still need to send event
3348 notification.
3349 (ignore_command): Only print a newline if the command came
3350 from a tty.
3351 Don't call breakpoints_changed, since this is now properly
3352 handled by set_ignore_count.
3353
3354 2002-06-18 Andrew Cagney <cagney@redhat.com>
3355
3356 * MAINTAINERS: Note that cris-elf target can be compiled with
3357 -Werror.
3358 * cris-tdep.c (cris_register_name): Make return type constant.
3359 (cris_breakpoint_from_pc): Ditto.
3360
3361 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3362
3363 * frame.h (struct frame_info): Change type of context to
3364 'struct context'.
3365
3366 2002-06-17 Andrew Cagney <cagney@redhat.com>
3367
3368 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3369 pointer.
3370 * gdbarch.h, gdbarch.c: Regenerate.
3371 * config/mips/tm-mips.h (mips_register_name): Update.
3372 * i386-tdep.h (i386_register_name): Update.
3373 * mips-tdep.c (mips_register_name): Update
3374 * alpha-tdep.c (alpha_register_name): Update.
3375 * arch-utils.c (legacy_register_name): Update.
3376 * arch-utils.h (legacy_register_name): Update.
3377 * avr-tdep.c (avr_register_name): Update.
3378 * ia64-tdep.c (ia64_register_name): Update.
3379 * i386-tdep.c (i386_register_name): Update.
3380 * sparc-tdep.c (sparc32_register_name): Update.
3381 (sparc64_register_name): Update.
3382 (sparclite_register_name): Update.
3383 (sparclet_register_name): Update.
3384 * sh-tdep.c (sh_generic_register_name): Update.
3385 (sh_sh_register_name): Update.
3386 (sh_sh3_register_name): Update.
3387 (sh_sh3e_register_name): Update.
3388 (sh_sh_dsp_register_name): Update.
3389 (sh_sh3_dsp_register_name): Update.
3390 (sh_sh4_register_name): Update.
3391 (sh_sh64_register_name): Update.
3392 * s390-tdep.c (s390_register_name): Update.
3393 * rs6000-tdep.c (rs6000_register_name): Update.
3394 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3395 (ns32k_register_name_32382): Update.
3396 * d10v-tdep.c (d10v_ts2_register_name): Update.
3397 (d10v_ts3_register_name): Update.
3398 * xstormy16-tdep.c (xstormy16_register_name): Update.
3399 * vax-tdep.c (vax_register_name): Update.
3400 * v850-tdep.c (v850_register_name): Update.
3401 * m68hc11-tdep.c (m68hc11_register_name): Update.
3402 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3403 (am33_register_name): Update.
3404
3405 2002-06-17 Grace Sainsbury <graces@redhat.com>
3406
3407 * m68k-tdep.c: Reindented.
3408
3409 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3410
3411 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3412 list of predefined types.
3413
3414 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3415
3416 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3417 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3418 REGISTER_CONVERT_TO_RAW): Remove defines.
3419 (i386_register_virtual_type, i386_register_convertible,
3420 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3421 Remove prototypes.
3422 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3423 macros mentioned above.
3424
3425 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3426 (i386lynx_saved_pc_after_call): Remove prototype.
3427 * i386ly-tdep.c: Include "i386-tdep.h".
3428 (i386lynx_saved_pc_after_call): Make static. Use
3429 read_memory_nobpt instead of read_memory. Use
3430 read_memory_unsigned_integer instead of read_memory_integer.
3431 (i386lynx_init_abi): New function.
3432 (i386lynx_coff_osabi_sniffer): New function.
3433 (_initialize_i386bsd_tdep): New function.
3434
3435 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3436 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3437 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3438 (i386_fix_call_dummy): Remove prototype.
3439 * i386-tdep.c (i386_call_dummy_words): New variable.
3440 (i386_gdbarch_init): Adjust for removal of the
3441 macros mentioned above.
3442
3443 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3444
3445 * command.h (add_setshow_auto_boolean_cmd): Replace
3446 add_set_auto_boolean_cmd.
3447 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3448 add_set_auto_boolean_cmd.
3449 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3450 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3451 mask-address'' command.
3452 (show_mask_address): Add cmd parameter.
3453 * remote.c (add_packet_config_cmd): Update. Change type of
3454 set_func and show_func to cmd_sfunc_ftype.
3455 (_initialize_remote): Update `set remote Z-packet'
3456 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3457 (show_remote_protocol_e_packet_cmd): Ditto.
3458 (show_remote_protocol_E_packet_cmd): Ditto.
3459 (show_remote_protocol_P_packet_cmd): Ditto.
3460 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3461 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3462 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3463 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3464 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3465 (show_remote_protocol_Z_packet_cmd): Ditto.
3466 (show_remote_protocol_binary_download_cmd): Ditto.
3467 (show_remote_cmd): Pass NULL to all of above.
3468
3469 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3470
3471 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3472 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3473 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3474 POP_FRAME): Remove defines.
3475 (i386_push_arguments, i386_store_struct_return,
3476 i386_extract_return_value, i386_store_return_value,
3477 i386_extract_struct_value_address, i386_push_dummy_frame,
3478 i386_pop_frame): Renove prototypes.
3479 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3480 macros mentioned above.
3481
3482 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3483
3484 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3485 add_set_boolean_cmd.
3486 (add_setshow_cmd): New function.
3487 * command.h (add_setshow_boolean_cmd): Replace
3488 add_set_boolean_cmd.
3489 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3490 and ``set rdiromatzero''.
3491 * maint.c (_initialize_maint_cmds): Update commented out code.
3492 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3493 * target.c (initialize_targets): Update `set
3494 trust-readonly-sections'.
3495 * remote.c (_initialize_remote): Update `set remotebreak'.
3496
3497 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3498
3499 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3500 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3501 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3502 fit into multi-arch framework.
3503 (i386_breakpoint_from_pc): New function.
3504 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3505 above.
3506
3507 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3508 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3509 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3510 (i386_frameless_function_invocation, i386_frame_num_args,
3511 i386_frame_init_saved_regs): Remove prototypes.
3512 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3513 macros mentioned above.
3514
3515 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3516
3517 * cli/cli-decode.c (set_cmd_cfunc): Update.
3518 (set_cmd_sfunc): Update.
3519 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3520 (set_cmd_sfunc, set_cmd_cfunc): Update.
3521 * cli/cli-decode.h: Update.
3522
3523 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3524
3525 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3526 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3527
3528 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3529
3530 * defs.h (auto_boolean): Declare enum.
3531 * command.h (cmd_auto_boolean): Delete enum.
3532 * mips-tdep.c (mask_address_var): Update.
3533 (mips_mask_address_p): Update.
3534 (show_mask_address): Update.
3535 * remote.c (struct packet_config): Update.
3536 (update_packet_config): Update.
3537 (show_packet_config_cmd): Update.
3538 (packet_ok): Update.
3539 (add_packet_config_cmd): Update.
3540 (_initialize_remote):
3541 * command.h: Update.
3542 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3543 (do_setshow_command): Update.
3544 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3545 * cli/cli-decode.h: Update.
3546
3547 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3548
3549 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3550 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3551 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3552 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3553 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3554 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3555
3556 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3557 list of DJGPP COFF targets.
3558
3559 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3560 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3561 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3562 (FP0_REGNUM): Remove define.
3563 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3564 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3565 (i386_register_virtual_size): Remove protoype.
3566 * i386-tdep.c (i386_register_virtual_size): Removed.
3567 (i386_extract_return_value, i386_store_return_value): Use
3568 FP0_REGNUM instead of NUM_FREGS to determine whether the
3569 floating-point registers are available.
3570 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3571 Adjust for removal of macros mentioned above.
3572
3573 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3574
3575 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3576 comments.
3577 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3578 Remove prototypes.
3579 (supply_gregset, fill_gregset): Remove use of register keyword and
3580 remove declaration for regmap. Use I386_NUM_GREGS instead of
3581 NUM_REGS and NUM_FREGS.
3582 (FPREGSET_FSAVE_OFFSET): Remove.
3583 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3584 NUM_FREGS to determine whether the floating-point registers are
3585 available.
3586
3587 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3588 gnu_store_registers): Replace usage of NUM_GREGS with
3589 I386_NUM_GREGS.
3590
3591 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3592 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3593 usage of NUM_GREGS with I386_NUM_GREGS.
3594
3595 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3596
3597 * i386bsd-nat.c: Include "i386-tdep.h".
3598 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3599 I386_NUM_GREGS.
3600
3601 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3602 and associated comment. They no longer make any sense, since we
3603 don't use this file anymore on Linux.
3604
3605 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3606 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3607 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3608 elements in these arrays.
3609 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3610 MAX_NUM_REGS.
3611
3612 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3613
3614 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3615 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3616
3617 2002-06-14 Andrew Cagney <cagney@redhat.com>
3618
3619 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3620 EXTRACT_RETURN_VALUE.
3621 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3622 EXTRACT_STRUCT_VALUE_ADDRESS.
3623 * gdbarch.h, gdbarch.c: Regenerate.
3624
3625 * values.c (value_being_returned): Handle
3626 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3627 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3628
3629 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3630 * arm-tdep.c (arm_gdbarch_init): Update.
3631 * avr-tdep.c (avr_gdbarch_init): Update.
3632 * cris-tdep.c (cris_gdbarch_init): Update.
3633 * d10v-tdep.c (d10v_gdbarch_init): Update.
3634 * ia64-tdep.c (ia64_gdbarch_init): Update.
3635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3637 * s390-tdep.c (s390_gdbarch_init): Update.
3638 * sh-tdep.c (sh_gdbarch_init): Update.
3639 * s390-tdep.c (s390_gdbarch_init): Update.
3640 * sparc-tdep.c (sparc_gdbarch_init): Update.
3641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3642 * v850-tdep.c (v850_gdbarch_init): Update.
3643 * vax-tdep.c (vax_gdbarch_init): Update.
3644 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3646
3647 * config/arc/tm-arc.h: Update.
3648 * config/d30v/tm-d30v.h: Update.
3649 * config/fr30/tm-fr30.h: Update.
3650 * config/h8300/tm-h8300.h: Update.
3651 * config/h8500/tm-h8500.h: Update.
3652 * config/i386/tm-i386.h: Update.
3653 * config/i386/tm-ptx.h: Update.
3654 * config/i386/tm-symmetry.h: Update.
3655 * config/i960/tm-i960.h: Update.
3656 * config/m32r/tm-m32r.h: Update.
3657 * config/m68k/tm-delta68.h: Update.
3658 * config/m68k/tm-linux.h: Update.
3659 * config/m68k/tm-m68k.h: Update.
3660 * config/m88k/tm-m88k.h: Update.
3661 * config/mcore/tm-mcore.h: Update.
3662 * config/mips/tm-mips.h: Update.
3663 * config/mn10200/tm-mn10200.h: Update.
3664 * config/pa/tm-hppa.h: Update.
3665 * config/pa/tm-hppa64.h: Update.
3666 * config/sparc/tm-sp64.h: Update.
3667 * config/sparc/tm-sparc.h: Update.
3668 * config/sparc/tm-sparclet.h: Update.
3669 * config/z8k/tm-z8k.h: Update.
3670
3671 2002-06-14 Andrew Cagney <cagney@redhat.com>
3672
3673 * Makefile.in (i386_linux_tdep_h): Define.
3674 (i386_tdep_h, i387_tdep_h): Define.
3675 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3676 $(i386_tdep_h) and $(i387_tdep_h).
3677 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3678
3679 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3680
3681 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3682 Already covered by the default.
3683
3684 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3685 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3686 (i386_gdbarch_init): Initialize long_double_format and long_double
3687 bit.
3688
3689 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3690 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3691 Move these to ...
3692 * config/i386/i386sol2.mh: ... here.
3693 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3694 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3695 (SIGCONTEXT_PC_OFFSET): Remove define.
3696 (IN_SIGTRAMP): Remove define.
3697 * i386-sol2-tdep.c: New file.
3698
3699 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3700 * config/i386/tm-i386nw.h: Removed.
3701
3702 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3703 USE_STRUCT_CONVENTION): Remove defines.
3704 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3705 (get_longjmp_target): Remove prototype.
3706 (IN_SIGTRAMP): Remove define.
3707 (i386bsd_in_sigtramp): Remove prototype.
3708 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3709 function. Update comment accordingly
3710 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3711 (FRAME_SAVED_PC): Remove define.
3712 (i386bsd_frame_saved_pc): Remove prototype.
3713 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3714 GET_LONGJMP_TARGET): Remove defines.
3715 (get_longjmp_target): Remove prototype.
3716 (IN_SIGTRAMP): Remove define.
3717 (i386bsd_in_sigtramp): Remove prototype.
3718 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3719 function. Update comment accordingly
3720 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3721 (FRAME_SAVED_PC): Remove define.
3722 (i386bsd_frame_saved_pc): Remove prototype.
3723 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3724 Remove prototype.
3725 (USE_STRUCT_CONVENTION): Remove prototype.
3726 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3727 declaration.
3728 (_initialize_i386bsd_nat): Revise logic to determine some
3729 constants at compile time when compiling a native GDB. Warn if
3730 things don't match up with what we expect.
3731 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3732 Remove variables.
3733 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3734 to use date stored in `struct gdbarch_tdep'.
3735 (i386bsd_sigcontext_offset): Remove varaible.
3736 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3737 stored in `struct gdbarch_tdep'.
3738 (i386bsd_frame_saved_pc): Make static.
3739 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3740 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3741 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3742 i386fbsd4_sc_pc_offset): New variables.
3743 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3744 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3745 functions.
3746 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3747 functions.
3748 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3749 Modify the value of i386fbsd_sigtramp_start and
3750 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3751 i386fbsd_sigtramp_end.
3752 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3753 function.
3754
3755 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3756 define to i386-linux-tdep.h.
3757 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3758 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3759 defines.
3760 (i386_linux_register_name, i386_linux_register_byte,
3761 i386_linux_register_raw_size): Remove prototypes.
3762 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3763 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3764 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3765 TARGET_WRITE_PC): Remove defines.
3766 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3767 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3768 i386_linux_write_pc): Remove prototypes.
3769 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3770 (get_longjmp_target): Remove prototype.
3771 * i386-linux-tdep.h: New file.
3772 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3773 * i386-linux-tdep.c: Include "i386-tdep.h" and
3774 "i386-linux-tdep.h".
3775 (i386_linux_register_name, i386_linux_register_byte,
3776 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3777 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3778 Make static.
3779 (i386_linux_init_abi): New function.
3780 (_initialize_i386_linux_tdep): New function.
3781
3782 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3783 (i386_saved_pc_after_call): Remove prototype.
3784 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3785 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3786 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3787 (i386_register_name, i386_stab_reg_to_regnum,
3788 i386_dwarf_reg_to_regnum): Remove prototypes.
3789 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3790 SIZEOF_SSE_REGS): Remove defines.
3791 (REGISTER_BYTES): Remove define.
3792 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3793 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3794 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3795 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3796 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3797 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3798 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3799 (get_longjmp_target): Remove prototype.
3800 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3801 (sigtramp_saved_pc): Remove define.
3802 (i386v4_sigtramp_saved_pc): Remove prototype.
3803 * config/i386/tm-go32.h (FRAME_CHAIN,
3804 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3805 (i386go32_frame_saved_pc): Remove prototype.
3806 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3807 (get_longjmp_target): Remove prototype.
3808 * i386-tdep.h: Include "osabi.h".
3809 (enum i386_abi): Removed.
3810 (enum struct_return): New enum.
3811 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3812 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3813 sc_pc_offset members.
3814 (i386_gdbarch_register_os_abi): Remove prototype.
3815 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3816 I386_SSE_NUM_REGS): New defines.
3817 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3818 I386_SSE_SIZEOF_REGS): New defines.
3819 (i386_register_name, i386_register_byte, i386_register_raw_size):
3820 New prototypes.
3821 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3822 (i386bsd_sigtramp_saved_pc): New prototype.
3823 * i386-tdep.c: Don't include "elf-bfd.h".
3824 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3825 i386_frame_chain, i386_saved_pc_after_call): Make static.
3826 (i386_frame_saved_pc): Rewrite to call architecture dependent
3827 function to deal with signal handlers. Make static.
3828 (i386go32_frame_saved_pc): Removed.
3829 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3830 Removed.
3831 (i386_get_longjmp_target): New function.
3832 (default_struct_convention, pcc_struct_convention,
3833 reg_struct_convention, valid_conventions, struct_convention): New
3834 variables.
3835 (i386_use_struct_convention): New function.
3836 (i386v4_sigtramp_saved_pc): Renamed to
3837 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3838 (i386_pc_in_sigtramp): New function.
3839 (i386_abi_names): Removed.
3840 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3841 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3842 Removed.
3843 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3844 i386_gdbarch_register_os_abi): Removed.
3845 (struct i386_abi_handler): Removed.
3846 (i386_abi_handler_list): Removed.
3847 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3848 functions.
3849 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3850 i386_nw_init_abi): New functions.
3851 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3852 Use set_gdbarch_xxx() calls instead of relying on macros for a
3853 number of calls.
3854 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3855 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3856 Register the various architecture variants defined in this file.
3857
3858 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3861 (struct main_type): Remove arg_types member. Update comments for
3862 struct field.
3863 (TYPE_ARG_TYPES): Remove.
3864 (TYPE_FN_FIELD_ARGS): Update.
3865 (smash_to_method_type): Update prototype.
3866
3867 * c-typeprint.c (cp_type_print_method_args): Take method type
3868 instead of argument list. Use new argument layout. Simplify.
3869 (c_type_print_args): Use new argument layout. Simplify.
3870 (c_type_print_base): Update call to cp_type_print_method_args.
3871 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3872 argument; use die->type instead. Update call to
3873 smash_to_method_type.
3874 (read_structure_scope): Update call to dwarf2_add_member_fn.
3875 * gdbtypes.c (allocate_stub_method): Update comment.
3876 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3877 Use new argument layout.
3878 (check_stub_method): Use new argument layout. Don't count
3879 void as an argument.
3880 (print_arg_types): Update comments. Use new argument layout.
3881 (recursive_dump_type): Don't print arg_types member.
3882 * hpread.c (hpread_read_struct_type): Use new argument layout.
3883 (fixup_class_method_type): Likewise.
3884 (hpread_type_lookup): Likewise.
3885 * stabsread.c (read_type): Update calls to read_args and
3886 smash_to_method_type.
3887 (read_args): Use new argument layout. Simplify.
3888 * valops.c (typecmp): Use new argument layout. Update parameters
3889 and comments. Simplify.
3890 (hand_function_call): Use new argument layout.
3891 (search_struct_method): Update call to typecmp.
3892 (find_overload_match): Use new argument layout.
3893
3894 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3895
3896 * NEWS: Mention multithreaded debug support for gdbserver.
3897
3898 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3899
3900 * MAINTAINERS: Mention NEWS.
3901
3902 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3903
3904 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3905 (struct mips_objfile_private, compare_pdr_entries): New.
3906 (non_heuristic_proc_desc): Read the ".pdr" section if it
3907 is present.
3908
3909 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3910
3911 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3912 (arm_debug): New static variable.
3913 (_initialize_arm_tdep): Add ``set debug arm'' command.
3914
3915 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3916
3917 * Makefile.in (sim_arm_h): Define.
3918 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3919 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3920 (arm_register_sim_regno): New function, map an internal REGNUM
3921 onto a simulator register number.
3922 (arm_gdbarch_init): Set register_sim_regno.
3923
3924 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3925
3926 * MAINTAINERS: Add self.
3927
3928 2002-06-11 Jim Blandy <jimb@redhat.com>
3929
3930 * source.c (source_info): Mention whether the symtab has
3931 information about preprocessor macros.
3932
3933 Call the command `info macro', not `show macro'.
3934 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3935 Fix error message.
3936 (_initialize_macrocmd): Register `info_macro_command' in
3937 `infolist', not `showlist'.
3938
3939 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3940
3941 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3942 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3943 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3944 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3945 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3946 unconditionally.
3947 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3948 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3949 (_initialize_mips_tdep): Remove dead code.
3950 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3951 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3952 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3953 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3954 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3955 MIPS_LAST_FP_ARG_REGNUM): Remove.
3956
3957 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3958
3959 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3960 (unwind_tmp_obstack_free, parse_frame_info)
3961 (update_context, cfi_read_fp, cfi_write_fp)
3962 (cfi_frame_chain, cfi_init_extra_frame_info)
3963 (cfi_virtual_frame_pointer): Use the above function.
3964 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3965
3966 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3967
3968 * v850-tdep.c (v850_type_is_scalar): New function.
3969 (v850_use_struct_convention): Match current gcc implementation
3970 as close as possible.
3971 (v850_push_arguments): Fix stack_offset handling. Don't write
3972 struct_addr into register. This is done by v850_store_struct_return.
3973 (v850_extract_return_value): Care for structs.
3974 (v850_store_return_value): Ditto.
3975 (v850_store_struct_return): Actually write address.
3976
3977 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3978
3979 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3980 without debug information too.
3981
3982 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3983
3984 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3985 Make multi-arch pure.
3986 * gdbarch.h, gdbarch.c: Re-generate.
3987 * arm-tdep.c (arm_print_float_info): Update.
3988 * arch-utils.h (default_print_float_info): Update.
3989 * arch-utils.c (default_print_float_info): Update.
3990 * infcmd.c (float_info): Update call.
3991
3992 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3993
3994 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3995 the front of the initialize list.
3996
3997 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3998
3999 * infrun.c (struct inferior_status): Replace fields
4000 selected_frame_address and selected_level with field
4001 selected_frame_id.
4002 (save_inferior_status): Update. Use get_frame_id.
4003 (struct restore_selected_frame_args): Delete.
4004 (restore_selected_frame): Update. Use frame_find_by_id.
4005 (restore_inferior_status): Update.
4006
4007 * breakpoint.h (struct breakpoint): Change type of
4008 watchpoint_frame to frame_id.
4009 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4010 call to get_current_frame.
4011 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4012 get_current_frame.
4013 (watchpoint_check): Use frame_find_by_id.
4014
4015 * frame.h (record_selected_frame): Delete declaration.
4016 * stack.c (record_selected_frame): Delete function.
4017
4018 * frame.h (struct frame_id): Define.
4019 (get_frame_id): Declare.
4020 (frame_find_by_id): Declare.
4021 * frame.c (frame_find_by_id): New function.
4022 (get_frame_id): New function.
4023
4024 2002-06-10 Andrey Volkov <avolkov@transas.com>
4025
4026 * ser-e7kpc.c: Fix duplicated define and call of
4027 _initialize_ser_e7000pc
4028
4029 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4030
4031 * signals/signals.c (target_signal_from_host): Fix #ifdef
4032 SIGRTMIN case.
4033 (do_target_signal_to_host): Likewise.
4034
4035 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4036
4037 * mips-tdep.c (mips_find_abi_section): New function.
4038 (mips_gdbarch_init): Call it.
4039
4040 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4041
4042 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4043 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4044 after Andrew's 2002-06-08 gdbarch change.
4045
4046 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4047
4048 * i386-linux-nat.c (suppy_gregset): Don't supply
4049 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4050 register cache.
4051 (fill_gregset): Don't fetch it under the same circumstances.
4052
4053 2002-06-09 Andrew Cagney <cagney@redhat.com>
4054
4055 * Makefile.in (callback_h): Define.
4056 (remote_sim_h): Update path to remote-sim.h.
4057 (remote-rdp.o): Add $(callback_h).
4058 (remote-sim.o): Use $(callback_h).
4059 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4060 * remote-rdp.c: Include "gdb/callback.h".
4061
4062 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4063
4064 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4065 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4066
4067 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4068
4069 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4070 * rdi-share/serpardr.c: Ditto.
4071 * rdi-share/unixcomm.c: Ditto.
4072 * rdi-share/serdrv.c: Ditto.
4073 * rdi-share/hostchan.h: Ditto.
4074 * rdi-share/hostchan.c: Ditto.
4075 * rdi-share/host.h: Ditto.
4076 * rdi-share/devsw.c: Ditto.
4077
4078 * objfiles.h: Change type of obj_private to void pointer.
4079 * pa64solib.c: Update copyright. Don't include "assert.h", use
4080 strcmp instead of STREQ, use LONGEST, do not use PTR
4081 * somsolib.c: Ditto.
4082
4083 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4084 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4085 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4086
4087 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4088
4089 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4090 (default_get_saved_register): Delete function.
4091 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4092 generic_unwind_get_saved_register.
4093 * gdbarch.h, gdbarch.c: Re-generate.
4094
4095 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4096
4097 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4098 generic_func_frame_chain_valid.
4099 * gdbarch.h, gdbarch.c: Re-generate.
4100 * blockframe.c (generic_func_frame_chain_valid): Only check
4101 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4102 passing FP to PC_IN_CALL_DUMMY.
4103 Fix PR gdb/360.
4104
4105 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4106
4107 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4108 (register_gdbarch_data): Initialize init_p.
4109 (gdbarch_data): Initialize data pointer using the init function.
4110 (init_gdbarch_data): Delete function.
4111 (gdbarch_update_p): Update.
4112 (initialize_non_multiarch): Update.
4113 (struct gdbarch): Add field initialized_p.
4114 * gdbarch.h, gdbarch.c: Re-generate.
4115
4116 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4117
4118 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4119 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4120 better do the things actually here.
4121 * x86-64-tdep.c (x86_64_register_name2nr): New.
4122 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4123 (x86_64_gdbarch_init): Respect the above change.
4124 * x86-64-tdep.h (x86_64_register_name2nr)
4125 (x86_64_register_nr2name): Add prototypes.
4126 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4127
4128 2002-06-06 Michael Snyder <msnyder@redhat.com>
4129
4130 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4131 Delete extra braces and re-indent.
4132 (d10v_store_return_value): Char return values
4133 must be shifted over by one byte in R0.
4134 (d10v_extract_return_value): Delete extra braces, re-indent.
4135
4136 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4137
4138 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4139 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4140 (d10v_integer_to_address): Rewrite.
4141 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4142 the d10v specific functions which take care of converting to the
4143 correct space.
4144
4145 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4146
4147 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4148 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4149
4150 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4151
4152 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4153 includes.
4154 * config/tm-linux.h: Ditto.
4155 * config/alpha/tm-alphalinux.h: Ditto.
4156 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4157 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4158 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4159 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4160 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4161 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4162 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4163 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4164 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4165 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4166 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4167 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4168 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4169 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4170 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4171 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4172 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4173 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4174 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4175 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4176 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4177 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4178 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4179 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4180 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4181 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4182 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4183 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4184 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4185 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4186 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4187 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4188 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4189 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4190 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4191 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4192 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4193
4194 2002-05-04 Aidan Skinner <aidan@velvet.net>
4195
4196 * ada-exp.tab.c: New file
4197 * ada-exp.y: New file
4198 * ada-lang.c: New file
4199 * ada-lang.h: New file
4200 * ada-lex.c: New file
4201 * ada-lex.l: New file
4202 * ada-tasks.c: New file
4203 * ada-typeprint.c: New file
4204 * ada-valprint.c: New file
4205
4206 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4207
4208 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4209 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4210
4211 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4212
4213 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4214 insetead of ppc-linux-tdep.o.
4215 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4216 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4217
4218 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4219
4220 2002-05-07 Christian Groessler <chris@groessler.org>
4221 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4222 bit register contents for little endian hosts.
4223
4224 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4225
4226 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4227 any maintainer.
4228
4229 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4230
4231 * gdbarch.h: Regenerate.
4232
4233 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4234
4235 * MAINTAINERS: Add everyone to write-after-approval list.
4236
4237 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4238
4239 * stack.c (frame_info): Use frame_register_unwind instead of
4240 saved_regs. Mention when the SP is on the stack or in a register.
4241
4242 * frame.h (frame_register_unwind_ftype): Define. Document.
4243 (struct frame_info): Add field register_unwind and
4244 register_unwind_cache.
4245 (frame_register_unwind): Declare.
4246 (generic_unwind_get_saved_register): Declare.
4247
4248 * frame.c (frame_register_unwind): New function.
4249 (generic_unwind_get_saved_register): New function.
4250
4251 * blockframe.c (generic_call_dummy_register_unwind): New function.
4252 (frame_saved_regs_register_unwind): New function.
4253 (set_unwind_by_pc): New function.
4254 (create_new_frame): New function.
4255 (get_prev_frame): New function.
4256
4257 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4258
4259 * a29k-share/: Delete directory.
4260 * remote-vx29k.c: Delete file.
4261
4262 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4263
4264 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4265 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4266
4267 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4268
4269 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4270 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4271 (sparc64nbsd-nat.o)
4272 (sparcnbsd-nat.o)
4273 (sparcnbsd-tdep.o): New dependency lists.
4274 * NEWS: Note new UltraSPARC NetBSD native configuration.
4275 * configure.host (sparc64-*-netbsd*): New host.
4276 * configure.tgt (sparc-*-netbsdelf*)
4277 (sparc-*-netbsd*): Set gdb_target to nbsd.
4278 (sparc64-*-netbsd*): New target.
4279 * sparc64nbsd-nat.c: New file.
4280 * sparcnbsd-nat.c: New file.
4281 * sparcnbsd-tdep.c: New file.
4282 * sparcnbsd-tdep.h: New file.
4283 * config/sparc/nbsd.mt: New file.
4284 * config/sparc/nbsd64.mh: New file.
4285 * config/sparc/nbsd64.mt: New file.
4286 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4287 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4288 (HOST_IPC): Remove.
4289 * config/sparc/nbsdaout.mt: Remove.
4290 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4291 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4292 (HOST_IPC): Remove.
4293 * config/sparc/nbsdelf.mt: Remove.
4294 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4295 sparc-nat.c compatiblity defines.
4296 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4297 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4298 * config/sparc/tm-nbsd64.h: New file.
4299 * config/sparc/tm-nbsdaout.h: Remove.
4300 * config/sparc/xm-nbsd.h: Remove.
4301
4302 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4303
4304 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4305 * sparc-tdep.c: Include osabi.h.
4306 (gdbarch_tdep): Add osabi member.
4307 (_initialize_sparc_tdep): Use gdbarch_register.
4308 (sparc_gdbarch_init): Use generic OS ABI framework.
4309 (sparc_dump_tdep): New function.
4310
4311 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4312
4313 * corefile.c (do_captured_read_memory_integer): Return non-zero
4314 result.
4315 (safe_read_memory_integer): Copy result of memory read when
4316 status is non-zero. Also, add comments.
4317
4318 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4319
4320 * Makefile.in (ppc_tdep_h): Define.
4321 (ppc-linux-nat.o)
4322 (ppc-linux-tdep.o)
4323 (rs6000-tdep.o): Use $(ppc_tdep_h).
4324 (ppc-sysv-tdep.o)
4325 (ppcnbsd-nat.o)
4326 (ppcnbsd-tdep.o): New dependency lists.
4327 * ppc-tdep.h: Use generic OS ABI framework.
4328 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4329 (ppc_linux_init_abi): New functions.
4330 (ppc_sysv_abi_broken_use_struct_convention)
4331 (ppc_sysv_abi_use_struct_convention)
4332 (ppc_sysv_abi_push_arguments): Move to...
4333 * ppc-sysv-tdep.c: ...here.
4334 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4335 * rs6000-tdep.c (process_note_abi_tag_sections)
4336 (get_elfosabi): Remove.
4337 (rs6000_gdbarch_init): Use generic OS ABI framework.
4338 (rs6000_dump_tdep): New function.
4339 (_initialize_rs6000_tdep): Use gdbarch_register.
4340 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4341 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4342 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4343 of ppc-linux-tdep.o.
4344 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4345 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4346 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4347 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4348 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4349 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4350
4351 2002-05-29 Jim Blandy <jimb@redhat.com>
4352
4353 * macroscope.c (default_macro_scope): Put `void' in empty argument
4354 list.
4355
4356 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4357
4358 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4359 * arch-utils.c: Include "sim-regno.h".
4360 * gdbarch.sh: Don't include "sim-regno.h".
4361 * gdbarch.h, gdbarch.c: Regenerate.
4362 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4363 here.
4364 * arch-utils.h (legacy_register_sim_regno): To here.
4365 * remote-sim.c (legacy_register_sim_regno): Move function from
4366 here.
4367 * arch-utils.c (legacy_register_sim_regno): To here.
4368
4369 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4370
4371 * sim-regno.h: New file.
4372 * Makefile.in (sim_regno_h): Define.
4373 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4374 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4375 (legacy_register_sim_regno): New function.
4376 (one2one_register_sim_regno): New function.
4377 (gdbsim_fetch_register): Rewrite.
4378 (gdbsim_store_register): Only store a register when
4379 REGISTER_SIM_REGNO is valid.
4380 * d10v-tdep.c: Include "sim-regno.h".
4381 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4382 (d10v_ts3_register_sim_regno): Ditto.
4383 * gdbarch.sh: Include "sim-regno.h".
4384 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4385 * gdbarch.h, gdbarch.c: Regenerate.
4386 * arch-utils.h (default_register_sim_regno): Delete declaration.
4387 * arch-utils.c (default_register_sim_regno): Delete function.
4388
4389 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4390
4391 * ppcnbsd-nat.c: Rewrite.
4392 * ppcnbsd-tdep.c: New file.
4393 * ppcnbsd-tdep.h: New file.
4394 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4395 solib.o, and solib-svr4.o.
4396 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4397 nbsd-tdep.o, and corelow.o.
4398
4399 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4400
4401 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4402 `tr' and `sed'. Mention that `broken' targets are not expected to
4403 build.
4404
4405 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4406
4407 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4408 Let PC point right after the prologue before looking up symbols.
4409
4410 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4411
4412 * i386-tdep.c (i386_register_virtual_type): Return
4413 builtin_type_vec128i for SSE registers.
4414
4415 * gdbtypes.h (builtin_type_vec128i): Declare.
4416
4417 * gdbtypes.c (build_builtin_type_vec128i): New function.
4418 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4419 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4420 (build_gdbtypes): Initialize new builtin vector types.
4421 (_initialize_gdbtypes): Register new vector types with gdbarch.
4422
4423 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4426 since it has been multi-arch'd.
4427 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4428 Move Alpha and VAX multi-arch news entries to same section
4429 as other multi-arch news.
4430
4431 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4432
4433 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4434 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4435 static. Rename some register numbers to put them in ns32k-tdep
4436 private namespace.
4437 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4438 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4439 functions.
4440 (_initialize_ns32k_tdep): Use gdbarch_register.
4441 * ns32k-tdep.h: New file.
4442 * ns32knbsd-tdep.c: New file.
4443 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4444 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4445 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4446 REGISTER_BYTES, REGISTER_BYTE): Remove.
4447 * config/ns32k/tm-ns32k.h: New file.
4448 * config/ns32k/tm-umax.h: Remove.
4449
4450 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4451
4452 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4453 ns32k_store_struct_return, ns32k_extract_return_value,
4454 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4455 functions.
4456 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4457 ns32k_saved_pc_after_call.
4458 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4459 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4460 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4461 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4462 ns32k_extract_struct_value_address.
4463
4464 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4465
4466 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4467 ns32k_fix_call_dummy): New.
4468 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4469 ns32k_call_dummy_words.
4470 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4471 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4472 CALL_DUMMY_NARGS): Remove.
4473 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4474
4475 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4476
4477 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4478 ns32k_frame_saved_pc, ns32k_frame_args_address,
4479 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4480 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4481 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4482 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4483 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4484 (BREAKPOINT): Remove..
4485 (FRAME_CHAIN): Define as ns32k_frame_chain.
4486 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4487 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4488 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4489 (FRAME_FIND_SAVED_REGS): Remove.
4490 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4491 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4492 (POP_FRAME): Define as ns32k_pop_frame.
4493
4494 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4495
4496 * ns32k-tdep.c (ns32k_register_byte_32082,
4497 ns32k_register_byte_32382, ns32k_register_raw_size,
4498 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4499 functions.
4500 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4501 ns32k_register_byte_32382.
4502 * config/ns32k/tm-umax.h: Update copyright years.
4503 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4504 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4505 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4506 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4507 (ns32k_get_enter_addr): Fix prototype.
4508
4509 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4510
4511 * ns32k-tdep.c: Update copyright years.
4512 (ns32k_register_name_32082): New function.
4513 (ns32k_register_name_32382): Ditto.
4514 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4515 (REGISTER_NAME): Define as ns32k_register_name_32382.
4516 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4517 (REGISTER_NAME): Define as ns32k_register_name_32082.
4518
4519 2002-05-24 Jim Blandy <jimb@redhat.com>
4520
4521 * dwarf2read.c (free_line_header): Use xfree, not free.
4522
4523 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4524
4525 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4526 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4527
4528 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4529
4530 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4531
4532 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4533
4534 From Ross Alexander at NEC Europe:
4535 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4536
4537 2002-05-23 Michael Snyder <msnyder@redhat.com>
4538
4539 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4540 for input, rather than parse_and_eval_address.
4541
4542 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4543
4544 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4545 * Makefile.in (sim_d10v_h): Update definition.
4546
4547 2002-05-24 Andrew Cagney <cagney@redhat.com>
4548
4549 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4550 change `2002-05-22 Michael Snyder' below.
4551 (d10v_push_arguments): Ditto.
4552 (d10v_extract_return_value): Ditto.
4553
4554 2002-05-23 Jim Blandy <jimb@redhat.com>
4555
4556 * macrotab.c (check_for_redefinition): Don't complain if the new
4557 definition is the same as the previous one. Take more arguments
4558 to allow the comparison.
4559 (macro_define_object, macro_define_function): Pass more arguments
4560 to check_for_redefinition.
4561
4562 2002-05-22 Michael Snyder <msnyder@redhat.com>
4563
4564 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4565 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4566 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4567 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4568 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4569 Add a temp variable to save a call (and a memory read).
4570 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4571 if possible (so that PC_IN_CALL_DUMMY will work).
4572
4573 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4574
4575 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4576
4577 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4578
4579 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4580 fde->cie_ptr.
4581 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4582 (dwarf2_build_frame_info): Add offset to fde->initial_location
4583 so that frames of shared libraries are mapped correctly.
4584 (execute_stack_op): Change type of 'result' from ULONGEST to
4585 CORE_ADDR.
4586
4587 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4588
4589 * config/alpha/tm-nbsd.h: Include solib.h.
4590
4591 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4592
4593 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4594 assumptions about the host's byte order.
4595
4596 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4599 to dependency list.
4600 * alphanbsd-tdep.c: Include solib-svr4.h.
4601 * shnbsd-tdep.c: Ditto.
4602
4603 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4604
4605 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4606 nbsd-tdep.h to dependency list.
4607 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4608 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4609 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4610 nbsdaout.mh and nbsdelf.mh consistently.
4611 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4612 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4613 nbsdaout.mt and nbsdelf.mh consistently.
4614 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4615 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4616 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4617 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4618 a.out shared library stuff from here...
4619 * config/nm-nbsdaout.h: ...to here.
4620 * config/tm-nbsd.h: Remove.
4621 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4622 * config/arm/nbsd.mh: Remove.
4623 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4624 nbsd-tdep.o.
4625 * config/arm/nbsdaout.mh: New file.
4626 * config/arm/nbsdelf.mh: New file.
4627 * config/arm/nm-nbsdaout.h: New file.
4628 * config/i386/nbsd.mh: Remove.
4629 * config/i386/nbsd.mt: Remove.
4630 * config/i386/nbsdaout.mh: New file.
4631 * config/i386/nbsdaout.mt: New file.
4632 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4633 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4634 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4635 i386_register_u_addr): Remove.
4636 * config/i386/nm-nbsdaout.h: New file.
4637 * config/i386/nm-nbsdelf.h: Remove.
4638 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4639 (USE_STRUCT_CONVENTION): Remove.
4640 * config/i386/tm-nbsdaout.h: New file.
4641 * config/i386/tm-nbsdelf.h: Remove.
4642 * config/m68k/nbsd.mh: Remove.
4643 * config/m68k/nbsd.mt: Remove.
4644 * config/m68k/nbsdaout.mh: New file.
4645 * config/m68k/nbsdaout.mt: New file.
4646 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4647 * config/m68k/nm-nbsdaout.h: New file.
4648 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4649 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4650 * config/ns32k/nbsd.mh: Remove.
4651 * config/ns32k/nbsd.mt: Remove.
4652 * config/ns32k/nbsdaout.mh: New file.
4653 * config/ns32k/nbsdaout.mt: New file.
4654 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4655 * config/ns32k/nm-nbsdaout.h: New file.
4656 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4657 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4658 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4659 (SVR4_SHARED_LIBS): Remove.
4660 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4661 * config/sparc/nbsd.mh: Remove.
4662 * config/sparc/nbsd.mt: Remove.
4663 * config/sparc/nbsdaout.mh: New file.
4664 * config/sparc/nbsdaout.mt: New file.
4665 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4666 * config/sparc/nbsdelf.mt: New file.
4667 * config/sparc/nm-nbsdaout.h: New file.
4668 * config/sparc/nm-nbsdelf.h: Remove.
4669 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4670 * config/sparc/tm-nbsdaout.h: New file.
4671
4672 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4673
4674 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4675 mipsnbsd-tdep.c
4676 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4677
4678 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4679
4680 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4681 shnbsd-nat.c.
4682 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4683
4684 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4685
4686 * NEWS: Note new MIPS NetBSD native configuration.
4687 * configure.host (mips*-*-netbsd*): New host.
4688 * configure.tgt (mips*-*-netbsd*): New target.
4689 * mipsnbsd-nat.c: New file.
4690 * mipsnbsd-tdep.c: New file.
4691 * mipsnbsd-tdep.h: New file.
4692 * config/mips/nbsd.mh: New file.
4693 * config/mips/nbsd.mt: New file.
4694 * config/mips/nm-nbsd.h: New file.
4695 * config/mips/tm-nbsd.h: New file.
4696
4697 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4698
4699 * Makefile.in (SFILES): Add osabi.c.
4700 (COMMON_OBS): Add osabi.o.
4701 (osabi.o): New dependency list.
4702 * osabi.c: New file.
4703 * osabi.h: New file.
4704 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4705
4706 * Makefile.in (alpha_tdep_h): Define and use instead of
4707 alpha-tdep.h.
4708 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4709 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4710 Remove.
4711 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4712 * alpha-tdep.h: Include osabi.h.
4713 (alpha_abi): Remove.
4714 (gdbarch_tdep): Use generic OS ABI framework.
4715 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4716 gdbarch_register_osabi.
4717 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4718 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4719 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4720
4721 * Makefile.in (sh_tdep_h): Add osabi.h.
4722 * sh-tdep.h (sh_osabi): Remove.
4723 (gdbarch_tdep): Use generic OS ABI framework.
4724 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4725 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4726 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4727 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4728
4729 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4730 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4731 gdbarch_register_osabi.
4732 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4733 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4734 (get_elfosabi): Rename to...
4735 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4736 ABI framework support routines.
4737 (arm_gdbarch_init): Use generic OS ABI framework.
4738 (arm_dump_tdep): Likewise.
4739 (_initialize_arm_tdep): Likewise.
4740 * arm-tdep.h: Include osabi.h.
4741 (arm_abi): Remove.
4742 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4743 osabi member.
4744 (arm_gdbarch_register_os_abi): Remove prototype.
4745 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4746 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4747
4748 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4749 * mips-tdep.c: Include osabi.h.
4750 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4751 OS ABI framework.
4752
4753 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4754
4755 * h8300-tdep.c: Fix formatting.
4756
4757 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4758
4759 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4760 printing vector registers.
4761
4762 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4763
4764 From Fernando Nasser:
4765 * remote.c (remote_async_open_1): Re-throw the exception when the
4766 connection fails.
4767 (remote_cisco_open): Ditto.
4768 (remote_open_1): Ditto.
4769
4770 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4771
4772 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4773 (remote_start_remote): Add uiout parameter. Pass through to
4774 remote_start_remote_dummy.
4775 (remote_open_1): Use catch_exception instead of catch_errors.
4776 (remote_async_open_1): Ditto.
4777 (remote_cisco_open): Ditto.
4778
4779 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4780
4781 * remote.c (remote_start_remote): Replace PTR with void pointer.
4782 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4783 static.
4784
4785 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4786
4787 * gdb_indent.sh: Allow the script to be run in the sim directory.
4788
4789 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4790
4791 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4792 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4793
4794 * corelow.c (core_open): Only call set_gdbarch_from_file if
4795 exec_bfd is NULL.
4796
4797 2002-05-17 Andrey Volkov <avolkov@transas.com>
4798
4799 * h8300-tdep.c: Add support of EXR register
4800 * config/h8300/tm-h8300.h: Ditto.
4801
4802 2002-05-17 Andrey Volkov <avolkov@transas.com>
4803
4804 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4805
4806 2002-05-17 Andrey Volkov <avolkov@transas.com>
4807
4808 * h8300-tdep.c: Change literal regnums to REGNO.
4809
4810 2002-05-17 Jim Blandy <jimb@redhat.com>
4811
4812 * NEWS: Note addition of macro support.
4813
4814 Expand preprocessor macros in C expressions.
4815 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4816 (scan_macro_expansion, scanning_macro_expansion,
4817 finished_macro_expansion): New function declarations.
4818 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4819 variable declarations.
4820 * parser-defs.h (expression_context_pc): New declaration.
4821 * parse.c (expression_context_pc): New variable.
4822 (parse_exp_1): Set expression_context_pc, as well as
4823 expression_context_block.
4824 * c-exp.y (yylex): If we're not already reading the result of a
4825 macro expansion, try to macro-expand the next token. When we're
4826 done scanning a macro expansion, switch back to the mainline text.
4827 Commas and `if's in a macro's expansion don't terminate the input.
4828 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4829 (macro_original_text, macro_expanded_text,
4830 expression_macro_lookup_func, expression_macro_lookup_baton): New
4831 variables.
4832 (scan_macro_expansion, scanning_macro_expansion,
4833 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4834 c_preprocess_and_parse): New functions.
4835 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4836 c_preprocess_and_parse, instead of c_parse.
4837 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4838 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4839
4840 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4841
4842 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4843 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4844 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4845
4846 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4847
4848 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4849
4850 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4851
4852 * Makefile.in (sh_tdep_h): Define and use.
4853 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4854 register enum): Move to...
4855 * * sh-tdep.h: ...here.
4856 * sh-tdep.c: Include sh-tdep.h.
4857 * sh3-rom.c: Likewise.
4858 * shnbsd-tdep.c: Likewise.
4859
4860 2002-05-16 Michael Snyder <msnyder@redhat.com>
4861
4862 * arm-tdep.c: Spelling fix in comment.
4863
4864 2002-05-16 Jim Blandy <jimb@redhat.com>
4865
4866 Add commands for manually expanding macros and showing their
4867 definitions.
4868 * macrocmd.c, macroscope.c, macroscope.h: New files.
4869 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4870 (macroscope_h): New variable.
4871 (HFILES_NO_SRCDIR): Add macroscope.h.
4872 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4873 (macroscope.o, macrocmd.o): New rules.
4874
4875 Teach the Dwarf 2 reader to read macro information.
4876 * dwarf2read.c: #include "macrotab.h".
4877 (dwarf_macinfo_buffer): New variable.
4878 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4879 dwarf_macinfo_size.
4880 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4881 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4882 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4883 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4884 dwarf2_macro_spaces_in_definition): New complaints.
4885 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4886 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4887 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4888 the partial symbol table.
4889 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4890 from what's recorded in the partial symbol table.
4891 (read_file_scope): If the compilation unit has a
4892 `DW_AT_macro_info' attribute, read its macro information.
4893 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4894
4895 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4896
4897 Fix PR gdb/546
4898 * ser-tcp.c: Don't include <netinet/udp.h>.
4899
4900 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4901
4902 * MAINTAINERS: Update my email address.
4903
4904 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4905
4906 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4907 include file of the same name.
4908
4909 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4910
4911 * configure.tgt: Mark v850 as multi-arched.
4912 * config/v850/tm-v850.h: Remove file.
4913 * config/v850/v850.mt: Eliminate TM_FILE.
4914
4915 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4916
4917 * v850-tdep.c: Full multi-arch.
4918 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4919 Define GDB_MULTI_ARCH to 2.
4920
4921 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4922
4923 * p-exp.y (current_type): New static variable.
4924 Carries the type of the expression at the position that is parsed.
4925 (push_current_type, pop_current_type): Two new functions. Used
4926 to store/restore current_type in expression on specific tokens.
4927 (search_field): New static variable. Set to one after parsing a point
4928 as at that point only a FIELDNAME token should be searched.
4929 (FIELDNAME): New token. After a point only a token belonging to
4930 current_type type definition is allowed.
4931 (all over token rules): reset and change current_type according
4932 to rules.
4933 (exp '[' rule): insert implicit array index field if
4934 exp is a pascal string type.
4935
4936 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4937
4938 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4939 frame info. Use frame_info's saved_regs instead of matching member
4940 in extra_frame_info throughout.
4941 (v850_frame_init_saved_regs): New function.
4942 (v850_init_extra_frame_info): Move most functionality into
4943 v850_frame_init_saved_regs().
4944 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4945 (v850_frame_find_saved_regs): Remove declaration.
4946 (FRAME_FIND_SAVED_REGS): Remove definition.
4947 (v850_frame_init_saved_regs): Add declaration.
4948 (FRAME_INIT_SAVED_REGS): Add definition.
4949
4950 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4951
4952 * v850-tdep.c: Begin multi-arch'ing v850.
4953 (v850_target_architecture_hook): Remove function.
4954 (v850_gdbarch_init): New function. Add code previously in
4955 v850_target_architecture_hook().
4956 (_initialize_v850_tdep): Don't set target_architecture_hook.
4957 Call register_gdbarch_init() instead.
4958
4959 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4960
4961 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4962 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4963 (fixup_class_method_type): Likewise.
4964
4965 2002-05-15 Jim Blandy <jimb@redhat.com>
4966
4967 Add macro structures to GDB's symbol tables. Nobody puts anything
4968 in them yet.
4969 * symtab.h (struct symtab): New member: `macro_table'.
4970 * buildsym.h (pending_macros): New global variable.
4971 * buildsym.c: #include "macrotab.h".
4972 (buildsym_init): Initialize `pending_macros'.
4973 (end_symtab): If we found macro information while reading a CU's
4974 debugging info, do build a symtab structure for it. Make the
4975 symtab point to the macro information, and clear the
4976 `pending_macros' pointer which held it while we were reading the
4977 debug info.
4978 (really_free_pendings): Free any pending macro table.
4979 * objfiles.h (struct objfile): New member: `macro_cache'.
4980 * objfiles.c (allocate_objfile): Set allocate and free functions
4981 for the macro cache's objstack.
4982 (free_objfile): Empty the macro cache's obstack.
4983 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4984 set new allocate and free functions for it.
4985 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4986 free functions for the macro cache's objstack. (Why is this
4987 function building its own objfile?)
4988 * symmisc.c (print_objfile_statistics): Print statistics on the
4989 macro bcache.
4990 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4991
4992 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4993
4994 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4995 (REGISTER_U_ADDR): Delete definition.
4996 (arm_register_u_addr): Delete declaration.
4997
4998 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4999
5000 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5001 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5002
5003 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5004
5005 * regcache.c (register_valid): Revise comments refering to "Not
5006 available" and "unavailable".
5007 * frame.c (frame_register_read): Ditto.
5008 * findvar.c (value_of_register): Ditto.
5009
5010 2002-05-15 Andrew Cagney <cagney@redhat.com>
5011
5012 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5013 (remote-sim.o): Update dependencies.
5014 (d10v-tdep.o): Specify dependencies.
5015 (sim_d10v_h): Define.
5016
5017 2002-05-14 Jim Blandy <jimb@redhat.com>
5018
5019 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5020 * macrotab.c (macro_lookup_inclusion, find_definition,
5021 new_macro_table): Same.
5022
5023 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5024 not `! strcmp ()'. This is a dubious improvement.
5025 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5026
5027 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5028 although it's not necessary, to avoid a warning.
5029
5030 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5031
5032 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5033 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5034 TYPE_INSTANCE_FLAGS.
5035 (struct main_type): New.
5036 (struct type): Move most members to struct main_type. Change
5037 cv_type and as_type to new type_chain member. Add instance_flags.
5038 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5039 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5040 (finish_cv_type): Remove prototype.
5041 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5042 Set TYPE_CHAIN.
5043 (alloc_type_instance): New function.
5044 (smash_type): New function.
5045 (make_pointer_type, make_reference_type, make_function_type)
5046 (smash_to_member_type, smash_to_method_type): Call smash_type.
5047 (make_qualified_type): New function.
5048 (make_type_with_address_space): Call make_qualified_type.
5049 (make_cv_type): Likewise.
5050 (finish_cv_type): Remove unnecessary function.
5051 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5052 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5053 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5054 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5055 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5056 * hpread.c (hpread_read_struct_type): Likewise.
5057 * stabsread.c (read_struct_type): Likewise.
5058
5059 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5060
5061 * configure.tgt: Add a catch all sh* target, for cases like
5062 sh[2,3,4]-elf and sh-hms.
5063
5064 2002-05-14 Keith Seitz <keiths@redhat.com>
5065
5066 * event-loop.c (create_file_handler): Don't do anything but
5067 update data when we are given a fd which we are already
5068 monitoring.
5069
5070 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5071
5072 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5073 (update_context): Use __func__ in warnings.
5074
5075 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5076
5077 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5078 and tcp_close to net_open and net_close.
5079 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5080 using UDP if requested. Don't try to disable Nagle on UDP
5081 sockets.
5082 * remote.c (remote_serial_open): New function. Warn about UDP.
5083 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5084
5085 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5086
5087 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5088
5089 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5090
5091 * configure.tgt: Remove sh-hms target.
5092 * MAINTAINERS: Don't list sh-hms as a separate target.
5093
5094 2002-05-13 Jim Blandy <jimb@redhat.com>
5095
5096 Add first preprocessor macro-expansion files.
5097 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5098 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5099 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5100 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5101 (COMMON_OBS): Add macrotab.o, macroexp.o.
5102 (macroexp.o, macrotab.o): New rules.
5103
5104 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5105
5106 * config/m88k/tm-m88k.h: Update copyright.
5107 (m88k_target_write_pc): Declare
5108 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5109 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5110 (SHIFT_INST_REGS): Update definition.
5111 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5112 using old definition of TARGET_WRITE_PC.
5113 * regcache.c (generic_target_write_pc): Delete code handling
5114 NNPC_REGNUM.
5115 * gdbarch.sh (NNPC_REGNUM): Delete.
5116 * gdbarch.h, gdbarch.c: Regenerate.
5117
5118 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5119
5120 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5121 builtin reg number.
5122
5123 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5124
5125 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5126 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5127 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5128 access macros.
5129 * c-typeprint.c (cp_type_print_method_args): Likewise.
5130 (c_type_print_args): Likewise.
5131 * d10v-tdep.c (d10v_push_arguments): Likewise.
5132 (d10v_extract_return_value): Likewise.
5133 * expprint.c (print_subexp): Likewise.
5134 * gdbtypes.c (lookup_primitive_typename): Likewise.
5135 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5136 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5137 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5138 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5139 (TYPE_VECTOR): Likewise.
5140 * hpread.c (hpread_read_struct_type)
5141 (fix_static_member_physnames, fixup_class_method_type)
5142 (hpread_type_lookup): Likewise.
5143 * mdebugread.c (parse_symbol, parse_type): Likewise.
5144 * p-lang.c (is_pascal_string_type): Likewise.
5145 * valops.c (hand_function_call): Likewise.
5146 * x86-64-tdep.c (classify_argument): Likewise.
5147
5148 * hpread.c (hpread_read_function_type)
5149 (hpread_read_doc_function_type): Call replace_type.
5150 * dstread.c (create_new_type): Delete.
5151 (decode_dst_structure, process_dst_function): Call alloc_type.
5152 Use type access macros.
5153
5154 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5155
5156 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5157 the're not supported by the current architecture.
5158 (i387_fill_fxsave): Likewise.
5159
5160 2002-05-12 Fred Fish <fnf@redhat.com>
5161
5162 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5163 sect_index_xxx members to index the first slot in section_offsets
5164 if all of the section_offsets are zero.
5165
5166 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5167
5168 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5169 checked in with last change.
5170
5171 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5172
5173 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5174 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5175 config.sub.
5176
5177 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5178
5179 * Makefile.in: Update dependencies.
5180
5181 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5182
5183 * language.c (local_hex_string_custom): Simplify. Do not depend
5184 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5185
5186 * memattr.c (mem_info_command): Replace calls to
5187 longest_local_hex_string and longest_local_hex_string_custom.
5188 * buildsym.c (make_blockvector): Ditto.
5189 * solib.c (info_sharedlibrary_command): Ditto.
5190 * tracepoint.c (tracepoints_info): Ditto.
5191 * symtab.c (print_msymbol_info): Ditto.
5192
5193 * language.c (local_hex_string): Delete.
5194 (local_hex_string_custom): Delete.
5195 (longest_local_hex_string): Rename to local_hex_string.
5196 (longest_local_hex_string_custom): Rename to
5197 local_hex_string_custom.
5198 * language.h (local_hex_string): Change parameter type to LONGEST.
5199 (local_hex_string_custom): Ditto.
5200 (longest_local_hex_string): Delete declaration.
5201 (longest_local_hex_string_custom): Ditto.
5202
5203 * solib.c: Update copyright.
5204 * memattr.c: Update copyright.
5205
5206 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5207
5208 * arch-utils.h (legacy_register_to_value): Declare.
5209 (legacy_value_to_register): Declare.
5210 (legacy_convert_register_p): Declare.
5211 * arch-utils.c (legacy_register_to_value): New function.
5212 (legacy_value_to_register): New function.
5213 (legacy_convert_register_p): New function.
5214
5215 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5216 (VALUE_TO_REGISTER): Define.
5217 (CONVERT_REGISTER_P): Define.
5218 * gdbarch.h, gdbarch.c: Regenerate.
5219
5220 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5221 VALUE_TO_REGISTER.
5222 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5223 CONVERT_REGISTER_P.
5224
5225 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5226 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5227
5228 * Makefile.in: Update dependencies for valops.c.
5229 * valops.c: Include "gdb_assert.h".
5230 (typecmp): Skip THIS parameter to methods.
5231 (find_method_list): Remove static_memfuncp argument,
5232 update callers. Check for stub methods.
5233 (find_value_oload_method_list): Don't set *static_memfuncp.
5234 (find_overload_match): Don't check for stub methods. Assert
5235 that methods are not stubbed. Handle static methods.
5236 (value_find_oload_method_list): Remove static_memfuncp argument.
5237 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5238 to the argument list for static stub methods.
5239 * value.h (value_find_oload_method_list): Update prototype.
5240
5241 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5242
5243 * arch-utils.h (generic_register_size): Declare.
5244 (generic_register_raw_size, generic_register_virtual_size): Delete
5245 declarations.
5246 * arch-utils.c (generic_register_raw_size): Delete.
5247 (generic_register_size): New function.
5248 (generic_register_virtual_size): Delete.
5249
5250 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5251 default generic_register_size.
5252 * gdbarch.h, gdbarch.c: Re-generate.
5253
5254 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5255 register_virtual_size.
5256 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5257 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5258
5259 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5260
5261 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5262 * gdbarch.h, gdbarch.c: Regenerate.
5263 * gnu-v3-abi.c: Update copyright.
5264 (vtable_address_point_offset): Update.
5265 (gnuv3_rtti_type): Update.
5266 (gnuv3_baseclass_offset): Update.
5267 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5268 (init_fetch_link_map_offsets): Update.
5269 * remote.c (get_remote_state): Update.
5270
5271 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5272
5273 * TODO: Remove value_headof/value_from_vtable_info comment.
5274 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5275 * values.c (value_headof, value_from_vtable_info): Delete.
5276 * value.h (value_from_vtable_info): Delete prototype.
5277
5278 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5279
5280 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5281 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5282 $(gdb_regex_h).
5283 (gdb_assert_h): Define.
5284 (gdb_wait_h): Define.
5285 (gdb_regex_h): Define.
5286
5287 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5288
5289 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5290 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5291
5292 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5293
5294 * nbsd-tdep.c: Fix comment.
5295
5296 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5297
5298 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5299 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5300 (nbsd-tdep.o): New dependency list.
5301 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5302 nbsd-tdep.h.
5303 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5304 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5305 * nbsd-tdep.c: New file.
5306 * nbsd-tdep.h: New file.
5307 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5308 nbsd-tdep.h.
5309 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5310 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5311 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5312 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5313
5314 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5315
5316 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5317 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5318 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5319 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5320 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5321 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5322
5323 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5324
5325 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5326 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5327 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5328 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5329 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5330 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5331 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5332
5333 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5334
5335 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5336 fetch_elfcore_registers to...
5337 * i386nbsd-tdep.c: ...here.
5338 (i386nbsd_use_struct_convention): Rename to...
5339 (i386nbsd_aout_use_struct_convention): ...this.
5340 (i386nbsd_supply_reg): New function.
5341 (i386nbsd_fill_reg): New function.
5342 (fetch_core_registers): Use i386nbsd_supply_reg.
5343 (fetch_elfcore_registers): Likewise.
5344 (_initialize_i386nbsd_tdep): New function.
5345 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5346 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5347 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5348 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5349 (i386nbsd_aout_use_struct_convention): ...this.
5350
5351 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5352
5353 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5354 (store_inferior_registers): Use shnbsd_fill_reg.
5355 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5356 sh_nbsd_supply_register): Collapse into...
5357 (shnbsd_supply_reg): ...this.
5358 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5359 (shnbsd_fill_reg): ...this.
5360 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5361 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5362 (fetch_core_registers): Use shnbsd_supply_reg.
5363 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5364 (sh_nbsd_core_fns): Rename to...
5365 (shnbsd_core_fns): ...this.
5366 (sh_nbsd_elfcore_fns): Rename to...
5367 (shnbsd_elfcore_fns): ...this.
5368 (sh_nbsd_init_abi): Rename to...
5369 (shnbsd_init_abi): ...this.
5370 (_initialize_sh_nbsd_tdep): Rename to...
5371 (_initialize_shnbsd_tdep): ...this.
5372 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5373 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5374 sh_nbsd_fill_register): Remove prototypes.
5375 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5376
5377 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5378
5379 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5380 (i387-nat.o): Delete dependency list.
5381 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5382 (x86-64-linux-nat.o): Likewise.
5383 * i387-nat.c: Delete file, moving contents to...
5384 * i387-tdep.c: ...here.
5385 * i387-nat.h: Rename...
5386 * i387-tdep.h: ...to this.
5387 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5388 * i386-linux-nat.c: Likewise.
5389 * i386bsd-nat.c: Likewise.
5390 * i386gnu-nat.c: Likewise.
5391 * i386nbsd-nat.c: Likewise.
5392 * i386v4-nat.c: Likewise.
5393 * x86-64-linux-nat.c: Likewise.
5394 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5395 * config/i386/go32.mh (NATDEPFILES): Likewise.
5396 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5397 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5398 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5399 * config/i386/linux.mh (NATDEPFILES): Likewise.
5400 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5401 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5402 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5403 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5404
5405 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5406
5407 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5408 (alphanbsd-nat.o): Remove dependency list.
5409 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5410 * alphanbsd-nat.c: Delete. Contents moved to...
5411 * alphanbsd-tdep.c: ...here.
5412 (_initialize_alphanbsd_tdep): Register core functions.
5413 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5414
5415 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5416
5417 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5418 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5419 (alphanbsd-nat.o): Likewise.
5420 (alphabsd-tdep.o): New dependency list.
5421 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5422 (fill_gregset): Use alphabsd_fill_reg.
5423 (supply_fpregset): Use alphabsd_supply_fpreg.
5424 (fill_fpregset): Use alphabsd_fill_fpreg.
5425 (fetch_inferior_registers): Use struct reg and struct fpreg
5426 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5427 and alphabsd_supply_fpreg.
5428 (store_inferior_registers): Use struct reg and struct fpreg
5429 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5430 and alphabsd_fill_fpreg.
5431 * alphabsd-tdep.c: New file.
5432 * alphabsd-tdep.h: New file.
5433 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5434 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5435 alphabsd_supply_fpreg.
5436 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5437 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5438
5439 2002-05-11 Eric Christopher <echristo@redhat.com>
5440
5441 * mips-tdep.c (mips_double_register_type): Fix thinko.
5442 (mips_single_register_type): Ditto.
5443 * MAINTAINERS: Add self.
5444
5445 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5446
5447 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5448 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5449 right thing on architectures with different endianness and/or
5450 integer sizes.
5451
5452 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5453
5454 From Christian Limpach <chris@Pin.LU>
5455 * configure.in: Change sed expression which comments out
5456 NATDEPFILES to also comment out continuation lines.
5457 * configure: Regenerate.
5458
5459 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5460
5461 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5462 big patch.
5463
5464 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5465
5466 * sh-tdep.c: Include correct file.
5467
5468 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5469
5470 New support for sh64-elf (sh5) target.
5471
5472 * configure.tgt: For sh64-elf target, default to sh-elf.
5473
5474 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5475 (struct gdbarch_tdep): Add new fields for new registers and ABI
5476 info.
5477
5478 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5479 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5480 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5481 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5482 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5483 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5484 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5485 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5486 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5487 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5488 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5489 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5490 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5491 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5492 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5493 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5494 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5495 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5496 sign_extend, sh64_nofp_frame_init_saved_regs,
5497 sh64_init_extra_frame_info, sh64_get_saved_register,
5498 sh64_extract_struct_value_address, sh64_pop_frame,
5499 sh64_push_arguments, sh64_extract_return_value,
5500 sh64_store_return_value, sh64_show_media_regs,
5501 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5502 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5503 sh_sh64_register_virtual_type,
5504 sh_sh64_register_convert_to_virtual,
5505 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5506 sh64_register_read, sh64_pseudo_register_write,
5507 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5508 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5509 sh64_do_pseudo_register, sh_compact_do_registers_info,
5510 sh64_do_registers_info, sh_gdbarch_init): New functions.
5511
5512 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5513
5514 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5515
5516 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5517
5518 * linespec.c (decode_line_1): Check for a double quote after
5519 a filename correctly.
5520
5521 2002-05-10 Jim Blandy <jimb@redhat.com>
5522
5523 Properly track the size of the current objfile's .debug_line section.
5524 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5525 (DWARF_LINE_SIZE): New macro.
5526 (dwarf2_build_psymtabs_hard): Record the line section's size in
5527 the partial symbol table.
5528 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5529 symbol table.
5530
5531 2002-05-10 Petr Sorfa <petrs@caldera.com>
5532
5533 * ia64-tdep.c: Handle breakpoints on L instruction type
5534 in MLX instruction bundle by moving the breakpoint to
5535 the third slot (X instruction type) as L holds only data.
5536
5537 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5538
5539 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5540 (process_one_symbol): Complain about discarding local symbols
5541 due to a misplaced N_LBRAC entry.
5542
5543 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5544
5545 From Daniel Berlin <dan@cgsoftware.com>
5546 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5547 decrease the depth we are at, in the case of templates.
5548
5549 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5550
5551 * mips-tdep.c (mips_float_register_type): New function.
5552 (mips_double_register_type): New function.
5553 (mips_print_register): Use them.
5554 (do_fp_register_row): Likewise.
5555
5556 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5557
5558 * signals/signals.c (signals): Remove conditional compilation around
5559 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5560 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5561
5562 2002-05-09 Michael Snyder <msnyder@redhat.com>
5563
5564 * remote-rdp.c (remote_rdp_can_run): Remove.
5565
5566 2002-05-09 Tom Tromey <tromey@redhat.com>
5567
5568 * jv-valprint.c (java_val_print): Handle `char' as a special case
5569 of TYPE_CODE_INT.
5570
5571 2002-05-09 Michael Snyder <msnyder@redhat.com>
5572
5573 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5574 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5575 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5576 str r(0123),[sp,#nn].
5577 (arm_skip_prologue): Ditto. Also make disassembly
5578 order-independent by placing it in a loop.
5579
5580 2002-05-06 Michael Snyder <msnyder@redhat.com>
5581
5582 * stabsread.c (read_type): Add recognition for new attribute:
5583 "@V;" means that an array type is actually a vector.
5584 This is analogous to the vector flag that's been added to dwarf2.
5585
5586 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5587
5588 * i386-tdep.h (i386_abi): New enum.
5589 (struct gdbarch_tdep): Replace os_ident member with abi.
5590 (i386_gdbarch_register_os_abi): New prototype.
5591 * i386-tdep.c (i386_abi_names): New array.
5592 (process_note_abi_tag_sections): Removed.
5593 (process_note_sections): New function.
5594 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5595 (struct i386_abi_handler): New struct.
5596 (i386_abi_handler_list): New variable.
5597 (i386_gdbarch_register_os_abi): New function.
5598 (i386_gdbarch_init): Adapt for the changes given above.
5599
5600 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5601
5602 * gregset.h: Say "GNU/Linux".
5603
5604 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5605
5606 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5607 (build_gdbtypes): Build builtin_type_v2_float.
5608 (_initialize_gdbtypes): Register new builtin type.
5609
5610 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5611
5612 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5613 (clear_gdbarch_swap): New function.
5614 (initialize_non_multiarch): Call.
5615 (gdbarch_update_p): Before calling init(), swap out and clear the
5616 existing architecture.
5617 * gdbarch.c: Regenerate.
5618
5619 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5620
5621 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5622 alphanbsd-tdep.c.
5623
5624 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5625
5626 * sh-nbsd-nat.c: Rename to...
5627 * shnbsd-nat.c: ...this.
5628 * sh-nbsd-tdep.c: Rename to...
5629 * shnbsd-tdep.c: ...this.
5630 * sh-nbsd-tdep.h: Rename to...
5631 * shnbsd-tdep.h: ...this.
5632 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5633 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5634
5635 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5636
5637 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5638 concatenation for command help messages.
5639
5640 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5641
5642 * NEWS: Note new sh*-*-netbsdelf* configuration.
5643 * configure.host: Set gdb_host_cpu to sh for all sh*.
5644 (sh*-*-netbsdelf*): New host.
5645 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5646 (sh*-*-netbsdelf*): New target.
5647 * sh-nbsd-nat.c: New file.
5648 * sh-nbsd-tdep.c: New file.
5649 * sh-nbsd-tdep.h: New file.
5650 * config/sh/nbsd.mh: New file.
5651 * config/sh/nbsd.mt: New file.
5652 * config/sh/nm-nbsd.h: New file.
5653 * config/sh/tm-nbsd.h: New file.
5654
5655 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5656
5657 * sh-tdep.c (sh_osabi_names): Declare.
5658 (process_note_abi_tag_sections): New function.
5659 (get_elfosabi): Ditto.
5660 (sh_gdbarch_register_os_abi): Ditto.
5661 (sh_dump_tdep): Ditto.
5662 _initialize_sh_tdep): Use gdbarch_register to register
5663 sh_gdbarch_init and sh_dump_tdep.
5664 * config/sh/tm-sh.h (sh_osabi): Declare.
5665 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5666
5667 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5668
5669 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5670 (thumb_scan_prologue): Ditto.
5671 (arm_find_callers_reg): Ditto.
5672 (arm_frame_chain): Ditto.
5673 (arm_init_extra_frame_info): Ditto.
5674 (arm_frame_saved_pc): Ditto.
5675 (arm_pop_frame): Ditto.
5676 (arm_push_return_address): New function.
5677 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5678 call_dummy_location, call_dummy_breakpoint_offset_p,
5679 call_dummy_breakpoint_offset, call_dummy_p,
5680 call_dummy_stack_adjust_p, call_dummy_words,
5681 sizeof_call_dummy_words, call_dummy_start_offset,
5682 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5683 call_dummy_address, push_return_address and push_dummy_frame for
5684 generic dummy frames.
5685
5686 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5687
5688 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5689 size computation for alloca.
5690 (sh_fp_frame_init_saved_regs): Likewise.
5691
5692 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5693
5694 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5695 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5696 * arm-tdep.c (arm_store_return_value): Use them.
5697 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5698 * remote-rdp.c (remote_rdp_fetch_register): Use
5699 ARM_MAX_REGISTER_RAW_SIZE.
5700 (remote_rdp_store_register): Likewise.
5701
5702 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5703
5704 * dwarf2cfi.c: Code cleanup, removed unused variables,
5705 added default labels to switch {} statements.
5706 * x86-64-tdep.c: Ditto.
5707 * x86-64-linux-nat.c: Ditto.
5708
5709 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5710
5711 * solib.h: Protect against multiple inclusion.
5712
5713 2002-05-06 Jim Blandy <jimb@redhat.com>
5714
5715 Add first preprocessor macro-expansion files.
5716 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5717 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5718 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5719 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5720 (COMMON_OBS): Add macrotab.o, macroexp.o.
5721 (macroexp.o, macrotab.o): New rules.
5722
5723 Separate the job of reading the line number info statement program
5724 header (...expialidocious) out into its own function.
5725 * dwarf2read.c (struct line_head, struct filenames, struct
5726 directories): Replace with...
5727 (struct line_header): New structure, containing the full
5728 contents of the statement program header, including the
5729 include directory and file name tables.
5730 (read_file_scope): If we have line number info, instead of just
5731 calling dwarf_decode_lines to do all the work, call
5732 dwarf_decode_line_header first to get a `struct line_header'
5733 containing the data in the statement program header, and then
5734 pass that to dwarf_decode_lines, which will pick up where that
5735 left off. Be sure to clean up the `struct line_header' object.
5736 (dwarf_decode_line_header, free_line_header, add_include_dir,
5737 add_file_name): New functions.
5738 (dwarf_decode_lines): Move all the code to read the statement
5739 program header into dwarf_decode_line_header. Take the line
5740 header it built as the first argument, instead of the offset to
5741 the compilation unit's line number info. Use the new `struct
5742 line_header' type instead of the old structures. No need to do
5743 cleanups here now, since we don't allocate anything.
5744 (dwarf2_statement_list_fits_in_line_number_section,
5745 dwarf2_line_header_too_long): New complaints.
5746
5747 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5748
5749 * gdbtypes.c (init_vector_type): New function.
5750 (build_builtin_type_vec128): Simplify the representation of SIMD
5751 registers.
5752 (build_gdbtypes): Initialize new builtin vector types.
5753 (_initialize_gdbtypes): Register new vector types with gdbarch.
5754 (builtin_type_v4_float, builtin_type_v4_int32,
5755 builtin_type_v8_int16, builtin_type_v16_int8,
5756 builtin_type_v2_int32, builtin_type_v4_int16,
5757 builtin_type_v8_int8): New (renamed) SIMD types.
5758
5759 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5760
5761 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5762 (i387_fill_fxsave): Likewise.
5763
5764 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5765
5766 * alpha-tdep.c (alpha_extract_return_value): Don't use
5767 non-constant array size in prototype.
5768
5769 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5770
5771 From Brian Taylor <briant at model dot com>:
5772 * ui-out.c (ui_out_field_core_addr): Use the function
5773 longest_local_hex_string_custom'to format addresses > 32 bits
5774 wide.
5775
5776 * ui-out.c (ui_out_field_core_addr): Update comment.
5777
5778 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5779
5780 * stack.c (select_and_print_frame): Make static. Delete the
5781 parameter `level'.
5782 (func_command): Update call.
5783 (select_frame_command): Delete code computing the frame level.
5784 * frame.h (select_and_print_frame): Delete declaration.
5785
5786 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5787
5788 * sparc-tdep.c (sparc_get_saved_register): Comment why
5789 get_prev_frame call is safe.
5790
5791 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5792
5793 * frame.h (select_frame): Delete level parameter.
5794 * stack.c (select_frame): Update. Use frame_relative_level to
5795 obtain the frame's level.
5796 (select_and_print_frame): Update call.
5797 (select_frame_command): Ditto.
5798 (up_silently_base): Ditto.
5799 (down_silently_base): Ditto.
5800 * ocd.c (ocd_start_remote): Ditto.
5801 * remote-rdp.c (remote_rdp_open): Ditto.
5802 * remote-mips.c (mips_initialize): Ditto.
5803 (common_open): Ditto.
5804 * remote-e7000.c (e7000_start_remote): Ditto.
5805 * m3-nat.c (select_thread): Ditto.
5806 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5807 (child_get_current_exception_event): Ditto.
5808 * varobj.c (varobj_create): Ditto.
5809 (varobj_update): Ditto.
5810 (c_value_of_root): Ditto.
5811 * tracepoint.c (finish_tfind_command): Ditto.
5812 * corelow.c (core_open): Ditto.
5813 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5814 * thread.c (info_threads_command): Ditto.
5815 (switch_to_thread): Ditto.
5816 * infrun.c (normal_stop): Ditto.
5817 (restore_selected_frame): Ditto.
5818 (restore_inferior_status): Ditto.
5819 * breakpoint.c (insert_breakpoints): Ditto.
5820 (watchpoint_check): Ditto.
5821 (bpstat_stop_status): Ditto.
5822 (do_enable_breakpoint): Ditto.
5823 * blockframe.c (flush_cached_frames): Ditto.
5824 (reinit_frame_cache): Ditto.
5825
5826 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5827
5828 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5829 maintainer.
5830
5831 2002-05-04 Jim Blandy <jimb@redhat.com>
5832
5833 * gdbtypes.c (replace_type): Doc fix.
5834
5835 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5836
5837 * valprint.c (strcat_longest): Delete commented out function.
5838 Update copyright.
5839
5840 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5841
5842 * MAINTAINERS: Mark a29k as deleted.
5843 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5844 Move new configurations to the top.
5845 * configure.tgt: Remove a29k.
5846 * config/a29k/tm-vx29k.h: Delete.
5847 * config/a29k/vx29k.mt: Delete.
5848 * config/a29k/tm-a29k.h: Delete.
5849 * config/a29k/a29k-udi.mt: Delete.
5850 * config/a29k/a29k.mt: Delete.
5851 * a29k-tdep.c: Delete.
5852 * remote-udi.c: Delete.
5853 * remote-mm.c: Delete.
5854 * remote-eb.c: Delete.
5855 * remote-adapt.c: Delete.
5856 * Makefile.in: Remove obsolete code.
5857 * config/s390/s390x.mt: Ditto.
5858 * config/s390/s390.mt: Ditto.
5859 * config/sparc/sparclynx.mh: Ditto.
5860 * config/sparc/linux.mh: Ditto.
5861 * config/pa/hppaosf.mh: Ditto.
5862 * config/pa/hppabsd.mh: Ditto.
5863 * config/ns32k/nbsd.mt: Ditto.
5864 * config/mips/vr5000.mt: Ditto.
5865 * config/m68k/sun3os4.mh: Ditto.
5866 * config/m68k/nbsd.mt: Ditto.
5867 * config/m68k/m68klynx.mh: Ditto.
5868 * config/m32r/m32r.mt: Ditto.
5869 * config/i386/x86-64linux.mt: Ditto.
5870 * config/i386/nbsdelf.mt: Ditto.
5871 * config/i386/nbsd.mt: Ditto.
5872 * config/i386/i386lynx.mh: Ditto.
5873
5874 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5875
5876 * target.c (debug_print_register): New function. Handle oversize
5877 registers.
5878 (debug_to_fetch_registers): Call.
5879 (debug_to_store_registers): Call.
5880
5881 2002-05-03 Jim Blandy <jimb@redhat.com>
5882
5883 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5884 (read_type): Doc fix.
5885 * gdbtypes.c (replace_type): Doc fix.
5886
5887 * stabsread.c (multiply_defined_struct): New complaint.
5888 (read_struct_type): If the type we were passed isn't empty, or
5889 incomplete, don't read the new struct type into it; complain,
5890 and return the original type unchanged. Take a new `type_code'
5891 argument, which is the type code for the new type.
5892 (read_type): Rather than storing the type's type code here, pass
5893 it as an argument to read_struct_type, and let that take care of
5894 storing it. That way, we don't overwrite the original type code,
5895 so read_struct_type can use it to decide whether we're overwriting
5896 something we shouldn't.
5897 (complain_about_struct_wipeout): New function.
5898
5899 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5900
5901 * gdbarch.sh: Assert that gdbarch is non-NULL.
5902 * gdbarch.c: Regenerate.
5903
5904 2002-05-03 Jason Merrill <jason@redhat.com>
5905
5906 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5907 and return NULL.
5908
5909 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5910
5911 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5912 (x86_64_dwarf2gdb_regno_map_length),
5913 (x86_64_dwarf2_reg_to_regnum): Added.
5914 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5915 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5916 (_initialize_x86_64_tdep): Synced with the change above.
5917 (x86_64_skip_prologue): Reformulated message.
5918
5919 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5920
5921 * f-exp.y: Also use new prev_lexptr variable
5922 to improve error reporting. Based on Michael Snyder
5923 2002-04-24 dated patch to c-exp.y.
5924 * jv-exp.y: Likewise.
5925 * m2-exp.y: Likewise.
5926
5927 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5928
5929 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5930 we are dealing with vectors.
5931
5932 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5933
5934 * config/m68k/tm-nbsd.h: Obvious fix,
5935 correct machine name.
5936
5937 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5938
5939 * p-typeprint.c (pascal_type_print_base): Add support
5940 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5941
5942 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5943
5944 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5945 for fondamental pascal 'char' type.
5946
5947 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5948
5949 * p-lang.h (is_pascal_string_type): Declaration changed,
5950 new sixth argument of type char ** added.
5951 * p-lang.c (is_pascal_string_type): Implementation
5952 changed. Args length_pos, length_size, string_pos, char_size
5953 can now be NULL. New argument arrayname set to the field
5954 name of the char array. Return value set to char array
5955 field index plus one.
5956 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5957 is_pascal_string_type function.
5958
5959 2002-05-02 Andrew Cagney <cagney@redhat.com>
5960
5961 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5962 <cagney@redhat.com> change.
5963 * gdbarch.c: Regenerate.
5964
5965 2002-05-02 Andrew Cagney <cagney@redhat.com>
5966
5967 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5968 before probing for a new one. Detect errorenous gdbarch_init
5969 functions.
5970 * gdbarch.c: Regenerate.
5971
5972 2002-05-01 Andrew Cagney <cagney@redhat.com>
5973
5974 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5975 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5976 * config/v850/tm-v850.h: Ditto. Update copyright.
5977
5978 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5979
5980 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5981 current_gdbarch.
5982
5983 2002-04-30 Michael Snyder <msnyder@redhat.com>
5984
5985 * arm-tdep.c: Whitespace clean-ups.
5986 (arm_skip_prologue): Fix thinko; two lines
5987 should have been removed as part of 4/24 change.
5988
5989 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5990
5991 * rs6000-tdep.c: Added comment describing how fpscr register
5992 numbers were chosen.
5993
5994 2002-04-30 Michael Snyder <msnyder@redhat.com>
5995
5996 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5997
5998 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5999
6000 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6001 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6002 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6003
6004 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6005
6006 From Louis Hamilton <hamilton@redhat.com>:
6007 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6008 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6009 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6010 not bfd-private xcoff data, to determine wordsize.
6011 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6012
6013 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6014
6015 GDB 5.2 released from 5.2 branch.
6016
6017 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6018
6019 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6020 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6021 (x86_64_register_info_table): Added comments with register numbers.
6022
6023 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6024
6025 * rs6000-tdep.c (rs6000_extract_return_value,
6026 rs6000_store_return_value): Handle returning vectors.
6027 (rs6000_gdbarch_init): Use
6028 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6029 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6030 New function.
6031 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6032 vectors.
6033 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6034 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6035
6036 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6037
6038 * hpread.c (hpread_psymtab_to_symtab_1,
6039 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6040 with fprintf_unfiltered (gdb_stderr,...).
6041
6042 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6043
6044 * remote-array.c (printf_monitor, write_monitor,
6045 array_insert_breakpoint, array_remove_breakpoint ):
6046 Replace fprintf (stderr,...
6047 with fprintf_unfiltered (gdb_stderr,....
6048 * remote-es.c: Likewise.
6049 * remote-os9k.c: Likewise.
6050 * remote-st.c: Likewise.
6051
6052 2002-04-28 Andreas Schwab <schwab@suse.de>
6053
6054 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6055 linux-proc.o and gcore.o.
6056
6057 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6058
6059 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6060 code without frame pointers.
6061
6062 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6063
6064 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6065 ON_STACK is needed.
6066
6067 2002-04-26 Ben Elliston <bje@redhat.com>
6068
6069 * target.c (do_xfer_memory): Correct reference to the new option
6070 "trust-readonly-sections".
6071
6072 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6073
6074 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6075 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6076 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6077 vectors.
6078 (read_array_type): Record the fact that this array type is really a
6079 vector (i.e. are passed in by value).
6080
6081 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6082
6083 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6084 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6085 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6086 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6087 * alpha-linux-tdep.c: Include frame.h.
6088 (alpha_linux_sigcontext_addr): New function.
6089 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6090 alpha_linux_sigcontext_addr.
6091 * alpha-osf1-tdep.c: Include gdbcore.h.
6092 (alpha_osf1_sigcontext_addr): New function.
6093 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6094 alpha_osf1_sigcontext_addr.
6095 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6096 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6097
6098 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6099
6100 * stack.c (selected_frame_level):
6101 (select_frame): Do not set selected_frame_level.
6102 * frame.h (selected_frame_level): Delete declaration.
6103
6104 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6105
6106 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6107 convert_from_func_ptr-addr when AIX / PowerOpen.
6108
6109 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6110
6111 * valops.c (hand_function_call): Call
6112 generic_save_call_dummy_addr.
6113 * frame.h (generic_save_call_dummy_addr): Declare.
6114 * blockframe.c (struct dummy_frame): Add fields call_lo and
6115 call_hi.
6116 (generic_find_dummy_frame): Check for PC in range call_lo to
6117 call_hi instead of entry_point_address.
6118 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6119 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6120 (generic_save_call_dummy_addr): New function.
6121
6122 2002-04-24 David S. Miller <davem@redhat.com>
6123
6124 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6125 sparc_skip_prologue.
6126 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6127 information to find prologue when possible.
6128 (sparc_prologue_frameless_p): Call examine_prologue directly.
6129 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6130 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6131 second argument.
6132 (SKIP_PROLOGUE): Likewise.
6133
6134 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6135
6136 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6137 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6138 indicate that the condition it was testing is always true.
6139 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6140 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6141 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6142
6143 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6144
6145 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6146 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6147 tdep->jb_pc and tdep->jb_elt_size.
6148 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6149 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6150 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6151 * alpha-nat.c (get_longjmp_target): Remove.
6152 (JB_ELEMENT_SIZE): Ditto.
6153 (JB_PC): Ditto.
6154 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6155 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6156 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6157 to alpha_get_longjmp_target.
6158 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6159 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6160 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6161
6162 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6163
6164 * README: Update to GDB 5.2.
6165
6166 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6167
6168 * gdbarch.sh (LC_ALL): Set to `c'.
6169
6170 2002-04-25 Theodore A. Roth <troth@verinet.com>
6171
6172 * avr-tdep.c: Ran through gdb_indent.sh.
6173
6174 2002-04-25 Theodore A. Roth <troth@verinet.com>
6175
6176 * MAINTAINERS: Add myself as AVR maintainer.
6177 * NEWS: Note new target avr.
6178
6179 2002-04-25 Theodore A. Roth <troth@verinet.com>
6180
6181 * Makefile.in: Add support for AVR target.
6182 * configure.tgt: Add support for AVR target.
6183 * avr-tdep.c: New file
6184 * config/avr/avr.mt: New file.
6185
6186 2002-04-25 Theodore A. Roth <troth@verinet.com>
6187
6188 * MAINTAINERS: Add myself to write-after-approval.
6189
6190 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6191
6192 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6193 with fprintf_unfiltered (gdb_stderr,....
6194
6195 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6196
6197 Fix PR gdb/508.
6198 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6199
6200 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6201
6202 * p-exp.y: Also use new prev_lexptr variable
6203 to improve error reporting. Based on Michael Snyder
6204 2002-04-24 dated patch to c-exp.y.
6205
6206 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6207
6208 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6209 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6210 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6211 to 0.
6212 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6213 and struct value.
6214 (FUNCTION_START_OFFSET): Remove.
6215 (BREAKPOINT): Ditto.
6216
6217 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6218
6219 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6220 * NEWS: Ditto.
6221
6222 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6223
6224 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6225 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6226 alpha_linux_pc_in_sigtramp.
6227 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6228 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6229 alpha_osf1_pc_in_sigtramp.
6230 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6231 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6232 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6233 alphafbsd_pc_in_sigtramp.
6234 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6235 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6236 alphanbsd_pc_in_sigtramp.
6237 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6238 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6239
6240 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6241
6242 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6243
6244 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6245
6246 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6247 alphanbsd-tdep.c.
6248 (alphanbsd-nat.o): New dependency list.
6249 (alphanbsd-tdep.o): Ditto.
6250 * NEWS: Note new native NetBSD/alpha configuration.
6251 * alphanbsd-nat.c: New file.
6252 * alphanbsd-tdep.c: Ditto.
6253 * configure.host (alpha*-*-netbsd*): New host.
6254 * configure.tgt (alpha*-*-netbsd*): New target.
6255 * config/alpha/nbsd.mh: New file.
6256 * config/alpha/nbsd.mt: Ditto.
6257 * config/alpha/nm-nbsd.h: Ditto.
6258 * config/alpha/tm-nbsd.h: Ditto.
6259
6260 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6261
6262 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6263 (alpha-osf1-tdep.o): New dependency list.
6264 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6265 and skip_sigtramp_frame members.
6266 * alpha-linux-tdep.c: Include gdbcore.h.
6267 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6268 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6269 * alpha-osf1-tdep.c: New file.
6270 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6271 alpha-osf1-dep.c.
6272 (alpha_frame_past_sigtramp_frame): New function.
6273 (alpha_dynamic_sigtramp_offset): Ditto.
6274 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6275 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6276 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6277 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6278 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6279 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6280 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6281 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6282 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6283 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6284 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6285 to find_solib_trampoline_target.
6286 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6287 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6288 (SKIP_TRAMPOLINE_CODE): Remove.
6289 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6290 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6291 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6292 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6293 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6294 (PROC_SIGTRAMP_MAGIC): Ditto.
6295 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6296 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6297 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6298 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6299 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6300
6301 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6302
6303 * NEWS: Note that Alpha targets are now multi-arch.
6304
6305 2002-04-24 Michael Snyder <msnyder@redhat.com>
6306
6307 * parser-defs.h (prev_lexptr): New external variable.
6308 * parse.c (parse_exp_1): Set prev_lexptr to null before
6309 calling the language-specific parser.
6310 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6311 (yyerror): Use prev_lexptr in error reporting.
6312
6313 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6314
6315 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6316 * gregset.h: If FILL_FPXREGSET is defined, provide
6317 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6318 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6319 is defined, call fill_fpxregset.
6320
6321 2002-04-24 Roland McGrath <roland@frob.com>
6322
6323 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6324 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6325 (supply_gregset, supply_fpregset): New functions.
6326
6327 * gnu-nat.c (gnu_find_memory_regions): New function.
6328 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6329 (gnu_xfer_memory): Add a cast.
6330
6331 2002-04-24 Michael Snyder <msnyder@redhat.com>
6332
6333 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6334 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6335 of argument regs ("str r(0123), [r11, #-nn"]).
6336 (arm_skip_prologue): Better handling for frameless functions.
6337 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6338 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6339
6340 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6341
6342 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6343 NUM_PSEUDO_REGS can be used.
6344
6345 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6346
6347 * arch-utils.h: Update copyright.
6348
6349 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6350 * gdbarch.h, gdbarch.c: Re-generate.
6351
6352 * inferior.h (IN_SIGTRAMP): Delete definition.
6353 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6354 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6355
6356 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6357 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6358 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6359 (find_proc_framesize): Ditto.
6360 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6361 (alpha_init_extra_frame_info): Ditto.
6362 * infrun.c (handle_inferior_event): Ditto.
6363 (handle_inferior_event): Ditto.
6364 (check_sigtramp2): Ditto.
6365 * blockframe.c (create_new_frame): Ditto.
6366 (get_prev_frame): Ditto.
6367 * ppc-linux-tdep.c: Update comments.
6368 * i386-linux-tdep.c: Update comments.
6369 * breakpoint.c (bpstat_what): Update comment.
6370
6371 2002-04-24 David S. Miller <davem@redhat.com>
6372
6373 * i960-tdep.c (register_in_window_p): New function.
6374 (i960_find_saved_register): Use it instead of
6375 REGISTER_IN_WINDOW_P.
6376 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6377
6378 * symtab.h (find_stab_function_addr): Kill extern.
6379 * minsyms.c (find_stab_function_addr): Remove from here...
6380 * dbxread.c: ... to here, and mark it static.
6381
6382 2002-04-20 David S. Miller <davem@redhat.com>
6383
6384 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6385 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6386
6387 2002-04-21 David S. Miller <davem@redhat.com>
6388
6389 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6390 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6391 (vx_write_register): Likewise.
6392
6393 2002-04-23 J. Brobecker <brobecker@gnat.com>
6394
6395 * source.c (is_regular_file): New function.
6396 (openp): Check wether file to open is a regular file
6397 to avoid opening directories.
6398
6399 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6400
6401 * findvar.c (extract_signed_integer): Cast printf argument
6402 to suppress format warning.
6403 (extract_unsigned_integer): Likewise.
6404 * infcmd.c (registers_info): Likewise.
6405 * top.c (get_prompt_1): Likewise.
6406 * valops.c (value_assign): Likewise.
6407 * valprint.c (print_decimal): Likewise.
6408
6409 2002-04-22 H.J. Lu (hjl@gnu.org)
6410
6411 * c-exp.y (typebase): Support
6412
6413 [long|long long|short] [signed|unsigned] [int|]
6414
6415 and
6416
6417 signed [long|long long|short] int
6418
6419 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6422 and vax-tdep.h.
6423 * vax-tdep.h: New file.
6424 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6425 Make several routines static.
6426 (vax_get_saved_register): New function.
6427 (vax_gdbarch_init): New function.
6428 (_initialize_vax_tdep): Register vax_gdbarch_init.
6429 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6430 Remove macros now under the control of gdbarch.
6431
6432 2002-04-22 Michael Snyder <msnyder@redhat.com>
6433
6434 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6435 Some whitespace and coding standards tweaks.
6436
6437 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6438
6439 * vax-tdep.c: Include regcache.h.
6440 (vax_call_dummy_words): New.
6441 (sizeof_vax_call_dummy_words): New.
6442 (vax_fix_call_dummy): New function.
6443 (vax_saved_pc_after_call): Ditto.
6444 * config/vax/tm-vax.h: Don't include regcache.h.
6445 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6446 (CALL_DUMMY): Remove.
6447 (CALL_DUMMY_WORDS): Define.
6448 (SIZEOF_CALL_DUMMY_WORDS): Define.
6449 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6450
6451 2002-04-18 Michael Snyder <msnyder@redhat.com>
6452
6453 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6454
6455 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * vax-tdep.c (vax_frame_chain): New function.
6458 (vax_push_dummy_frame): Ditto.
6459 (vax_pop_frame): Ditto.
6460 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6461 (FRAMELESS_FUNCTION_INVOCATION): Use
6462 generic_frameless_function_invocation_not.
6463 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6464 (POP_FRAME): Use vax_pop_frame.
6465
6466 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6467
6468 * vax-tdep.c (vax_store_struct_return): New function.
6469 (vax_extract_return_value): Ditto.
6470 (vax_store_return_value): Ditto.
6471 (vax_extract_struct_value_address): Ditto.
6472 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6473 vax_store_struct_return.
6474 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6475 (STORE_RETURN_VALUE): Use vax_store_return_value.
6476 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6477
6478 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6479
6480 * vax-tdep.c (vax_frame_saved_pc): New function.
6481 (vax_frame_args_address_correct): Ditto.
6482 (vax_frame_args_address): Ditto.
6483 (vax_frame_locals_address): Ditto.
6484 (vax_frame_num_args): Move code to be in proximity to
6485 other frame-related functions.
6486 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6487 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6488 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6489 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6490 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6491
6492 2002-04-22 H.J. Lu (hjl@gnu.org)
6493
6494 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6495 includedir.
6496
6497 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6498
6499 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6500 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6501 (FRAME_INIT_SAVED_REGS): New macro.
6502
6503 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6504
6505 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6506
6507 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6508
6509 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6510 where needed.
6511 (fetch_osf_core_registers): Likewise.
6512 (supply_gregset): Likewise.
6513
6514 2002-04-22 J. Brobecker <brobecker@gnat.com>
6515
6516 * symfile.h (get_section_index): Define.
6517 * symfile.c (get_section_index): New function.
6518 * mdebugread.c (SC_IS_SBSS): New macro.
6519 (SC_IS_BSS): Return true for the scBss storage class only, as
6520 the scSBss storage class refers to the .sbss section.
6521 (parse_partial_symbols): Discard the symbols which associated
6522 section does not exist.
6523 Make sure to use the .sbss section index for symbols which
6524 storage class is scBss, rather than using the .bss section index.
6525
6526 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6527
6528 * vax-tdep.c: Update copyright years.
6529 (vax_register_name): New function.
6530 (vax_register_byte): Ditto.
6531 (vax_register_raw_size): Ditto.
6532 (vax_register_virtual_size): Ditto.
6533 (vax_register_virtual_type): Ditto.
6534 * config/vax/tm-vax.h: Update copyright years.
6535 (REGISTER_NAMES): Remove.
6536 (REGISTER_NAME): Define.
6537 (REGISTER_BYTE): Use vax_register_byte.
6538 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6539 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6540 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6541
6542 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6543
6544 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6545 declaration
6546 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6547
6548 2002-04-21 David S. Miller <davem@redhat.com>
6549
6550 * arch-utils.c (generic_prologue_frameless_p): Kill
6551 SKIP_PROLOGUE_FRAMELESS_P code.
6552 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6553 references.
6554 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6555 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6556 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6557 references.
6558 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6559 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6560 (sparc_gdbarch_init): Pass it to
6561 set_gdbarch_prologue_frameless_p.
6562
6563 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6566 (alphabsd-nat.o): New dependency list.
6567
6568 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6569
6570 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6571 alphafbsd-tdep.c.
6572 (alpha-linux-tdep.o): New dependency list.
6573 (alphafbsd-tdep.o): Likewise.
6574
6575 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6576
6577 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6578 to here...
6579 * alpha-tdep.c: ...from here.
6580 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6581
6582 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6583
6584 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6585 prototype from here...
6586 * alpha-tdep.h: ...to here.
6587
6588 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6589
6590 * frame.h (selected_frame_level): Document as deprecated.
6591 (frame_relative_level): Declare.
6592 * stack.c (frame_relative_level): New function.
6593 (selected_frame_level): Document as deprecated.
6594 (select_frame): Do not set the selected_frame_level.
6595
6596 * stack.c (frame_info, record_selected_frame): Update.
6597 (frame_command, current_frame_command): Update.
6598 (up_silently_base, up_command, down_silently_base): Update.
6599 (down_command): Update.
6600 * inflow.c (kill_command): Update.
6601 * tracepoint.c (finish_tfind_command): Update.
6602 * corelow.c (core_open): Update.
6603 * thread.c (info_threads_command): Update.
6604 (do_captured_thread_select): Update.
6605 * infcmd.c (finish_command): Update.
6606 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6607
6608 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6609
6610 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6611
6612 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6613
6614 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6615 type const.
6616
6617 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6618
6619 * alphafbsd-tdep.c: Update copyright years. Include
6620 alpha-tdep.h.
6621 (alphafbsd_use_struct_convention): Make static.
6622 (alphafbsd_init_abi): New function.
6623 (_initialize_alphafbsd_tdep): New function.
6624 * config/alpha/tm-fbsd.h: Update copyright years.
6625 (USE_STRUCT_CONVENTION): Remove.
6626
6627 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6628
6629 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6630 an Alpha ABI variant.
6631 (alpha_abi_handler_list): Declare.
6632 (alpha_gdbarch_register_os_abi): New function.
6633 (alpha_gdbarch_init): Give registered ABI variant handlers a
6634 chance to tweak the gdbarch once we have set up defaults.
6635 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6636
6637 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6638
6639 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6640 to standard_coerce_float_to_double.
6641 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6642
6643 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6644
6645 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6646 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6647 from gdbarch_tdep rather than a constant.
6648 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6649 the default text address for all Alpha Unix ABIs.
6650 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6651 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6652
6653 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * alpha-tdep.h: New file. Includes several Alpha target constants
6656 taken from...
6657 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6658 let gdbarch deal with.
6659 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6660 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6661 to dependency list.
6662 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6663 Alpha target register names.
6664 * alphabsd-nat.c: Likewise.
6665 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6666 Alpha target register names. Make serveral routines static.
6667 (alpha_get_saved_register): New function.
6668 (alpha_abi_names): New.
6669 (process_note_abi_tag_sections): New function.
6670 (get_elfosabi): New function.
6671 (alpha_gdbarch_init): New function.
6672 (alpha_dump_tdep): New function.
6673 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6674
6675 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6676
6677 * frame.c (find_saved_register): Delete #ifdef
6678 HAVE_REGISTER_WINDOWS code.
6679 * config/sparc/tm-sparc.h: Update comments.
6680 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6681
6682 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6683
6684 * i960-tdep.c (i960_find_saved_register): New function.
6685 (i960_get_saved_register): New function.
6686 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6687 (i960_get_saved_register): Declare.
6688 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6689
6690 2002-04-20 David S. Miller <davem@redhat.com>
6691
6692 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6693
6694 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6695
6696 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6697 instead of NUM_PSEUDO_REGS.
6698
6699 2002-04-20 David S. Miller <davem@redhat.com>
6700
6701 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6702 GDB_MULTI_ARCH_PARTIAL
6703 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6704 define, let tm-sp64.h do it.
6705
6706 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6707
6708 * frame.c (find_saved_register): Avoid a NULL pointer
6709 dereference and actually walk the frame list.
6710
6711 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6712
6713 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6714 sorted in most most-recent-used order. Document.
6715 * gdbarch.h, gdbarch.c: Regenerate.
6716
6717 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6718
6719 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6720 instead of ->prev.
6721 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6722 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6723 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6724 instead of ->prev.
6725
6726 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6727
6728 Fix PR gdb/471.
6729 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6730 (build_builtin_type_vec128): Ditto.
6731 (append_composite_type_field): Fix calculation of type length in
6732 union case.
6733
6734 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6735
6736 * config/djgpp/README: Update.
6737
6738 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6739 compiler warnings.
6740
6741 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6744 (alpha_setup_arbitrary_frame): ...to this.
6745 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6746 for alpha_setup_arbitrary_frame.
6747
6748 2002-04-18 Andrew Cagney <cagney@redhat.com>
6749
6750 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6751 * gdbarch.h, gdbarch.c: Regenerate.
6752
6753 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6754 * target.h (memory_breakpoint_from_pc): Update declaration.
6755 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6756
6757 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6758 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6759 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6760 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6761 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6762 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6763 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6764 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6765 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6766 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6767 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6768 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6769
6770 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6771 const pointer.
6772 * monitor.c (monitor_insert_breakpoint): Ditto.
6773 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6774
6775 * config/mcore/tm-mcore.h: Update copyright.
6776 * mem-break.c: Ditto.
6777 * xstormy16-tdep.c: Ditto.
6778
6779 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6780
6781 * p-exp.y: Add precedence rule for '^' token.
6782 This removes the shift/reduce conflicts.
6783 Remove the comment concerning these shift/reduce conflicts.
6784
6785 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6786
6787 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6788 (registers_powerpc_nofp): New register set for processors
6789 without floating point unit.
6790
6791 2002-04-18 David S. Miller <davem@redhat.com>
6792
6793 * MAINTAINERS: Add myself to write-after-approval.
6794
6795 2002-04-17 Michael Snyder <msnyder@redhat.com>
6796
6797 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6798
6799 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6800
6801 * rs6000-tdep.c (frame_initial_stack_address): Use
6802 frame_register_read to read the alloca_reg.
6803
6804 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6805
6806 * frame.c (find_saved_register): Find saved registers in the next
6807 not prev frame.
6808 Fix PR gdb/365.
6809
6810 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6811
6812 * gdbarch.sh (LANG): Set to ``c''.
6813
6814 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6815
6816 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6817
6818 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6819
6820 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6821 Update copyright.
6822
6823 * hpread.c (hpread_get_lntt): Add declaration.
6824 Also fix PR gdb/391.
6825
6826 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6827
6828 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6829 * aclocal.m4, configure: Re-generate.
6830 Fix PR gdb/391.
6831
6832 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6833
6834 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6835 instead of tm_print_insn.
6836
6837 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6838
6839 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6840
6841 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6842
6843 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6844 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6845 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6846
6847 2002-04-12 Don Howard <dhoward@redhat.com>
6848
6849 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6850 max_user_call_depth.
6851 (init_cmd_lists): Initialize the new value;
6852 * cli/cli-script.c (execute_user_command): Limit the call depth of
6853 user defined commands. This avoids a core-dump when user commands
6854 are infinitly recursive.
6855
6856 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6857
6858 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6859 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6860 from tdep struct instead of DEFAULT_LR_SAVE.
6861 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6862 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6863 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6864
6865 2002-04-12 Michael Snyder <msnyder@redhat.com>
6866
6867 * Remote.c: Spelling fix.
6868 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6869 If no symbol found for "sbrk", try "_sbrk".
6870 (make_output_phdrs): Use bfd_section_name.
6871 (gcore_copy_callback): Use bfd_section_name.
6872 * eval.c: Indentation fix-ups.
6873 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6874 in case it gets applied to an address that is already
6875 in the instruction space.
6876 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6877 * symfile.c: Fix indentation, long lines.
6878 * source.c: White space fix-up.
6879
6880 2002-04-12 Andrew Cagney <cagney@redhat.com>
6881
6882 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6883 * frame.c (frame_register_read): New function. Return non-zero on
6884 success.
6885 (read_relative_register_raw_bytes_for_frame): Delete.
6886 (read_relative_register_raw_bytes): Delete.
6887 * frame.h (frame_register_read): Declare.
6888 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6889 * sh-tdep.c: Ditto.
6890 * infcmd.c (do_registers_info): Ditto.
6891 * hppa-tdep.c: Ditto.
6892 * rs6000-tdep.c: Ditto.
6893 * h8500-tdep.c: Ditto.
6894 * mips-tdep.c: Ditto.
6895 * h8300-tdep.c: Ditto.
6896 * z8k-tdep.c: Ditto.
6897
6898 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6899
6900 From Jimi X <jimix@watson.ibm.com>:
6901 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6902 64-bit SysV ABI.
6903
6904 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6905
6906 From Jimi X <jimix@watson.ibm.com>:
6907 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6908 bfd info.
6909
6910 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6911
6912 From Jimi X <jimix@watson.ibm.com>:
6913 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6914 register sets for these processor variants.
6915
6916 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6917
6918 * regformats/reg-ppc.dat: Support FPSCR.
6919
6920 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6921
6922 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6923 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6924 Add fpscr as an invalid/unfetchable register.
6925 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6926 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6927 (fill_fpregset): Add support for register fpscr.
6928 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6929 (fill_gregset): Account for the fact that register ``mq'' might
6930 not exist.
6931 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6932 (registers_power): Add fpscr to register set at slot 71.
6933 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6934 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6935
6936 2002-04-11 Michael Snyder <msnyder@redhat.com>
6937
6938 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6939 * configure: Regenerate.
6940 * config.in: Regenerate.
6941 * acconfig.h: Add define for _SYSCALL32.
6942 * core-sol2.c: Remove #define _SYSCALL32.
6943 * solib-legacy.c: Remove #define _SYSCALL32.
6944
6945 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6946
6947 * stack.c (select_frame): Cleanup internal error message, do not
6948 use %p.
6949
6950 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6951
6952 * stack.c (select_frame): Check that selected_frame and the
6953 specified level are as expected.
6954 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6955 Update copyright.
6956 * frame.h (struct frame_info): Add field `level'. Update
6957 copyright.
6958 Work-in-progress PR gdb/464.
6959
6960 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6961
6962 * maint.c (maint_print_section_info): Rename print_section_info.
6963 (print_bfd_section_info, print_objfile_section_info): Update.
6964 * inferior.h (struct gdbarch): Add opaque declaration.
6965 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6966 * gdbarch.h: Regenerate.
6967
6968 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6969
6970 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6971 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6972 (kernel_u_size): Added.
6973 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6974 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6975
6976 2002-04-04 Jim Ingham <jingham@apple.com>
6977
6978 * valarith.c (find_size_for_pointer_math): New function, either returns
6979 the size for a pointer's target, returns 1 for void *, or errors for
6980 incomplete types.
6981 (value_add, value_sub): use find_size_for_pointer_math.
6982
6983 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * linux-low.c (linux_look_up_symbols): New hook.
6986 (linux_target_ops): Add linux_look_up_symbols.
6987 * remote-utils.c (decode_address): New function.
6988 (look_up_one_symbol): New function.
6989 * server.c (handle_query): Call target look_up_symbols hook.
6990 * server.h (look_up_one_symbol): Add prototype.
6991 * target.h (struct target_ops): Add look_up_symbols hook.
6992
6993 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6994
6995 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6996 override FP_REGNUM with frame->fp. Update copyright.
6997 * parse.c (num_std_regs, std_regs): Delete.
6998 (target_map_name_to_register): Do not search std_regs. Update
6999 function description.
7000 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7001 declarations. Update copyright.
7002 Fix PR gdb/251.
7003
7004 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7007 after the last symbol in a block.
7008
7009 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7010
7011 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7012 is non zero as a found symbol.
7013
7014 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7015
7016 * findvar.c: Include "builtin-regs.h".
7017 (value_of_register): Call value_of_builtin_reg when applicable.
7018 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7019 (target_map_name_to_register): Call
7020 builtin_reg_map_name_to_regnum.
7021 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7022 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7023 (builtin_regs_h): Define.
7024 (builtin-regs.o): New target.
7025 (findvar.o): Add $(builtin_regs_h).
7026 * builtin-regs.c, builtin-regs.h: New files.
7027 * std-regs.c: New file.
7028 Partial fix for PR gdb/251.
7029
7030 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7031
7032 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7033 it's no longer required.
7034
7035 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7036
7037 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7038
7039 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7040
7041 From Jimi X <jimix@watson.ibm.com>:
7042 * rs6000-tdep.c (rs6000_software_single_step): Use
7043 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7044 and size. Use target_insert_breakpoint() and
7045 target_remove_breakpoint() to insert and remove breakpoints
7046 instead of explicit memory reads and writes.
7047
7048 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7049
7050 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7051 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7052 ELF_OBJECT_FORMAT ifdef.
7053
7054 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7055
7056 From Jimi X <jimix@watson.ibm.com>:
7057 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7058
7059 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7060
7061 From Jimi X <jimix@watson.ibm.com>:
7062 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7063 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7064
7065 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7066
7067 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7068 s/asprintf/xasprintf/.
7069 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7070
7071 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7072
7073 I believe Jeff Law denies responsability for this one:
7074 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7075 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7076 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7077 Work-around for PR gdb/366.
7078
7079 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7080
7081 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7082 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7083 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7084
7085 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7086
7087 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7088 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7089 information.
7090
7091 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7092
7093 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7094 maintainer.
7095
7096 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7097
7098 * README (Reporting Bugs in GDB): Document the bug web page as the
7099 prefered way of submitting bugs.
7100 Fix PR gdb/402.
7101
7102 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7103
7104 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7105 -1. Update comment.
7106 * gdbarch.h, gdbarch.c: Re-generate.
7107
7108 2002-04-07 Andreas Schwab <schwab@suse.de>
7109
7110 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7111 buffer to regcache_collect.
7112
7113 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7114
7115 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7116 * gdbarch.c, gdbarch.h: Re-generate.
7117
7118 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7119
7120 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7121 declaration. Fix -Werror.
7122
7123 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7124
7125 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7126 * gdbarch.c: Regenerate.
7127
7128 2002-04-05 Michael Snyder <msnyder@redhat.com>
7129
7130 * breakpoint.c (clear_command): Rewrite middle section to
7131 combine two loops with identical control conditions.
7132 Add a cleanup to eliminate a memory leak.
7133 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7134
7135 2002-04-05 H.J. Lu (hjl@gnu.org)
7136
7137 * solib-svr4.c (bkpt_names): Add "__start".
7138
7139 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7140
7141 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7142 as test for 64 bit target.
7143
7144 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7145
7146 * h8500-tdep.c (h8500_write_fp): Delete function.
7147 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7148 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7149 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7151 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7152 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7153 (s390_write_fp):
7154 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7155 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7156 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7157 (d10v_write_fp): Delete function.
7158 * inferior.h (write_fp, generic_target_write_fp): Delete
7159 declarations.
7160 * regcache.c (generic_target_write_fp): Delete function.
7161 (write_fp): Delete function.
7162 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7163 * gdbarch.h, gdbarch.c: Regenerate.
7164 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7165 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7166 (sparc64_write_fp): Delete declaration.
7167 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7168 (h8500_write_fp): Delete declaration.
7169
7170 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7171
7172 * sparc-tdep.c (sparc64_write_fp): Delete.
7173 (sparc_push_dummy_frame): Replace write_fp call with code to store
7174 the FP directly.
7175 (sparc_gdbarch_init): Do not initialize write_fp.
7176
7177 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7178
7179 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7180 clause.
7181
7182 2002-03-29 Jim Blandy <jimb@redhat.com>
7183
7184 * stack.c (get_selected_block): Add new argument `addr_in_block',
7185 used to return the exact code address we used to select the block,
7186 not just the block.
7187 * blockframe.c (get_frame_block, get_current_block): Same.
7188 * frame.h (get_frame_block, get_current_block,
7189 get_selected_block): Update declarations.
7190 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7191 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7192
7193 2002-04-05 Michael Snyder <msnyder@redhat.com>
7194
7195 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7196 warning message.
7197
7198 2002-04-05 J. Brobecker <brobecker@gnat.com>
7199
7200 * utils.c (xfullpath): New function.
7201 * defs.h (xfullpath): Add declaration.
7202 * source.c (openp): Use xfullpath in place of gdb_realpath to
7203 avoid resolving the basename part of filenames when the
7204 associated file is a symbolic link. This fixes a potential
7205 inconsistency between the filenames known to GDB and the
7206 filenames it prints in the annotations.
7207 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7208 to be able to match a filename with either the real filename, or
7209 the name of any symbolic link to this file.
7210 (lookup_partial_symtab): Ditto.
7211
7212 2002-04-04 Michael Snyder <msnyder@redhat.com>
7213
7214 * breakpoint.c: Add support for hardware breakpoints in overlays.
7215 (overlay_events_enabled): New state variable.
7216 (insert_breakpoints): Use overlay_events_enabled to decide
7217 whether to attempt to set a breakpoint at the overlay load addr.
7218 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7219 (remove_breakpoint): Use overlay_events_enabled to decide
7220 whether breakpoints need to be removed from overlay load addr.
7221 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7222 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7223 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7224 disable_overlay_breakpoints): Update overlay_events_enabled.
7225
7226 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7227
7228 * dwarf2read.c (struct function_range): New.
7229 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7230 (check_cu_functions): New.
7231 (read_file_scope): Initialize global function lists.
7232 Call dwarf_decode_line after processing children.
7233 (read_func_scope): Add to global function list.
7234 (dwarf_decode_lines): Call check_cu_functions everywhere
7235 record_line is called. Call record_line with a linenumber
7236 of 0 to mark sequence ends.
7237
7238 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7239
7240 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7241 change sync with glibc.
7242
7243 2002-04-03 Jim Blandy <jimb@redhat.com>
7244
7245 * configure.in: Call AC_C_INLINE.
7246 * configure: Regenerated.
7247
7248 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7249
7250 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7251 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7252
7253 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7254
7255 * NEWS: Mention gcore support on FreeBSD/i386.
7256
7257 * fbsd-proc.c: New file.
7258 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7259 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7260
7261 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7262 while statement.
7263
7264 2002-03-29 Jim Blandy <jimb@redhat.com>
7265
7266 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7267 unescaped newlines in string literals, but newer ones don't. So
7268 escape them.
7269
7270 2002-03-26 Michael Snyder <msnyder@redhat.com>
7271 Andrew Cagney <cagney@redhat.com>
7272
7273 * cli/cli-dump.c: New file. Dump memory to file,
7274 restore file to memory.
7275 * cli/cli-dump.h: New file.
7276 * Makefile.in: Add rules, dependencies for cli-dump.o.
7277 * NEWS: Mention new commands.
7278
7279 2002-03-28 Michael Snyder <msnyder@redhat.com>
7280
7281 * symfile.c (symbol_file_add): Move test for null symbols to later.
7282
7283 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7284
7285 From veksler at il.ibm.com:
7286 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7287 the xstrduped original path.
7288 Fix PR gdb/417.
7289
7290 2002-03-27 Michael Snyder <msnyder@redhat.com>
7291
7292 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7293 * infcmd.c (_initialize_infcmd): Ditto.
7294 * language.c (_initialize_language): Ditto.
7295 * symfile.c (_initialize_symfile): Ditto.
7296 * top.c (_init_main): Ditto.
7297 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7298
7299 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7300
7301 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7302 vector registers handling.
7303 (skip_prologue): Handle new AltiVec instructions. Fill in new
7304 fields of frame data.
7305 (frame_get_saved_regs): Fill in information for AltiVec registers.
7306
7307 2002-03-27 Jim Blandy <jimb@redhat.com>
7308
7309 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7310 a function; leave this macro here to invoke that function.
7311 (symbol_init_mangled_name): Declaration for that function.
7312 * symtab.c (symbol_init_mangled_name): New function.
7313
7314 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7315
7316 * valarith.c: Replace strerror with safe_strerror.
7317 * tracepoint.c: Ditto.
7318 * lin-lwp.c: Ditto.
7319 * go32-nat.c: Ditto.
7320 * inflow.c: Ditto.
7321 * gnu-nat.c: Ditto.
7322
7323 2002-03-27 Andreas Schwab <schwab@suse.de>
7324
7325 * event-top.c (command_line_handler): Remove useless if.
7326
7327 2002-03-27 Andreas Jaeger <aj@suse.de>
7328
7329 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7330 comment.
7331
7332 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7333
7334 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7335 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7336 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7337 (x86_64_linux_dr_get_status, supply_gregset),
7338 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7339 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7340 (x86_64_register_info_table): Add.
7341 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7342 (x86_64_register_raw_size, x86_64_register_virtual_type),
7343 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7344 general x86_64_register_info_table.
7345 (i386_gdbarch_init): gdbarch_register_bytes is now set
7346 dynamicaly during initialization.
7347 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7348 * gdbserver/linux-x86-64-low.c: Ditto.
7349
7350 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7351
7352 * gdbserver/server.c (main): Call target_signal_to_host_p
7353 and target_signal_to_host on signals received from the remote.
7354 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7355 target_signal_from_host on signals sent to the remote.
7356 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7357 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7358
7359 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * signals/signals.c: Include "server.h" in gdbserver build.
7362 (target_signal_from_name): Don't use STREQ.
7363 (_initialize_signals): Likewise. Don't include function in
7364 gdbserver build.
7365
7366 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7367
7368 * signals.c: Moved to...
7369 * signals/signals.c: Here.
7370 * Makefile (signals.o): Update.
7371
7372 2002-03-26 Jeff Law (law@redhat.com)
7373
7374 * somread.c (som_symtab_read): Remove some commented out code and
7375 updated related comments. Do not set the minimal symbol table to
7376 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7377 in a dynamic executable.
7378 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7379 where we are unable to find the minimal symbol for the given
7380 PC value.
7381
7382 2002-03-25 Jeff Law (law@redhat.com)
7383
7384 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7385
7386 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7387
7388 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7389
7390 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7391
7392 * command.h: Update copyright.
7393 (struct cmd_list_element): Replace definition with opaque
7394 declaration.
7395 (enum cmd_types): Document that it will eventually be moved to
7396 cli/cli-decode.h
7397 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7398 (MALLOCED_REPLACEMENT): Delete macro.
7399 * Makefile.in (cli_decode_h): Add $(command_h).
7400 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7401 * top.c: Include "cli/cli-decode.h".
7402 * completer.c: Include "cli/cli-decode.h".
7403 * maint.c: Include "cli/cli-decode.h".
7404 * cli/cli-decode.h: Include "command.h".
7405 (enum command_class): Delete.
7406 (enum cmd_types): Comment out.
7407 (enum cmd_auto_boolean): Delete.
7408 (enum var_types): Delete.
7409
7410 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7411
7412 * cli/cli-decode.c: Include "gdb_assert.h".
7413 (add_set_or_show_cmd): New static function.
7414 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7415 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7416 all fields, such as func, from the set command.
7417
7418 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7419
7420 * MAINTAINERS (sh-elf): Change warning flag to -w.
7421
7422 2002-03-23 Andrew Cagney <cagney@redhat.com>
7423
7424 * defs.h (error): Add printf format attribute.
7425 * thread-db.c (thread_from_lwp): Fix error format string.
7426 * stack.c (parse_frame_specification): Ditto.
7427 * cli/cli-decode.c (undef_cmd_error): Ditto.
7428 * scm-lang.c (scm_lookup_name): Ditto.
7429 * tracepoint.c (trace_error): Ditto.
7430 * remote-utils.c (usage): Ditto.
7431 * remote.c (compare_sections_command): Ditto.
7432 Fix PR gdb/328.
7433
7434 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7435
7436 * gdbtypes.c (append_composite_type_field): New function.
7437 (init_composite_type): New function.
7438 * gdbtypes.h (append_composite_type_field): Declare.
7439 (init_composite_type): Ditto.
7440
7441 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7444 function.
7445 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7446 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7447 structure returning convention for SYSV ABI case, but not
7448 for GNU/Linux, FreeBSD, or NetBSD.
7449
7450 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7451
7452 * symtab.h (lookup_block_symbol): Add mangled_name argument
7453 to prototype.
7454
7455 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7456 with new mangled_name argument.
7457 * linespec.c (decode_line_1): Likewise.
7458 * valops (value_of_this): Likewise.
7459 * symtab.c (lookup_transparent_type): Likewise.
7460 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7461 (lookup_symbol): If we are given a mangled name, pass it down
7462 to lookup_symbol_aux.
7463 (lookup_block_symbol): If we are given a mangled name to check
7464 against, only return symbols which match it.
7465
7466 2002-03-22 Christopher Faylor <cgf@redhat.com>
7467
7468 * win32-nat.c (child_create_inferior): Check for proper shell to use
7469 here, in case the user changes it on the fly.
7470 (_initialize_inftarg): Remove shell path considerations.
7471
7472 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7473
7474 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7475 for gdbarch_max_register_raw_size and max_register_virtual_size.
7476 Adjust copyright year.
7477
7478 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7479
7480 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7481 in a function to cover the entire beginning of the function
7482 as well if it does not already.
7483
7484 2002-03-21 Tom Rix <trix@redhat.com>
7485
7486 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7487 (rs6000_ptrace64): Renamed from ptrace64.
7488
7489 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7490
7491 * gdbserver/remote-utils.c (remote_open): Don't call
7492 getprotobyname, we're all using TCP here so just use
7493 IPPROTO_TCP.
7494 * gdbserver/gdbreplay.c (remote_open): Ditto.
7495
7496 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7497
7498 * regcache.c (_initialize_regcache): No need to call
7499 build_regcache() at this time; it gets called whenever
7500 the gdbarch changes.
7501
7502 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7503
7504 * sparc-nat.c: Include sys/param.h where possible.
7505
7506 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7507
7508 Fix PR gdb/422.
7509 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7510 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7511 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7512 complex types.
7513 * stabsread.c (rs6000_builtin_type): Likewise.
7514 (read_sun_floating_type): Likewise.
7515
7516 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7517
7518 * stabsread.c (read_member_functions): Remove skip code for duplicate
7519 constructor/destructor methods. Use standard parsing for these
7520 methods and just do not chain them to the list of methods after
7521 parsing.
7522
7523 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7524
7525 * coffread.c: Remove redundant static declarations. Replace
7526 occurrences of `PTR' with `void *'.
7527 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7528 * top.h (quit_cover): Likewise.
7529 * defs.h (catch_errors): Likewise.
7530
7531 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7532
7533 * defs.h (XMALLOC): Define.
7534 * gdb-events.sh (XMALLOC): Delete macro.
7535 * gdb-events.c, gdb-events.h: Regenerate.
7536 * gdbarch.sh (XMALLOC): Delete macro.
7537 * gdbarch.c: Regenerate.
7538 * serial.c (XMALLOC): Delete macro.
7539 * ui-file.c (XMALLOC): Ditto.
7540 * ser-unix.h (XMALLOC): Ditto.
7541 * sh-tdep.c (XMALLOC): Ditto.
7542 * ui-out.c (XMALLOC): Ditto.
7543 * utils.c (XMALLOC): Ditto.
7544 * i386-tdep.c (XMALLOC): Ditto.
7545 * gdb-events.c (XMALLOC): Ditto.
7546 * d10v-tdep.c (XMALLOC): Ditto.
7547 * cli-out.c (XMALLOC): Ditto.
7548
7549 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7550 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7551 * ui-file.c, ui-out.c: Ditto.
7552
7553 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7554
7555 * command.h (struct cmd_list_element): Add field context.
7556 (set_cmd_context, get_cmd_context): Declare.
7557 * cli/cli-decode.h: Ditto.
7558 * cli/cli-decode.c (get_cmd_context): New function.
7559 (set_cmd_context): New function.
7560 (add_cmd): Initialize context.
7561 Part of fixing PR gdb/145 and PR gdb/146.
7562
7563 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7564
7565 * cli/cli-decode.c (cmd_type): New function.
7566 * command.h (cmd_type): Declare.
7567 * infrun.c (set_schedlock_func): Call function cmd_type.
7568 * kod.c (kod_set_os): Call cmd_type.
7569 * cris-tdep.c (cris_version_update): Use function cmd_type.
7570 (cris_mode_update, cris_abi_update): Ditto.
7571
7572 * command.h: (execute_cmd_post_hook): Declare.
7573 (execute_cmd_pre_hook): Declare.
7574 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7575 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7576 functions. Execute pre/post hook while ensuring that afterwords
7577 hook_in is cleared.
7578 * top.c (execute_command): Use execute_cmd_post_hook, and
7579 execute_cmd_pre_hook to execute pre/post commands.
7580 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7581 hook_stop_stub.
7582 (hook_stop_stub): Call execute_cmd_pre_hook.
7583
7584 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7585
7586 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7587 set'' and this leads to a core dump. Move xstrdup of
7588 operating_system to after check that it is not NULL.
7589
7590 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7591
7592 * kod.c (kod_set_os): Remove unnecessary check that
7593 ``command->type'' is set_cmd.
7594
7595 * valprint.c (set_input_radix): Use input_radix.
7596 (set_output_radix): Use output_radix.
7597 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7598 isn't reverted.
7599
7600 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7601
7602 * value.h (struct value): Delete field ``substring_addr''. Change
7603 aligner fields to force_doublest_align, force_longest_align,
7604 force_core_addr_align and force_pointer_aligh.
7605
7606 * value.h (struct value): Fix typo in above change.
7607
7608 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7609
7610 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7611 to fix internal_error from ``maintenance print architecture''.
7612
7613 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7614
7615 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7616 for gcc versions after gcc-2.8.1.
7617
7618 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7619
7620 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7621 for method resolution. Restore adjustment of ``this'' pointer after
7622 calling value_struct_elt, which was accidentally removed during the
7623 HP merge.
7624
7625 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7626
7627 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7628 value_of_register.
7629 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7630 get_saved_register.
7631 * value.h (value_of_register): Update.
7632
7633 2002-03-14 Richard Henderson <rth@redhat.com>
7634
7635 * configure.in: Detect declaration for canonicalize_file_name.
7636 * utils.c (canonicalize_file_name): Declare, if needed.
7637 (gdb_realpath): Prefer realpath if available and usable.
7638 * config.in, configure: Rebuild.
7639
7640 2002-03-14 Richard Henderson <rth@redhat.com>
7641
7642 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7643 a constant array bound.
7644
7645 * MAINTAINERS: Add myself to write-after-approval.
7646
7647 2002-03-14 Michael Snyder <msnyder@redhat.com>
7648
7649 * symfile.c (syms_from_objfile): Return immediately if no syms.
7650 (symbol_file_add): Return immediately if no syms.
7651 (find_sym_fns): Return immediately if no syms.
7652
7653 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7654
7655 * gdbserver/remote-util.c (remote_open): Print remote-side's
7656 IP address when remote debugging over the network.
7657
7658 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7659
7660 * config/sparc/fbsd.mh: Fix copyright.
7661 * config/sparc/fbsd.mt: Likewise.
7662
7663 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7664
7665 * MAINTAINERS: Fix typo in name of gdb warnings option.
7666 (x86-64): Fix formating so that this can be parsed by awk.
7667
7668 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7671 * defs.h: Include "gdb/signals.h".
7672 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7673
7674 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7675
7676 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7677 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7678 from x86-64-tdep.h
7679
7680 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7681 Don Howard <dhoward@redhat.com>
7682
7683 * mips-tdep.c (ST0_FR): Define.
7684 (mips2_fp_compat): New function, temporarily disabled.
7685 (mips_read_fp_register_single): New function.
7686 (mips_read_fp_register_double): New function.
7687 (mips_print_register): Use them.
7688 (do_fp_register_row): Likewise.
7689
7690 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7691
7692 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7693 approval''.
7694
7695 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7696
7697 * stabsread.c (read_member_functions): Fix is_stub test for
7698 static member functions, improve comment.
7699
7700 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7701
7702 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7703 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7704 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7705 commands that set boolean values.
7706 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7707 (arm_rdi_resume): Always initialize PC.
7708 (arm_rdi_open): Don't use rslt as a boolean.
7709 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7710 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7711 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7712 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7713
7714 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7715
7716 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7717 * configure: Rebuilt.
7718
7719 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7720
7721 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7722 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7723
7724 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7725
7726 * cli/cli-decode.c (set_cmd_completer): New function.
7727 * command.h (set_cmd_completer): Declare.
7728 * cli/cli-decode.h (set_cmd_completer): Ditto.
7729
7730 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7731 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7732 * win32-nat.c (_initialize_inftarg): Ditto.
7733 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7734 * proc-api.c (_initialize_proc_api): Ditto.
7735 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7736 * source.c (_initialize_source): Ditto.
7737 * exec.c (_initialize_exec): Ditto.
7738 * solib.c (_initialize_solib): Ditto.
7739 * top.c (init_main): Ditto.
7740 * tracepoint.c (_initialize_tracepoint): Ditto.
7741 * symfile.c (_initialize_symfile): Ditto.
7742 * printcmd.c (_initialize_printcmd): Ditto.
7743 * infcmd.c (_initialize_infcmd): Ditto.
7744 * corefile.c (_initialize_core): Ditto.
7745
7746 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7747
7748 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7749
7750 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7751
7752 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7753
7754 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7755
7756 * NEWS: Update headings, 5.2 has branched.
7757
7758 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7759
7760 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7761 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7762 (register_addr, REGISTER_RAW_SIZE): Likewise.
7763 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7764 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7765
7766 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7767
7768 * MAINTAINERS (x86-64): Add myself.
7769 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7770 changed value_ptr -> struct value *
7771
7772 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7773
7774 * configure.host (sparc64-*-freebsd): Add.
7775 * configure.tgt: Likewise.
7776 * config/sparc/fbsd.mh: New file.
7777 * config/sparc/fbsd.mt: Likewise.
7778 * config/sparc/nm-fbsd.h: Likewise.
7779 * config/sparc/tm-fbsd.h: Likewise.
7780
7781 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7782
7783 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7784 regformats/reg-s390x.dat.
7785
7786 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7787
7788 * utils.c: Add FIXME explaining true/false problem.
7789
7790 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7791
7792 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7793
7794 2002-02-28 Michael Chastain <mec@shout.net>
7795
7796 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7797
7798 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7799
7800 * gdbserver/linux-s390-low.c: New file.
7801 * regformats/reg-s390.dat: New file.
7802 * regformats/reg-s390x.dat: New file.
7803 * gdbserver/configure.srv: Add S/390.
7804 * gdbserver/Makefile.in: Add S/390.
7805 * configure.tgt: Enable gdbserver for S/390.
7806
7807 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7808
7809 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7810 first line of the doc string for "info dos", except at the end of
7811 the sentence, since the short help stops at the first period.
7812
7813 2002-02-28 Jason Merrill <jason@redhat.com>
7814
7815 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7816
7817 2002-02-27 Fred Fish <fnf@redhat.com>
7818
7819 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7820 comment (dumy -> dummy).
7821
7822 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7823
7824 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7825
7826 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7827
7828 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7829
7830 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7831
7832 * gdbserver/acconfig.h: New file.
7833 * gdbserver/i387-fp.c: New file.
7834 * gdbserver/i387-fp.h: New file.
7835 * gdbserver/linux-x86-64.c: New file.
7836 * regformats/reg-x86-64.dat: New file.
7837 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7838 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7839 * gdbserver/configure.in: Add support for regsets.
7840 * gdbserver/config.in: Regenerate.
7841 * gdbserver/configure: Regenerate.
7842 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7843 * gdbserver/linux-low.h: New file.
7844 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7845 for regsets.
7846 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7847 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7848 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7849 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7850 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7851 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7852 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7853 "i387-fp.h". Add PTRACE_GETREGS and friends.
7854 * gdbserver/regcache.c (supply_register): New function.
7855 (supply_register_by_name): New function.
7856 (collect_register): New function.
7857 (collect_register_by_name): New function.
7858
7859 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7860
7861 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7862 (config.status): Add configure.srv dependency.
7863 (server_h): Add config.h dependency.
7864
7865 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7866
7867 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7868 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7869 * gdbserver/configure.srv: Change i386-*-linux* to use
7870 reg-i386-linux.o.
7871
7872 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7873
7874 * x86-64-tdep.c: Re-indent. Update copyright date.
7875
7876 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7877
7878 From Michal Ludvig <mludvig@suse.cz>:
7879 * x86-64-tdep.c (value.h): Delete.
7880 (gdb_assert.h): Include.
7881 (x86_64_register_convert_to_virtual,
7882 x86_64_register_convert_to_raw ): Add check which lets only
7883 floating-point values to be converted.
7884 (value_push): Delete.
7885 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7886 (i386_gdbarch_init): Number of register_bytes fixed.
7887
7888 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7889
7890 * MAINTAINERS: Add x86-64 target.
7891
7892 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7893
7894 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7895 * osfsolib.c (solib_map_sections): Ditto.
7896 * irix5-nat.c (solib_map_sections): Ditto.
7897 * corelow.c (gdb_check_format): Ditto.
7898 * symfile.c (symfile_bfd_open): Ditto.
7899 * solib.c (solib_map_sections): Ditto.
7900 Fix PR gdb/354.
7901
7902 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7903
7904 * remote.c (_initialize_remote): By default, disable ``e'' and
7905 ``E'' step out-of-range packets.
7906
7907 2002-02-26 Andreas Schwab <schwab@suse.de>
7908
7909 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7910 m68k_linux_frame_saved_pc.
7911 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7912 in_sigtramp.
7913 (SIGCONTEXT_PC_OFFSET): Remove.
7914 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7915 m68k_linux_sigtramp_saved_pc): New functions.
7916 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7917 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7918 (UCONTEXT_PC_OFFSET): Define.
7919 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7920 non-RT and RT signal trampolines.
7921
7922 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7923
7924 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7925 (TARGET_NBPG, STACK_END_ADDR): Delete
7926 (VARIABLES_INSIDE_BLOCK): Delete.
7927
7928 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7929
7930 * utils.c (perror_with_name): Make string parameter constant.
7931 (print_sys_errmsg): Ditto.
7932 (query): Ditto.
7933 * defs.h (perror_with_name): Update.
7934 (print_sys_errmsg): Update.
7935 (query): Update.
7936
7937 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7938
7939 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7940 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7941
7942 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7943
7944 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7945 if it already matches the current architecture from the exec file.
7946 Include arch-utils.h for gdbarch_info_init prototype.
7947 * Makefile.in (rs6000-nat.o): Update dependencies.
7948
7949 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7950
7951 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7952 list of exported variables.
7953
7954 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7955
7956 * gdbserver/configure.srv: New file.
7957 * gdbserver/configure.in: Use configure.srv instead
7958 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7959 from it.
7960 * gdbserver/configure: Regenerated.
7961 * gdbserver/terminal.h: New file.
7962 * gdbserver/Makefile.in: Update for configure changes. Remove
7963 more unneeded include paths.
7964
7965 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7966
7967 From wiz at danbala:
7968 * config/sparc/tm-sp64.h: Fix grammar and typos.
7969 Fix PR gdb/287.
7970
7971 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7972
7973 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7974 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7975 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7976 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7977 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7978 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7979 * s390-tdep.c: Ditto.
7980 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7981 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7982 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7983 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7984 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7985 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7986 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7987 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7988 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7989 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7990 Fix PR gdb/378.
7991
7992 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7993
7994 * lin-thread.c: Delete file.
7995 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7996 to gdb_proc_service.h.
7997 * configure: Re-generate.
7998
7999 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8000 * serial.c (serial_open): Delete check for "ocd".
8001 Fix PR gdb/349.
8002
8003 * Makefile.in (linux-thread.o): Delete target.
8004 * linux-thread.c: Delete file.
8005
8006 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8007 renamed SH files to be consistent.
8008
8009 * symtab.c (sort_search_symbols): Use xfree.
8010
8011 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8012
8013 * arm-linux-tdep.c (arm_linux_init_abi): Register
8014 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8015 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8016 definition with undef, since we don't want the sysvr4 definition.
8017 (SKIP_TRAMPOLINE_CODE): Likewise.
8018
8019 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8020
8021 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8022
8023 * configure.in: (AC_CHECK_FUNCS) Added test for
8024 canonicalize_file_name Regenerated.
8025 * config.in, configure: Regenerated.
8026 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8027 defined use canonicalize_file_name.
8028
8029 2002-02-23 Michael Chastain <mec@shout.net>
8030
8031 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8032
8033 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8034
8035 * README: Remove references to cygnus.com.
8036 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8037 dot com'' form. Remove references to cygnus.com and sourceware.
8038
8039 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8040
8041 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8042 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8043 1003.1-2001 no longer allows "head -1".
8044 * gdb/Makefile.in (version.c): Likewise.
8045 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8046 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8047 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8048
8049 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8050
8051 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8052 * command.h (cmd_cfunc_eq): Declare.
8053 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8054
8055 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8056 ``struct cmd_list_element *''.
8057 * cli/cli-cmds.c (is_complete_command): Update. Use
8058 cmd_cfunc_eq.
8059 * top.c (execute_command): Pass the command to
8060 is_complete_command.
8061 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8062
8063 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8064
8065 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8066 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8067 architecture defines.
8068 * s390-tdep.c (s390_gdbarch_init): Likewise.
8069
8070 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8071
8072 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8073 (arm_linux_push_arguments): Likewise.
8074 (arm_linux_init_abi): Register them. Also register linux-specific
8075 call_dummy_words.
8076 (find_minsym_and_objfile): Use strcmp, not STREQ.
8077 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8078 (arm_linux_call_dummy_words): Delete declaration.
8079 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8080 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8081 declarations.
8082 (LOWEST_PC): Delete.
8083
8084 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8085
8086 * maint.c (print_section_info): Do not prepend `0x' to filepos
8087 output, it will be handled by local_hex_string_custom.
8088
8089 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8092 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8093 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8094
8095 2002-02-22 Jim Blandy <jimb@redhat.com>
8096
8097 Indicate that the bcache functions don't change the strings
8098 they're passed.
8099 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8100 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8101
8102 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8103
8104 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8105
8106 2002-02-21 Christopher Faylor <cgf@redhat.com>
8107
8108 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8109 find the complete path to a loaded DLL.
8110
8111 2002-02-21 Fred Fish <fnf@redhat.com>
8112
8113 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8114 that marks the end of the range of a function, enter a line number
8115 entry that has a line number of zero and a PC offset that matches
8116 the end of the function. This starts a range of PC's for which no
8117 line number information is known.
8118 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8119 PC's for which no line number info is found (line number is zero)
8120 then we didn't find any valid line information.
8121 * symtab.h: Document use of zero line number entry.
8122
8123 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8124
8125 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8126 (have_ptrace_getvrregs): Define for run time checks.
8127 (gdb_vrregset_t): New type for Altivec register handling.
8128 (fetch_register, store_register): Fetch/store altivec register
8129 when needed.
8130 (fetch_altivec_register, store_altivec_register): New functions.
8131 (supply_vrregset, fill_vrregset): New functions.
8132 (fetch_altivec_registers, store_altivec_registers): New functions.
8133 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8134 registers as well.
8135
8136 2002-02-21 Jiri Smid <smid@suse.cz>
8137
8138 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8139
8140 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8141
8142 * Makefile.in (armnbsd-nat.o): Update dependencies.
8143 * armnbsd-nat.c (supply_gregset): New function. Common code to
8144 supply the integer register set.
8145 (supply_fparegset): New function. Similar for FPA registers.
8146 (fetch_regs, fetch_fp_regs): Use them.
8147 (fetch_core_registers): Likewise.
8148 (fetch_elfcore_registers): New function.
8149 (arm_netbsd_elfcore_fns): New core-file type specification.
8150 (_initialize_arm_netbsd_nat): Register it.
8151
8152 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8153
8154 * armnbsd-nat.c: Include gdbcore.h.
8155 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8156 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8157 'void' to declaration, to shut up ARI.
8158 (fetch_core_registers): Make static. Rewrite using supply_register.
8159 (arm_netbsd_core_fns): New core-file type specification.
8160 (_initialize_arm_netbsd_nat): New function.
8161
8162 2002-02-21 Christopher Faylor <cgf@redhat.com>
8163
8164 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8165 value.
8166
8167 2002-02-20 Christopher Faylor <cgf@redhat.com>
8168
8169 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8170 fails.
8171
8172 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8173
8174 * jv-exp.y (parse_number): Change type of implicit longs
8175 to builtin_type_uint64.
8176
8177 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8178
8179 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8180 to be an integer instead of a `union wait'.
8181
8182 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8183
8184 * mips-linux-nat.c: Call the operating system GNU/Linux.
8185 * mips-linux-tdep.c: Likewise.
8186 * mips-tdep.c: Likewise.
8187
8188 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8189
8190 Fix PR gdb/265.
8191 * jv-exp.y (parse_number): Handle 64-bit integers.
8192
8193 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8194
8195 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8196 AC_STDC_HEADERS to AC_HEADER_STDC.
8197 * gdbserver/configure: Regenerated.
8198
8199 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8202 is defined.
8203 * sparc-tdep.c (get_longjmp_target): Likewise.
8204
8205 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8206
8207 * News: Add news about ARM and Multi-arch. Mention the new target
8208 arm*-*-netbsd*.
8209
8210 2002-02-19 Jim Blandy <jimb@redhat.com>
8211
8212 * stabsread.c (error_type_complaint): Improve error message.
8213
8214 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * gdbserver/README: Update documentation.
8217 * gdbserver/configure.in: Update configury to match documentation.
8218 * gdbserver/Makefile.in: Likewise.
8219 * gdbserver/configure: Regenerated.
8220 * gdbserver/aclocal.m4: New file, generated by aclocal.
8221 * gdbserver/config.in: New file, generated by autoheader.
8222
8223 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8224
8225 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8226 armnbsd-nat.c.
8227
8228 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8229
8230 * arm-tdep.h (enum arm_float_model): New enum.
8231 (struct gdbarch_tdep): Add fp_model.
8232 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8233 up floating-point conversions until we know the floating-point model
8234 in use by the inferior. Don't complain about being unable to
8235 determine the ABI of the inferior when we don't have one.
8236 (arm_extract_return_value): Support different floating-point models.
8237 (arm_store_return_value): Likewise.
8238 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8239 ARM_FLOAT_SOFT.
8240 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8241
8242 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8243
8244 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8245 of ``current_gdbarch''.
8246
8247 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8248
8249 * armnbsd-nat.c : ANSIfy all function declarations.
8250 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8251 (fetch_inferior_registers): Re-implement in terms of above.
8252 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8253 (store_inferior_registers): Re-implement in terms of above.
8254
8255 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8256
8257 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8258 kernel.
8259 * arm-linux-tdep.c: Likewise.
8260 * config/arm/tm-linux.h: Likewise.
8261
8262 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8263
8264 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8265 * config/arm/nbsd.mt (TM_FILE): Delete.
8266 * config/arm/tm-nbsd.h: Delete.
8267
8268 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8269
8270 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8271 Initialize CALL_DUMMY_LENGTH.
8272
8273 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8274
8275 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8276 function.
8277 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8278 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8279 defines one thing and that is incorrect for this port.
8280 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8281
8282 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8283
8284 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8285
8286 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8287
8288 * win32-nat.c (display_selector): New function. Displays information
8289 about the information returned by GetThreadSelectorEntry API function.
8290 (display_selectors): New function. Displays the infomation of
8291 the selector given as argument, or of CS, DS ans FS selectors
8292 if no argument is given.
8293 ( _initialize_inftarg): Add "w32" as info prefix command.
8294 Add "info w32 selector" as command calling display_selectors.
8295
8296 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8297
8298 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8299 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8300 if not defined.
8301
8302 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8303
8304 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8305
8306 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8307
8308 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8309 (arm_fix_call_dummy): Call it.
8310 (arm_call_dummy_breakpoint_offset): Delete.
8311 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8312 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8313
8314 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8315
8316 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8317 Default to func_frame_chain_valid.
8318 * gdbarch.h, gdbarch.c: Re-generate.
8319 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8320
8321 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8322
8323 * ppc-linux-nat.c: Update copyright.
8324 (fetch_register, store_register): Add tid parameter, don't compute
8325 tid here.
8326 (fetch_ppc_registers, store_ppc_registers): Add tid
8327 parameter. Pass it along to callees.
8328 (fetch_inferior_registers, store_inferior_registers): Compute tid
8329 here, and pass it to calleed functions.
8330 (fill_gregset, supply_fpregset): Clean up formatting.
8331
8332 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8333
8334 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8335 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8336
8337 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8338
8339 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8340 * gdbarch.c gdbarch.h: Regenerate.
8341 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8342 function.
8343 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8344 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8345 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8346
8347 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8348 * arm-tdep.c (arm_get_longjmp_target): New function.
8349 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8350 this to a positive value register arm_get_longjmp_target as the
8351 longjmp handler.
8352 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8353 (arm_linux_init_abi): Set up longjmp description in tdep.
8354 * armnbsd-nat.c (get_longjmp_target): Delete.
8355 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8356 description in tdep.
8357 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8358 (get_longjmp_target): Delete declaration.
8359 (GET_LONGJMP_TARGET): Delete.
8360 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8361 (GET_LONGJMP_TARGET): Delete.
8362
8363 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8364
8365 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8366 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8367 of ``current_gdbarch''.
8368
8369 2002-02-17 Tom Tromey <tromey@redhat.com>
8370
8371 * cli/cli-cmds.c (compare_strings): New function.
8372 (complete_command): Only print each unique item once.
8373 * completer.h (complete_line): Declare.
8374 * completer.c (complete_line): New function.
8375 (line_completion_function): Use it.
8376
8377 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8378
8379 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8380 * gdbarch.h, gdbarch.c: Re-generate.
8381
8382 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8383
8384 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8385
8386 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8387
8388 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8389 * valops.c (value_arg_coerce): Don't take the address of a reference
8390 to convert an argument to a reference.
8391
8392 2002-02-15 Christopher Faylor <cgf@redhat.com>
8393
8394 * win32-nat.c (get_image_name): New function.
8395 (handle_load_dll): Use get_image_name function.
8396 (get_child_debug_event): Avoid registering debug events until possibly
8397 execed process is started.
8398 (child_create_inferior): Allow invocation via shell so that command
8399 line redirection, etc. works ok.
8400 (_initialize_inftarg): Add new command: "set shell" to control whether
8401 a shell is used to start a process.
8402
8403 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8406 instead of find_register_by_number.
8407 (cannot_store_register): Likewise.
8408
8409 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8410
8411 * dwarf2read.c: Replace fprintf (stderr, ...) by
8412 fprintf_unfiltered (gdb_stderr, ...).
8413
8414 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8415
8416 * gdbserver/gdbserver.1: Document --attach.
8417
8418 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8419
8420 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8421 descriptions.
8422 * arm-tdep.c (arm_default_arm_le_breakpoint)
8423 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8424 (arm_default_thumb_be_breakpoint): New. Initialize them from
8425 traditional breakpoint defines.
8426 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8427 (arm_gdbarch_init): Initialize new breakpoint variables.
8428 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8429 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8430 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8431 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8432 code out to ...
8433 (arm_netbsd_init_abi_common): ... here; new function.
8434 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8435 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8436 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8437 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8438
8439 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8440
8441 * arm-tdep.h (enum arm_abi): New enum.
8442 (struct gdbarch_tdep): New structure.
8443 (LOWEST_PC): Provide a default.
8444 (arm_gdbarch_register_os_abi): Declare new function.
8445 * arm-tdep.c (arm_abi_names): New array.
8446 (process_note_abi_tag_sections): New function.
8447 (get_elfosabi): New function.
8448 (arm_gdbarch_register_os_abi): New function.
8449 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8450 support for that ABI has been built in, then call the appropriate
8451 configuration routine. Use gdbarch_num_regs() to get the number
8452 of registers.
8453 (arm_dump_tdep): New function.
8454 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8455 place-holder functions.
8456 (_initialize_arm_tdep): Register them.
8457 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8458
8459 * armnbsd-tdep.c: New file.
8460 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8461 * config/arm/nbsd.mt (TDEPFILES): Add it.
8462 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8463
8464 * armnbsd-nat.c: Include regcache.h.
8465 * Makefile.in (armnbsd-nat.o): Update dependency list.
8466
8467 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8468
8469 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8470
8471 * gdbserver/Makefile.in: Fix typos in target rules.
8472
8473 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8474
8475 Fix part of PR gdb/267.
8476 * linespec.c (find_methods): Handle constructors specially for now.
8477
8478 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8479
8480 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8481 handling.
8482 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8483 standard_coerce_float_to_double().
8484
8485 2002-02-14 Christopher Faylor <cgf@redhat.com>
8486
8487 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8488 GDBINIT_FILENAME.
8489
8490 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8491
8492 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8493 find_variant_by_name, because it confuses the multiarch
8494 framework. Return NULL if there isn't an architecture with the
8495 user supplied name, instead of forcing a different one without
8496 recording the change with the multiarch machinery.
8497 (find_variant_by_name): Delete.
8498
8499 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8500
8501 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8502 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8503
8504 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8505
8506 * stack.c (print_frame_info_base): When calling
8507 print_frame_info_listing_hook, set current_source_symtab.
8508
8509 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8510
8511 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8512 and remove unused $(INCLUDE_DIR).
8513 Add regcache.c to OBS.
8514 Add generated register protocol files to clean target.
8515 Update dependencies for new objects, obsolete old target code.
8516
8517 * gdbserver/linux-low.c: Remove all platform-specific code to
8518 new files. Remove various dead code. Update to use regcache
8519 functionality.
8520 * gdbserver/remote-utils.c (fromhex): Add return statement
8521 to quiet warning.
8522 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8523 constant.
8524 (input_interrupt): Add integer parameter to match prototype
8525 of a signal handler.
8526 (outreg): Use register_data ().
8527 (prepare_resume_reply): Use gdbserver_expedite_regs.
8528 * gdbserver/server.c (main): Dynamically allocate own_buf because
8529 PBUFSIZ is no longer constant. Use registers_to_string () and
8530 registers_from_string ().
8531 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8532 for error (), fatal (), and warning (). Update definition of
8533 PBUFSIZ to use regcache functionality. Add include guard.
8534 * gdbserver/utils.c (fatal): Add missing ``const''.
8535 (warning): New function.
8536
8537 * regformats/regdat.sh: Include "regcache.h" in generated files.
8538 Provide init_registers () function.
8539 * regformats/regdef.h: Add prototype for set_register_cache ().
8540 Add include guard.
8541
8542 * gdbserver/linux-arm-low.c: New file.
8543 * gdbserver/linux-i386-low.c: New file.
8544 * gdbserver/linux-ia64-low.c: New file.
8545 * gdbserver/linux-m68k-low.c: New file.
8546 * gdbserver/linux-mips-low.c: New file.
8547 * gdbserver/linux-ppc-low.c: New file.
8548 * gdbserver/linux-sh-low.c: New file.
8549
8550 * gdbserver/regcache.c: New file.
8551 * gdbserver/regcache.h: New file.
8552
8553 * gdbserver/low-linux.c: Removed obsolete file.
8554
8555 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8556
8557 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8558 * config/i386/linux.mt: Likewise.
8559 * config/ia64/linux.mt: Likewise.
8560 * config/m68k/linux.mh: Likewise.
8561 * config/powerpc/linux.mh: Likewise.
8562 * config/mips/linux.mt: Likewise.
8563
8564 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8565
8566 * config/i386/i386lynx.mh: Mark gdbserver variables
8567 as (currently) obsolete for this target.
8568 * config/i386/nbsd.mt: Likewise.
8569 * config/i386/nbsdelf.mt: Likewise.
8570 * config/m32r/m32r.mt: Likewise.
8571 * config/m68k/m68klynx.mh: Likewise.
8572 * config/m68k/nbsd.mt: Likewise.
8573 * config/m68k/sun3os4.mh: Likewise.
8574 * config/mips/vr5000.mt: Likewise.
8575 * config/ns32k/nbsd.mt: Likewise.
8576 * config/pa/hppabsd.mh: Likewise.
8577 * config/pa/hppaosf.mh: Likewise.
8578 * config/powerpc/nbsd.mt: Likewise.
8579 * config/rs6000/rs6000lynx.mh: Likewise.
8580 * config/s390/s390.mt: Likewise.
8581 * config/s390/s390x.mt: Likewise.
8582 * config/sparc/sparclynx.mh: Likewise.
8583 * config/sparc/sun4os4.mh: Likewise.
8584 * config/i386/x86-64linux.mt: Likewise.
8585 * config/sparc/linux.mh: Likewise.
8586
8587 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8588
8589 * configure.tgt: Configure gdbserver only for known working
8590 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8591 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8592 SUBDIRS if it is configured. Update comment for ${nativefile}.
8593 * configure: Regenerated.
8594
8595 2002-02-13 Michael Snyder <msnyder@redhat.com>
8596
8597 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8598
8599 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8600 (default_gcore_mach): Just return 0, work around a problem in bfd.
8601 (default_gcore_target): OK to return NULL if exec_bfd is null.
8602 (make_mem_sec): Use a cast, avoid a warning.
8603
8604 * procfs.c (find_memory_regions_callback): Use a cast instead of
8605 calling host_pointer_to_address (which complains if
8606 sizeof (host pointer) != sizeof (target pointer)).
8607 (procfs_make_note_section): Avoid overflow in psargs string.
8608
8609 * procfs.c (procfs_make_note_section): Make the default
8610 implementation return an error.
8611
8612 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8613
8614 * procfs.c (procfs_make_note_section): Provide a default definition
8615 (for alpha-dec-osf4.0f). Fix typos.
8616
8617 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8618
8619 * linux-proc.c: Add include of regcache.h.
8620 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8621
8622 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8623
8624 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8625 * memattr.c (create_mem_region): Disallow useless empty region.
8626 Regions are half-open intervals, so allow [A..B) [B..C) as
8627 non-overlapping.
8628
8629 2002-02-13 Michael Chastain <mec@shout.net>
8630
8631 * defs.h: Kill CONST_PTR.
8632 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8633 * c-lang.c (c_builtin_types): Likewise.
8634 * ch-lang.c (ch_builtin_types): Likewise.
8635 * f-lang.c (f_builtin_types): Likewise.
8636 * language.c (unknown_builtin_types): Likewise.
8637 * m2-lang.c (m2_builtin_types): Likewise.
8638 * p-lang.c (pascal_builtin_types): Likewise.
8639 * scm-lang.c (c_builtin_types): Likewise.
8640
8641 2002-02-13 Keith Seitz <keiths@redhat.com>
8642
8643 * arm-tdep.h (arm_get_next_pc): Add declaration.
8644
8645 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8646
8647 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8648 with other related struct-returning functions.
8649 (arm_extract_struct_value_address): New function.
8650 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8651 initialize float_format, double_format and long_double_format as
8652 appropriate to the endianness of the target.
8653 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8654 (arm_use_struct_convention): Delete declaration.
8655 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8656
8657 2002-02-13 Keith Seitz <keiths@redhat.com>
8658
8659 * defs.h (core_addr_to_string_nz): New function.
8660
8661 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8662
8663 Apply missing bits of 2002-01-15 patch.
8664 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8665 (fill_fpregset): Use i387_fill_fsave.
8666
8667 2002-02-12 Keith Seitz <keiths@redhat.com>
8668
8669 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8670 (core_addr_to_string_nz): New function.
8671
8672 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * arm-linux-nat.c: Really include arm-tdep.h.
8675 * config/arm/tm-linux.h (struct type, struct value): Declare.
8676
8677 2002-02-11 Michael Snyder <msnyder@redhat.com>
8678
8679 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8680 (gcore section): Ifdef for Solaris and Unixware only.
8681 (procfs_do_thread_registers): Unixware needs one lwpstatus
8682 per thread (not one prstatus or pstatus).
8683 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8684 not over all gdb threads. For unixware, call elfcore_write_pstatus
8685 once before iterating over threads.
8686
8687 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8688
8689 * arm-tdep.h: New file.
8690 * arm-tdep.c: Include arm-tdep.h.
8691 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8692 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8693 (arm_print_float_info, arm_register_type, convert_to_extended)
8694 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8695 (arm_extract_return_value, arm_register_name): Make static.
8696 (arm_software_single_step): Similarly. Fix types in declaration.
8697 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8698 (arm_store_return_value, arm_store_struct_return): New functions.
8699 (arm_gdbarch_init): Register the above functions. Also register
8700 call_dummy_start_offset, sizeof_call_dummy_words,
8701 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8702 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8703 max_register_virtual_size, register_size. Set up
8704 prologue_cache.saved_regs here, rather than ...
8705 (_initialize_arm_tdep): ... here.
8706 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8707 declarations.
8708 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8709 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8710 (arm_print_float_info, arm_register_type, convert_to_extended)
8711 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8712 (arm_extract_return_value, arm_register_name): Delete declarations.
8713 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8714 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8715 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8716 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8717 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8718 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8719 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8720 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8721 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8722 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8723 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8724 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8725 interface.
8726 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8727 * remote-rdi.c remote-rdp.c: Likewise.
8728 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8729 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8730 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8731 definition.
8732
8733 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8734 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8735 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8736 from non-ARM_ prefixed definitions.
8737 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8738 all uses of above.
8739 * remote-rdi.c remote-rdp.c: Likewise.
8740 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8741
8742 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8743
8744 * arm-tdep.c (arm_frameless_function_invocation)
8745 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8746 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8747 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8748 (arm_pop_frame, arm_get_next_pc): Make static.
8749 (arm_gdbarch_init): Register above in gdbarch structure.
8750 (arm_read_fp): Renamed from arm_target_read_fp.
8751 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8752 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8753 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8754 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8755 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8756 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8757 (arm_pc_is_thumb_dummy): Delete declarations.
8758 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8759 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8760 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8761 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8762
8763 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8764
8765 * symtab.c (compare_search_syms): New function.
8766 (sort_search_symbols): New function.
8767 (search_symbols): Sort symbols after searching rather than
8768 before.
8769
8770 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8771
8772 * NEWS: Linux -> GNU/Linux.
8773
8774 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8775
8776 * gdbarch.sh: For for level one methods, disallow a definition
8777 when partially multi-arched. Add comments explaining rationale.
8778 * gdbarch.h: Re-generate.
8779
8780 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8781
8782 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8783 multi-arch partial.
8784
8785 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8786
8787 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8788 field. Use diff -u.
8789 * gdbarch.c: Re-generate.
8790
8791 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8792
8793 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8794 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8795 partial.
8796
8797 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8798
8799 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8800 multi-arch partial.
8801 (PUSH_ARGUMENTS): Switch to using predefault.
8802 * gdbarch.c: Regenerate.
8803
8804 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8805
8806 * valops.c (PUSH_ARGUMENTS): Delete definition.
8807 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8808 partial. Default to default_push_arguments.
8809 * gdbarch.h, gdbarch.c: Regenerate.
8810
8811 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8812
8813 * defs.h (throw_exception): Rename return_to_top_level. Update
8814 comments.
8815 * utils.c (error_stream, internal_verror, quit): Ditto.
8816 * top.c (throw_exception, catcher): Ditto.
8817 * sparclet-rom.c (sparclet_load): Ditto.
8818 * remote.c (interrupt_query, minitelnet): Ditto.
8819 * remote-sds.c (interrupt_query): Ditto.
8820 * remote-mips.c (mips_error, mips_kill): Ditto.
8821 * ocd.c (interrupt_query): Ditto.
8822 * monitor.c (monitor_interrupt_query): Ditto.
8823 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8824 * target.h: Update comment.
8825
8826 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8827
8828 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8829
8830 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8831 default_double_format.
8832 * gdbarch.h, gdbarch.c: Re-generate.
8833 * findvar.c (floatformat_unknown): Delete variable definition.
8834 * doublest.h (floatformat_unknown): Delete variable declaration.
8835
8836 2002-02-09 Jim Blandy <jimb@redhat.com>
8837
8838 * stabsread.c (read_type): Add code to parse Sun's syntax for
8839 prototyped function types.
8840
8841 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8842
8843 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8844 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8845
8846 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8847
8848 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8849 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8850 now _initialize_xcoffsolib gets called again and overrides the
8851 commands from solib.c in a native configuration.
8852
8853 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8854
8855 * doublest.c (store_typed_floating): Don't try to return a value.
8856 Fixes PR gdb/290.
8857
8858 2002-02-08 Jim Blandy <jimb@redhat.com>
8859
8860 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8861 is prototyped and has no arguments, print its argument list as
8862 `(void)'.
8863
8864 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8865
8866 * MAINTAINERS (write-after-approval): Add myself.
8867 (paper-trail): I've escaped!
8868
8869 2002-02-08 Christopher Faylor <cgf@redhat.com>
8870
8871 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8872 changes.
8873 (_initialize_check_for_gdb_ini): Ditto.
8874
8875 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8876
8877 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8878 xaprintf -> xasprintf.
8879
8880 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8881
8882 * win32-nat.c: Remove use of printf and sprintf functions.
8883
8884 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8885
8886 * arm-tdep.c (arm_frame_chain_valid): Make static.
8887 (arm_push_arguments): Likewise.
8888 (arm_gdbarch_init): New function.
8889 (_initialize_arm_tdep): Call it.
8890 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8891 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8892 (FRAME_CHAIN_VALID): Delete.
8893 (arm_frame_chain_valid): Delete declaration.
8894 (PUSH_ARGUMENTS): Delete.
8895 (arm_push_arguments): Delete declaration.
8896 (CALL_DUMMY_P): Delete.
8897
8898 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8899 Corinna Vinschen <vinschen@redhat.com>
8900
8901 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8902 on builtin float types.
8903
8904 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * utils.c: Include <curses.h> before "bfd.h".
8907 * tui/tui-hooks.c: Likewise.
8908 * tui/tui.c: Likewise.
8909 * tui/tuiCommand.c: Likewise.
8910 * tui/tuiData.c: Likewise.
8911 * tui/tuiDataWin.c: Likewise.
8912 * tui/tuiDisassem.c: Likewise.
8913 * tui/tuiGeneralWin.c: Likewise.
8914 * tui/tuiIO.c: Likewise.
8915 * tui/tuiLayout.c: Likewise.
8916 * tui/tuiRegs.c: Likewise.
8917 * tui/tuiSource.c: Likewise.
8918 * tui/tuiSourceWin.c: Likewise.
8919 * tui/tuiStack.c: Likewise.
8920 * tui/tuiWin.c: Likewise.
8921
8922 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8923
8924 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8925 to include space for pseudoregs as well. Update loops accordingly.
8926 (sh_fp_frame_init_saved_regs): Ditto.
8927 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8928
8929 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8930
8931 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8932 Add Richard Earnshaw to Arm maintainers.
8933
8934 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8935
8936 * defs.h (warning_begin): Delete declaration.
8937
8938 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8939 Delete macro.
8940
8941 2002-02-07 Michael Snyder <msnyder@redhat.com>
8942
8943 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8944 Logic bug, remove misplaced else.
8945
8946 2002-02-07 Klee Dienes <klee@apple.com>
8947
8948 * fork-inferior.c (fork_inferior): Add '!' to the list of
8949 characters that need to be quoted when building a string for the
8950 shell. Quote '!' specifically with a backslash, since CSH chokes
8951 when trying to evaluate "str!str".
8952
8953 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8954
8955 * rdi-share/host.h: Only provide a typedef for bool if it is not
8956 defined.
8957
8958 2002-02-04 Michael Snyder <msnyder@redhat.com>
8959
8960 * breakpoint.h (enum bptype): Add new overlay event bp type.
8961 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8962
8963 * breakpoint.c (create_internal_breakpoint): New function.
8964 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8965 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8966 (create_thread_event_breakpoint): Ditto.
8967 (create_solib_event_breakpoint): Ditto.
8968 (create_overlay_event_breakpoint): New function.
8969 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8970 (update_breakpoints_after_exec): Delete and re-initialize
8971 overlay event breakpoints after an exec. Add FIXME comment
8972 about longjmp breakpoint.
8973 (print_it_typical): Ignore overlay event breakpoints.
8974 (print_one_breakpoint): Ditto.
8975 (mention): Ditto.
8976 (bpstat_what): Do not stop for overlay event breakpoints.
8977 (delete_breakpoint): Don't delete overlay event breakpoints.
8978 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8979 (breakpoint_re_set): Re-create overlay event breakpoint.
8980
8981 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8982 (overlay_manual_command): Disable overlay breakpoints.
8983 (overlay_off_command): Disable overlay breakpoints.
8984
8985 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8986
8987 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8988 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8989 to here from config/tm-arm.h.
8990 (coff_sym_is_thumb): Make static.
8991 (arm_elf_make_msymbol_special): New function.
8992 (arm_coff_make_msymbol_special): New function.
8993 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8994 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8995 (coff_sym_is_thumb): Delete declaration.
8996 (arm_elf_make_msymbol_special): Declare.
8997 (arm_coff_make_msymbol_special): Declare.
8998 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8999 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9000
9001 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9002
9003 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9004
9005 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9006
9007 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9008 * gdbarch.c gdbarch.h: Regenerate.
9009 * arch-utils.c (default_print_float_info): New function.
9010 * arch-utils.h (default_print_float_info): Prototype it.
9011 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9012 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9013 (PRINT_FLOAT_INFO): Document it.
9014
9015 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9016 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9017 (PRINT_FLOAT_INFO): Define.
9018
9019 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9020
9021 * win32-nat.c (_initialize_check_for_gdb_ini):
9022 Add typecast to sprintf argument to suppress a warning.
9023
9024 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9025
9026 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9027 to allow easier handling of pass state.
9028 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9029 that gives exception name and address.
9030 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9031 and set last_sig value to ourstatus->value.sig. Some missing
9032 exceptions added.
9033 (child_continue): Correctly report continue_status.
9034 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9035 TARGET_SIGNAL_0 (new default value).
9036 (child_resume): consider sig argument passed to decide if
9037 the exception should be passed to debuggee or not.
9038
9039 2002-02-05 Michael Snyder <msnyder@redhat.com>
9040
9041 * regcache.c (fetch_register): Call target_fetch_register
9042 only if we don't call FETCH_PSEUDO_REGISTER.
9043 (store_register): Call target_store_register only if we
9044 don't call STORE_PSEUDO_REGISTER.
9045
9046 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9047
9048 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9049 ELF_MAKE_MSYMBOL_SPECIAL.
9050 * gdbarch.c, gdbarch.h: Regenerate.
9051 * arch-utils.c (default_make_msymbol_special): New function.
9052 * arch-utils.h (default_make_msymbol_special): Export.
9053 * elfread.c (elf_symtab_read): Compile use of
9054 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9055 multiarched.
9056 * coffread.c (coff_symtab_read): Ditto, for
9057 COFF_MAKE_MSYMBOL_SPECIAL.
9058
9059 2002-02-05 Jim Blandy <jimb@redhat.com>
9060
9061 * solib-svr4.c (svr4_truncate_ptr): New function.
9062 (svr4_relocate_section_addresses): Do the address arithmetic with
9063 the appropriate truncation for target addresses, even when
9064 CORE_ADDR is larger than a target address.
9065
9066 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9067
9068 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9069 to (int *).
9070
9071 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9072
9073 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9074 code.
9075
9076 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9077
9078 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9079
9080 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9081
9082 * gdbserver/linux-low.c: Remove unused include files.
9083
9084 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9087 (read_inferior_memory): Use it.
9088 (write_inferior_memory): Likewise.
9089
9090 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9091
9092 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9093 grubbing through sys_errlist.
9094
9095 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9096
9097 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9098
9099 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9100 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9101
9102 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9103
9104 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9105 (do_sfunc, set_cmd_sfunc): New functions.
9106
9107 * command.h (struct cmd_list_element): Add field func.
9108 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9109 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9110 * cli/cli-decode.h: Ditto.
9111
9112 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9113 (help_all, help_cmd_list): Ditto.
9114 (find_cmd, complete_on_cmdlist): Ditto.
9115 * top.c (execute_command): Ditto.
9116
9117 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9118 function.sfunc.
9119
9120 * infcmd.c (notice_args_read): Fix function signature.
9121
9122 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9123 * cli/cli-decode.c (add_set_cmd): Ditto.
9124 * utils.c (initialize_utils): Ditto.
9125 * maint.c (_initialize_maint_cmds): Ditto.
9126 * infrun.c (_initialize_infrun): Ditto.
9127 * demangle.c (_initialize_demangler): Ditto.
9128 * remote.c (add_packet_config_cmd): Ditto.
9129 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9130 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9131 * proc-api.c (_initialize_proc_api): Ditto.
9132 * kod.c (_initialize_kod): Ditto.
9133 * valprint.c (_initialize_valprint): Ditto.
9134 * top.c (init_main): Ditto.
9135 * infcmd.c (_initialize_infcmd): Ditto.
9136 * corefile.c (_initialize_core): Ditto.
9137 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9138 * arch-utils.c (initialize_current_architecture): Ditto.
9139 (_initialize_gdbarch_utils): Ditto.
9140 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9141
9142 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9143 * wince.c (_initialize_inftarg): Ditto.
9144 * symfile.c (_initialize_symfile): Ditto.
9145 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9146 * language.c (_initialize_language): Ditto.
9147 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9148
9149 2002-02-04 Michael Snyder <msnyder@redhat.com>
9150
9151 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9152
9153 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9154
9155 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9156 Add rules for building the register data files.
9157
9158 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9159
9160 * regformats/regdat.sh: Add braces to the definition of
9161 expedite_regs_${arch}.
9162
9163 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * regformats/regdef.h (struct reg): Add comment describing the
9166 requirements for offset and size fields.
9167
9168 2002-02-04 Andreas Schwab <schwab@suse.de>
9169
9170 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9171 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9172
9173 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9174
9175 * gdbarch.sh (copyright): Update years in generated header.
9176 (SMASH_TEXT_ADDRESS): Add rule.
9177 * gdbarch.h, gdbarch.c: Re-generate.
9178 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9179 * dbxread.c: Likewise.
9180 * dwarfread.c: Likewise.
9181 * elfread.c: Likewise.
9182 * somread.c: Likewise.
9183
9184 * arm-tdep.c (arm_smash_text_address): New function.
9185 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9186
9187 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9188
9189 Add support for hardware watchpoints on win32 native.
9190 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9191 CONTEXT_DEBUG_REGISTERS.
9192 (dr variable): New variable. Static array containing a local copy
9193 of debug registers.
9194 (debug_registers_changed): New variable. Reflects when debug registers
9195 are changed and need to be written to inferior.
9196 (debug_registers_used): New variable. Reflects when any debug register
9197 was set, used when new threads are created.
9198 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9199 i386-nat code.
9200 (thread_rec): Set dr array if id is the thread of current_event .
9201 (child_continue, child_resume): Change the debug registers for all
9202 threads if debug_registers_changed.
9203 (child_add_thread): Change the debug registers if debug_registers_used.
9204 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9205 Link nm.h to new nm-cygwin.h file.
9206 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9207 of hardware registers.
9208
9209 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9210
9211 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9212 Restore behavour broken by 2002-01-20 Andrew Cagney
9213 <ac131313@redhat.com> IEEE_FLOAT removal.
9214
9215 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * c-valprint.c (c_val_print): Pass a proper valaddr to
9218 cp_print_class_method.
9219 * valops.c (search_struct_method): If there is only one method
9220 and args is NULL, return that method.
9221
9222 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9225 accessing tag_name directly.
9226
9227 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9230 of accessing tag_name directly.
9231
9232 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9233
9234 PR gdb/280
9235 * gdbtypes.c (replace_type): New function.
9236 * gdbtypes.h (replace_type): Add prototype.
9237 * stabsread.c (read_type): Use replace_type.
9238
9239 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9240
9241 * Makefile.in (memattr.o): Add missing dependencies rule.
9242
9243 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9244
9245 * breakpoint.c (break_at_finish_command): Really export.
9246 (break_at_finish_at_depth_command): Ditto.
9247 (tbreak_at_finish_command): Ditto.
9248 * hppa-tdep.c: Include completer.h.
9249 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9250 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9251
9252 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9253
9254 * utils.c (do_write): New function.
9255 (error_stream): Rewrite combining the code from error_begin and
9256 verror.
9257 (verror): Rewrite using error_stream.
9258 (error_begin): Delete function.
9259
9260 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9261
9262 * utils.c (error_begin): Make static.
9263 * defs.h (error_begin): Delete declaration.
9264
9265 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9266 (decode_line_1): Use cplusplus_error instead of error_begin,
9267 cplusplus_hint and return_to_top_level.
9268 * coffread.c (coff_symfile_read): Use error instead of error_begin
9269 and return_to_top_level.
9270 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9271
9272 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9273
9274 * language.h (type_error, range_error): Make string parameter
9275 constant.
9276 * language.c (warning_pre_print): Delete extern declaration.
9277 * dwarfread.c (warning_pre_print): Ditto.
9278 * language.c (type_error, range_error): Rewrite to use verror and
9279 vwarning instead of warning_begin.
9280
9281 2002-02-01 Michael Snyder <msnyder@redhat.com>
9282
9283 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9284 (set_ignore_count): Move misplaced comment back where it belongs.
9285
9286 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9287
9288 * command.h (NO_FUNCTION): Delete macro.
9289 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9290 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9291 * tracepoint.c (_initialize_tracepoint): Ditto.
9292 * cli/cli-decode.c (add_set_cmd): Ditto.
9293 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9294
9295 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9298 Update ``this'' pointer when calling virtual functions.
9299
9300 2002-02-01 Michael Snyder <msnyder@redhat.com>
9301
9302 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9303 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9304
9305 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9306
9307 * regformats/reg-arm.dat: New file.
9308 * regformats/reg-i386.dat: New file.
9309 * regformats/reg-ia64.dat: New file.
9310 * regformats/reg-m68k.dat: New file.
9311 * regformats/reg-mips.dat: New file.
9312 * regformats/reg-ppc.dat: New file.
9313 * regformats/reg-sh.dat: New file.
9314 * regformats/regdef.h: New file.
9315 * regformats/regdat.sh: New file.
9316
9317 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9318
9319 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9320 (arm_frame_args_address, arm_frame_locals_address): New functions.
9321 (arm_frame_num_args): New function.
9322 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9323 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9324 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9325
9326 2002-01-31 Michael Snyder <msnyder@redhat.com>
9327
9328 * breakpoint.c (break_at_finish_command): Export.
9329 (break_at_finish_at_depth_command): Export.
9330 (tbreak_at_finish_command): Export.
9331 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9332 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9333 "tbreak" commands, which are HPPA specific.
9334
9335 * printcmd.c (disassemble_command): Remove an ancient
9336 artifact of an old merge.
9337
9338 * symfile.h (enum overlay_debugging_state):
9339 Define enum constant values for overlay mode.
9340 * symfile.c (overlay_debugging): Use enums instead of literals.
9341 (overlay_is_mapped, overlay_auto_command,
9342 overlay_manual_command): Ditto.
9343
9344 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9345 breakpoint_here_p, breakpoint_inserted_here_p,
9346 breakpoint_thread_match, bpstat_stop_status,
9347 describe_other_breakpoints, check_duplicates, clear_command):
9348 Coding standard fixes.
9349
9350 * target.c (target_xfer_memory): Add spaces, coding standard.
9351 (do_xfer_memory): Add missing line to trust-readonly
9352 code: check bfd SEC_READONLY flag for section.
9353
9354 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9355
9356 * PROBLEMS: Fix typo, 5.1->5.1.1.
9357
9358 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9361 data symbols, since we search based on textlow and texthigh.
9362 (find_pc_sect_symtab): Likewise.
9363
9364 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9365
9366 * defs.h (vwarning): Declare.
9367 * utils.c (vwarning): New function.
9368 (warning): Call vwarning.
9369 (warning_begin): Delete function.
9370
9371 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9372 the warning message.
9373 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9374 warning_begin.
9375
9376 2002-01-30 Michael Snyder <msnyder@redhat.com>
9377
9378 * NEWS: Mention "set trust-readonly-sections" command.
9379 Mention generate-core-file command.
9380
9381 2002-01-15 Michael Snyder <msnyder@redhat.com>
9382
9383 * target.c: New command, "set trust-readonly-sections on".
9384 (do_xfer_memory): Honor the suggestion to trust readonly sections
9385 by reading them from the object file instead of from the target.
9386 (initialize_targets): Register command "set trust-readonly-sections".
9387
9388 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9389
9390 * parse.c (target_map_name_to_register): Simplify, search regs and
9391 pseudo-regs using a single loop.
9392
9393 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9394
9395 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9396
9397 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9398
9399 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9400 * config/i386/i386v42mp.mh: Add i387-nat.o .
9401 * i386v4-nat.c: Include i387-nat.h.
9402 (supply_fpregset): Use i387_supply_fsave.
9403 (fill_fpregset): Use i387_fill_fsave.
9404
9405 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9406
9407 * arm-tdep.c (arm_call_dummy_words): Define.
9408 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9409 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9410 (CALL_DUMMY_WORDS): Define.
9411 (arm_call_dummy_words): Declare.
9412 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9413 (arm_linux_call_dummy_words): Declare.
9414
9415 2002-01-30 Andreas Schwab <schwab@suse.de>
9416
9417 * m68klinux-nat.c: Fix last change to use regcache_collect
9418 instead of referencing registers[] directly.
9419
9420 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9421
9422 * parse.c (target_map_name_to_register): Delete code wrapped in
9423 #ifdef REGISTER_NAME_ALIAS_HOOK.
9424
9425 2002-01-28 Michael Snyder <msnyder@redhat.com>
9426
9427 * regcache.c (legacy_read_register_gen): Need to be able to
9428 read pseudo-register as well as real register.
9429 (legacy_write_register_gen): Ditto.
9430
9431 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9432
9433 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9434 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9435 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9436 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9437 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9438 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9439 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9440 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9441 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9442 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9443 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9444 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9445 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9446 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9447 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9448 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9449 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9450 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9451 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9452 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9453
9454 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9455
9456 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9457 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9458 (initialize_current_architecture): Update target_byte_order using
9459 information from BFD.
9460 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9461 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9462
9463 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9464
9465 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9466 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9467
9468 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9469 #ifdef INVALID_FLOAT.
9470 * infcmd.c (do_registers_info): Ditto.
9471 * values.c (unpack_double): Ditto. Add comment.
9472
9473 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9474 already commented out.
9475
9476 2002-01-26 Andreas Schwab <schwab@suse.de>
9477
9478 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9479 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9480 registers and add support for PTRACE_GETREGS.
9481
9482 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9483
9484 GDB 5.1.1 released from 5.1 branch.
9485 * NEWS: Add 5.1.1 news.
9486 * README: Sync with 5.1 branch.
9487
9488 2002-01-23 Fred Fish <fnf@redhat.com>
9489
9490 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9491 stabstring on initial malloc. Reallocing will copy it for us,
9492 if necessary.
9493
9494 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9495
9496 * Makefile.in (hpread_h): Delete.
9497 (HFILES_NO_SRCDIR): Remove hpread.h.
9498 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9499 (hpread.o): Update dependencies.
9500 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9501
9502 * hp-psymtab-read.c: Remove file.
9503 * hp-symtab-read.c: Remove file.
9504 * hpread.h: Remove file.
9505
9506 * hpread.c: Merge all contents of hp-psymtab-read.c,
9507 hp-symtab-read.c and hpread.h into this file, as it was prior to
9508 January 1999.
9509
9510 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9511 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9512 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9513 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9514
9515 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9516
9517 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9518 fill_gregset): Call gdbarch_tdep() just once, assign result to
9519 variable and use that, instead of calling the function several
9520 times.
9521
9522 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9523
9524 * configure.host: Accept sparcv9 as alias for sparc64.
9525 * configure.tgt: Likewise.
9526
9527 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9528
9529 * solib-aix5.c (build_so_list_from_mapfile)
9530 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9531 arguments is not reversed.
9532 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9533 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9534
9535 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9536
9537 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9538 modified version of obsolete sh_fetch_pseudo_register.
9539 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9540 (sh4_register_read): New function.
9541 (sh_pseudo_register_write): New function. Renamed and modified
9542 version of obsolete sh_store_pseudo_register.
9543 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9544 (sh4_register_write): New function.
9545 (sh_gdbarch_init): Remove setting of gdbarch function
9546 fetch_pseudo_register and store_pseudo_register. Remove setting of
9547 register_convert_to_raw, register_convert_to_virtual,
9548 register_convertible.
9549 (sh_sh4_register_convertible): Delete. No longer needed. All is
9550 taken care by architecture specific functions
9551 register_read/register_write.
9552 (sh_sh4_register_convert_to_virtual): Make static.
9553 (sh_sh4_register_convert_to_raw): Ditto.
9554
9555 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9556
9557 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9558 (floatformat_is_nan, floatformat_mantissa): Ditto.
9559
9560 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9561 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9562 builtin_type_ieee_double_little,
9563 builtin_type_ieee_double_littlebyte_bigword,
9564 builtin_type_m68881_ext, builtin_type_i960_ext,
9565 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9566 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9567 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9568 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9569
9570 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9571
9572 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9573 parameter. Set frameless flag if it exists and depended of
9574 whether the scanned function is frameless or not.
9575 (xstormy16_skip_prologue): If function is frameless, return
9576 result of xstormy16_scan_prologue().
9577 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9578 call.
9579
9580 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9581
9582 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9583 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9584 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9585 sh_sh4_register_byte, sh_sh4_register_raw_size,
9586 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9587 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9588 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9589 sh_store_pseudo_register, sh_do_pseudo_register): Call
9590 gdbarch_tdep() just once, assign result to variable and use that,
9591 instead of calling the function several times.
9592
9593 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9594
9595 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9596 macros instead of LAST_FPU_CTRL_REGNUM.
9597 (store_register): Likewise.
9598
9599 2002-01-21 Jim Blandy <jimb@redhat.com>
9600
9601 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9602 is up-to-date before running the program, not just when a program
9603 exits.
9604
9605 2002-01-21 Fred Fish <fnf@redhat.com>
9606
9607 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9608 when we have found all instructions we are looking for.
9609
9610 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9611
9612 * arm-tdep.c (arm_register_name): New function.
9613 (arm_registers_names): Make static.
9614 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9615 (arm_register_name): Declare.
9616 (REGISTER_NAME): Use it.
9617
9618 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9619 Kevin Buettner <kevinb@redhat.com>
9620
9621 Convert arm targets to new FRAME interface.
9622 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9623 (arm_frame_find_save_regs): Delete.
9624 (arm_frame_init_saved_regs): New.
9625 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9626 Allocate extra_info as required. Convert all uses of fsr.regs
9627 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9628 to use extra_info.
9629 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9630 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9631 (check_prologue_cache, save_prologue_cache): Likewise.
9632 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9633 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9634 (FRAME_FIND_SAVED_REGS): Delete.
9635 (arm_frame_find_saved_regs): Delete prototype.
9636 (arm_frame_init_saved_regs): New prototype.
9637 (FRAME_INIT_SAVED_REGS): Define.
9638
9639 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9640
9641 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9642
9643 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9644
9645 From Jeff Law <law@redhat.com>:
9646 * infttrace.c: Include <sys/pstat.h>.
9647 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9648 exec file if the ttrace equivalent fails.
9649
9650 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9651
9652 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9653 (closeLogFile): Ditto.
9654
9655 2002-01-20 Michael Chastain <mec@shout.net>
9656
9657 * top.c (print_gdb_version): Bump copyright year to 2002.
9658
9659 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9660
9661 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9662 Zannoni and Eli Zaretskii.
9663
9664 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9665
9666 * buildsym.c: Update copyright years.
9667 * c-typeprint.c: Likewise.
9668 * dwarf2read.c: Likewise.
9669 * f-typeprint.c: Likewise.
9670 * gdbtypes.c: Likewise.
9671 * gdbtypes.h: Likewise.
9672 * hp-symtab-read.c: Likewise.
9673 * hpread.c: Likewise.
9674 * mdebugread.c: Likewise.
9675 * p-typeprint.c: Likewise.
9676
9677 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9678
9679 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9680 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9681 byte-order selectable.
9682 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9683 * arch-utils.c: Ditto.
9684 (set_endian): Ditto.
9685 (set_endian_from_file): Ditto.
9686 * gdbserver/low-sim.c (create_inferior): Ditto.
9687 * gdbarch.sh: Ditto.
9688 * gdbarch.h: Re-generate.
9689 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9690 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9691 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9692 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9693 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9694 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9695 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9696 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9697 macro definition.
9698 * config/mips/tm-wince.h: Remove #undef of macro
9699 TARGET_BYTE_ORDER_SELECTABLE.
9700 * config/sh/tm-wince.h: Ditto.
9701
9702 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9703
9704 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9705 member function fields. Add accessor macro
9706 TYPE_FN_FIELD_ARTIFICIAL.
9707 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9708 * c-typeprint.c (c_type_print_base): Skip artificial member
9709 functions.
9710
9711 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9712
9713 * f-typeprint.c: Delete unused function f_type_print_args.
9714 * p-typeprint.c: Delete unused function pascal_type_print_args.
9715
9716 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9717
9718 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9719 comment. Add ``artificial'' to ``union field_location''.
9720
9721 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9722
9723 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9724 * mdebugread.c (parse_symbol): Likewise.
9725 * stabsread.c (define_symbol): Likewise.
9726 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9727 initializing TYPE_FIELD_BITPOS to n (obsolete).
9728 (hpread_doc_function_type): Likewise.
9729 * hpread.c (hpread_function_type): Likewise.
9730
9731 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9732
9733 * configure.in (host_makefile_frag): Only require a host makefile
9734 fragment when a native build.
9735 * configure: Re-generate.
9736
9737 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9738
9739 * doublest.h (floatformat_from_type): Declare.
9740 * doublest.c (floatformat_from_type): New function.
9741 (convert_typed_floating): Use.
9742
9743 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9744 call to function floatformat_from_type.
9745
9746 * gdbarch.sh (IEEE_FLOAT): Delete.
9747 * gdbarch.h, gdbarch.c: Re-generate.
9748 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9749 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9750 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9751 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9752 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9753 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9754 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9755 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9756 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9757 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9758 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9759 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9760
9761 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9762 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9763 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9764 * sh-tdep.c (sh_gdbarch_init): Ditto.
9765 * mips-tdep.c (mips_gdbarch_init): Ditto.
9766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9767 * cris-tdep.c (cris_gdbarch_init): Ditto.
9768
9769 2002-01-20 Jiri Smid <smid@suse.cz>
9770
9771 * configure.host, configure.tgt: Support x86-64.
9772 * NEWS: Note new target x86-64.
9773
9774 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9775 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9776 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9777 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9778 x86-64-linux-nat.o): Fix dependencies.
9779
9780 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9781
9782 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9783 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9784 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9785 * config/sparc/xm-sun4os4.h: Delete file.
9786 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9787
9788 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9789
9790 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9791 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9792 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9793 * config/i386/i386lynx.mh (XM_FILE): Delete.
9794 * config/rs6000/xm-rs6000ly.h: Delete file.
9795 * config/sparc/xm-sparclynx.h: Delete file.
9796 * config/m68k/xm-m68klynx.h: Delete file.
9797 * config/i386/xm-i386lynx.h: Delete file.
9798 * config/xm-lynx.h: Delete file.
9799 * config/djgpp/fnchange.lst: Update.
9800
9801 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9802
9803 * alpha-tdep.c (alpha_register_byte): New function.
9804 (alpha_register_raw_size): Ditto.
9805 (alpha_register_virtual_size): Ditto.
9806 (alpha_skip_prologue_internal): Renamed from
9807 alpha_skip_prologue.
9808 (alpha_skip_prologue): New version that calls
9809 alpha_skip_prologue_internal.
9810 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9811 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9812 second argument from alpha_skip_prologue.
9813 (REGISTER_BYTE): Use alpha_register_byte.
9814 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9815 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9816 (FRAMELESS_FUNCTION_INVOCATION): Use
9817 generic_frameless_function_invocation_not.
9818 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9819 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9820
9821 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9822
9823 * config/mips/xm-news-mips.h: Delete file.
9824 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9825
9826 * config/m88k/xm-m88k.h: Delete file.
9827 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9828 * config/m88k/xm-delta88v4.h: Ditto.
9829 * config/m88k/xm-delta88.h: Ditto.
9830
9831 * config/alpha/xm-fbsd.h: Delete file.
9832 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9833
9834 * config/sparc/xm-sparc.h: Delete file.
9835 * Makefile.in (xm-sun4os4.h): Delete dependency.
9836 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9837 * config/sparc/xm-sun4os4.h: Ditto.
9838 * config/sparc/xm-linux.h: Ditto.
9839
9840 * config/i386/xm-windows.h: Delete file.
9841
9842 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9843
9844 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9845 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9846
9847 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * alpha-tdep.c (alpha_call_dummy_words): New.
9850 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9851 (CALL_DUMMY_P): Define.
9852 (CALL_DUMMY_WORDS): Define.
9853 (SIZEOF_CALL_DUMMY_WORDS): Define.
9854
9855 2002-01-19 Per Bothner <per@bothner.com>
9856
9857 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9858 isn't NULL, which can happen with some gcj-3.x-produced code.
9859
9860 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9861
9862 * alpha-tdep.c (alpha_register_virtual_type): New function.
9863 (alpha_init_frame_pc_first): Ditto.
9864 (alpha_fix_call_dummy): Ditto.
9865 (alpha_store_struct_return): Ditto.
9866 (alpha_extract_struct_value_address): Ditto.
9867 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9868 alpha_register_virtual_type.
9869 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9870 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9871 alpha_extract_struct_value_address.
9872 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9873 (INIT_FRAME_PC): Use init_frame_pc_noop.
9874 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9875
9876 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9877
9878 * i386gnu-nat.c: Include "i386-tdep.h".
9879 (fetch_fpregs): Simplify code dealing with uninitialized floating
9880 point states such that it doesn't require FP7_REGNUM.
9881
9882 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9883
9884 * alpha-tdep.c (frame_extra_info): New.
9885 (alpha_find_saved_regs): Make static. Use
9886 frame->extra_info.
9887 (alpha_frame_init_saved_regs): New function.
9888 (alpha_frame_saved_pc): Use frame->extra_info.
9889 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9890 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9891 (init_extra_frame_info): Rename to...
9892 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9893 (alpha_print_extra_frame_info): New function.
9894 (alpha_frame_locals_address): Ditto.
9895 (alpha_frame_args_address): Ditto.
9896 (alpha_pop_frame): Use frame->extra_info.
9897 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9898 alpha_frame_args_address.
9899 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9900 (alpha_find_saved_regs): Remove prototype.
9901 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9902 (EXTRA_FRAME_INFO): Remove.
9903 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9904 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9905
9906 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9907
9908 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9909 (alpha_cannot_fetch_register): Ditto.
9910 (alpha_cannot_store_register): Ditto.
9911 (alpha_register_convertible): Ditto.
9912 (alpha_use_struct_convention): Ditto.
9913 * config/alpha/tm-alpha.h: Update copyright years.
9914 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9915 (INNER_THAN): Use core_addr_lessthan.
9916 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9917 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9918 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9919 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9920 (FRAME_CHAIN): Remove unnecessary cast.
9921
9922 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9923
9924 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9925 obsolete.
9926
9927 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9928
9929 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9930 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9931 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9932 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9933 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9934 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9935 * x86-64-linux-nat.c: Ditto.
9936
9937 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9938
9939 * alpha-tdep.c (alpha_register_name): New function.
9940 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9941 (REGISTER_NAME): Define.
9942
9943 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9944
9945 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9946
9947 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9948
9949 * alpha-tdep.c: Update copyright years.
9950 (alpha_next_pc): New function.
9951 (alpha_software_single_step): Ditto.
9952 * config/alpha/tm-alpha.h: Add prototype for
9953 alpha_software_single_step.
9954
9955 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9956
9957 * alphabsd-nat.c: Update copyright years.
9958 (fill_gregset): Use regcache_collect.
9959 (fill_fpregset): Likewise.
9960 (fetch_inferior_registers): Only fetch integer registers
9961 if requested to do so.
9962 (store_inferior_registers): Only store integer registers
9963 if requested to do so.
9964
9965 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9966
9967 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9968 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9969 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9970 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9971 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9972 * config/arm/linux.mh (XDEPFILES): Delete.
9973 * config/arm/nbsd.mh (XDEPFILES): Delete.
9974 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9975 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9976 * config/i386/i386m3.mh (XDEPFILES): Delete.
9977 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9978 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9979 * config/i386/fbsd.mh (XDEPFILES): Delete.
9980 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9981 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9982 * config/i386/i386v4.mh (XDEPFILES): Delete.
9983 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9984 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9985 * config/i386/i386aix.mh (XDEPFILES): Delete.
9986 * config/i386/go32.mh (XDEPFILES): Delete.
9987 * config/i386/cygwin.mh (XDEPFILES): Delete.
9988 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9989 * config/i386/i386mach.mh (XDEPFILES): Delete.
9990 * config/i386/i386v32.mh (XDEPFILES): Delete.
9991 * config/i386/linux.mh (XDEPFILES): Delete.
9992 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9993 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9994 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9995 * config/i386/i386sco.mh (XDEPFILES): Delete.
9996 * config/i386/i386v.mh (XDEPFILES): Delete.
9997 * config/i386/nbsd.mh (XDEPFILES): Delete.
9998 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9999 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10000 * config/i386/symmetry.mh (XDEPFILES): Delete.
10001 * config/i386/obsd.mh (XDEPFILES): Delete.
10002 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10003 * config/ia64/linux.mh (XDEPFILES): Delete.
10004 * config/ia64/aix.mh (XDEPFILES): Delete.
10005 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10006 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10007 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10008 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10009 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10010 * config/m68k/linux.mh (XDEPFILES): Delete.
10011 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10012 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10013 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10014 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10015 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10016 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10017 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10018 * config/m88k/delta88.mh (XDEPFILES): Delete.
10019 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10020 * config/m88k/m88k.mh (XDEPFILES): Delete.
10021 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10022 * config/mips/linux.mh (XDEPFILES): Delete.
10023 * config/mips/irix6.mh (XDEPFILES): Delete.
10024 * config/mips/irix5.mh (XDEPFILES): Delete.
10025 * config/mips/irix4.mh (XDEPFILES): Delete.
10026 * config/mips/irix3.mh (XDEPFILES): Delete.
10027 * config/mips/decstation.mh (XDEPFILES): Delete.
10028 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10029 (NATDEPFILES): Move core-aout.o to here.
10030 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10031 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10032 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10033 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10034 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10035 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10036 * config/pa/hpux11.mh (XDEPFILES): Delete.
10037 * config/powerpc/aix.mh (XDEPFILES): Delete.
10038 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10039 * config/powerpc/linux.mh (XDEPFILES): Delete.
10040 * config/romp/rtbsd.mh: Rename XDEPFILES.
10041 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10042 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10043 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10044 * config/s390/s390.mh (XDEPFILES): Delete.
10045 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10046 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10047 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10048 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10049 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10050 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10051 * config/sparc/linux.mh (XDEPFILES): Delete.
10052 * config/vax/vaxult.mh (XDEPFILES): Delete.
10053 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10054 * Makefile.in (DEPFILES): Remove XDEPFILES.
10055
10056 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10057
10058 * utils.c (internal_verror): Fix comments, default is yes not no.
10059 Update queries to match. Default to quit and dump core.
10060
10061 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10062
10063 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10064 copyright.
10065 * defs.h, event-top.c, gdbcmd.h: Ditto.
10066 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10067 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10068 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10069 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10070 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10071 * mi/mi-main.c:Ditto.
10072
10073 * stack.c, symfile.c: Update copyright.
10074
10075 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10078 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10079 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10080 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10081
10082 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10083
10084 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10085 * gdbserver/low-lynx.c (myattach): Likewise.
10086 * gdbserver/low-nbsd.c (myattach): Likewise.
10087 * gdbserver/low-sim.c (myattach): Likewise.
10088 * gdbserver/low-sparc.c (myattach): Likewise.
10089 * gdbserver/low-sun3.c (myattach): Likewise.
10090
10091 * gdbserver/low-linux.c (myattach): New function.
10092
10093 * gdbserver/server.c (attach_inferior): New function.
10094 (main): Handle "--attach".
10095
10096 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10097
10098 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10099 maintainer.
10100
10101 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * c-typeprint.c (is_type_conversion_operator): Add additional
10104 check for non-conversion operators.
10105
10106 2002-01-15 Michael Snyder <msnyder@redhat.com>
10107
10108 * linux-proc.c: Add "info proc" command, a la procfs.c.
10109 (read_mapping): New function, abstract and re-use code.
10110 (linux_find_memory_regions): Use new func read_mapping.
10111 (linux_info_proc_cmd): New function, implement "info proc".
10112 (_initialize_linux_proc): Add new command "info proc".
10113
10114 2002-01-15 Michael Snyder <msnyder@redhat.com>
10115
10116 * symfile.c (generic_load): Use bfd_map_over_sections method
10117 instead of manipulating bfd structure members directly.
10118 (add_section_size_callback): New function, bfd sections callback
10119 used by generic_load.
10120 (load_sections_callback): New function, bfd sections callback
10121 used by generic_load.
10122
10123 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10124
10125 [Based on work by Jim Blandy]
10126 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10127 (builtin_type_vec128): Export.
10128 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10129 types.
10130 (builtin_type_vec128): New builtin type for 128 bit vector
10131 registers.
10132 (build_gdbtypes): Initialize builtin_type_v16qi and
10133 builtin_type_v8hi. Create the vec128 register builtin type
10134 structure.
10135 (build_builtin_type_vec128): New function.
10136 (_initialize_gdbtypes): Register builtin_type_v16qi and
10137 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10138 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10139 AltiVec register to new builtin type.
10140
10141 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10142
10143 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10144 to make_cv_type.
10145
10146 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10147
10148 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10149 CLEAN_UP_REGISTER_VALUE.
10150 * regcache.c (supply_register): Update only call.
10151
10152 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10153
10154 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10155 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10156 a29k-*-vxworks* targets as obsolete.
10157
10158 2002-01-14 Michael Snyder <msnyder@redhat.com>
10159
10160 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10161 until we can resolve portability issues.
10162 * gregset.h: Remove references to fpxregs.
10163 * gcore.c (gcore_command): Initialize note_sec to NULL.
10164
10165 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10166
10167 * signals.c (target_signal_to_name): Rewrite. Only use
10168 signals[].name when in bounds and non-NULL.
10169
10170 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10171
10172 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10173 * signals.c (target_signal_to_name): Verify that SIG is within the
10174 bounds of the signals array.
10175
10176 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10177
10178 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10179
10180 2002-01-13 Keith Seitz <keiths@redhat.com>
10181
10182 * stack.c (print_frame_info_base): Print the frame's pc
10183 only if when print_frame_info_listing_hook is not defined.
10184
10185 2002-01-13 Keith Seitz <keiths@redhat.com>
10186
10187 * varobj.c (varobj_set_value): Make sure that there were no
10188 errors evaluating the object before attempting to set its
10189 value.
10190 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10191 so this offset adjustment is no longer necessary.
10192 (create_child): Don't set the error flag if the child is
10193 a CPLUS_FAKE_CHILD.
10194 (value_of_child): If value_fetch_lazy fails, return NULL
10195 so that callers will be notified that an error occurred.
10196 (c_value_of_variable): Delay check of variable's validity
10197 until later. We actually want all structs and unions to have
10198 the value "{...}".
10199 Do not return "???" for variables which could not be evaluated.
10200 This error condition must be returned to the caller so that it
10201 can get the error condition from gdb.
10202 (cplus_name_of_child): Adjust index for vptr before figuring
10203 out the name of the child.
10204 (cplus_value_of_child): If a child's (real) parent is not valid,
10205 don't even bother trying to give a value for it. Just return
10206 an error. Change all instances in this function.
10207 (cplus_type_of_child): If our parent is one of the "fake"
10208 parents, we need to get at the type of the real parent, and
10209 derive the child's true type using this information.
10210
10211 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10212
10213 From 2002-01-09 John Marshall <johnm@falch.net>:
10214 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10215 sources.redhat.com, and tweak some related URLs which had
10216 suffered from linkrot.
10217
10218 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10219
10220 From Jeff law:
10221 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10222 structures passed in registers.
10223
10224 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10225
10226 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10227 white space which prevented compilation. Reported by DSK
10228 <dsk@student.unsw.edu.au>.
10229
10230 2002-01-11 Michael Snyder <msnyder@redhat.com>
10231
10232 * symfile.c (build_section_addr_info_from_section_tab):
10233 Use bfd access method instead of manipulating bfd directly.
10234 (syms_from_objfile): Ditto.
10235 (simple_overlay_update_1): Ditto.
10236 (simple_overlay_update): Ditto.
10237 (generic_load): Ditto.
10238 (overlay_unmapped_address): FIXME comment, bfd access methods.
10239 (sections_overlap): FIXME comment, bfd access methods.
10240 (pc_in_mapped_range): FIXME comment, bfd access methods.
10241 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10242 (section_is_mapped): FIXME comment, bfd access methods.
10243 (section_is_overlay): FIXME comment, bfd access methods.
10244
10245 * symfile.c (generic_load): Whitespace and long line cleanups.
10246 Remove duplicate variable, change several local variables to
10247 more appropriate data types.
10248 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10249
10250 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10251
10252 From Peter Schauer:
10253 * language.c (longest_local_hex_string_custom): Use phex_nz to
10254 convert NUM to a hex string.
10255
10256 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10257
10258 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10259 the function.
10260 Update Copyright year.
10261
10262 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10263
10264 * language.c (longest_raw_hex_string): Delete unused function.
10265
10266 2002-01-11 Petr Sorfa <petrs@caldera.com>
10267
10268 * MAINTAINERS (write-after-approval): Add myself.
10269 * dwarf2read.c (read_tag_string_type): Handling of
10270 DW_AT_byte_size.
10271 (read_tag_string_type): FORTRAN fix to prevent propagation of
10272 first string size.
10273 (set_cu_language): Handling of DW_LANG_Fortran95
10274
10275 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10276
10277 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10278 GETPID(inferior_ptid).
10279 (store_inferior_registers): Likewise.
10280
10281 2002-01-10 Jason Merrill <jason@redhat.com>
10282
10283 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10284 Fix DW_OP_minus.
10285
10286 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10287
10288 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10289 and bfd/elf32-sh-nbsd.c.
10290
10291 2002-01-10 Michael Snyder <msnyder@redhat.com>
10292
10293 * NEWS: Mention --pid and corefile/proc-id behavior change.
10294
10295 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10296 * gcore.c: Include cli/cli-decode.h instead of command.h.
10297
10298 * main.c (captured_main): Add new command line option "--pid".
10299 If the second command line argument (following the symbol-file)
10300 begins with a digit, try to attach to it before trying to open
10301 it as a corefile.
10302 (print_gdb_help): Document the "--pid" argument.
10303
10304 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10305
10306 * completer.c (command_completer): New function.
10307
10308 * completer.h <command_completer>: Add prototype.
10309
10310 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10311 completer for the "help" command.
10312
10313 2002-01-09 Jason Merrill <jason@redhat.com>
10314
10315 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10316
10317 2002-01-09 Michael Snyder <msnyder@redhat.com>
10318
10319 * i386-linux-nat.c (fill_fpxregset): Make global.
10320 (store_fpxregset): Ditto.
10321
10322 * gregset.h (gdb_fpxregset_t): Define.
10323 (supply_fpxregset): Prototype.
10324 (fill_fpxregset): Prototype.
10325
10326 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10327
10328 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10329
10330 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10331 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10332 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10333
10334 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10335
10336 * MAINTAINERS: Update target maintainer rules so that any
10337 Maintainer can approve a tested patch for a maintenance-only
10338 target.
10339
10340 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10341
10342 * MAINTAINERS (write-after-approval): Add myself.
10343
10344 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10345 IN_SIGTRAMP.
10346
10347 2002-01-08 Michael Snyder <msnyder@redhat.com>
10348
10349 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10350 real name of the executable, rather than the /proc name.
10351
10352 2002-01-03 Michael Snyder <msnyder@redhat.com>
10353
10354 Implement a "generate-core-file" command in gdb, save target state.
10355 * gcore.c: New file. Implement new command 'generate-core-file'.
10356 Save a corefile image of the current state of the inferior.
10357 * linux-proc.c: Add linux-specific code for saving corefiles.
10358 * target.h (struct target_ops): Add new target vectors for saving
10359 corefiles; to_find_memory_regions and to_make_corefile_notes.
10360 (target_find_memory_regions): New macro.
10361 (target_make_corefile_notes): New macro.
10362 * target.c (update_current_target): Inherit new target methods.
10363 (dummy_find_memory_regions): New place-holder method.
10364 (dummy_make_corefile_notes): New place-holder method.
10365 (init_dummy_target): Initialize new dummy target vectors.
10366 * exec.c (exec_set_find_memory_regions): New function.
10367 Allow the exec_ops vector for memory regions to be taken over.
10368 (exec_make_note_section): New function, target vector method.
10369 * defs.h (exec_set_find_memory_regions): Export prototype.
10370 * procfs.c (proc_find_memory_regions): New function, corefile method.
10371 (procfs_make_note_section): New function, corefile method.
10372 (init_procfs_ops): Set new target vector pointers.
10373 (find_memory_regions_callback): New function.
10374 (procfs_do_thread_registers): New function.
10375 (procfs_corefile_thread_callback): New function.
10376 * sol-thread.c (sol_find_memory_regions): New function.
10377 (sol_make_note_section): New function.
10378 (init_sol_thread_ops): Initialize new target vectors.
10379 * inftarg.c (inftarg_set_find_memory_regions): New function.
10380 Allow to_find_memory_regions vector to be taken over.
10381 (inftarg_set_make_corefile_notes): New function.
10382 Allow to_make_corefile_notes vector to be taken over.
10383 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10384 interface layer if not target_has_execution (may be a corefile).
10385 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10386 * config/sparc/sun4sol2.mh: Ditto.
10387 * config/alpha/alpha-linux.mh: Ditto.
10388 * config/arm/linux.mh: Ditto.
10389 * config/i386/x86-64linux.mh: Ditto.
10390 * config/ia64/linux.mh: Ditto.
10391 * config/m68k/linux.mh: Ditto.
10392 * config/mips/linux.mh: Ditto.
10393 * config/powerpc/linux.mh: Ditto.
10394 * config/sparc/linux.mh: Ditto.
10395
10396 2002-01-07 Michael Snyder <msnyder@redhat.com>
10397
10398 * arm-linux-nat.c: Remove references to regcache.c internal data
10399 (registers[] and register_valid[]).
10400
10401 2002-01-07 Michael Snyder <msnyder@redhat.com>
10402
10403 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10404 so that attaching to a pid will automatically read the process's
10405 symbol file and shlibs.
10406 * Makefile.in: Add rule for linux-proc.o.
10407 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10408 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10409 * config/arm/linux.mh: Ditto.
10410 * config/i386/linux.mh: Ditto.
10411 * config/i386/x86-64linux.mh: Ditto.
10412 * config/ia64/linux.mh: Ditto.
10413 * config/m68k/linux.mh: Ditto.
10414 * config/mips/linux.mh: Ditto.
10415 * config/powerpc/linux.mh: Ditto.
10416 * config/sparc/linux.mh: Ditto.
10417
10418 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10419
10420 * win32-nat.c: Add i386-tdep.h dependency.
10421
10422 2002-01-07 Michael Snyder <msnyder@redhat.com>
10423
10424 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10425 instead of bfd_get_arch_size. Don't bail out just because
10426 there's no exec_bfd.
10427
10428 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10429 * p-valprint.c (pascal_object_print_value): Ditto.
10430 * somread.c (som_symtab_read): Ditto.
10431 * symfile.c (simple_free_overlay_region_table): Ditto.
10432 * valops.c (value_assign): Ditto.
10433
10434 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10435 use tilde_expand and strerror for opening save-tracepoints file.
10436
10437 * thread-db.c (thread_db_new_objfile): Indendation fix.
10438
10439 * infptrace.c (GDB_MAX_ALLOCA): New define.
10440 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10441 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10442 can be overridden with whatever value is appropriate to the host).
10443 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10444 alloca to allocate potentially large buffer.
10445 * rs6000-nat.c (child_xfer_memory): Ditto.
10446 * symm-nat.c (child_xfer_memory): Ditto.
10447 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10448
10449 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10450
10451 From Nick Clifton <nickc@redhat.com>
10452 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10453
10454 2002-01-07 Michael Snyder <msnyder@redhat.com>
10455
10456 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10457 Don't use exec_bfd if it's NULL.
10458
10459 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10460
10461 * valops.c (value_arg_coerce): Fix formatting.
10462
10463 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10464
10465 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10466 * gnu-nat.c: Ditto.
10467
10468 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10469
10470 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10471 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10472 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10473 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10474 z8k-coff have not been multi-arched. Update z8k-coff build
10475 status.
10476
10477 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10478
10479 * MAINTAINERS: Mark a29k target as obsolete.
10480 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10481 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10482 comments.
10483 * NEWS: Note that a29k targets are obsolete.
10484 * a29k-tdep.c: Mark as obsolete.
10485 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10486 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10487 a29k-*-vxworks* targets as obsolete.
10488 * remote-adapt.c: Obsolete.
10489 * remote-eb.c: Obsolete.
10490 * remote-mm.c: Obsolete.
10491 * remote-udi.c: Obsolete.
10492 * config/a29k/a29k-udi.mt: Obsolete.
10493 * config/a29k/a29k.mt: Obsolete.
10494 * config/a29k/tm-a29k.h: Obsolete.
10495 * config/a29k/tm-vx29k.h: Obsolete.
10496 * config/a29k/vx29k.mt: Obsolete.
10497
10498 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10499
10500 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10501 with BFD_ENDIAN_BIG.
10502
10503 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10504
10505 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10506 * configure, config.in: Re-generate.
10507 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10508 * defs.h: Do not include <endian.h>.
10509
10510 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10511
10512 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10513 * config.in: Regenerate.
10514 * configure.in: Update copyright years.
10515 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10516 * configure: Regenerate.
10517 * i386bsd-nat.c: Update copyright years.
10518 (fill_gregset): Use regcache_collect.
10519 (fetch_inferior_registers): Only fetch integer registers
10520 if requested to do so. Add support for XMM registers
10521 using PT_GETXMMREGS.
10522 (store_inferior_registers): Only store integer registers
10523 if requested to do so. Add support for XMM registers
10524 using PT_SETXMMREGS.
10525 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10526 (store_inferior_registers): Remove.
10527 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10528 (fetch_elfcore_registers): New function.
10529 (i386nbsd_elfcore_fns): New.
10530 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10531 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10532 i386bsd-nat.o.
10533 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10534 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10535 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10536 * config/i386/tm-nbsd.h: Update copyright years.
10537 (HAVE_SSE_REGS): Define.
10538 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10539 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10540 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10541 (SIGCONTEXT_PC_OFFSET): Remove.
10542 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10543
10544 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10545
10546 * configure.tgt: Remove powerpc-*-macos* target.
10547 * config/m68k/xm-mpw.h: Delete file.
10548 * config/xm-mpw.h: Delete file.
10549 * ser-mac.c: Delete file.
10550 * mpw-make.sed: Delete file.
10551 * mpw-config.in: Delete file.
10552 * mac-xdep.c: Delete file.
10553 * mac-gdb.r: Delete file.
10554 * mac-defs.h: Delete file.
10555 * mac-nat.c: Delete file.
10556 * config/powerpc/macos.mh: Delete file.
10557 * config/powerpc/macos.mt: Delete file.
10558 * config/powerpc/nm-macos.h: Delete file.
10559 * config/powerpc/tm-macos.h: Delete file.
10560 * source.c (openp, open_source_file): Remove obsolete code.
10561 * top.c (gdb_readline): Ditto.
10562 * utils.c (query): Ditto.
10563 * event-top.c (display_gdb_prompt): Ditto.
10564 * Makefile.in (ser-mac.o): Delete obsolete target.
10565 * NEWS: Update.
10566
10567 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10568
10569 * defs.h (BIG_ENDIAN): Delete macro definition.
10570 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10571 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10572 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10573 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10574 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10575 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10576 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10577 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10578 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10579 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10580 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10581 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10582 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10583 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10584 * gdbarch.c: Re-generate.
10585
10586 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10589 for core files.
10590
10591 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10592
10593 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10594
10595 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10596
10597 * value.h (value_ptr): Delete typedef.
10598
10599 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10600
10601 * i386nbsd-nat.c: Update copyright years.
10602 Include i386-tdep.h.
10603
10604 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10605
10606 * stabsread.c: Update copyright years.
10607
10608 From Debashis Mahata <debashis.mahata@wipro.com>:
10609 (read_struct_fields): Deal with Sun C compiler erroneous stab
10610 output for structs and unions.
10611 Fix PR gdb/269.
10612
10613 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10616 prototype.
10617
10618 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10619
10620 * cp-abi.c: Fix whitespace.
10621 (baseclass_offset): New wrapper function.
10622 * cp-abi.h (baseclass_offset): Add prototype.
10623 (struct cp_abi_ops): Add baseclass_offset pointer.
10624
10625 * valops.c (vb_match): Move to...
10626 * gnu-v2-abi.c (vb_match): here.
10627 * valops.c (baseclass_offset): Move to...
10628 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10629
10630 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10631
10632 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10633 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10634 * hpacc-abi.c (init_hpacc_ops): Likewise.
10635
10636 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * valops.c (find_overload_match): Accept obj as a
10639 reference parameter. Update it before returning.
10640 * value.h (find_overload_match): Update prototype.
10641 * eval.c (evaluate_subexp_standard): Pass object to
10642 find_overload_match by reference.
10643
10644 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10645
10646 * valarith.c: Replace value_ptr with struct value pointer. Remove
10647 register attribute from value declarations.
10648 * valops.c: Ditto.
10649 * value.h: Ditto.
10650 * scm-lang.c (scm_lookup_name): Ditto.
10651
10652 2002-01-03 Michael Snyder <msnyder@redhat.com>
10653
10654 Abstract the functionality of iterating over mapped memory
10655 regions into a general purpose iterator function.
10656 * procfs.c (iterate_over_mappings): New function, general purpose
10657 iterator for memory sections.
10658 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10659 (solib_mappings_callback): New function, callback for above.
10660 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10661 (info_mappings_callback): New function, callback for above.
10662
10663 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10664
10665 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10666
10667 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10668 * i386-tdep.c: Include "elf-bfd.h".
10669 (process_note_abi_tag_sections): New function.
10670 (i386_gdbarch_init): Add code to recognize various OS/ABI
10671 combinations.
10672
10673 * maint.c (_initialize_maint_cmds): Add missing \ in
10674 string-literal.
10675
10676 For older changes see ChangeLog-2001
10677 \f
10678 Local Variables:
10679 mode: change-log
10680 left-margin: 8
10681 fill-column: 74
10682 version-control: never
10683 End:
This page took 0.260268 seconds and 4 git commands to generate.