]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix PR gdb/393:
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a790ad35
SC
12002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2
3 Fix PR gdb/393:
4 * inflow.c (terminal_save_ours): New function to save terminal
5 settings.
6 * inferior.h (terminal_save_ours): Declare.
7 * target.c (debug_to_terminal_save_ours): New function.
8 (cleanup_target): Defaults to_terminal_save_ours.
9 (update_current_target): Inherit to_terminal_save_ours.
10 (setup_target_debug): Set to_terminal_save_ours.
11 * target.h (target_terminal_save_ours): New to save terminal settings.
12 (target_ops): New member to_terminal_save_ours.
13 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
14 * hpux-thread.c (init_hpux_thread_ops): Likewise.
15 * inftarg.c (init_child_ops): Likewise.
16 * m3-nat.c (init_m3_ops): Likewise.
17 * procfs.c (init_procfs_ops): Likewise.
18 * wince.c (init_child_ops): Likewise.
19 * win32-nat.c (init_child_ops): Likewise.
20 * sol-thread.c (init_sol_thread_ops): Likewise.
21
c00dcbe9
MK
222002-08-26 Mark Kettenis <kettenis@gnu.org>
23
3d7f4f49
MK
24 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
25 use regcache_* functions.
26 (i386_gdbarch_init): Set store_return_value instead of
27 deprecated_store_return_value.
28
c00dcbe9
MK
29 * regcache.c (regcache_raw_write_signed,
30 regcache_raw_write_unsigned): New functions.
31 * regcache.h (regcache_raw_write_signed,
32 regcache_raw_write_unsigned): New prototypes.
33
0e0d15ca
AC
342002-08-25 Andrew Cagney <ac131313@redhat.com>
35
36 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
37 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
38 source file dependencies. Cleanup corresponding generator rules.
39
d3b22ed5
AC
402002-08-25 Andrew Cagney <ac131313@redhat.com>
41
42 * regcache.h (register_offset_hack): Declare.
43 (regcache_cooked_read_using_offset_hack): Declare.
44 (regcache_cooked_write_using_offset_hack): Declare.
45
46 * regcache.c (register_offset_hack): New function.
47 (regcache_cooked_read_using_offset_hack): New function.
48 (regcache_cooked_write_using_offset_hack): New function.
49 (regcache_dump): Check that the registers, according to their
50 offset, are packed hard against each other.
51 (cooked_xfer_using_offset_hack): New function.
52
bb425013
AC
532002-08-25 Andrew Cagney <ac131313@redhat.com>
54
55 * regcache.c (struct regcache_descr): Add field register_type.
56 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
57 in as a parameter
58 (init_regcache_descr): Initialize register_type. Pass the descr
59 to init_legacy_regcache_descr. Use register_type instead of
60 REGISTER_VIRTUAL_TYPE.
61 (register_type): New function.
62 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
63 * regcache.h (register_type): Declare.
64
d0403e00
AC
652002-08-25 Andrew Cagney <ac131313@redhat.com>
66
67 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
68 instead of deprecated_store_return_value. Fix fallout from
69 2002-08-23 Andrew Cagney <cagney@redhat.com>.
70
0ed04cce
AC
712002-08-25 Andrew Cagney <ac131313@redhat.com>
72
73 * regcache.c (max_register_size): New function.
74 (init_legacy_regcache_descr): Ensure that max_register_size is
75 large enough for REGISTER_VIRTUAL_SIZE.
76 * regcache.h (max_register_size): Declare.
77
46d79c04
AC
782002-08-24 Andrew Cagney <ac131313@redhat.com>
79
80 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
81 store_return_value.
82 (e500_extract_return_value): Change type of valbuf pointer to
83 void.
84
853c7bd0
MK
852002-08-24 Mark Kettenis <kettenis@gnu.org>
86
cd87e769
MK
87 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
88 workaround.
89
853c7bd0
MK
90 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
91 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
92 long long) to prevent compiler warning on 64-bit systems.
93
ebba8386
AC
942002-08-23 Andrew Cagney <cagney@redhat.com>
95
96 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
97 (DEPRECATED_STORE_RETURN_VALUE): New method.
98 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
99 * gdbarch.h, gdbarch.c: Re-generate.
100
101 * values.c (set_return_value): Pass current_regcache to
102 STORE_RETURN_VALUE.
103 * arch-utils.h (legacy_store_return_value): Declare.
104 * arch-utils.c (legacy_store_return_value): New function.
105 (legacy_extract_return_value): Update parameters.
106
107 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
108 STORE_RETURN_VALUE.
109 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
110 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
111 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
112 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
113 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
114 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
115 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
116 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
117 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
118 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
119
120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
121 * i386-tdep.c (i386_extract_return_value): Update.
122 * arch-utils.c (legacy_extract_return_value): Update.
123 * frv-tdep.c (frv_gdbarch_init): Update.
124 * cris-tdep.c (cris_gdbarch_init): Update.
125 * d10v-tdep.c (d10v_gdbarch_init): Update.
126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
127 * m68k-tdep.c (m68k_gdbarch_init): Update.
128 * mcore-tdep.c (mcore_gdbarch_init): Update.
129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
130 * s390-tdep.c (s390_gdbarch_init): Update.
131 * sparc-tdep.c (sparc_gdbarch_init): Update.
132 * sh-tdep.c (sh_gdbarch_init): Update.
133 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
134 * v850-tdep.c (v850_gdbarch_init): Update.
135 * avr-tdep.c (avr_gdbarch_init): Update.
136 * ia64-tdep.c (ia64_gdbarch_init): Update.
137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
138 * vax-tdep.c (vax_gdbarch_init): Update.
139 * alpha-tdep.c (alpha_gdbarch_init): Update.
140 * arm-tdep.c (arm_gdbarch_init): Update.
141 * mips-tdep.c (mips_gdbarch_init): Update.
142 * i386-tdep.c (i386_gdbarch_init): Update.
143
5bd8c6d0
AC
1442002-08-23 Andrew Cagney <ac131313@redhat.com>
145
146 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
147 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
148
e73e1724
MK
1492002-08-24 Mark Kettenis <kettenis@gnu.org>
150
151 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
152 problems.
153
3e6564e1
JB
1542002-08-23 Joel Brobecker <brobecker@gnat.com>
155
156 * infrun.c (handle_inferior_event): Move a comment outside of a
157 function call, in order to avoid indent reformatting this part
158 of the code in an unreadable way.
159
81d0cc19
GS
1602002-08-23 Grace Sainsbury <graces@redhat.com>
161
162 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
163 when breakpoints fail. Move general breakpoint error messages to
164 insert_breakpoints.
165 * breakpoint.c (insert_breakpoints): Change warnings when
166 breakpoints are nto inserted to specify the type. Remove call to
167 memory_error when hardware breakpoints can't be inserted. Remove
168 multiple calls to warning so all messages are sent to the user at
169 once.
170 (delete_breakpoints): Make insert error messsages more explicit.
171
17574093
DJ
1722002-08-23 Daniel Jacobowitz <drow@mvista.com>
173
174 * ChangeLog: Move gdbserver entries after GDB 5.2 to
175 gdbserver/ChangeLog.
176
8acc2935
MK
1772002-08-23 Mark Kettenis <kettenis@gnu.org>
178
dfe01d39
MK
179 * i386-tdep.c: Include "objfiles.h".
180 (i386_svr4_init_abi): Set in_solib_call_trampoline and
181 skip_trampoline_code.
182 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
183 (CPLUS_MARKER): Define to '.'.
184
8acc2935
MK
185 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
186 member.
187 (linux_corefile_thread_callback): Increase args->num_notes.
188 (linux_make_note_section): Initialize thread_args.num_notes, and
189 use it to determine whether notes for any threads were created.
190
640b227f
JB
1912002-08-23 Donn Terry <dterry@microsoft.com>
192
193 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
194 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
195 and PCUNKILL.
196 (write_with_trace): Conditionalize out the switch branch handling
197 PCSHOLD if the corresponding macro is not defined. Likewise for
198 PRSABORT and PRSTOP.
199 This change will be needed by the Interix port.
200
96ff0de4
EZ
2012002-08-22 Elena Zannoni <ezannoni@redhat.com>
202
203 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
204 ev_offset fields.
205 (skip_prologue): Add support for BookE/e500 instructions.
206 (e500_extract_return_value): New function.
207 (frame_get_saved_regs): Add support for saving ev registers and
208 pseudo gpr's.
209 (e500_store_return_value): New function.
210 (rs6000_gdbarch_init): Move up default intializations of
211 deprecated_extract_return_value and store_return_value. Overwrite
212 init of store_return_value with e500 specific version.
213 Set extract_return_value for e500.
214
fbefca5b
EZ
2152002-08-22 Elena Zannoni <ezannoni@redhat.com>
216
217 * blockframe.c (generic_call_dummy_register_unwind): Use
218 regcache_cooked_read to catch cases in which the variable is
219 stored in a pseudo register.
220
4d210288
AC
2212002-08-22 Andrew Cagney <cagney@redhat.com>
222
223 * NEWS: Mention that the i960 has been made obsolete.
224 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
225 i960-tdep.c
226 (remote-nrom.o): Obsolete target.
227 (remote-nindy.o, i960-tdep.o): Ditto.
228 * remote-nrom.c: Make file obsolete.
229 * remote-nindy.c, remote-vx960.c: Ditto.
230 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
231 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
232 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
233 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
234 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
235 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
236 i960-*-vxworks* obsolete.
237 * MAINTAINERS: Note that the i960 is obsolete.
238
6c0c456d
CV
2392002-08-21 Corinna Vinschen <vinschen@redhat.com
240
241 * aix-thread.c (aix_thread_detach): Disable thread debugging on
242 detach to allow reinitialization.
243
9f9d12b3
AC
2442002-08-22 Andrew Cagney <ac131313@redhat.com>
245
246 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
247 attempt).
248
ebeb39fe
JB
2492002-08-22 Jim Blandy <jimb@redhat.com>
250
251 * coffread.c (coff_symfile_read): Don't try to read the line
252 number table from disk if the image file doesn't have a symbol
253 table; we'll never actually look at the info anyway, and Windows
254 ships DLL's with bogus file offsets for the line number data.
255
5bf1c677
EZ
2562002-08-21 Elena Zannoni <ezannoni@redhat.com>
257
258 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
259 an e500 executable.
260
71b8ef93
MS
2612002-08-21 Michael Snyder <msnyder@redhat.com>
262
263 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
264 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
265 (DEFAULT_MIPS_TYPE): Delete unused macro.
266 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
267 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 268
d174216d
JB
2692002-08-21 Jim Blandy <jimb@redhat.com>
270
271 * valops.c (value_cast): Simplify and correct logic for doing a
272 static cast from a pointer to a base class to a pointer to a
273 derived class.
274
0ab7a791
AC
2752002-08-21 Andrew Cagney <ac131313@redhat.com>
276
277 * infcmd.c (default_print_registers_info): Replace
278 do_registers_info.
279 (registers_info): Use gdbarch_print_registers_info instead of
280 DO_REGISTERS_INFO.
281 * inferior.h (default_print_registers_info): Replace
282 do_registers_info.
283 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
284 (DO_REGISTERS_INFO): Change to a predicate function.
285 * gdbarch.h, gdbarch.c: Regenerate.
286
e23792cc
KS
2872002-08-21 Keith Seitz <keiths@redhat.com>
288
289 * gdb-events.sh: Add target-changed event.
290 * gdb-events.c: Regenerated.
291 * gdb-events.c: Regenerated.
292 * valops.c (value_assign): Add target-changed event notification
293 to inlval_register, lval_memory, and lval_reg_frame_relative.
294
9fb14e79
JB
2952002-08-21 Joel Brobecker <brobecker@gnat.com>
296
297 * NEWS: Add an entry regarding the improvement of the next/step
298 operation on Alpha Tru64 multi-processor machines.
299
6d39a69f
AC
3002002-08-21 Andrew Cagney <ac131313@redhat.com>
301
72acd513
AC
302 * Makefile.in: Update dependencies for mi/ cli/ and tui/
303 directores.
342af04b 304 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
305 * Makefile.in (install-gdbtk): Move to install section.
306 (rdi-share/libangsd.a): Move to end of file.
307
fa5f27c7
AC
3082002-08-19 Andrew Cagney <ac131313@redhat.com>
309
310 * frame.c (frame_register_unwind): When a register, set addrp to
311 the register's byte.
312
5a89d8aa
MS
3132002-08-20 Michael Snyder <msnyder@redhat.com>
314
315 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
316 used locally, so move them from the target machine header to here.
317 (mips_set_processor_type, mips_register_name, mips32_next_pc,
318 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
319 Make static.
320 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
321
822e978b
AC
3222002-08-20 Andrew Cagney <cagney@redhat.com>
323
324 * NEWS: Mention that the Apollo line was made obsolete.
325 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
326 m68*-hp-hpux* obsolete.
327 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
328 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
329 * buildsym.c (make_blockvector): Make static.
330 * buildsym.h (make_blockvector): Make extern declaration obsolete.
331 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
332 (ALLDEPFILES): Remove dstread.c.
333 (dstread.o): Obsolete make rule.
334 * dstread.c: Makefile obsolete.
335 * dst.h: Ditto.
336 * config/m68k/hp300hpux.mt: Ditto.
337 * config/m68k/hp300hpux.mh: Ditto.
338 * config/m68k/hp300bsd.mt: Ditto.
339 * config/m68k/hp300bsd.mh: Ditto.
340 * config/m68k/apollo68b.mt: Ditto.
341 * config/m68k/apollo68v.mh: Ditto.
342 * config/m68k/apollo68b.mh: Ditto.
343
e41b17f0
MS
3442002-08-20 Michael Snyder <msnyder@redhat.com>
345
346 * mips-tdep.c (mips_in_return_stub): Make static.
347 (mips_gdbarch_init): Set in_solib_return_trampoline.
348 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
349
d50355b6
MS
3502002-08-20 Michael Snyder <msnyder@redhat.com>
351
352 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
353 * gdbarch.c, gdbarch.h: Regenerate.
354 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
355 Add.
356 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
357
757a7cc6
MS
3582002-08-20 Michael Snyder <msnyder@redhat.com>
359
360 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
361 (mips_gdbarch_init): Set skip_trampoline_code,
362 in_solib_call_trampoline.
363 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
364 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
365
c8001721
EZ
3662002-08-20 Elena Zannoni <ezannoni@redhat.com>
367
368 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
369
370 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
371 vector type for ev registers.
372 (e500_pseudo_register_read): New function.
373 (e500_pseudo_register_write): New function.
374 (e500_dwarf2_reg_to_regnum): New function.
375 (PPC_UISA_NOFP_SPRS): New macro.
376 (PPC_EV_REGS): New macro.
377 (PPC_GPRS_PSEUDO_REGS): New macro.
378 (registers_e500): New register set for e500.
379 (variants): Add e500 variant.
380 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
381 before setting architectural dependent variations. Initialize ev
382 registers numbers. Add case for e500 architecture. Set the
383 number of pseudo registers.
384
64366f1c
EZ
3852002-08-20 Elena Zannoni <ezannoni@redhat.com>
386
387 * rs6000-tdep.c: Clean up comments.
388
7e78f0ca
AC
3892002-08-20 Andrew Cagney <cagney@redhat.com>
390
391 * h8300-tdep.c: Re-indent file.
392
697f7479
JB
3932002-08-20 Jim Blandy <jimb@redhat.com>
394
395 * Makefile.in (LDFLAGS): Allow the configure script to establish a
396 default for this.
697f7479 397
e86ae29f
KS
3982002-08-20 Keith Seitz <keiths@redhat.com>
399
400 * breakpoints.c (watch_command_1): Use internal breakpoint
401 when setting a watchpoint_scope breakpoint.
402
216b504f
EZ
4032002-08-20 Elena Zannoni <ezannoni@redhat.com>
404
405 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
406 (build_builtin_type_vec64i): Ditto.
407 (build_builtin_type_vec128): Ditto.
408 (build_builtin_type_vec128i): Ditto.
409
f7ab6ec6
MS
4102002-08-19 Michael Snyder <msnyder@redhat.com>
411
412 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
413 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
414 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
415 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
416 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
417 CALL_DUMMY_ADDRESS): Delete.
418 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
419 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
420 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
421 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
422 push_return_address.
423 (mips_register_raw_size, mips_eabi_use_struct_convention,
424 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
425 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
426 mips_init_extra_frame_info, mips_eabi_push_arguments,
427 mips_n32n64_push_arguments, mips_push_return_address,
428 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
429 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
430
b5d1566e
MS
4312002-08-19 Michael Snyder <msnyder@redhat.com>
432
433 * mips-tdep.c (mips_frame_num_args): New function.
434 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
435 frame_saved_pc, frame_args_address, frame_locals_address,
436 frame_num_args, and frame_args_skip.
437 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
438 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
439 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
440 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
441
2f1488ce
MS
4422002-08-20 Michael Snyder <msnyder@redhat.com>
443
444 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
445 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
446 * mips-tdep.c (mips_store_struct_return): New function.
447 (mips_extract_struct_value_address): New function.
448 (mips_gdbarch_init): Set store_struct_return and
449 extract_struct_value_address.
450
41ff2da1
DC
4512002-08-20 David Carlton <carlton@math.stanford.edu>
452
453 * dwarf2read.c (dwarf2_build_psymtabs): Check that
454 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
455 (read_file_scope): Check that line_header is nonzero before
456 decoding macro information.
457
e5451d58
MK
4582002-08-20 Mark Kettenis <kettenis@gnu.org>
459
460 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
461 flag the general-purpose registers as floating-point on targets
462 that don't support the floating-point registers.
463
4a6daafa
EZ
4642002-08-20 Elena Zannoni <ezannoni@redhat.com>
465
466 * rs6000-tdep.c (altivec_register_p): Delete.
467 (rs6000_do_altivec_registers): Delete.
468 (rs6000_altivec_registers_info): Delete.
469 (rs6000_do_registers_info): Delete.
470 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
471 (rs6000_gdbarch_init): Remove setting of do_registers_info.
472
ab4327e0
EZ
4732002-08-20 Elena Zannoni <ezannoni@redhat.com>
474
475 * infcmd.c (do_registers_info): Print vector registers in hex
476 format only.
477 (print_vector_info): Check that printing registers
478 makes sense.
479 (print_float_info): Ditto.
480
cb1d2653
AC
4812002-08-20 Andrew Cagney <ac131313@redhat.com>
482
483 * mips-tdep.c (mips_gdbarch_init): Update.
484 (mips_o32_extract_return_value): Rewrite.
485 (mips_o32_store_return_value): Rewrite.
486 (mips_o32_xfer_return_value): New function.
487 (mips_xfer_register): Tweak debug print message. Allow for
488 buf_offset when dumping the value transfered.
489
dfc3d9b2
AC
4902002-08-20 Andrew Cagney <ac131313@redhat.com>
491
492 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
493 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
494 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
495 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
496 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
497
7807aa61
MS
4982002-08-14 Michael Snyder <msnyder@redhat.com>
499
500 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
501
489461e2
EZ
5022002-08-19 Elena Zannoni <ezannoni@redhat.com>
503
504 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
505 register.
506 (P): New macro to define a register as a pseudo register.
507 (R, R4, R8, R16, FR32, R64, R0): Updated.
508 (struct variant): Add new fields for number of pseudo registers
509 and number of total registers.
510 (tot_num_registers): New macro replacing....
511 (num_registers): ...deleted macro.
512 (num_registers): New function.
513 (num_pseudo_registers): New function.
514 (variants): Update all variants to intialize new fields correctly.
515 Postpone initialization of number of pseudo regs and real regs.
516 (init_variants): New function.
517 (rs6000_gdbarch_init): Initialize variants. Update calculation of
518 registers offsets.
519
fcaffe4c
DC
5202002-08-19 David Carlton <carlton@math.stanford.edu>
521
2c2738a0
DC
522 * valops.c (search_struct_field): Change error message to treat
523 return value of 0 from value_static_field as meaning that field is
524 optimized out.
525 (value_struct_elt_for_reference): Ditto.
526 * values.c (value_static_field): Treat an unresolved location the
527 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
528 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
529 enclosed. Fix PR gdb/574.
fcaffe4c
DC
530 * MAINTAINERS: Add self to Write After Approval list.
531
88658117
AC
5322002-08-19 Andrew Cagney <ac131313@redhat.com>
533
534 * mips-tdep.c (mips_xfer_register): New function.
535 (mips_n32n64_extract_return_value): Rewrite.
536 (mips_gdbarch_init): For N32 and N64, set extract_return_value
537 instead of deprecated_extract_return_value.
538
21283beb
EZ
5392002-08-19 Elena Zannoni <ezannoni@redhat.com>
540
541 * rs6000-tdep.c (TDEP): Delete macro.
542 (branch_dest): Replace use of TDEP macro with its body.
543 (rs6000_pop_frame): Ditto.
544 (rs6000_push_arguments): Ditto.
545 (rs6000_skip_trampoline_code): Ditto.
546 (rs6000_frame_saved_pc): Ditto.
547 (rs6000_frame_chain): Ditto.
548 (rs6000_register_name): Ditto.
549 (rs6000_register_byte): Ditto.
550 (rs6000_register_raw_size): Ditto.
551 (rs6000_register_virtual_type): Ditto.
552 (rs6000_register_convertible): Ditto.
553 (rs6000_convert_from_func_ptr_addr): Ditto.
554
bf072999
DJ
5552002-08-19 Daniel Jacobowitz <drow@mvista.com>
556
557 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
558 conditionally.
559 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
560 MIPS_LINUX_JB_ELEMENT_SIZE.
561 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
562 for MAX_REGISTER_RAW_SIZE arrays.
563 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
564 MIPS_LINUX_JB_ELEMENT_SIZE.
565
9b949a49
PM
5662002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
567
568 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
569
6d3e79c6
AS
5702002-08-19 Aidan Skinner <aidan@velvet.net>
571
572 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
573 ada-valprint.c ada-tasks.c.
574 (YYFILES): Add ada-exp.y.
575 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
576 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
577 (ada-exp.tab.o): New target.
578
06c0b04e
AC
5792002-08-18 Andrew Cagney <ac131313@redhat.com>
580
581 * regcache.c (regcache_xfer_part): New function.
582 (regcache_raw_read_part): New function.
583 (regcache_raw_write_part): New function.
584 (regcache_cooked_read_part): New function.
585 (regcache_cooked_write_part): New function.
586 * regcache.h (regcache_raw_read_part): Declare.
587 (regcache_raw_write_part): Declare.
588 (regcache_cooked_read_part): Declare.
589 (regcache_cooked_write_part): Declare.
590
92d1e331
DJ
5912002-08-18 Daniel Jacobowitz <drow@mvista.com>
592
593 * remote.c (remote_open_1): Add async_p.
594 (remote_async_open_1): Delete.
595 (open_remote_target): Delete.
596 (remote_open, extended_remote_open): Update calls to remote_open_1.
597 (remote_async_open, extended_remote_async_open): Call
598 remote_open_1 instead of remote_async_open_1.
599
247055de
MK
6002002-08-19 Mark Kettenis <kettenis@gnu.org>
601
602 * blockframe.c: Fix a few coding standard violations.
603
641eda39
MK
6042002-08-19 Mark Kettenis <kettenis@gnu.org>
605
0b717710
MK
606 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
607 here from ...
608 * config/i386/tm-i386sco5.h: ... here. File removed.
609 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
610
26d28e12 611 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
612 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
613 (TM_FILE): Set to tm-i386.h.
614 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
615 * config/i386/tm-i386v.h: Remove file.
616 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
617 instead of "i386/tm-i386v.h".
618 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
619 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
620 "i386/tm-i386v.h".
621 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
622 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
623 "i386/tm-i386.h".
624
d4e0bab4
MK
6252002-08-18 Mark Kettenis <kettenis@gnu.org>
626
627 * config/i386/nm-i386v.h: Add protection against
628 multiple-inclusion.
629 (i386_register_u_addr): Remove prototype.
630 (register_u_addr): New prototype.
631 (REGISTER_U_ADDR): Redefine accordingly.
632 * i386v-nat.c: Improve several comments.
633 (i386_register_u_addr): Change signature and rename to
634 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
635 ubase variable.
636
46cac009
AC
6372002-08-18 Andrew Cagney <ac131313@redhat.com>
638
639 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
640 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
641 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
642 deprecated_extract_return_value.
643 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
644 rename mips_o32o64_push_arguments.
645 (mips_gdbarch_init): Update.
646 (mips_extract_return_value): Delete.
647 (mips_o32_extract_return_value): Clone mips_extract_return_value.
648 (mips_o64_extract_return_value): Clone mips_extract_return_value.
649 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
650 (mips_n32n64_extract_return_value): Clone
651 mips_extract_return_value.
652 (mips_store_return_value): Delete.
653 (mips_o32_store_return_value): Clone mips_store_return_value.
654 (mips_o64_store_return_value): Clone mips_store_return_value.
655 (mips_eabi_store_return_value): Clone mips_store_return_value.
656 (mips_n32n64_store_return_value): Clone mips_store_return_value.
657
d2e4a39e
AS
6582002-08-18 Aidan Skinner <aidan@velvet.net>
659
0c30c098
AS
660 * ada-lang.c: Use gdb_string.h instead of <string.h>.
661 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
662
6632002-08-18 Aidan Skinner <aidan@velvet.net>
664
665 * ada-lang.c: Run through gdb_indent.sh.
666 * ada-lang.h: Run through gdb_indent.sh.
667 * ada-tasks.c: Run through gdb_indent.sh.
668 * ada-typeprint.c: Run through gdb_indent.sh.
669 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 670
01fc4e33
AC
6712002-08-18 Andrew Cagney <ac131313@redhat.com>
672
673 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
674 ABI.
675
d8ee244c
MK
6762002-08-18 Mark Kettenis <kettenis@gnu.org>
677
c38d8261
MK
678 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
679
222db64c
MK
680 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
681 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
682
c2848c82
MK
683 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
684 write_register_gen instead of write_register_bytes.
685
d8ee244c
MK
686 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
687 i[3456]-*-osf1mk* configurations have been made obsolete.
688 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
689 i[3456]86-*-osf1mk* hosts obsolete.
690 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
691 targets obsolete.
692 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
693 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
694 config/i386/i386m3.mt, config/i386/nm-m3.h,
695 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
696 config/i386/i386mk.mh, config/i386/i386mk.mt,
697 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
698 obsolete.
699 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
700 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
701 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
702
61d8d407
AC
7032002-08-18 Andrew Cagney <ac131313@redhat.com>
704
705 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
706 (hppa_value_returned_from_stack): Declare.
707 (hppa_extract_return_value): Declare.
708 * config/pa/hppa.mt: New file.
709 * configure.tgt: Recognize hppa*-*-*.
710 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
711
0c52bd59
MK
7122002-08-18 Mark Kettenis <kettenis@gnu.org>
713
714 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
715 comment.
716
b5686e99
MK
7172002-08-17 Mark Kettenis <kettenis@gnu.org>
718
719 * top.c (gdb_rl_operate_and_get_next): Make sure
720 operate-and-get-next functions correctly even when the history
721 list is completely filled.
722
c1bab85b
AC
7232002-08-18 Andrew Cagney <ac131313@redhat.com>
724
725 * MAINTAINERS (Target Instruction Set Architectures): Rename
726 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
727 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
728 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
729 already listed under Host/Native.
730
731 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
732 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
733 mips*-*-*.
734
32089c7c
AC
7352002-08-17 Andrew Cagney <ac131313@redhat.com>
736
737 * config/ia64/ia64.mt: New file.
738 * config/alpha/alpha.mt: New file.
739 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
740 ia64-linux-gnu. Mention that ia64-elf is broken.
741 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
742
b4671f85
MK
7432002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
744
745 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
746 generic_func_frame_valid instead of func_frame_valid.
747
c8edd8b4
JB
7482002-08-16 Joel Brobecker <brobecker@gnat.com>
749
750 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
751 procfs appears to be broken when debugging on multi-processor
752 machines. So enable software single stepping in order to avoid
753 using the procfs interface to do next/step operations, using
754 internal breakpoints instead.
755
756 * infrun.c (handle_inferior_event): Readjust the stop_pc by
757 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
758 make this pc address equal to the value it would have if the
759 system stepping capability was used. Also set a new flag used
760 to ensure that we don't readjust the PC one more time later.
761
762 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
763 address by DECR_PC_AFTER_BREAK when software single step is
764 in use for this architecture, as this has already been taken
765 care of in handle_inferior_event().
766
238617f6
JB
7672002-08-16 Joel Brobecker <brobecker@gnat.com>
768
769 * infrun.c (handle_inferior_event): Minor reformatting, to make
770 a rather long condition expression easier to read.
771
541a7aac
AC
7722002-08-16 Andrew Cagney <ac131313@redhat.com>
773
774 * Makefile.in (gdbtk.o): Move to end of file.
775 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
776 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
777 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
778 (gdbtk-wrapper.o, gdbres.o): Ditto.
779
f92d4a7b
AC
7802002-08-16 Andrew Cagney <ac131313@redhat.com>
781
782 * Makefile.in (copying.o): Separate out compile rule.
783 (hpux-thread.o, procfs.o, signals.o): Ditto.
784 (v850ice.o, z8k-tdep.o): Ditto.
785 (tui-file.o): Move to TUI section.
786 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
787 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
788
1cce71eb
JB
7892002-08-16 Joel Brobecker <brobecker@gnat.com>
790
791 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
792 skip_trampoline_code, for better namespace-proofing.
793
794 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
795
0851f23d
JB
7962002-08-16 Joel Brobecker <brobecker@gnat.com>
797
798 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
799
f8d40ec8
JB
8002002-08-16 Joel Brobecker <brobecker@gnat.com>
801
802 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
803 signal, check whether we hit a breakpoint before checking for a
804 single step breakpoint. Otherwise, GDB fails to notice that a
805 breakpoint has been hit when stepping onto a breakpoint.
806
63d022e0
KS
8072002-08-16 Keith Seitz <keiths@redhat.com>
808
809 * gdb-events.sh (clear_gdb_event_hooks): New function.
810 * gdb-events.c: Regenerate.
811 * gdb-events.h: Regenerate.
812
6e31adb3
AC
8132002-08-16 Andrew Cagney <ac131313@redhat.com>
814
815 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
816 not_a_sw_breakpoint.
817 * breakpoint.h (bpstat_stop_status): Add parameter names.
818
c8189ed1
GS
8192002-08-16 Grace Sainsbury <graces@redhat.com>
820
821 * remote.c (remote_insert_hw_breakpoint)
822 (remote_remove_hw_breakpoint): Fix calculation of length field
823 for Z-packet.
824
d05285fa
MS
8252002-08-15 Michael Snyder <msnyder@redhat.com>
826
466d7106
MS
827 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
828 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
829 (supply_fpregset): Ditto.
830
d05285fa
MS
831 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
832 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
833 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 834 (TARGET_READ_SP): Delete.
bf1f5b4c 835 (DO_REGISTERS_INFO): Delete.
102182a9
MS
836 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
837 Delete.
838 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
839 from macros to functions.
bf1f5b4c 840
d05285fa
MS
841 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
842 (mips_register_convertible, mips_register_convert_to_virtual,
843 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
844 (mips_read_sp): New function.
845 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
846 (mips_do_registers_info): Make static.
847 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
848 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
849 (mips_register_convert_from_type, mips_register_convert_to_type):
850 New functions.
851 (mips_gdbarch_init): Set up function_start_offset,
852 register_virtual_size, pc_in_sigtramp.
d05285fa 853
e76f1f2e
AC
8542002-08-15 Andrew Cagney <ac131313@redhat.com>
855
856 * infcmd.c (vector_info): New function.
857 (_initialize_infcmd): Add command "info vector".
858 (print_vector_info): New function.
859
860 * gdbarch.sh (PRINT_VECTOR_INFO): New method
861 * gdbarch.h, gdbarch.c: Regenerate.
862
4782dc19
AC
8632002-08-15 Andrew Cagney <ac131313@redhat.com>
864
865 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
866 ``print_all''. Only print vector registers when ``print_all''.
867
23e3a7ac
AC
8682002-08-15 Andrew Cagney <ac131313@redhat.com>
869
8e186fd6
AC
870 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
871 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
872
23e3a7ac
AC
873 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
874 Add `args' parameter.
875 * gdbarch.h, gdbarch.c: Regenerate.
876
877 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
878
879 * infcmd.c (float_info): Call print_float_info.
880 (print_float_info): New function. By default, print the
881 floating-point registers.
882
883 * arch-utils.h (default_print_float_info): Delete declaration.
884 * arch-utils.c (default_print_float_info): Delete function.
885
e0ca2bb9
MK
8862002-08-16 Mark Kettenis <kettenis@gnu.org>
887
3f733acc
MK
888 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
889 out define.
890
7d8d2918
MK
891 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
892 FRAME.
893
1c7cc583
MK
894 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
895 * configure.host: Make i[3456]86-*-aix host obsolete.
896 * configure.tgt: Make i[3456]86-*-aix target obsolete.
897 * config/i386/i386aix.mh, config/i386/i386aix.mt,
898 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
899 config/i386/xm-i386aix.h: Make files obsolete.
900 * i386aix-nat.c: Make file obsolete.
901 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
902 (i386aix-nat.o): Make target obsolete.
903
e0ca2bb9
MK
904 * config/i386/nm-gnu.h: Removed.
905 * config/i386/nm-i386gnu.h: New file.
906 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
907 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
908 Moved here from ...
909 * config/i386/tm-i386gnu.h: ... here. Removed.
910 * config/i386/xm-i386gnu.h: Removed.
911 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
912 (NAT_FILE): Set to nm-i386gnu.h.
913 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
914 * i386-tdep.c: New file.
915 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
916 (i386gnu-tdep.o): Specify dependencies.
917
16057ec7 9182002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 919
6b99ee2e
MK
920 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
921 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
922 Adjust a few comments to reflect reality a bit closer.
923 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
924 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
925 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
926 target_insert_watchpoint, target_remove_watchpoint):
927 Move defines to ...
928 * config/i386/nm-i386sco5.h: ... here.
929 (kernel_u_size): Add prototype. Improve a few comments and add
930 protection against multiple inclusion.
931
d9a6f65c
MK
932 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
933 out define.
934
047eff6a
MK
935 * uw-thread.c (SP_ARG0): Define if not already defined.
936 * config/i386/tm-i386.h (SO_ARG0): Remove define.
937
dcdb1290
MK
938 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
939
5d2d0b2a
MK
940 * config/i386/tm-i386.h: Don't include "regcache.h".
941
61113f8b
MK
942 * i387-tdep.h (i387_print_float_info): New prototype.
943 * i387-tdep.c (print_i387_value, print_i387_ext,
944 print_i387_status_word, print_i387_control_word): Add `struct
945 ui_file *' argument and use it for output.
946 (i387_print_float_info): Renamed from i387_float_info. Add
947 `struct gdbarch *' and `struct ui_file *' arguments and use the
948 latter for output.
949 * i386-tdep.c: Include "i387-tdep.h".
950 (i386_gdbarch_init): Set print_float_info.
951 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
952 (FLOAT_INFO): Remove define.
953
46e0f506
MS
9542002-08-13 Michael Snyder <msnyder@redhat.com>
955
956 * mips-tdep.c (mips_push_arguments): Rename to
957 mips_eabi_push_arguments, and tune for EABI.
958 (MIPS_REGS_HAVE_HOME_P): Delete.
959 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
960 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
961 Delete references to mips_regs_have_home_p.
962
409268de
KS
9632002-08-14 Keith Seitz <keiths@redhat.com>
964
965 * Makefile.in (install-gdbtk): Create insight plugin directory.
966 Install plugins.tcl file.
967
ffc6a242
KS
9682002-08-14 Keith Seitz <keiths@redhat.com>
969
970 * configure.in: Move SUBDIRS to near top of the file so that
971 --enable options may add things to it.
972 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
973 * configure: Regenerate.
974
ebafbe83
MS
9752002-08-13 Michael Snyder <msnyder@redhat.com>
976
977 * mips-tdep.c (mips_o32o64_push_arguments): New function,
978 cloned from mips_push_arguments, tuned for o32/o64 ABI.
979 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
980
32f6f25d
AC
9812002-08-13 Andrew Cagney <ac131313@redhat.com>
982
983 * vax-tdep.c (vax_get_saved_register): Delete function.
984 (vax_gdbarch_init): Update.
985 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
986 (ns32k_gdbarch_init): Update.
987 * alpha-tdep.c (alpha_get_saved_register): Delete function.
988 (alpha_gdbarch_init): Update.
989
53826de9
AC
9902002-08-13 Andrew Cagney <cagney@redhat.com>
991
992 * regcache.c (init_regcache_descr): Overallocate the
993 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
994 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
995 nr_raw_registers.
996 (set_register_cached): Add range checking assertions. Use
997 current_regcache.
998
16057ec7 9992002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1000
1001 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1002 numbers for MMX registers.
1003
7b4c2dce
AC
10042002-08-13 Andrew Cagney <cagney@redhat.com>
1005
1006 * i386-tdep.c (i386_gdbarch_init): Use
1007 generic_unwind_get_saved_register.
1008
1e03ad20
KB
10092002-08-13 Kevin Buettner <kevinb@redhat.com>
1010
1011 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1012 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1013 target vector.
1014 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1015 Delete. Add comment regarding this now-deleted target method.
1016
548bcbec
SC
10172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1018
1019 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1020 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1021 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1022 real PC and the page number (if it's within the memory bank window).
1023 (m68hc11_pseudo_register_write): Likewise when saving.
1024 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1025 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1026 (m68hc11_register_raw_size): And use 32-bit for it.
1027 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1028 16K memory bank is used by the prog; also use the virtual pc.
1029
7df11f59
SC
10302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1031
1032 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1033 (m68hc11_gdbarch_init): Install it in gdbarch.
1034 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1035 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1036 (MSYMBOL_SIZE): New for documentation.
1037 (insn_return_kind): Enum to specify how a function returns.
1038 (frame_extra_info): Cleanup and record the return mode.
1039 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1040 register in address computation.
1041 (m68hc11_get_return_insn): New to obtain the return instruction used
1042 by the function.
1043 (m68hc11_frame_init_saved_regs): Take into account the return
1044 instruction used by the function for far and interrupt functions.
1045 (m68hc11_init_extra_frame_info): Take into account page register.
1046 (m68hc11_frame_args_address): Adjust according to the return mode.
1047 (show_regs): Print page register only when it's used.
1048
5706502a
SC
10492002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1050
1051 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1052 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1053 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1054 registers.
1055 (m68hc11_register_raw_size): Likewise.
1056
28fc6740
AC
10572002-08-13 Andrew Cagney <cagney@redhat.com>
1058
1059 * i386-tdep.c (i386_register_name): Handle mmx registers.
1060 (mmx_regnum_p): New function.
1061 (i386_mmx_names): New array.
1062 (mmx_num_regs): New variable.
1063 (i386_pseudo_register_read): New function.
1064 (i386_pseudo_register_write): New function.
1065 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1066
1067 * regcache.c (regcache_raw_read_unsigned): New function.
1068 (regcache_raw_read_signed): New function.
1069 * regcache.h (regcache_raw_read_unsigned): Declare.
1070 (regcache_raw_read_signed): Declare.
1071
a378f419
AC
10722002-08-13 Andrew Cagney <cagney@redhat.com>
1073
1074 * regcache.c (regcache_raw_read_as_address): Delete function.
1075 (regcache_cooked_read_signed): New function.
1076 (regcache_cooked_read_unsigned): New function.
1077 * regcache.h (regcache_cooked_read_signed): Declare.
1078 (regcache_cooked_read_unsigned): Declare.
1079 (regcache_raw_read_as_address): Delete declaration.
1080
1081 * blockframe.c (generic_read_register_dummy): Use
1082 regcache_cooked_read_unsigned.
1083 * i386-tdep.c (i386_extract_struct_value_address): Use
1084 regcache_cooked_read_unsigned.
1085
81967506
SC
10862002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1087
1088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1089 double sizes according to ELF ABI flags.
1090 (gdbarch_tdep): Record elf_flags.
1091
ffe1f3ee
SC
10922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1093
1094 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1095 (m6812_prolog): They can appear in 68HC12 function prologue.
1096 (m68hc11_frame_chain): Cleanup.
1097
98216c5d
AC
10982002-08-12 Andrew Cagney <cagney@redhat.com>
1099
1100 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1101 declarations.
1102 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1103 (i386_linux_register_raw_size): Delete function.
1104 (i386_linux_init_abi): Update.
1105 * i386-tdep.c (i386_register_raw_size): Delete function.
1106 (i386_register_byte): Delete function.
1107 (i386_gdbarch_init): Update.
1108 (i386_register_size): Delete array.
1109 (i386_register_offset): Delete array.
1110
1111 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1112 (REGISTER_RAW_SIZE): Delete macro.
1113 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1114 (REGISTER_BYTE): Delete macro.
1115
3b19021e
AS
11162002-08-11 Aidan Skinner <aidan@velvet.net>
1117
1118 * ada-lang.c (ada_lookup_partial_symbol)
1119 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1120 prototype names so that grep ^func works properly.
1121
1122 * ada-lang.c (ada_array_element_type)
1123 (ada_lookup_partial_symbol): Fix typos in parameter list.
1124
1125 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1126 Fix prototype names so that grep ^func works properly.
1127
b063e7a2
AC
11282002-08-10 Andrew Cagney <cagney@redhat.com>
1129 Elena Zannoni <ezannoni@redhat.com>
1130 Martin M. Hunt <hunt@redhat.com>
1131
1132 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1133 (build_builtin_type_vec128i): Set the vector bit.
1134 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1135 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1136 (build_builtin_type_vec64): New function.
1137 (build_builtin_type_vec64i): New function.
1138 (build_gdbtypes): Initialize builtin_type_vec64 and
1139 builtin_type_vec64i.
1140
a7e3c2ad
AC
11412002-08-09 Andrew Cagney <cagney@redhat.com>
1142
1143 * regcache.c (regcache_dump): Compare the register offset
1144 with REGISTER_BYTE.
1145 * arch-utils.c (generic_register_byte): New function.
1146 * arch-utils.h (generic_register_byte): Declare.
1147 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1148 * gdbarch.h, gdbarch.c: Regenerate.
1149
af030b9a
AC
11502002-08-09 Andrew Cagney <cagney@redhat.com>
1151
1152 * regcache.c: Include "gdbcmd.h"
1153 (_initialize_regcache): Add commands "maintenance print
1154 registers", "maintenance print raw-registers" and "maintenance
1155 print cooked-registers".
1156 (enum regcache_dump_what): Define.
1157 (dump_endian_bytes): New function.
1158 (regcache_dump): New function.
1159 (regcache_print): New function.
1160 (maintenance_print_registers): New function.
1161 (maintenance_print_raw_registers): New function.
1162 (maintenance_print_cooked_registers): New function.
1163 * Makefile.in (regcache.o): Update dependencies.
1164
cb3d25d1
MS
11652002-08-09 Michael Snyder <msnyder@redhat.com>
1166
1167 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1168 (mips_push_arguments): Correct some comments. Use paddr_nz
1169 for printing addresses in debug output. Replace static
1170 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1171 (mips_n32n64_push_arguments): New function, cloned from
1172 mips_push_arguments and tuned for the n32/n64 ABI.
1173 (mips_push_register): Buffer needs dynamic allocation.
1174 (mips_print_register): Ditto.
1175 (do_gp_register_row): Ditto.
1176 (mips_store_return_value): Ditto.
1177 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1178
2163ab9d
DH
11792002-08-09 Don Howard <dhoward@redhat.com>
1180
1181 * memattr.c (mem_info_command): Print special case of upper bound
1182 as max CORE_ADDR + 1.
1183
b78bcb18
MS
11842002-08-08 Michael Snyder <msnyder@redhat.com>
1185
1186 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1187 returns structs by ref if they're too big to fit in two registers.
1188
ffabd70d
KB
11892002-08-09 Kevin Buettner <kevinb@redhat.com>
1190
1191 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1192 saved regs value.
1193 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1194 mips_find_saved_regs().
1195 (mips_pop_frame): Likewise.
1196
fbcdb4a3
KB
11972002-08-09 Kevin Buettner <kevinb@redhat.com>
1198
1199 * blockframe.c (frame_saved_regs_register_unwind): Revise
1200 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1201 frames are in use.
1202
3c3bea1c
GS
12032002-08-09 Grace Sainsbury <graces@redhat.com>
1204
1205 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1206 T-packets; the 'a' is not taken as a register number.
1207 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1208 (remote_stopped_data_address): New functions; add to target
1209 vector.
1210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1211 prototypes to match other implementations of this
1212 function. replace integer argument with pointer -- the length
1213 field in the Z-packet is the length of what is pointed to or 1 if
1214 pointer is null. Add to target vector.
1215 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1216 target vector.
1217
1218 From Mark Salter:
1219 * remote.c (remote_wait): Add support to extract optional
1220 watchpoint information from T-packet. Ignore unrecognized
1221 optional info in T-packet.
1222 (remote_async_wait): Ditto.
1223
5d1d95de
CV
12242002-08-09 Corinna Vinschen <vinschen@redhat.com>
1225
1226 * cli/cli-dump.c: Change fopen modes to use binary open modes
1227 as defined in include/fopen-bin.h throughout.
1228
c86b5b38
MS
12292002-08-08 Michael Snyder <msnyder@redhat.com>
1230
1231 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1232
b30590dc
KB
12332002-08-08 Kevin Buettner <kevinb@redhat.com>
1234
1235 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1236 assertion failure by returning early after a warning.
1237
498868ed
KB
12382002-08-08 Kevin Buettner <kevinb@redhat.com>
1239
1240 * mips-tdep.c (mips_find_saved_regs): Make static.
1241 (mips_frame_init_saved_regs): New function.
1242 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1243 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1244 (mips_find_saved_regs): Delete declaration.
1245
b2dd6311
GS
12462002-08-08 Grace Sainsbury <graces@redhat.com>
1247
3c3bea1c
GS
1248 * remote.c (remote_wait, remote_async_wait): Change
1249 thread_num from int to ULONGEST.
1250 (unpack_varlen_hex): Change result parameter from
1251 int * to ULONGEST *.
b2dd6311 1252
ea47855f
AC
12532002-08-08 Andrew Cagney <ac131313@redhat.com>
1254
1255 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1256 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1257 powerpc*-*-*.
1258 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1259
69db8bae
AC
12602002-08-08 Andrew Cagney <cagney@redhat.com>
1261
1262 * gcore.c (override_derive_stack_segment): Delete variable.
1263 (preempt_derive_stack_segment): Delete function.
1264 (derive_stack_segment): Delete function.
1265 (default_derive_stack_segment): Renamed to derive_stack_segment.
1266 (override_derive_heap_segment): Delete variable.
1267 (preempt_derive_heap_segment): Delete function.
1268 (derive_heap_segment): Delete function.
1269 (default_derive_heap_segment): Rename to derive_heap_segment.
1270
cb811fe7
MS
12712002-08-06 Michael Snyder <msnyder@redhat.com>
1272
1273 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1274 * mips-tdep.c (mips_EABI_use_struct_convention,
1275 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1276 New functions. (mips_use_struct_convention): Delete.
1277 (mips_gdbarch_init): set use_gdbarch_convention.
1278
8b389c40
MS
12792002-08-06 Michael Snyder <msnyder@redhat.com>
1280
1281 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1282 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1283 mips_o32_reg_struct_has_addr): New functions.
1284 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1285
5c27f28a
AC
12862002-08-07 Andrew Cagney <ac131313@redhat.com>
1287
1288 * regcache.c (pseudo_register): Delete function.
1289 (fetch_register): Delete function.
1290 (store_register): Delete function.
1291 (regcache_raw_read, legacy_read_register_gen): Use
1292 target_fetch_registers instead of fetch_register.
1293 (legacy_write_register_gen, regcache_raw_write): Use
1294 target_store_register instead of store_register.
1295 (write_register_bytes): Ditto.
1296
1297 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1298 (STORE_PSEUDO_REGISTER): Delete.
1299 * gdbarch.h, gdbarch.c: Regenerate.
1300
5b331675
CV
13012002-08-06 Corinna Vinschen <vinschen@redhat.com>
1302
1303 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1304 write dump file binary.
1305
6acdf5c7
MS
13062002-08-05 Michael Snyder <msnyder@redhat.com>
1307
1308 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1309 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1310 (mips_gdbarch_init): Set N32 target to be mips64.
1311
b2f01c35
KB
13122002-08-06 Kevin Buettner <kevinb@redhat.com>
1313
1314 * frame.c (find_saved_register): Break out of loop once saved
1315 register address is found. Don't mention sparc in loop comment
1316 anymore.
1317
63db5580
KB
13182002-08-06 Kevin Buettner <kevinb@redhat.com>
1319
1320 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1321 mips_default_saved_regsize to 8.
1322
5e34e75e
AC
13232002-08-06 Andrew Cagney <ac131313@redhat.com>
1324
1325 * gcore.c: Do not include <sys/procfs.h>.
1326 * Makefile.in (gcore.o): Update dependencies.
1327
eb4c54a2
AC
13282002-08-06 Andrew Cagney <cagney@redhat.com>
1329
1330 * configure.tgt: Make arc-*-* obsolete.
1331 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1332 * MAINTAINERS: Make arc-elf obsolete.
1333 * arc-tdep.c: Make file obsolete.
1334 * config/arc/arc.mt: Ditto.
1335 * config/arc/tm-arc.h: Ditto.
1336
ced15480
TR
13372002-08-05 Theodore A. Roth <troth@verinet.com>
1338
c1bab85b 1339 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1340
b4743822
AC
13412002-08-05 Andrew Cagney <ac131313@redhat.com>
1342
1343 * mcore-tdep.c (mcore_gdbarch_init): Use
1344 generic_unwind_get_saved_register instead of
1345 generic_get_saved_register.
1346 * v850-tdep.c (v850_gdbarch_init): Ditto.
1347 * frv-tdep.c (frv_gdbarch_init): Ditto.
1348 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1349 * s390-tdep.c (s390_gdbarch_init): Ditto.
1350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1351 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1352 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1353
3956d554
JB
13542002-08-05 Joel Brobecker <brobecker@gnat.com>
1355
1356 * objfiles.h: Add missing #include "symfile.h"
1357
1358 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1359
8249c0d6
AC
13602002-08-04 Andrew Cagney <ac131313@redhat.com>
1361
1362 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1363 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1364 of FIELD_BITSIZE.
1365
b9d14705
DJ
13662002-08-04 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * NEWS: Cleanup and nitpick.
1369
dd73b9bb
AC
13702002-08-03 Andrew Cagney <ac131313@redhat.com>
1371
1372 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1373
043a27f8
AC
13742002-08-03 Andrew Cagney <ac131313@redhat.com>
1375
1376 * Makefile.in (gdbtk-bp.o): Update dependencies.
1377 (gdbtk-register.o): Ditto.
1378 (gdbtk-varobj.o): Ditto.
1379
46ce284d
AC
13802002-08-03 Andrew Cagney <cagney@redhat.com>
1381
1382 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1383 m68hc11_fetch_pseudo_register.
1384 (m68hc11_pseudo_register_write): Replace
1385 m68hc11_store_pseudo_register.
1386 (m68hc11_gdbarch_init): Update.
1387
b66d6d2e
AC
1388Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1389
1390 * gdbarch.sh: Include "gdb_string.h".
1391 * gdbarch.c: Regenerate.
1392
1393 * regcache.c: Include "gdb_string.h".
1394 * ax-general.c: Ditto.
1395 * varobj.c: Ditto.
1396 * std-regs.c: Ditto.
1397 * fbsd-proc.c: Ditto.
1398 * thread.c: Ditto.
1399
1400 * Makefile.in (regcache.o): Update dependencies.
1401 (thread.o, gdbarch.o): Ditto.
1402 (ax-general.o, gdbarch.o): Ditto.
1403 (varobj.o, std-regs.o): Ditto.
1404 (fbsd-proc.o): Specify dependencies.
1405
29e1842b
AC
14062002-08-02 Andrew Cagney <cagney@redhat.com>
1407
1408 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1409 regnum.
1410 (regcache_cooked_write): Ditto.
1411
68365089
AC
14122002-08-02 Andrew Cagney <ac131313@redhat.com>
1413
1414 * regcache.c (regcache_cooked_read): New function.
1415 (regcache_cooked_write): New function.
1416 (read_register_gen): Rewrite using regcache_cooked_read.
1417 (write_register_gen): Rewrite using regcache_cooked_write.
1418
1419 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1420 Declare.
1421
d8124050
AC
14222002-08-02 Andrew Cagney <cagney@redhat.com>
1423
1424 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1425 Replace the architecture methods register_read and register_write.
1426 * gdbarch.h, gdbarch.c: Regenerate.
1427 * regcache.c (init_regcache_descr): Update.
1428 (read_register_gen): Update.
1429 (write_register_gen): Update.
1430 (supply_register): Update comment.
1431
1432 * sh-tdep.c (sh_gdbarch_init): Update.
1433 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1434 `regcache' and `gdbarch' parameters. Make `buffer' a void
1435 pointer. Update code.
1436 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1437 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1438 void pointer. Update code.
1439 (sh64_register_write): Delete.
1440 (sh4_register_read): Delete.
1441 (sh64_register_read): Delete.
1442 (sh4_register_write): Delete.
1443 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1444 void pointer, `to' parameter a void pointer.
1445 (sh_sh64_register_convert_to_raw): Ditto.
1446
a6425924
KB
14472002-08-01 Kevin Buettner <kevinb@redhat.com>
1448
1449 * mips-tdep.c (mips_register_virtual_type): Use architecture
1450 invariant return values.
1451
ff5922b5
AC
14522002-08-01 Andrew Cagney <cagney@redhat.com>
1453
1454 * linux-proc.c: Include "gdb_string.h".
1455 * Makefile.in (linux-proc.o): Update dependency list.
1456
32a6503c
KB
14572002-08-01 Kevin Buettner <kevinb@redhat.com>
1458
1459 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1460 comment.
1461
ccaa32c7
GS
14622002-08-01 Grace Sainsbury <graces@redhat.com>
1463
1464 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1465 to_insert_watchpoint, to_remove_watchpoint,
1466 to_stopped_by_watchpoint, to_stopped_data_address,
1467 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1468 target vecctor. Define their corresponding macros so they call
1469 them.
1470
1471 * target.c: Add default and debug versions of for
1472 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1473 to_insert_watchpoint, to_remove_watchpoint,
1474 to_stopped_by_watchpoint, to_stopped_data_address,
1475 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1476
78fde5f8
KB
14772002-08-01 Kevin Buettner <kevinb@redhat.com>
1478
1479 * mips-tdep.c (mips_register_virtual_type): New function.
1480 (mips_gdbarch_init): Register mips_register_virtual_type()
1481 with gdbarch machinery.
1482 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1483 this file instead of tm-bigmips.h.
1484 (MIPS_REGSIZE): Delete this macro.
1485 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1486 multiarch version in mips-tdep.c will be found.
1487
db034ac5
AC
14882002-08-01 Andrew Cagney <cagney@redhat.com>
1489
1490 * NEWS: Menion that CHILL has been made obsolete.
1491
1492 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1493 * stabsread.c (read_range_type): Ditto.
1494 * gdbtypes.h: Ditto.
1495 * language.c (binop_type_check): Ditto.
1496 (binop_result_type): Ditto.
1497 (integral_type): Ditto.
1498 (character_type): Ditto.
1499 (string_type): Ditto.
1500 (boolean_type): Ditto.
1501 (structured_type): Ditto.
1502 (lang_bool_type): Ditto.
1503 (binop_type_check): Ditto.
1504 * language.h (_LANG_chill): Ditto.
1505 * dwarfread.c (set_cu_language): Ditto.
1506 * dwarfread.c (CHILL_PRODUCER): Ditto.
1507 * dwarfread.c (handle_producer): Ditto.
1508 * expression.h (enum exp_opcode): Ditto.
1509 * eval.c: Ditto for comments.
1510 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1511 * expprint.c (print_subexp): Ditto.
1512 (print_subexp): Ditto.
1513 * valops.c (value_cast): Ditto.
1514 (search_struct_field): Ditto.
1515 * value.h (COERCE_VARYING_ARRAY): Ditto.
1516 * symfile.c (init_filename_language_table): Ditto.
1517 (add_psymbol_with_dem_name_to_list): Ditto.
1518 * valarith.c (value_binop): Ditto.
1519 (value_neg): Ditto.
1520 * valops.c (value_slice): Ditto.
1521 * symtab.h (union language_specific): Ditto.
1522 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1523 (SYMBOL_DEMANGLED_NAME): Ditto.
1524 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1525 * defs.h (enum language): Ditto.
1526 * symtab.c (got_symtab): Ditto.
1527 * utils.c (fprintf_symbol_filtered): Ditto.
1528
1529 * ch-typeprint.c: Make file obsolete.
1530 * ch-valprint.c: Make file obsolete.
1531 * ch-lang.h: Make file obsolete.
1532 * ch-exp.c: Make file obsolete.
1533 * ch-lang.c: Make file obsolete.
1534
1535 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1536 CHILL_LIB.
1537 (TARGET_FLAGS_TO_PASS): Ditto.
1538 (CHILLFLAGS): Obsolete.
1539 (CHILL): Obsolete.
1540 (CHILL_FOR_TARGET): Obsolete.
1541 (CHILL_LIB): Obsolete.
1542 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1543 ch-valprint.c.
1544 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1545 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1546 ch-lang.o.
1547 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1548 targets.
1549
8aaf0b47
JB
15502002-07-31 Joel Brobecker <brobecker@gnat.com>
1551
1552 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1553 This does not change anything at the moment, but will be helpful
1554 later when full Ada support is integrated.
1555
f3a7b3a5
KB
15562002-07-31 Kevin Buettner <kevinb@redhat.com>
1557
1558 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1559 help message.
1560
fb850278
KB
15612002-07-31 Kevin Buettner <kevinb@redhat.com>
1562
1563 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1564 and save it in a local variable. Use variable in later test.
1565
e3bddbfa
KB
15662002-07-31 Kevin Buettner <kevinb@redhat.com>
1567
1568 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1569 test. (Thanks to Daniel Jacobowitz.)
1570
28d169de
KB
15712002-07-31 Kevin Buettner <kevinb@redhat.com>
1572
1573 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1574 (mips_abi_strings): Add "n64".
1575 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1576
7fe7e44e
KB
15772002-07-31 Kevin Buettner <kevinb@redhat.com>
1578
1579 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1580 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1581
c6caf090
KB
15822002-07-31 Kevin Buettner <kevinb@redhat.com>
1583
1584 * utils.c (host_pointer_to_address, address_to_host_pointer):
1585 Use gdb_assert() instead of explicit call to internal_error().
1586
c41669e0
KB
15872002-07-30 Kevin Buettner <kevinb@redhat.com>
1588
1589 * Makefile.in (rs6000-nat.o): Update dependencies.
1590
1591 From Nicholas Duffek:
1592 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1593 (aix-thread.o): New rule.
1594 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1595 * config/powerpc/aix432.mh: New file.
1596
2fda4977
DJ
15972002-07-30 Daniel Jacobowitz <drow@mvista.com>
1598
1599 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1600 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1601 (fetch_core_registers, ppc_linux_supply_gregset)
1602 (ppc_linux_supply_fpregset): New functions.
1603 (ppc_linux_regset_core_fns): New.
1604 (_initialize_ppc_linux_tdep): Call add_core_fns.
1605 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1606 and ppc_linux_supply_gregset.
1607 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1608 (supply_fpregset): Call ppc_linux_supply_fpregset.
1609 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1610 corelow.o.
1611 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1612
729051e6
DJ
16132002-07-30 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * symtab.c (lookup_symbol): Demangle before lowercasing.
1616
5f8a3188
AC
16172002-07-30 Andrew Cagney <ac131313@redhat.com>
1618
1619 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1620 declaration.
1621 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1622 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1623 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1624 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1625 "gdb_string.h".
1626 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1627 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1628 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1629 (avr-tdep.o, mon960-rom.o): Ditto.
1630 (aout_stabs_gnu_h): Define.
1631 (symtab_h): Remove $(gdb_obstack_h).
1632
67f07146
JB
16332002-07-30 Jim Blandy <jimb@redhat.com>
1634
1635 Patch from David Carlton <carlton@math.stanford.edu>:
1636 * gdbinit.in: Move the `dir' commands that add GDB's own source
1637 directory to the search path to the end, so that the `gdb' source
1638 directory will be searched first.
1639
04ea0df1
AC
16402002-07-29 Andrew Cagney <ac131313@redhat.com>
1641
1642 * gdb_obstack.h: New file.
1643 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1644 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1645 * objfiles.h: Include "gdb_obstack.h".
1646 * Makefile.in (gdb_obstack_h): Define.
1647 (symtab_h): Add $(gdb_obstack_h).
1648 (objfiles_h): Add $(gdb_obstack_h).
1649
1650 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1651 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1652 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1653 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1654 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1655 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1656 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1657 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1658
1659 * Makefile.in (bcache.o): Update dependencies.
1660 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1661 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1662 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1663 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1664 (stabsread.o, symfile.o, symmisc.o): Ditto.
1665 (symtab.o, typeprint.o, macroexp.o): Ditto.
1666 (macrotab.o, mdebugread.o): Ditto.
1667 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1668 (coff_ecoff_h, aout_aout64_h): Define.
1669 (aout_stabs_gnu_h, libaout_h): Define.
1670
d138e37a
AC
16712002-07-29 Andrew Cagney <cagney@redhat.com>
1672
1673 * regcache.c (struct regcache_descr): Rename nr_registers to
1674 nr_cooked_registers. Revise comments describing the structure
1675 member fields.
1676 (init_regcache_descr): Update.
1677 (init_legacy_regcache_descr): Update.
1678 (read_register_gen, write_register_gen): When a cooked register in
1679 the raw register range, directly access the value from the raw
1680 register cache.
1681
460e6ec3
AC
16822002-07-29 Andrew Cagney <ac131313@redhat.com>
1683
1684 * z8k-tdep.c: Do not include "obstack.h".
1685 * h8300-tdep.c, h8500-tdep.c: Ditto.
1686 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1687 * valprint.c, v850-tdep.c: Ditto.
1688 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1689 * mn10200-tdep.c: Ditto.
1690
1691 * Makefile.in (z8k-tdep.o): Update dependencies.
1692 (m68hc11-tdep.o, valprint.o): Ditto.
1693 (v850-tdep.o, d10v-tdep.o): Ditto.
1694 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1695 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1696 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1697 (sh_opc_h, gdb_sim_sh_h): Define.
1698 (elf_sh_h, elf_bfd_h): Define.
1699 (opcode_m68hc11_h): Define.
1700 (OPCODES_SRC, OPCODES_DIR): define.
1701 (OPCODES): Use $(OPCODES_DIR).
1702 (gdb_sim_d10v_h): Rename sim_d10v_h.
1703 (gdb_sim_arm_h): Rename sim_arm_h.
1704
790c9cf0
KB
17052002-07-26 Kevin Buettner <kevinb@redhat.com>
1706
1707 * utils.c (host_pointer_to_address, address_to_host_pointer):
1708 Change internal_error() message to indicate function responsible
1709 for the error.
1710
9647fa49
KB
17112002-07-26 Kevin Buettner <kevinb@redhat.com>
1712
1713 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1714 calls to local_hex_string_custom().
1715
dabbe2c0
KB
17162002-07-26 Kevin Buettner <kevinb@redhat.com>
1717
1718 * irix5-nat.c: Move IRIX shared library support from here...
1719 * solib-irix.c: ...to here. Revised substantially to work with
1720 generic solib framework.
1721
b96d0a4e
KB
1722 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1723 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1724 * mips-irix-tdep.c: New file.
1725
313fb2f6
KB
1726 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1727 (mips-irix-tdep.o, solib-irix.o): New rules.
1728 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1729 solib-irix.o.
1730 * config/mips/irix6.mt (TDEPFILES): Likewise.
1731 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1732
ab2eaf26
KB
17332002-07-26 Kevin Buettner <kevinb@redhat.com>
1734
177e4768 1735 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1736 disabled (via ``#if 0'') includes.
1737
7244546a
KB
17382002-07-26 Kevin Buettner <kevinb@redhat.com>
1739
1740 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1741 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1742 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1743 Add support for the fpscr register.
1744 * rs6000-nat.c (regmap, fetch_inferior_registers)
1745 (store_inferior_registers, fetch_core_registers): Likewise.
1746
dd7be90a
KB
17472002-07-26 Kevin Buettner <kevinb@redhat.com>
1748
1749 * rs6000-nat.c (language.h): Include.
1750 (special_regs): Delete this array.
1751 (regmap): New function.
1752 (fetch_register, store_register): Use regmap() to map gdb
1753 register numbers to ptrace register numbers. Also, use
1754 outputs from regmap() to make decisions regarding type of
1755 ptrace() call to make. In particular, don't compare against
1756 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1757 (fetch_inferior_registers, store_inferior_registers): Where
1758 possible, obtain register numbers from tdep struct. Don't
1759 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1760 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1761 (LAST_UISA_SP_REGNUM): Delete.
1762
11bf77db
KB
17632002-07-25 Kevin Buettner <kevinb@redhat.com>
1764
1765 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1766 (fetch_registers, store_register, fetch_core_registers): Don't
1767 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1768 regcache_collect() as appropriate.
1769 (find_toc_address): Format hex address with local_hex_string().
1770
06afebeb
AC
17712002-07-25 Andrew Cagney <ac131313@redhat.com>
1772
1773 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1774 bfd/elf32-frv.c.
1775
8c554d79
TT
17762002-07-24 Tom Tromey <tromey@redhat.com>
1777
1778 * jv-exp.y: Marked all strings with _().
1779 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1780 internal_error.
1781 (MethodInvocation, CastExpression, parse_number, yyerror,
1782 java_type_from_name, push_expression_name, yylex): Typo fixes.
1783
e4c242d9
DJ
17842002-07-24 Daniel Jacobowitz <drow@mvista.com>
1785
1786 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1787 (tee_file_flush, tee_file_write, tee_file_fputs)
1788 (tee_file_isatty): New.
1789 * ui-file.h (tee_file_new): Add prototype.
1790
ebf56fd3
AS
17912002-07-24 Aidan Skinner <aidan@velvet.net>
1792
1793 * ada-lang.c: Change k&r style function definitions to prototyped
1794 form.
1795 * ada-typeprint.c: Change k&r style function definitions to prototyped
1796 form.
1797 * ada-valprint.c: Change k&r style function definitions to prototyped
1798 form.
1799
7fb623f7
AC
18002002-07-24 Andrew Cagney <cagney@redhat.com>
1801
1802 * README: Remove reference to remote-bug.
1803 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1804 remote-bug.c.
1805 (m88k-nat.o): Delete rule.
1806 (m88k-tdep.o): Delete rule.
1807 (remote-bug.o): Delete rule.
1808 * MAINTAINERS: Mark as obsolete.
1809 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1810 * m88k-tdep.c: Make file obsolete.
1811 * config/m88k/m88k.mh: Ditto.
1812 * config/m88k/delta88v4.mh: Ditto.
1813 * config/m88k/delta88v4.mt: Ditto.
1814 * config/m88k/delta88.mt: Ditto.
1815 * config/m88k/delta88.mh: Ditto.
1816 * remote-bug.c: Ditto.
1817 * config/m88k/tm-delta88.h: Ditto.
1818 * config/m88k/nm-delta88v4.h: Ditto.
1819 * config/m88k/xm-delta88.h: Ditto.
1820 * config/m88k/xm-dgux.h: Ditto.
1821 * config/m88k/tm-m88k.h: Ditto.
1822 * config/m88k/nm-m88k.h: Ditto.
1823 * config/m88k/tm-delta88v4.h: Ditto.
1824 * m88k-nat.c: Ditto.
1825 * cxux-nat.c: Ditto.
1826 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1827 and m88*-*-* obsolete.
1828 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1829 m88*-*-* obsolete.
1830
37611a2b
AC
18312002-07-24 Andrew Cagney <cagney@redhat.com>
1832
1833 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1834 constant. Same for local pointer variables.
1835 (extract_signed_integer): Ditto.
1836 * defs.h (extract_unsigned_integer): Update.
1837 (extract_signed_integer): Update.
1838
1aaa5f99
AC
18392002-07-24 Andrew Cagney <cagney@redhat.com>
1840
1841 * regcache.c (regcache_raw_write): Change buf parameter to a
1842 constant void pointer.
1843 (regcache_raw_read): Change buf parameter to a void pointer.
1844 (legacy_write_register_gen): Change myaddr parameter a constant
1845 void pointer.
1846 (supply_register): Change val parameter to a const void pointer.
1847 * regcache.h (regcache_raw_write): Update declaration.
1848 (regcache_raw_read): Update declaration.
1849 (supply_register): Update declaration.
1850
b4f5539f
TT
18512002-07-24 Tom Tromey <tromey@redhat.com>
1852
1853 * defs.h (gdb_readline_wrapper): Declare.
1854 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1855 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1856 * top.c (gdb_readline_wrapper): New function.
1857 (command_line_input): Use it.
1858
0818c12a
AC
18592002-07-24 Andrew Cagney <cagney@redhat.com>
1860
1861 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1862 regcache_read and regcache_write.
1863 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1864 * regcache.c: Update.
1865 * sh-tdep.c (sh64_push_arguments): Update comment.
1866 (sh_pseudo_register_read): Update.
1867 (sh_pseudo_register_write): Update.
1868 (sh4_register_read): Update.
1869 (sh4_register_write): Update.
1870 (sh64_pseudo_register_read): Update.
1871 (sh64_pseudo_register_write): Update.
1872 (sh64_register_read): Update.
1873 (sh64_register_write): Update.
1874 * i386-tdep.c (i386_extract_return_value): Update.
1875 (i386_extract_struct_value_address): Update.
1876 (i386_extract_return_value): Update.
1877 * blockframe.c (generic_read_register_dummy): Update.
1878 (generic_call_dummy_register_unwind): Update
1879 * infrun.c (write_inferior_status_register): Update.
1880
f7321c06
JB
18812002-07-23 Jim Blandy <jimb@redhat.com>
1882
1883 * parser-defs.h (expression_context_pc): Make this extern.
1884 (Thanks to Michael Snyder.)
1885
2037aebb
AC
18862002-07-23 Andrew Cagney <ac131313@redhat.com>
1887
1888 GDB 5.2.1 released from 5.2 branch.
1889 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1890 * README: Update to mention 5.2.1.
1891
66504d44
MS
18922002-07-23 Mark Salter <msalter@redhat.com>
1893
1894 * remote.c (remote_read_bytes): Fix check for error.
1895
27bae383
KB
18962002-07-22 Kevin Buettner <kevinb@redhat.com>
1897
1898 * aix-thread.c (language.h): Include.
1899 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1900 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1901 Print newlines at end of debug messages.
1902 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1903 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1904
19052002-07-22 Kevin Buettner <kevinb@redhat.com>
1906
1907 * aix-thread.c (ppc-tdep.h): Include.
1908 (special_register_p): New function.
1909 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1910 (store_regs_user_thread): Use register number information from
1911 gdbarch_tdep struct instead of hardcoded offsets relative to
1912 FIRST_UISA_SP_REGNUM.
1913 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1914 special_register_p() instead of using FPLAST_REGNUM and
1915 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1916 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1917 will be MQ's register number.
1918
19192002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1920
1921 * aix-thread.c (ops): Rename to aix_thread_ops.
1922 (base_ops): Rename to base_target.
1923 (ops_attach): Rename to aix_thread_attach.
1924 (ops_detach): Rename to aix_thread_detach.
1925 (ops_resume): Rename to aix_thread_detach.
1926 (ops_wait): Rename to aix_thread_wait.
1927 (ops_kill): Rename to aix_thread_kill.
1928 (init_ops): Rename to init_aix_thread_ops.
1929 (ops_fetch_register): Rename to aix_thread_fetch_register.
1930 (ops_store_register): Rename to aix_thread_store_register.
1931 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1932 (ops_thread_alive): Rename to aix_thread_thread_alive.
1933 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1934 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1935 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1936 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1937 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1938 (store_regs_lib): Rename to store_regs_user_thread.
1939 (store_regs_kern): Rename to store_regs_kernel_thread.
1940
27bae383 19412002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1942
1943 * aix-thread.c (ops_prepare_to_store): Eliminate.
1944 (init_ops): Don't initialize ops.prepare_to_store.
1945 (store_regs_kern): Pre-fetch register buffers from child,
1946 because some registers may not be in the cache. Copy
1947 regs from register cache only if they are cached.
1948 (store_regs_lib): Copy regs from register cache only
1949 if they are cached.
1950 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1951 fill_gprs64): Ditto.
1952
61c5da0b
KB
19532002-07-22 Kevin Buettner <kevinb@redhat.com>
1954
1955 * aix-thread.c (gdb_assert.h): Include.
1956 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1957 register sizes (from register cache) match size of buffer holding
1958 register data.
1959 (fill_sprs32): Change parameter types to match those in the ptrace()
1960 buffer.
1961 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1962 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1963
19642002-07-22 Michael Snyder <msnyder@redhat.com>
1965
1966 * aix-thread.c (supply_sprs64): Cosmetic change.
1967 (supply_sprs32): Cosmetic change.
1968 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1969 (fill_sprs64): Use regcache_collect instead of read_register.
1970 (store_regs_lib): Use regcache_collect instead of
1971 read_register. Use fill_sprs32 instead of fill_sprs64,
1972 if debugging a 32-bit architecture.
1973 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1974 out of the register cache, instead of passing a pointer into
1975 the register cache directly to ptrace. Use regcache_collect
1976 insteaad of read_register.
1977 (ops_prepare_to_store): Use target_read_registers instead
1978 of read_register_bytes.
1979
36479eb1
AS
19802002-07-20 Aidan Skinner <aidan@velvet.net>
1981
1982 * MAINTAINERS: Add self under write after approval.
1983
80ae6ee2
AS
19842002-07-20 Aidan Skinner <aidan@velvet.net>
1985
1986 * ada-tasks.c: Change k&r style function definitions to prototyped
1987 form.
1988
8a8ab2b9
AC
19892002-07-19 Andrew Cagney <ac131313@redhat.com>
1990
1991 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1992 * x86-64-tdep.c: Include "objfiles.h".
1993 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1994 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1995
fb16b900
ML
19962002-07-17 Michal Ludvig <michal@suse.cz>
1997
1998 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1999 (update_context): Initialise cfa variable.
2000
0fe7bf7b
MS
20012002-07-17 Michael Snyder <msnyder@redhat.com>
2002
2003 * aix-thread.c: Shorten some long lines.
2004 Bring comments into line with code spec.
2005
488f131b
JB
20062002-07-18 Joel Brobecker <brobecker@gnat.com>
2007
2008 * infrun.c: Re-indent using gdb_indent.sh.
2009
46c415d2
JB
20102002-07-18 Joel Brobecker <brobecker@gnat.com>
2011
2012 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2013 Leave the indentation temporarily untouched, to minimize the diffs.
2014
cdecafbe
EZ
20152002-07-18 Elena Zannoni <ezannoni@redhat.com>
2016
2017 * stabsread.c: Make os9k sections of the code obsolete,
2018 for real this time.
2019 * stabsread.h: Make os9k sections of the code obsolete.
2020
7b6aa020
ML
20212002-07-18 Michal Ludvig <mludvig@suse.cz>
2022
09ec9b38
ML
2023 * linux-low.c (regsets_store_inferior_registers): Add free()
2024 at the end of a loop to prevent memory leak.
2025 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2026 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2027 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2028 line a comment.
4894ac5d 2029 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2030
233282cd
JB
20312002-07-17 Jim Blandy <jimb@redhat.com>
2032
2033 * macrocmd.c (info_macro_command): Remove newline from error
2034 message.
2035
7b6aa020 20362002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2037
2038 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2039 (sh_gdbarch_init): Use it for sh-dsp.
2040
f7ef9339
KB
20412002-07-16 Kevin Buettner <kevinb@redhat.com>
2042
2043 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2044 64-bit DWARF2 format.
2045
8dd72958
JB
20462002-07-16 Joel Brobecker <brobecker@gnat.com>
2047
2048 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2049 <sys/proc.h> when not available.
2050
a99a9e1b
AC
20512002-07-16 Andrew Cagney <ac131313@redhat.com>
2052
2053 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2054 * stabsread.c: Make os9k sections of the code obsolete.
2055 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2056 * config/i386/i386os9k.mt: Make file obsolete.
2057 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2058 (COMMON_OBS): Remove os9kread.o
2059 (SFILES): Remove os9kread.c.
2060 (os9kread.o, remote-os9k.o): Make target obsolete.
2061 * remote-os9k.c: Make file obsolete.
2062 * os9kread.c: Make file obsolete.
2063 * Makefile.in
2064
7a3085c1
AC
20652002-07-16 Andrew Cagney <ac131313@redhat.com>
2066
2067 * NEWS: Mention that the FR30 has been made obsolete.
2068 * fr30-tdep.c: Make file obsolete.
2069 * config/fr30/tm-fr30.h: Ditto.
2070 * config/fr30/fr30.mt: Ditto.
2071 * configure.tgt: Make fr30-*-elf obsolete.
2072 * MAINTAINERS: Make fr30-elf obsolete.
2073
28a93f5a
PM
20742002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2075
2076 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2077 found is not inside a section.
2078
be006b8b
KB
20792002-07-15 Kevin Buettner <kevinb@redhat.com>
2080
2081 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2082 strerror().
2083 (pdc_realloc): Use xrealloc() instead of realloc().
2084
14fa3751
KB
20852002-07-15 Kevin Buettner <kevinb@redhat.com>
2086
2087 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2088 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2089 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2090 macros.
2091
42cc437f
KB
20922002-07-15 Kevin Buettner <kevinb@redhat.com>
2093
2094 * aix-thread.c (ptrace_check): Eliminate goto.
2095 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2096 problem.
2097
8e2c28d4
KB
20982002-07-15 Kevin Buettner <kevinb@redhat.com>
2099
2100 * aix-thread.c (gdbcmd.h): Include.
2101 (DEBUG, DBG, DBG2, dbg): Eliminate.
2102 (debug_aix_thread): New static global.
2103 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2104 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2105 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2106 invocations to DBG and DBG2 macros to test against
2107 ``debug_aix_thread'' and call fprintf_unfiltered().
2108 (_initialize_aix_thread): Add new command "set debug aix-thread".
2109
30413464
AC
21102002-07-15 Andrew Cagney <ac131313@redhat.com>
2111
2112 From Gerhard Tonn <TON@de.ibm.com>:
2113 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2114 instead of supply_register.
2115
7c43edc1
AC
21162002-07-15 Andrew Cagney <ac131313@redhat.com>
2117
2118 * dwarf2cfi.c: Include "gdb_assert.h".
2119 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2120 non-NULL.
2121 (update_context): Do not use __func__. Add missing ``break''.
2122 (update_context): Do not use __func__.
2123
9364a0ef
EZ
21242002-07-15 Elena Zannoni <ezannoni@redhat.com>
2125
2126 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2127 and its setting. Set gdbarch instruction printing functions
2128 directly. For non-rs6000 case use new function
2129 gdb_print_insn_powerpc.
2130 (gdb_print_insn_powerpc): New function.
2131
3fbeef0b
AC
21322002-07-13 Andrew Cagney <ac131313@redhat.com>
2133
92eb23c5 2134 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2135 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2136 * configure.tgt: Mark d30v-*-* as obsolete.
2137 * d30v-tdep.c: Mark file as obsolete.
2138 * config/d30v/d30v.mt: Ditto.
2139 * config/d30v/tm-d30v.h: Ditto.
2140
aacb1f0a
AS
21412002-07-13 Aidan Skinner <aidan@velvet.net>
2142
2143 * ada-tasks.c (add_task_entry): replace calls to
2144 malloc() with xmalloc
2145 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2146
2147 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2148 ada_finish_decode_line_1, all_sals_for_line
2149 ada_breakpoint_rewrite): replace calls to free() with xfree()
2150
c11d79f2
KB
21512002-07-12 Kevin Buettner <kevinb@redhat.com>
2152
2153 From Nicholas Duffek (with minor changes by Martin Hunt,
2154 Louis Hamilton, and Kevin Buettner):
2155 * aix-thread.c: New file.
2156
8e19ed76
PS
21572002-07-12 Petr Sorfa <petrs@caldera.com>
2158
2159 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2160 complaint for invalid attribute class or form.
2161 (read_func_scope): DW_AT_frame_base
2162 better handling of DW_AT_block*.
2163 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2164 better handling of DW_AT_block*.
2165 (read_common_block): DW_AT_location
2166 better handling of DW_AT_block*.
2167 (read_partial_die): DW_AT_location better handling
2168 of DW_AT_block*.
2169 (new_symbol): DW_AT_external better handling of
2170 DW_AT_block*. Proper initialization of variable
2171 "addr".
2172 (attr_form_is_block): New function that returns true
2173 if the attribute's form is of DW_FORM_block*.
2174
295401f7
DJ
21752002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2176
2177 * valops.c (find_method_list): Remove comment about
2178 removed STATIC_MEMFUNCP argument.
2179 (value_find_oload_method_list): Likewise.
2180
e42dc924
KB
21812002-07-12 Kevin Buettner <kevinb@redhat.com>
2182
2183 From Nicholas Duffek:
2184 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2185 target_new_objfile_hook.
2186
6904b546
KB
21872002-07-12 Kevin Buettner <kevinb@redhat.com>
2188
2189 From Nicholas Duffek:
2190 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2191 csect.
2192
53fe9346
AC
21932002-07-12 Andrew Cagney <cagney@redhat.com>
2194
2195 * MAINTAINERS: Mention --enable-sim-build-warnings.
2196 (m68hc11-elf): Disable sim build warnings.
2197 (m32r-elf): Mark as broken obsolete candidate.
2198 (x86_64-linux-gnu): Mark as buildable with -Werror.
2199 (arm-elf): Change -w to ``,'' which enables warnings but not
2200 -Werror.
2201
af5f3db6
AC
22022002-07-12 Andrew Cagney <ac131313@redhat.com>
2203
2204 * bcache.h: Update copyright.
2205 (struct bstring, struct bcache): Move definition to "bcache.c".
2206 Replaced by opaque declaration.
2207 (bcache_xfree): Replace free_bcache.
2208 (bcache_xmalloc, bcache_memory_used): Declare.
2209
2210 * bcache.c: Update copyright.
2211 (struct bstring, struct bcache): Moved to here from "bcache.h".
2212 Update comments.
2213 (bcache_xmalloc, bcache_memory_used): New functions.
2214 (bcache_xfree): Replace function free_bcache.
2215
2216 * Makefile.in (objfiles.o): Add $(bcache_h).
2217 (objfiles_h): Remove $(bcache_h).
2218 (symfile.o): Add $(bcache_h).
2219
2220 * symmisc.c: Update copyright.
2221 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2222 (print_objfile_statistics): Use bcache_memory_used.
2223
2224 * symfile.c: Include "bcache.h".
2225 (reread_symbols): Use bcache_xfree.
2226 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2227 (add_psymbol_to_list): Pass psymbol_cache by value.
2228 (add_psymbol_with_dem_name_to_list): Ditto.
2229
2230 * objfiles.h: Update copyright.
2231 (struct bcache): Declare opaque. Do not include "bcache.h".
2232 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2233 bcache'' pointers.
2234 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2235
2236 * objfiles.c: Include "bcache.h". Update copyright.
2237 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2238 macro_cache.
2239 (free_objfile): Use bcache_xfree.
2240
444199e7
GS
22412002-07-11 Grace Sainsbury <graces@redhat.com>
2242
2243 * monitor.c (monitor_fetch_register): Make name a constant.
2244 (monitor_store_register): Same.
2245
261397f8
DJ
22462002-07-11 Daniel Jacobowitz <drow@mvista.com>
2247
2248 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2249 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2250 (finish_block) For non-function blocks, hash the symbol table. For
2251 function blocks, mark the symbol table as unhashed.
2252 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2253 (msymbol_hash_iw): Likewise.
2254 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2255 value.
2256 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2257 (lookup_minimal_symbol): Likewise for both.
2258 * symtab.h (struct block): Add `hashtable' flag. Comment the
2259 hashtable.
2260 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2261 (ALL_BLOCK_SYMBOLS): Update.
2262 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2263 (struct symbol): Add `hash_next' pointer.
2264 * symtab.c (lookup_block_symbol): Search using the hash table when
2265 possible.
2266 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2267 (search_symbols, find_addr_symbol): Likewise.
2268
2269 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2270 (read_dst_symtab): Likewise.
2271 * jv-lang.c (get_java_class_symtab): Likewise.
2272 * mdebugread.c: Include "gdb_assert.h".
2273 (shrink_block): Assert that the block being modified is not hashed.
2274 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2275 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2276 symbols.
2277 (dump_symtab): Recognize hashed blocks.
2278 * printcmd.c (print_frame_args): Assert that function blocks do not
2279 have hashed symbol tables.
2280 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2281 (fill_in_ada_prototype, debug_print_block): Likewise.
2282 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2283
6f0eaa01
CV
22842002-07-11 Corinna Vinschen <vinschen@redhat.com>
2285
2286 * stack.c (print_frame): Use result of frame_address_in_block()
2287 instead of fi->pc when evaluating symbols.
2288 (backtrace_command_1): Ditto.
2289
a208b0cb
AC
22902002-07-11 Andrew Cagney <cagney@redhat.com>
2291
2292 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2293 Make static.
2294
2295 * arm-tdep.c (arm_register_name): Make return type constant.
2296
a6b6b089
AC
22972002-07-10 Andrew Cagney <ac131313@redhat.com>
2298
5ae5f592
AC
2299 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2300 prototype.
2301 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2302 * s390-tdep.c (s390_fp_regnum): Ditto.
2303 (s390_read_fp): Ditto.
2304 (s390_pop_frame): Ditto.
2305 (_initialize_s390_tdep): Ditto.
2306 * remote.c (get_remote_state): Ditto.
2307 * procfs.c (mappingflags): Ditto.
2308 * memattr.c (_initialize_mem): Ditto.
2309 * mcore-tdep.c (mcore_pop_frame): Ditto.
2310 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2311 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2312 * language.c (set_case_str): Ditto.
2313 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2314 * frv-tdep.c (new_variant): Ditto.
2315 (frv_stopped_data_address): Ditto.
2316 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2317 (context_alloc): Ditto.
2318 (frame_state_alloc): Ditto.
2319 (unwind_tmp_obstack_init): Ditto.
2320 (unwind_tmp_obstack_free): Ditto.
2321 (cfi_read_fp): Ditto.
2322 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2323 (cris_pop_frame): Ditto.
2324 * c-lang.c (scanning_macro_expansion): Ditto.
2325 (finished_macro_expansion): Ditto.
2326 (c_preprocess_and_parse): Ditto.
2327 * gdbarch.sh: Ditto.
2328 * gdbarch.h, gdbarch.c: Regenerate.
2329 * config/mn10200/tm-mn10200.h: Adjust indentation.
2330 * target.c: Adjust indentation.
2331 * symtab.h: Adjust indentation.
2332 * stabsread.h: Adjust indentation.
2333 * remote-es.c: Adjust indentation.
2334 * os9kread.c: Adjust indentation.
2335
23362002-07-10 Andrew Cagney <ac131313@redhat.com>
2337
a6b6b089
AC
2338 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2339 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2340
a1789893
GS
23412002-07-10 Grace Sainsbury <graces@redhat.com>
2342
2343 * NEWS: Mention m68k, mcore multi-arching.
2344 * MAINTAINERS: Change status of m68k, mcore to reflect
2345 multi-arching.
2346
02f0d45d
DJ
23472002-07-10 Daniel Jacobowitz <drow@mvista.com>
2348
2349 * valops.c (find_overload_match): Free oload_syms.
2350
f15f768e
JB
23512002-07-09 Joel Brobecker <brobecker@gnat.com>
2352
2353 Define HAVE_SYS_PROC_H if sys/proc.h exists
2354 * configure.in: Add check for sys/proc.h
2355 * config.in: Regenerate.
2356 * configure: Regenerate.
2357
902a7139
GS
23582002-07-09 Grace Sainsbury <graces@redhat.com>
2359
2360 * config/m68k/tm-m68k.h: Remove macros wrapped in
2361 #if !GDB_MULTI_ARCH.
2362
a534e424
AC
23632002-07-08 Andrew Cagney <ac131313@redhat.com>
2364
2365 * config.in, configure: Regenerate.
2366
9b94f7bf
MK
23672002-07-08 Mark Kettenis <kettenis@gnu.org>
2368
2369 * dwarf2cfi.c: Include "gcore.h".
2370 (execute_stack_op): Fix implementation of the
2371 DW_OP_deref and DW_OP_deref_size operators by letting do their
2372 lookup in the target.
2373
1d34db41
MK
23742002-07-07 Mark Kettenis <kettenis@gnu.org>
2375
2376 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2377 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2378 tdep->sc_sp_offset.
2379
79d5b63a
DJ
23802002-07-05 Daniel Jacobowitz <drow@mvista.com>
2381
2382 Fix PR gdb/595, gdb/602
2383 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2384 Don't call value_cast, just read the vtable pointer; update comments
2385 to match.
2386
3bb912e8
GS
23872002-07-05 Grace Sainsbury <graces@redhat.com>
2388
2389 * config/mcore/tm-mcore.h: Remove file.
2390 * config/mcore/mcore.mt: Remove definition of TM_FILE
2391 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2392
ca39387d
MK
23932002-07-05 Mark Kettenis <kettenis@gnu.org>
2394
2395 * i386bsd-tdep.c: Include "gdb_string.h".
2396
efdc1108
GS
23972002-07-04 Grace Sainsbury <graces@redhat.com>
2398
2399 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2400 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2401 mcore-tdep.
2402 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2403 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2404 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2405 (RETVAL_REGNUM): Move macros from tm-mcore.h
2406 (mcore_reg_struct_has_addr): New function.
2407 (mcore_gdbarch_init): Added initializations for the macros removed
2408 from tm-mcore.h.
2409
bb21884d
MK
24102002-07-04 Mark Kettenis <kettenis@gnu.org>
2411
2412 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2413 traditonal string branding within the ELF header.
2414
228c6d41
DJ
24152002-07-04 Daniel Jacobowitz <drow@mvista.com>
2416
2417 * symtab.c (remove_params): New function.
2418 (make_symbol_overload_list): Use it instead of cplus_demangle.
2419 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2420
2404952e
MK
24212002-07-04 Mark Kettenis <kettenis@gnu.org>
2422
e5e4acad
MK
2423 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2424
baadce09
MK
2425 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2426 New variables.
2427 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2428 and tdep->sigtramp_end.
2429 * i386obsd-nat.c: New file.
2430 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2431
2404952e
MK
2432 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2433 Don't call get_current_frame().
2434
9b4f1ba7
PM
24352002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2436
2437 * i386-nat.c (child_post_startup_inferior): New function
2438 calling i386_cleanup_dregs if
2439 I386_USE_GENERIC_WATCHPOINTS is defined.
2440 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2441 conditional to acknowledge that i386-nat.c has its
2442 own child_post_startup_inferior function.
2443
c0d1d883
MK
24442002-07-04 Mark Kettenis <kettenis@gnu.org>
2445
00f8375e
MK
2446 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2447 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2448 instead of MAX_REGISTER_RAW_SIZE.
2449 (i386_extract_return_value, i386_extract_struct_value_address):
2450 Convert to use regcache.
2451 (i386_gdbarch_init): Set max_register_raw_size and
2452 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2453 Set extract_return_value and extract_struct_value_address instead
2454 of their deprecated variants.
2455
c0d1d883
MK
2456 Convert i386 target to generic dummy frames.
2457 * i386-tdep.c: Include "symfile.h".
2458 (i386_frameless_signal_p): Consider a function to be frameless if
2459 the pc points at the first instruction of the function.
2460 (i386_frame_chain): Handle (generic) call dummies.
2461 (i386_frame_saved_pc): Likewise.
2462 (i386_frame_init_saved_regs): Remove code dealing with call
2463 dummies on the stack.
2464 (i386_push_dummy_frame): Removed.
2465 (i386_call_dummy_words): Removed.
2466 (i386_fix_call_dummy): Removed.
2467 (i386_push_return_address): New function.
2468 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2469 parameter, and don't call get_current_frame.
2470 (i386_pop_frame): New function.
2471 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2472 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2473 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2474 call_dummy_length to 0, set call_dummy_words to NULL, set
2475 sizeof_call_dummy_words to 0, set fix_call_dummy to
2476 generic_fix_call_dummy, set pc_in_call_dummy to
2477 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2478 generic_push_dummy_frame, set push_return_address to
2479 i386_push_return_address and set frame_chain_valid to
2480 generic_file_frame_chain_valid.
2481
049ee0e4
AC
24822002-07-03 Andrew Cagney <ac131313@redhat.com>
2483
2484 * gdbarch.sh (struct regcache): Add opaque declaration.
2485 (EXTRACT_RETURN_VALUE): New architecture method.
2486 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2487 * gdbarch.h, gdbarch.c: Regenerate.
2488 * arch-utils.c (legacy_extract_return_value): New function.
2489 * arch-utils.h (legacy_extract_return_value): Declare.
2490 * values.c (value_being_returned): Re-enable code handling
2491 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2492 deprecated_grub_regcache_for_registers call to block handling
2493 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2494 (EXTRACT_RETURN_VALUE): Do not define.
2495
4e0d9804
GS
24962002-07-03 Grace Sainsbury <graces@redhat.com>
2497
2498 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2499 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2500 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2501 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2502 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2503 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2504 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2505 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2506 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2507 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2508 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2509 argument so the function fits the prototype in the architecture
2510 vector.
2511 (mcore_pop_frame): Remove argument so the function fits the
2512 prototype. Use get_current_frame instead of the argument.
2513 (mcore_push_arguments): Change type of struct_return so the
2514 function can be used in the architecture vector.
2515 (mcore_store_struct_return): Add.
2516 (mcore_frame_init_saved_regs): Add.
2517 (mcore_gdbarch_init): Add function calls to replace the macros
2518 removed from tm-mcore.h
2519
36160dc4
AC
25202002-07-03 Andrew Cagney <ac131313@redhat.com>
2521
2522 * infcmd.c (print_return_value): Remove compatibility code calling
2523 deprecated_grub_regcache_for_registers.
2524
2525 * values.c: Include "regcache.h".
2526 (value_being_returned): Update. Use
2527 deprecated_grub_regcache_for_registers to extract the register
2528 buffer address.
2529 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2530 ``struct regcache''.
2531 * Makefile.in (values.o): Add dependency on $(regcache_h).
2532
2533 * inferior.h (run_stack_dummy): Change type of second parameter to
2534 a ``struct regcache''.
2535 * valops.c (hand_function_call): Change type of retbuf to ``struct
2536 regcache''. Allocate using regcache_xmalloc, clean using
2537 make_cleanup_regcache_xfree.
2538 * infcmd.c (run_stack_dummy): Update. Use
2539 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2540
2541 * regcache.c (do_regcache_xfree): New function.
2542 (make_cleanup_regcache_xfree): New function.
2543 * regcache.h (make_cleanup_regcache_xfree): Declare.
2544
e64d9b3d
MH
25452002-07-03 Martin M. Hunt <hunt@redhat.com>
2546
4dd79c29
MH
2547 * event-top.c (command_line_handler): Don't read past
2548 beginning of buffer.
e64d9b3d 2549
4dd79c29
MH
25502002-07-03 Martin M. Hunt <hunt@redhat.com>
2551
e64d9b3d
MH
2552 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2553 struct frame_id.
2554 (varobj_create): Store frame_id for root.
2555 (varobj_gen_name): Use xasprintf.
2556 (varobj_update): Save and restore frame using get_frame_id() and
2557 frame_find_by_id().
2558 (create_child): Use xasprintf.
2559 (new_root_variable): Initialize frame_id.
2560 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2561 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2562 to prevent memory leak.
2563
26e6c56a
AC
25642002-07-03 Andrew Cagney <ac131313@redhat.com>
2565
2566 * valops.c (hand_function_call): Move declaration of retbuf to
2567 start of function, allocate using malloc, add a cleanup but before
2568 the inf_status cleanup, cleanup the buffer. Rename local variable
2569 old_chain to inf_status_cleanup.
2570
f436dd25
MH
25712002-07-03 Martin M. Hunt <hunt@redhat.com>
2572
2573 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2574
2575 * cli/cli-decode.c (cmd_func_p): New function.
2576 (cmd_func): New function.
2577
2578 * command.h: Add cmd_func() and cmd_func_p().
2579
4cfe2084
GS
25802002-07-03 Grace Sainsbury <graces@redhat.com>
2581
2582 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2583 (REGISTER_SIZE): Remove.
2584 (MAX_REGISTER_RAW_SIZE): Remove.
2585 (REGISTER_VIRTUAL_TYPE): Remove.
2586 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2587 (REGISTER_NAME): Remove.
2588 (USE_GENERIC_DUMMY_FRAMES): Remove.
2589 (CALL_DUMMY): Remove.
2590 (CALL_DUMMY_START_OFFSET): Remove.
2591 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2592 (CALL_DUMMY_LOCATION): Remove.
2593 (FIX_CALL_DUMMY): Remove.
2594 (CALL_DUMMY_ADDRESS): Remove.
2595 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2596 (SAVE_DUMMY_FRAME_TOS): Remove.
2597 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2598 (mcore_register_virtual_type): New function.
2599 (mcore_register_byte): New function.
2600 (mcore_register_size): New function.
2601 (mcore_register_name): New function.
2602 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2603 macros removed from tm-mcore.h.
2604 (mcore_dump_tdep): Add.
2605 (_initialize_mcore_tdep): Add gdbarch_register call.
2606
4fd667e9
MK
26072002-07-03 Mark Kettenis <kettenis@gnu.org>
2608
2609 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2610 frameless_look_for_prologue, such that we actually call this
2611 function.
2612
42f99ac2
JB
26132002-07-02 Joel Brobecker <brobecker@gnat.com>
2614
2615 * frame.h (frame_address_in_block): New function.
2616
2617 * blockframe.c (frame_address_in_block): New function extracted
2618 from get_frame_block().
2619 (get_frame_block): Use frame_address_in_block().
2620 (block_innermost_frame): Use frame_address_in_block() to match
2621 the frame pc address against the block boundaries rather than
2622 the frame pc directly. This prevents a failure when a frame pc
2623 is actually a return-address pointing immediately after the end
2624 of the given block.
2625
103a1597 26262002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2627
2628 * MAINTAINERS: Add self under write after approval.
2629
26302002-07-02 Grace Sainsbury <graces@redhat.com>
2631
103a1597
GS
2632 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2633 used in architecture vector. The default is
2634 m68k_local_breakpoint_from_pc.
2635 (m68k_local_breakpoint_from_pc): Add.
2636 (enum): Add register numbers from tm-m68k.h.
2637 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2638 vector.
2639 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2640 GDB_MULTI_ARCH_PARTIAL.
2641 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2642 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2643 m68k-tdep.c.
2644 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2645 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2646 to enum in m68k-tdep.c
2647
7a5a0534
JB
26482002-07-02 Joel Brobecker <brobecker@gnat.com>
2649
2650 * solib-osf.c (open_map): Compute the list of shared libraries
2651 loaded by the inferior, rather than the list of libraries loaded
2652 by GDB itself. Otherwise, GDB ends up reading the symbols from
2653 the wrong shared libraries...
2654
6f558d74
MK
26552002-07-02 Mark Kettenis <kettenis@gnu.org>
2656
b7d15bf7
MK
2657 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2658 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2659 macros.
2660 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2661 Remove functions.
2662 (FRAMELESS_SIGNAL): Remove function.
2663 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2664 i386_linux_saved_pc_after_call): Removed.
2665 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2666 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2667 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2668
6bff26de
MK
2669 * i386-tdep.c (i386_frameless_signal_p): New function.
2670 (i386_frame_chain): Deal with frameless signals.
2671 (i386_sigtramp_saved_sp): New function.
2672 (i386_frame_saved_pc): Deal with frameless signals.
2673 (i386_saved_pc_after_call): Make sure the correct value is
2674 returned just after entry into a sigtramp.
2675 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2676 i386fbsd4_sc_sp_offset): New variables.
2677 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2678 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2679 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2680 similiar to what we already did for sc_pc_offset.
2681 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2682 tdep->sc_sp_offset.
2683
6f558d74
MK
2684 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2685
145564b7
ML
26862002-07-02 Michal Ludvig <mludvig@suse.cz>
2687
2688 * config/i386/tm-x86-64linux.h: New.
2689 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2690 definitions.
2691 * config/i386/nm-x86-64.h: Rename to ...
2692 * config/i386/nm-x86-64linux.h: ... this one.
2693 * config/i386/x86-64linux.mh: Reflect the above change.
2694
3a1e71e3
MK
26952002-07-01 Mark Kettenis <kettenis@gnu.org>
2696
21d0e8a4
MK
2697 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2698 with sigcontext_addr. Add sc_sp_offset.
2699 (i386bsd_sigtramp_saved_pc): Remove prototype.
2700 (i386bsd_sicontext_addr): Add prototype.
2701 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2702 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2703 (i386_svr4_sigtramp_saved_pc): Removed.
2704 (i386_svr4_sigcontext_addr): New function.
2705 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2706 Initialize tdep->sigcontext_addr instead. Initialize
2707 tdep->sc_pc_offset and tdep->sc_sp_offset.
2708 (i386_gdbarch_init): Likewise.
2709 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2710 any more.
2711 (i386bsd_sigtramp_saved_pc): Remove function.
2712 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2713 Initialize tdep->sigcontext_addr instead. Initialize
2714 tdep->sc_pc_offset.
2715 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2716 of tdep->sigtramp_saved_pc.
2717 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2718 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2719 instead.
2720
3a1e71e3
MK
2721 * i386-tdep.c (i386_frameless_function_invocation,
2722 i386_frame_num_args, i386_frame_init_saved_regs,
2723 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2724 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2725 i386_extract_return_value, i386_store_return_value,
2726 i386_extract_struct_value_address, i386_register_virtual_type,
2727 i386_register_convertible, i386_register_convert_to_virtual,
2728 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2729 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2730 static.
2731
52e9098c
MK
27322002-07-01 Mark Kettenis <kettenis@gnu.org>
2733
77b13a25
MK
2734 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2735
52e9098c
MK
2736 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2737 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2738 this macro. Include "value.h".
2739
1b372fff
AS
27402002-06-30 Aidan Skinner <aidan@velvet.net>
2741
2742 * ada-exp.tab.c: remove as it's a generated file
2743 * ada-lex.c: remove as it's a generated file
2744
9c5045b5
MK
27452002-06-30 Mark Kettenis <kettenis@gnu.org>
2746
4a93c5bb
MK
2747 * config/i386/tm-i386.h (struct frame_info, struct
2748 frame_saved_regs, struct value, struct type): Remove forward
2749 declarations.
2750
322d4fe0
MK
2751 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2752 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2753 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2754 (FILL_FPXREGSET): Define.
2755
fdd8263d
MK
2756 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2757
482e577b
MK
2758 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2759 i[3456]86-*-netbsd* case.
2760 * config/i386/tm-obsd.h: Removed.
2761 * config/i386/obsd.mt: Removed.
2762 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2763 core-aout.o.
2764 (MH_CFLAGS): Add -DYYDEBUG=0.
2765
6916549a
MK
2766 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2767 i386nbsd_sc_pc_offset on OpenBSD too.
2768
9c5045b5
MK
2769 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2770 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2771 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2772 define.
2773 * i386bsd-tdep.c: Include "arch-utils.h".
2774 (i386bsd_aout_in_solib_call_trampoline): New function.
2775 (i386bsd_init_abi): Set in_solib_call_trampoline to
2776 i386bsd_aout_in_solib_call_trampoline.
2777 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2778 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2779
aa84d1bb
AC
27802002-06-28 Andrew Cagney <ac131313@redhat.com>
2781
2782 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2783 (struct obstack, struct bcache): Add opaque declarations.
2784 * Makefile.in (macrotab_h): Update
2785
b4d83933
AC
27862002-06-28 Andrew Cagney <ac131313@redhat.com>
2787
2788 * blockframe.c (generic_find_dummy_frame): Change return type to
2789 ``struct regcache''.
2790 (struct dummy_frame): Replace field ``registers'' with regcache, a
2791 struct regcache object.
2792 (generic_find_dummy_frame): Update.
2793 (generic_push_dummy_frame): Update. Use regcache_xfree,
2794 regcache_xmalloc and regcache_cpy.
2795 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2796 regcache_xfree.
2797 (deprecated_generic_find_dummy_frame): Update.
2798 (generic_read_register_dummy): Update. Use
2799 regcache_read_as_address.
2800 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2801 (generic_get_saved_register): Update. Use regcache_read.
2802
08c0b5bc
AC
28032002-06-28 Andrew Cagney <ac131313@redhat.com>
2804
2805 * Makefile.in (objfiles_h): Add $(bcache_h).
2806 * objfiles.h: Include "bcache.h".
2807
2808 * Makefile.in (symtab_h): Remove $(bcache_h).
2809 * symtab.h: Do not include "bcache.h".
2810
1f89801a
AC
28112002-06-28 Andrew Cagney <ac131313@redhat.com>
2812
2813 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2814 generic_func_frame_chain_valid.
2815
b9644b58
DB
28162002-06-28 David O'Brien <obrien@FreeBSD.org>
2817
2818 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2819 * config/i386/tm-fbsd.h: Likewise.
2820
dd486634
AC
28212002-06-28 Andrew Cagney <ac131313@redhat.com>
2822
2823 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2824 generic_unwind_get_saved_register.
2825
0b434a00
AC
28262002-06-27 Andrew Cagney <ac131313@redhat.com>
2827
2828 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2829 * regcache.c (supply_register): Add missing argument to
2830 register_buffer call.
2831
f30e5a77
AC
28322002-06-27 Andrew Cagney <ac131313@redhat.com>
2833
2834 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2835 Solaris /bin/grep does not not like it. From Peter Schauer.
2836
9f064c95
TT
28372002-06-26 Tom Tromey <tromey@redhat.com>
2838
2839 * command.h (add_setshow_cmd): Declare.
2840 (add_setshow_cmd_full): Declare.
2841 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2842 returns void. Use add_setshow_cmd_full.
2843 (add_setshow_cmd_full): New function.
2844 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2845 (add_setshow_boolean_cmd): Likewise.
2846
099c7589
JT
28472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2848
2849 * config/vax/tm-vax.h: Protect from multiple inclusion.
2850 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2851 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2852 * config/vax/tm-vaxbsd.h: ...here. New file.
2853 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2854
1d049c5e
JT
28552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2856
2857 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2858 (BELIEVE_PCC_PROMOTION): Remove.
2859 (AP_REGNUM): Move to...
2860 * config/vax/nm-vax.h: ...here.
2861 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2862 (vax_breakpoint_from_pc): New function.
2863 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2864 and gdbarch_believe_pcc_promotion.
2865
4791e091
JT
28662002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2867
2868 * Makefile.in (vax_tdep_h): Define.
2869 (vax-tdep.o): Use $(vax_tdep_h).
2870 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2871 (vax_dump_tdep): New function.
2872 (_initialize_vax_tdep): Register vax_dump_tdep.
2873 * vax-tdep.h: Include osabi.h.
2874 (struct gdbarch_tdep): New.
2875
da130f98
AC
28762002-06-26 Andrew Cagney <cagney@redhat.com>
2877
2878 * frame.h (deprecated_generic_find_dummy_frame): Rename
2879 generic_find_dummy_frame.
2880 * blockframe.c (generic_find_dummy_frame): Make static.
2881 (deprecated_generic_find_dummy_frame): New function.
2882 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2883 generic_find_dummy_frame with deprecated_find_dummy_frame.
2884 (sh64_nofp_frame_init_saved_regs): Ditto.
2885 (sh_fp_frame_init_saved_regs): Ditto.
2886 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2887 (s390_frame_chain): Ditto.
2888 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2889
6300c360
GS
28902002-06-26 Grace Sainsbury <graces@redhat.com>
2891
2892 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2893 gdbarch vector are at the top.
2894 (NUM_REGS): Remove.
2895 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2896 (FRAME_ARGS_ADDRESS): Remove.
2897 (FRAME_LOCALS_ADDRESS): Remove.
2898 (FRAME_NUM_ARGS): Remove.
2899 (FRAME_ARGS_SKIP): Remove.
2900 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2901 (m68k_gdbarch_init): Add gdbarch initializations for macros
2902 undefined in tm-m68k.h
2903
1c617db8
GS
29042002-06-26 Grace Sainsbury <graces@redhat.com>
2905
2906 * monitor.h: Add the function regname to monitor_ops
2907 structure. This way NUM_REGS does not have to be a constant.
2908 * monitor.c (monitor_fetch_register): Added support for regname
2909 function. The function is called if the array regnames is NULL.
2910 (monitor_store_register): Same.
da130f98
AC
2911 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2912 regnames array.
1c617db8
GS
2913 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2914 cpu32bug_cmds.regname to point to new function.
2915 * abug-rom.c (abug_regname): Same as above.
2916 (init_abug_cmds): Same.
2917 * dbug-rom.c (dbug_regname): Same as above.
2918 (init_dbug_cmds): Same.
2919 * remote-est.c (est_regname): Same.
2920 (init_est_cmds): Same.
2921 * rom68k-rom.c (rom68k_regname): Same.
2922 (init_rom68k_cmds): Same.
2923
ea9365bb
TT
29242002-06-25 Tom Tromey <tromey@redhat.com>
2925
2926 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2927
72cec141
AC
29282002-06-25 Andrew Cagney <cagney@redhat.com>
2929
2930 * infrun.c (stop_registers): Change variable's type to ``struct
2931 regcache'''.
2932 (xmalloc_inferior_status): Delete function.
2933 (free_inferior_status): Delete function.
2934 (normal_stop): Use regcache_cpy.
2935 (struct inferior_status): Change type of fields ``stop_registers''
2936 and ``registers'' to ``struct regcache''.
2937 (write_inferior_status_register): Use regcache_write.
2938 (save_inferior_status): Instead of calling
2939 xmalloc_inferior_status, allocate the inf_status buffer directly.
2940 Use regcache_dup_no_passthrough and regcache_dup to save the
2941 buffers.
2942 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2943 Replace the stop_registers regcache instead of overriding it. Use
2944 regcache_xfree. Instead of calling free_inferior_status, xfree
2945 the buffer directly.
2946 (discard_inferior_status): Use regcache_xfree. Instead of calling
2947 free_inferior_status, xfree the buffer directly.
2948 (build_infrun): Use regcache_xmalloc.
2949 (_initialize_infrun): Delete redundant call to build_infrun.
2950
2951 * Makefile.in (infcmd.o): Add $(regcache_h).
2952
2953 * infcmd.c: Include "regcache.h".
2954 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2955 obtain the address of `stop_registers' register buffer.
2956 (print_return_value): Ditto.
2957
2958 * inferior.h (struct regcache): Add opaque declaration.
2959 (stop_registers): Change variable's declared type to ``struct
2960 regcache''.
2961
defc6f8c
TT
29622002-06-24 Tom Tromey <tromey@redhat.com>
2963
c0e624e7
TT
2964 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2965 * target.c (initialize_targets): Fixed typo in
2966 trust-readonly-sections `show' documentation.
2967
defc6f8c
TT
2968 * main.c: Marked all strings with _().
2969
2b236d82
DH
29702002-06-24 Don Howard <dhoward@redhat.com>
2971
2972 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2973 that means max CORE_ADDR+1.
2974 (lookup_mem_region): Ditto.
2975 (mem_info_command): Ditto.
2976
942dc0e9
GS
29772002-06-24 Grace Sainsbury <graces@redhat.com>
2978
2979 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2980 (REGISTER_BYTES_OK): Remove.
2981 (REGISTER_BYTES): Remove.
2982 (STORE_STRUCT_RETURN): Remove.
2983 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2984 (STORE_RETURN_VALUE): Remove.
2985 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2986 (FRAME_CHAIN): Remove.
2987 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2988 (FRAME_SAVED_PC): Remove.
2989 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2990 (m68k_store_struct_return): Add.
2991 (m68k_deprecated_extract_return_value): Add.
2992 (m68k_deprecated_extract_struct_value_address): Add.
2993 (m68k_store_return_value): Add.
2994 (m68k_frame_chain): Add.
2995 (m68k_frameless_function_invocation): Add.
2996 (m68k_frame_saved_pc): Add.
2997 (m68k_gdbarch_init): added set_gdbarch calls for new
2998 functions and deleted macros.
2999
03c30d4d
TT
30002002-06-23 Tom Tromey <tromey@redhat.com>
3001
3002 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3003 (ALLDEPFILES): Likewise.
3004 (udiheaders): Removed.
3005 (udip2soc.o): Likewise.
3006 (udi2go32.o): Likewise.
3007 (udr.o): Likewise.
3008 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3009
37e71372
AC
30102002-06-22 Andrew Cagney <ac131313@redhat.com>
3011
06a6ac57
AC
3012 * infrun.c (_initialize_infrun): Delete unnecessary call to
3013 build_infrun.
3014
37e71372
AC
3015 * regcache.h: Update comments describing the regcache_cpy family
3016 of functions.
3017 (regcache_save, regcache_restore): Delete declaration.
3018 (regcache_save_no_passthrough): Delete declaration.
3019 (regcache_restore_no_passthrough): Delete declaration.
3020 * regcache.c (regcache_save): Delete function.
3021 (regcache_save_no_passthrough): Delete function.
3022 (regcache_restore): Delete function.
3023 (regcache_restore_no_passthrough): Delete function.
3024
78f6d055
AC
30252002-06-21 Andrew Cagney <ac131313@redhat.com>
3026
3027 * config/m68k/tm-m68k.h: Fix typo.
3028 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3029 (m68k_frame_init_saved_regs): Declare.
3030
78b119cb
JB
30312002-06-21 Jim Blandy <jimb@redhat.com>
3032
3033 Remove some vestiges of Harris 88k support.
3034 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3035 register numbering quirk.
3036 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3037 odd symbols occurring in Harris 88k ELF targets.
3038
0fbb3da7
TT
30392002-06-21 Tom Tromey <tromey@redhat.com>
3040
3041 * gdb_locale.h: New file.
3042 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3043 (defs_h): Added gdb_locale.h.
3044 * configure, config.in: Rebuilt.
3045 * configure.in (PACKAGE): Define.
3046 * defs.h: Include gdb_locale.h.
3047 * main.c (captured_main): Call setlocale, bindtextdomain,
3048 textdomain.
3049
456f8b9d
DB
30502002-06-21 Dave Brolley <brolley@redhat.com>
3051
3052 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3053 * config/frv/frv.mt: New file.
3054 * config/frv/tm-frv.h: New file.
3055 * configure.tgt: Support frv-*-*.
3056 * Makefile.in (frv-tdep.o): New target.
3057 * frv-tdep.c: New file.
3058 * NEWS: Mention frv.
3059
cdd463f9
DB
30602002-06-21 Dave Brolley <brolley@redhat.com>
3061
3062 * MAINTAINERS: Add self to "Write After Approval" list.
3063
5d3ed2e3
GS
30642002-06-21 Grace Sainsbury <graces@redhat.com>
3065
3066 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3067 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3068 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3069 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3070 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3071
3072 * m68k-tdep.c: Include arch-utils.h
3073 (m68k_register_raw_size): Add.
3074 (m68k_register_virtual_size): Add.
3075 (m68k_register_virtual_type): Add.
3076 (m68k_register_name): Add.
3077 (m68k_stack_align): Add.
3078 (m68k_register_byte): Add.
3079 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3080 tm-m68k.h.
3081
7f8e7424
GS
30822002-06-21 Grace Sainsbury <graces@redhat.com>
3083
a2c6a6d5 3084 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3085 m68k_find_saved_regs.
3086 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3087 references to it with frame->saved_regs.
7f8e7424
GS
3088 (m68k_gdbarch_init): Added function calls to initialize the
3089 gdbarch structure.
a2c6a6d5
GS
3090 (m68k_fix_call_dummy): Add.
3091 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3092 (CALL_DUMMY): Remove.
3093 (CALL_DUMMY_LENGTH): Remove.
3094 (CALL_DUMMY_START_OFFSET): Remove.
3095 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3096 (FIX_CALL_DUMMY): Remove.
3097 (PUSH_DUMMY_FRAME): Remove.
3098 (POP_FRAME): Remove.
7f8e7424 3099
f461f5cf
PM
31002002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3101
3102 * parse.c (parse_fprintf): New function used to avoid calls to
3103 fprintf in bison parser generated debug code.
3104 * parser-defs.h: Declaration of new parse_fprintf function.
3105 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3106 Set YYDEBUG to 1 by default.
3107 Set YYFPRINTF as parse_fprintf.
3108
7f0c12ed
ML
31092002-06-21 Michal Ludvig <mludvig@suse.cz>
3110
3111 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3112 encoding anymore.
3113 (pointer_encoding, enum ptr_encoding): New.
3114 (execute_cfa_program): Take care about pointer encoding.
3115 (dwarf2_build_frame_info): Only call parse_frame_info for
3116 .debug_frame and .eh_frame.
3117 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3118 fixed augmentation handling, added relative addressing,
3119 ignore duplicate FDEs. Added comments.
19d833a2 3120 * dwarf2cfi.c: Reindented.
7f0c12ed 3121
87c4a039
EZ
31222002-06-20 Elena Zannoni <ezannoni@redhat.com>
3123
3124 * event-top.c (command_handler): Don't use space_at_cmd_start
3125 unless there is sbrk() on the host. Assign time and space data
3126 to union fields of the appropriate length.
3127
1cf877ad
ML
31282002-06-20 Michal Ludvig <mludvig@suse.cz>
3129
3130 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3131 x86_64_register_name. Return type changed to 'const char *'.
3132 (x86_64_register_name2nr): Rename to x86_64_register_number.
3133 (x86_64_gdbarch_init): Update to reflect the change.
3134 * x86-64-tdep.h: Ditto.
3135 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3136 (supply_fpregset): Ditto.
3137
3fadccb3
AC
31382002-06-19 Andrew Cagney <cagney@redhat.com>
3139
3140 * regcache.h: Update copyright.
3141 (struct regcache, struct gdbarch): Add opaque declarations.
3142 (current_regcache): Declare global variable.
3143 (regcache_read, regcache_write): Add gdbarch parameter.
3144 (regcache_save, regcache_save_no_passthrough)
3145 (regcache_restore, regcache_restore_no_passthrough)
3146 (regcache_dup, regcache_dup_no_passthrough)
3147 (regcache_cpy, regcache_cpy_no_passthrough)
3148 (deprecated_grub_regcache_for_registers)
3149 (deprecated_grub_regcache_for_register_valid)
3150 (regcache_valid_p): Add function declarations.
3151
3152 * regcache.c: Update copyright.
3153 (regcache_descr_handle): New global variable.
3154 (struct regcache_descr): Define.
3155 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3156 (regcache_descr, xfree_regcache_descr): New functions.
3157 (struct regcache): Define.
3158 (regcache_xmalloc, regcache_xfree): New functions.
3159 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3160 (regcache_dup, regcache_dup_no_passthrough): New functions.
3161 (regcache_valid_p, regcache_read_as_address): New functions.
3162 (deprecated_grub_regcache_for_registers): New function.
3163 (deprecated_grub_regcache_for_register_valid): New function.
3164 (current_regcache): New global variable.
3165 (register_buffer): Add regcache parameter. Update calls.
3166 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3167 (read_register_gen, write_register_gen): Update register_buffer
3168 call. Test for legacy_p instead of gdbarch_register_read_p or
3169 gdbarch_register_write_p.
3170 (regcache_collect): Update register_buffer call.
3171 (build_regcache): Rewrite. Use deprecated grub functions.
3172 (regcache_save, regcache_save_no_passthrough): New functions.
3173 (regcache_restore, regcache_restore_no_passthrough): New
3174 functions.
3175 (_initialize_regcache): Create the regcache_data_handle. Swap
3176 current_regcache global variable.
3177
3178 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3179 parameter to regcache_read and regcache_write calls.
3180 (sh4_register_read): Ditto.
3181 (sh64_pseudo_register_read): Ditto.
3182 (sh64_register_read): Ditto.
3183 (sh_pseudo_register_write): Ditto.
3184 (sh4_register_write): Ditto.
3185 (sh64_pseudo_register_write): Ditto.
3186 (sh64_register_write): Ditto.
3187
3188 * defs.h (XCALLOC): Define.
3189
152d9db6
GS
31902002-06-19 Grace Sainsbury <graces@redhat.com>
3191
3192 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3193 * m68k-tdep.c (m68k_gdbarch_init): Added.
3194 (m68k_dump_tdep): Added.
3195
170911c7
DJ
31962002-06-19 Daniel Jacobowitz <drow@mvista.com>
3197
3198 * ada-lang.c (fill_in_ada_prototype): Update comment.
3199
2e4ebe70
DJ
32002002-06-19 Daniel Jacobowitz <drow@mvista.com>
3201
3202 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3203 MIPS_ABI_LAST.
3204 (mips_abi_string, mips_abi_strings): New.
3205 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3206 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3207 tdep->mips_abi_string. Honor mips_abi_string. Default to
3208 O32 if no ABI is found.
3209 (mips_dump_tdep): Use mips_abi_strings.
3210 (mips_abi_update): New function.
3211 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3212 ``set mips abi'' and ``show mips abi''. Check the size of
3213 mips_abi_strings.
3214
16775908
AC
32152002-06-19 Andrew Cagney <cagney@redhat.com>
3216
3217 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3218 constant.
3219
5051bfa4 32202002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3221
5051bfa4
JB
3222 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3223 current frame using only the first stack size adjustment. All
3224 subsequent size adjustments are not considered to be part of
3225 the "static" part of the current frame.
3226 Compute the address of the saved registers relative to the
3227 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3228 in use in this frame.
3229
56468235
DH
32302002-06-18 Don Howard <dhoward@redhat.com>
3231
3232 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3233 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3234 suggesting this solution.
3235
0b624158
AC
32362002-06-18 Andrew Cagney <ac131313@redhat.com>
3237
3238 * config/romp/xm-rtbsd.h: Delete file.
3239 * config/romp/rtbsd.mh: Delete file.
3240
221ea385
KS
32412002-06-18 Keith Seitz <keiths@redhat.com>
3242
3243 * breakpoint.c (condition_command): Post breakpoint_modify
3244 when a condition is added to an existing breakpoint.
3245 (commands_command): Likewise for commands.
3246 (set_ignore_count): Likewise for ignore counts.
3247 If no tty, do not simply return, still need to send event
3248 notification.
3249 (ignore_command): Only print a newline if the command came
3250 from a tty.
3251 Don't call breakpoints_changed, since this is now properly
3252 handled by set_ignore_count.
3253
5402eed1
AC
32542002-06-18 Andrew Cagney <cagney@redhat.com>
3255
3256 * MAINTAINERS: Note that cris-elf target can be compiled with
3257 -Werror.
3258 * cris-tdep.c (cris_register_name): Make return type constant.
3259 (cris_breakpoint_from_pc): Ditto.
3260
cc22880b
ML
32612002-06-18 Michal Ludvig <mludvig@suse.cz>
3262
3263 * frame.h (struct frame_info): Change type of context to
3264 'struct context'.
3265
fa88f677
AC
32662002-06-17 Andrew Cagney <cagney@redhat.com>
3267
3268 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3269 pointer.
3270 * gdbarch.h, gdbarch.c: Regenerate.
3271 * config/mips/tm-mips.h (mips_register_name): Update.
3272 * i386-tdep.h (i386_register_name): Update.
3273 * mips-tdep.c (mips_register_name): Update
3274 * alpha-tdep.c (alpha_register_name): Update.
3275 * arch-utils.c (legacy_register_name): Update.
3276 * arch-utils.h (legacy_register_name): Update.
3277 * avr-tdep.c (avr_register_name): Update.
3278 * ia64-tdep.c (ia64_register_name): Update.
3279 * i386-tdep.c (i386_register_name): Update.
3280 * sparc-tdep.c (sparc32_register_name): Update.
3281 (sparc64_register_name): Update.
3282 (sparclite_register_name): Update.
3283 (sparclet_register_name): Update.
3284 * sh-tdep.c (sh_generic_register_name): Update.
3285 (sh_sh_register_name): Update.
3286 (sh_sh3_register_name): Update.
3287 (sh_sh3e_register_name): Update.
3288 (sh_sh_dsp_register_name): Update.
3289 (sh_sh3_dsp_register_name): Update.
3290 (sh_sh4_register_name): Update.
3291 (sh_sh64_register_name): Update.
3292 * s390-tdep.c (s390_register_name): Update.
3293 * rs6000-tdep.c (rs6000_register_name): Update.
3294 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3295 (ns32k_register_name_32382): Update.
3296 * d10v-tdep.c (d10v_ts2_register_name): Update.
3297 (d10v_ts3_register_name): Update.
3298 * xstormy16-tdep.c (xstormy16_register_name): Update.
3299 * vax-tdep.c (vax_register_name): Update.
3300 * v850-tdep.c (v850_register_name): Update.
3301 * m68hc11-tdep.c (m68hc11_register_name): Update.
3302 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3303 (am33_register_name): Update.
3304
ea1e7ef6
GS
33052002-06-17 Grace Sainsbury <graces@redhat.com>
3306
3307 * m68k-tdep.c: Reindented.
3308
9b02dd1b
AC
33092002-06-17 Andrew Cagney <ac131313@redhat.com>
3310
3311 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3312 list of predefined types.
3313
8758dec1
MK
33142002-06-16 Mark Kettenis <kettenis@gnu.org>
3315
b6197528
MK
3316 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3317 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3318 REGISTER_CONVERT_TO_RAW): Remove defines.
3319 (i386_register_virtual_type, i386_register_convertible,
3320 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3321 Remove prototypes.
3322 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3323 macros mentioned above.
3324
82b47e62
MK
3325 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3326 (i386lynx_saved_pc_after_call): Remove prototype.
3327 * i386ly-tdep.c: Include "i386-tdep.h".
3328 (i386lynx_saved_pc_after_call): Make static. Use
3329 read_memory_nobpt instead of read_memory. Use
3330 read_memory_unsigned_integer instead of read_memory_integer.
3331 (i386lynx_init_abi): New function.
3332 (i386lynx_coff_osabi_sniffer): New function.
3333 (_initialize_i386bsd_tdep): New function.
3334
8758dec1
MK
3335 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3336 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3337 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3338 (i386_fix_call_dummy): Remove prototype.
3339 * i386-tdep.c (i386_call_dummy_words): New variable.
3340 (i386_gdbarch_init): Adjust for removal of the
3341 macros mentioned above.
3342
e9e68a56
AC
33432002-06-15 Andrew Cagney <ac131313@redhat.com>
3344
3345 * command.h (add_setshow_auto_boolean_cmd): Replace
3346 add_set_auto_boolean_cmd.
3347 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3348 add_set_auto_boolean_cmd.
3349 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3350 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3351 mask-address'' command.
3352 (show_mask_address): Add cmd parameter.
3353 * remote.c (add_packet_config_cmd): Update. Change type of
3354 set_func and show_func to cmd_sfunc_ftype.
3355 (_initialize_remote): Update `set remote Z-packet'
3356 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3357 (show_remote_protocol_e_packet_cmd): Ditto.
3358 (show_remote_protocol_E_packet_cmd): Ditto.
3359 (show_remote_protocol_P_packet_cmd): Ditto.
3360 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3361 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3362 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3363 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3364 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3365 (show_remote_protocol_Z_packet_cmd): Ditto.
3366 (show_remote_protocol_binary_download_cmd): Ditto.
3367 (show_remote_cmd): Pass NULL to all of above.
3368
fc08ec52
MK
33692002-06-15 Mark Kettenis <kettenis@gnu.org>
3370
3371 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3372 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3373 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3374 POP_FRAME): Remove defines.
3375 (i386_push_arguments, i386_store_struct_return,
3376 i386_extract_return_value, i386_store_return_value,
3377 i386_extract_struct_value_address, i386_push_dummy_frame,
3378 i386_pop_frame): Renove prototypes.
3379 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3380 macros mentioned above.
3381
e707bbc2
AC
33822002-06-15 Andrew Cagney <ac131313@redhat.com>
3383
3384 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3385 add_set_boolean_cmd.
3386 (add_setshow_cmd): New function.
3387 * command.h (add_setshow_boolean_cmd): Replace
3388 add_set_boolean_cmd.
3389 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3390 and ``set rdiromatzero''.
3391 * maint.c (_initialize_maint_cmds): Update commented out code.
3392 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3393 * target.c (initialize_targets): Update `set
3394 trust-readonly-sections'.
3395 * remote.c (_initialize_remote): Update `set remotebreak'.
3396
42fdc8df
MK
33972002-06-15 Mark Kettenis <kettenis@gnu.org>
3398
93924b6b
MK
3399 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3400 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3401 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3402 fit into multi-arch framework.
3403 (i386_breakpoint_from_pc): New function.
3404 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3405 above.
3406
42fdc8df
MK
3407 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3408 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3409 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3410 (i386_frameless_function_invocation, i386_frame_num_args,
3411 i386_frame_init_saved_regs): Remove prototypes.
3412 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3413 macros mentioned above.
3414
9773a94b
AC
34152002-06-15 Andrew Cagney <ac131313@redhat.com>
3416
3417 * cli/cli-decode.c (set_cmd_cfunc): Update.
3418 (set_cmd_sfunc): Update.
3419 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3420 (set_cmd_sfunc, set_cmd_cfunc): Update.
3421 * cli/cli-decode.h: Update.
3422
6e157172
MK
34232002-06-15 Mark Kettenis <kettenis@gnu.org>
3424
3425 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3426 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3427
7f19b9a2
AC
34282002-06-15 Andrew Cagney <ac131313@redhat.com>
3429
3430 * defs.h (auto_boolean): Declare enum.
3431 * command.h (cmd_auto_boolean): Delete enum.
3432 * mips-tdep.c (mask_address_var): Update.
3433 (mips_mask_address_p): Update.
3434 (show_mask_address): Update.
3435 * remote.c (struct packet_config): Update.
3436 (update_packet_config): Update.
3437 (show_packet_config_cmd): Update.
3438 (packet_ok): Update.
3439 (add_packet_config_cmd): Update.
3440 (_initialize_remote):
3441 * command.h: Update.
3442 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3443 (do_setshow_command): Update.
3444 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3445 * cli/cli-decode.h: Update.
3446
1cf88de5
MK
34472002-06-15 Mark Kettenis <kettenis@gnu.org>
3448
22ba8cf2
MK
3449 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3450 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3451 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3452 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3453 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3454 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3455
762c5349
MK
3456 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3457 list of DJGPP COFF targets.
3458
091198bb
MK
3459 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3460 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3461 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3462 (FP0_REGNUM): Remove define.
3463 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3464 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3465 (i386_register_virtual_size): Remove protoype.
3466 * i386-tdep.c (i386_register_virtual_size): Removed.
3467 (i386_extract_return_value, i386_store_return_value): Use
3468 FP0_REGNUM instead of NUM_FREGS to determine whether the
3469 floating-point registers are available.
3470 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3471 Adjust for removal of macros mentioned above.
3472
34732002-06-15 Mark Kettenis <kettenis@gnu.org>
3474
fcc9bf01
MK
3475 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3476 comments.
3477 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3478 Remove prototypes.
3479 (supply_gregset, fill_gregset): Remove use of register keyword and
3480 remove declaration for regmap. Use I386_NUM_GREGS instead of
3481 NUM_REGS and NUM_FREGS.
3482 (FPREGSET_FSAVE_OFFSET): Remove.
3483 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3484 NUM_FREGS to determine whether the floating-point registers are
3485 available.
3486
65e78234
MK
3487 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3488 gnu_store_registers): Replace usage of NUM_GREGS with
3489 I386_NUM_GREGS.
3490
98df6387
MK
3491 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3492 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3493 usage of NUM_GREGS with I386_NUM_GREGS.
3494
099a9414
MK
3495 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3496
57976e88
MK
3497 * i386bsd-nat.c: Include "i386-tdep.h".
3498 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3499 I386_NUM_GREGS.
3500
b335f4a6
MK
3501 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3502 and associated comment. They no longer make any sense, since we
3503 don't use this file anymore on Linux.
3504
1cf88de5
MK
3505 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3506 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3507 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3508 elements in these arrays.
3509 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3510 MAX_NUM_REGS.
3511
daa66587
MK
35122002-06-15 Mark Kettenis <kettenis@gnu.org>
3513
3514 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3515 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3516
26e9b323
AC
35172002-06-14 Andrew Cagney <cagney@redhat.com>
3518
3519 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3520 EXTRACT_RETURN_VALUE.
3521 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3522 EXTRACT_STRUCT_VALUE_ADDRESS.
3523 * gdbarch.h, gdbarch.c: Regenerate.
3524
3525 * values.c (value_being_returned): Handle
3526 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3527 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3528
3529 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3530 * arm-tdep.c (arm_gdbarch_init): Update.
3531 * avr-tdep.c (avr_gdbarch_init): Update.
3532 * cris-tdep.c (cris_gdbarch_init): Update.
3533 * d10v-tdep.c (d10v_gdbarch_init): Update.
3534 * ia64-tdep.c (ia64_gdbarch_init): Update.
3535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3536 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3537 * s390-tdep.c (s390_gdbarch_init): Update.
3538 * sh-tdep.c (sh_gdbarch_init): Update.
3539 * s390-tdep.c (s390_gdbarch_init): Update.
3540 * sparc-tdep.c (sparc_gdbarch_init): Update.
3541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3542 * v850-tdep.c (v850_gdbarch_init): Update.
3543 * vax-tdep.c (vax_gdbarch_init): Update.
3544 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3546
3547 * config/arc/tm-arc.h: Update.
3548 * config/d30v/tm-d30v.h: Update.
3549 * config/fr30/tm-fr30.h: Update.
3550 * config/h8300/tm-h8300.h: Update.
3551 * config/h8500/tm-h8500.h: Update.
3552 * config/i386/tm-i386.h: Update.
3553 * config/i386/tm-ptx.h: Update.
3554 * config/i386/tm-symmetry.h: Update.
3555 * config/i960/tm-i960.h: Update.
3556 * config/m32r/tm-m32r.h: Update.
3557 * config/m68k/tm-delta68.h: Update.
3558 * config/m68k/tm-linux.h: Update.
3559 * config/m68k/tm-m68k.h: Update.
3560 * config/m88k/tm-m88k.h: Update.
3561 * config/mcore/tm-mcore.h: Update.
3562 * config/mips/tm-mips.h: Update.
3563 * config/mn10200/tm-mn10200.h: Update.
3564 * config/pa/tm-hppa.h: Update.
3565 * config/pa/tm-hppa64.h: Update.
3566 * config/sparc/tm-sp64.h: Update.
3567 * config/sparc/tm-sparc.h: Update.
3568 * config/sparc/tm-sparclet.h: Update.
3569 * config/z8k/tm-z8k.h: Update.
3570
5179e78f
AC
35712002-06-14 Andrew Cagney <cagney@redhat.com>
3572
3573 * Makefile.in (i386_linux_tdep_h): Define.
3574 (i386_tdep_h, i387_tdep_h): Define.
3575 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3576 $(i386_tdep_h) and $(i387_tdep_h).
3577 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3578
8201327c
MK
35792002-06-14 Mark Kettenis <kettenis@gnu.org>
3580
edf393ac
MK
3581 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3582 Already covered by the default.
3583
896fb97d
MK
3584 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3585 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3586 (i386_gdbarch_init): Initialize long_double_format and long_double
3587 bit.
3588
8201327c
MK
3589 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3590 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3591 Move these to ...
3592 * config/i386/i386sol2.mh: ... here.
3593 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3594 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3595 (SIGCONTEXT_PC_OFFSET): Remove define.
3596 (IN_SIGTRAMP): Remove define.
3597 * i386-sol2-tdep.c: New file.
3598
3599 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3600 * config/i386/tm-i386nw.h: Removed.
3601
3602 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3603 USE_STRUCT_CONVENTION): Remove defines.
3604 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3605 (get_longjmp_target): Remove prototype.
3606 (IN_SIGTRAMP): Remove define.
3607 (i386bsd_in_sigtramp): Remove prototype.
3608 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3609 function. Update comment accordingly
3610 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3611 (FRAME_SAVED_PC): Remove define.
3612 (i386bsd_frame_saved_pc): Remove prototype.
3613 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3614 GET_LONGJMP_TARGET): Remove defines.
3615 (get_longjmp_target): Remove prototype.
3616 (IN_SIGTRAMP): Remove define.
3617 (i386bsd_in_sigtramp): Remove prototype.
3618 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3619 function. Update comment accordingly
3620 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3621 (FRAME_SAVED_PC): Remove define.
3622 (i386bsd_frame_saved_pc): Remove prototype.
3623 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3624 Remove prototype.
3625 (USE_STRUCT_CONVENTION): Remove prototype.
3626 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3627 declaration.
3628 (_initialize_i386bsd_nat): Revise logic to determine some
3629 constants at compile time when compiling a native GDB. Warn if
3630 things don't match up with what we expect.
3631 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3632 Remove variables.
3633 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3634 to use date stored in `struct gdbarch_tdep'.
3635 (i386bsd_sigcontext_offset): Remove varaible.
3636 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3637 stored in `struct gdbarch_tdep'.
3638 (i386bsd_frame_saved_pc): Make static.
3639 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3640 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3641 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3642 i386fbsd4_sc_pc_offset): New variables.
3643 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3644 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3645 functions.
3646 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3647 functions.
3648 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3649 Modify the value of i386fbsd_sigtramp_start and
3650 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3651 i386fbsd_sigtramp_end.
3652 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3653 function.
3654
3655 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3656 define to i386-linux-tdep.h.
3657 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3658 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3659 defines.
3660 (i386_linux_register_name, i386_linux_register_byte,
3661 i386_linux_register_raw_size): Remove prototypes.
3662 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3663 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3664 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3665 TARGET_WRITE_PC): Remove defines.
3666 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3667 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3668 i386_linux_write_pc): Remove prototypes.
3669 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3670 (get_longjmp_target): Remove prototype.
3671 * i386-linux-tdep.h: New file.
3672 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3673 * i386-linux-tdep.c: Include "i386-tdep.h" and
3674 "i386-linux-tdep.h".
3675 (i386_linux_register_name, i386_linux_register_byte,
3676 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3677 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3678 Make static.
3679 (i386_linux_init_abi): New function.
3680 (_initialize_i386_linux_tdep): New function.
3681
3682 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3683 (i386_saved_pc_after_call): Remove prototype.
3684 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3685 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3686 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3687 (i386_register_name, i386_stab_reg_to_regnum,
3688 i386_dwarf_reg_to_regnum): Remove prototypes.
3689 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3690 SIZEOF_SSE_REGS): Remove defines.
3691 (REGISTER_BYTES): Remove define.
3692 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3693 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3694 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3695 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3696 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3697 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3698 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3699 (get_longjmp_target): Remove prototype.
3700 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3701 (sigtramp_saved_pc): Remove define.
3702 (i386v4_sigtramp_saved_pc): Remove prototype.
3703 * config/i386/tm-go32.h (FRAME_CHAIN,
3704 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3705 (i386go32_frame_saved_pc): Remove prototype.
3706 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3707 (get_longjmp_target): Remove prototype.
3708 * i386-tdep.h: Include "osabi.h".
3709 (enum i386_abi): Removed.
3710 (enum struct_return): New enum.
3711 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3712 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3713 sc_pc_offset members.
3714 (i386_gdbarch_register_os_abi): Remove prototype.
3715 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3716 I386_SSE_NUM_REGS): New defines.
3717 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3718 I386_SSE_SIZEOF_REGS): New defines.
3719 (i386_register_name, i386_register_byte, i386_register_raw_size):
3720 New prototypes.
3721 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3722 (i386bsd_sigtramp_saved_pc): New prototype.
3723 * i386-tdep.c: Don't include "elf-bfd.h".
3724 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3725 i386_frame_chain, i386_saved_pc_after_call): Make static.
3726 (i386_frame_saved_pc): Rewrite to call architecture dependent
3727 function to deal with signal handlers. Make static.
3728 (i386go32_frame_saved_pc): Removed.
3729 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3730 Removed.
3731 (i386_get_longjmp_target): New function.
3732 (default_struct_convention, pcc_struct_convention,
3733 reg_struct_convention, valid_conventions, struct_convention): New
3734 variables.
3735 (i386_use_struct_convention): New function.
3736 (i386v4_sigtramp_saved_pc): Renamed to
3737 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3738 (i386_pc_in_sigtramp): New function.
3739 (i386_abi_names): Removed.
3740 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3741 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3742 Removed.
3743 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3744 i386_gdbarch_register_os_abi): Removed.
3745 (struct i386_abi_handler): Removed.
3746 (i386_abi_handler_list): Removed.
3747 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3748 functions.
3749 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3750 i386_nw_init_abi): New functions.
3751 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3752 Use set_gdbarch_xxx() calls instead of relying on macros for a
3753 number of calls.
3754 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3755 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3756 Register the various architecture variants defined in this file.
3757
ad2f7632
DJ
37582002-06-14 Daniel Jacobowitz <drow@mvista.com>
3759
3760 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3761 (struct main_type): Remove arg_types member. Update comments for
3762 struct field.
3763 (TYPE_ARG_TYPES): Remove.
3764 (TYPE_FN_FIELD_ARGS): Update.
3765 (smash_to_method_type): Update prototype.
3766
3767 * c-typeprint.c (cp_type_print_method_args): Take method type
3768 instead of argument list. Use new argument layout. Simplify.
3769 (c_type_print_args): Use new argument layout. Simplify.
3770 (c_type_print_base): Update call to cp_type_print_method_args.
3771 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3772 argument; use die->type instead. Update call to
3773 smash_to_method_type.
3774 (read_structure_scope): Update call to dwarf2_add_member_fn.
3775 * gdbtypes.c (allocate_stub_method): Update comment.
3776 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3777 Use new argument layout.
3778 (check_stub_method): Use new argument layout. Don't count
3779 void as an argument.
3780 (print_arg_types): Update comments. Use new argument layout.
3781 (recursive_dump_type): Don't print arg_types member.
3782 * hpread.c (hpread_read_struct_type): Use new argument layout.
3783 (fixup_class_method_type): Likewise.
3784 (hpread_type_lookup): Likewise.
3785 * stabsread.c (read_type): Update calls to read_args and
3786 smash_to_method_type.
3787 (read_args): Use new argument layout. Simplify.
3788 * valops.c (typecmp): Use new argument layout. Update parameters
3789 and comments. Simplify.
3790 (hand_function_call): Use new argument layout.
3791 (search_struct_method): Update call to typecmp.
3792 (find_overload_match): Use new argument layout.
3793
6da02953
DJ
37942002-06-13 Daniel Jacobowitz <drow@mvista.com>
3795
3796 * NEWS: Mention multithreaded debug support for gdbserver.
3797
519b2366
DJ
37982002-06-13 Daniel Jacobowitz <drow@mvista.com>
3799
3800 * MAINTAINERS: Mention NEWS.
3801
6c0d6680
DJ
38022002-06-13 Daniel Jacobowitz <drow@mvista.com>
3803
3804 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3805 (struct mips_objfile_private, compare_pdr_entries): New.
3806 (non_heuristic_proc_desc): Read the ".pdr" section if it
3807 is present.
3808
6529d2dd
AC
38092002-06-12 Andrew Cagney <ac131313@redhat.com>
3810
3811 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3812 (arm_debug): New static variable.
3813 (_initialize_arm_tdep): Add ``set debug arm'' command.
3814
26216b98
AC
38152002-06-12 Andrew Cagney <ac131313@redhat.com>
3816
3817 * Makefile.in (sim_arm_h): Define.
3818 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3819 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3820 (arm_register_sim_regno): New function, map an internal REGNUM
3821 onto a simulator register number.
3822 (arm_gdbarch_init): Set register_sim_regno.
3823
814b3ba0
AH
38242002-06-09 Aldy Hernandez <aldyh@redhat.com>
3825
3826 * MAINTAINERS: Add self.
3827
475b0867
JB
38282002-06-11 Jim Blandy <jimb@redhat.com>
3829
919d772c
JB
3830 * source.c (source_info): Mention whether the symtab has
3831 information about preprocessor macros.
3832
475b0867
JB
3833 Call the command `info macro', not `show macro'.
3834 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3835 Fix error message.
3836 (_initialize_macrocmd): Register `info_macro_command' in
3837 `infolist', not `showlist'.
3838
9e364162
DJ
38392002-06-11 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3842 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3843 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3844 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3845 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3846 unconditionally.
3847 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3848 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3849 (_initialize_mips_tdep): Remove dead code.
3850 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3851 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3852 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3853 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3854 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3855 MIPS_LAST_FP_ARG_REGNUM): Remove.
3856
23aa4c72
ML
38572002-06-11 Michal Ludvig <mludvig@suse.cz>
3858
3859 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3860 (unwind_tmp_obstack_free, parse_frame_info)
3861 (update_context, cfi_read_fp, cfi_write_fp)
3862 (cfi_frame_chain, cfi_init_extra_frame_info)
3863 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3864 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3865
70eb15a4
CV
38662002-06-11 Corinna Vinschen <vinschen@redhat.com>
3867
3868 * v850-tdep.c (v850_type_is_scalar): New function.
3869 (v850_use_struct_convention): Match current gcc implementation
3870 as close as possible.
3871 (v850_push_arguments): Fix stack_offset handling. Don't write
3872 struct_addr into register. This is done by v850_store_struct_return.
3873 (v850_extract_return_value): Care for structs.
3874 (v850_store_return_value): Ditto.
3875 (v850_store_struct_return): Actually write address.
3876
482a4d06
ML
38772002-06-11 Michal Ludvig <mludvig@suse.cz>
3878
3879 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3880 without debug information too.
3881
d855c300
AC
38822002-06-10 Andrew Cagney <ac131313@redhat.com>
3883
3884 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3885 Make multi-arch pure.
3886 * gdbarch.h, gdbarch.c: Re-generate.
3887 * arm-tdep.c (arm_print_float_info): Update.
3888 * arch-utils.h (default_print_float_info): Update.
3889 * arch-utils.c (default_print_float_info): Update.
3890 * infcmd.c (float_info): Update call.
3891
dd12a101
AC
38922002-06-10 Andrew Cagney <ac131313@redhat.com>
3893
3894 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3895 the front of the initialize list.
3896
101dcfbe
AC
38972002-06-10 Andrew Cagney <ac131313@redhat.com>
3898
3899 * infrun.c (struct inferior_status): Replace fields
3900 selected_frame_address and selected_level with field
3901 selected_frame_id.
3902 (save_inferior_status): Update. Use get_frame_id.
3903 (struct restore_selected_frame_args): Delete.
3904 (restore_selected_frame): Update. Use frame_find_by_id.
3905 (restore_inferior_status): Update.
3906
3907 * breakpoint.h (struct breakpoint): Change type of
3908 watchpoint_frame to frame_id.
3909 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3910 call to get_current_frame.
3911 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3912 get_current_frame.
3913 (watchpoint_check): Use frame_find_by_id.
3914
3915 * frame.h (record_selected_frame): Delete declaration.
3916 * stack.c (record_selected_frame): Delete function.
3917
3918 * frame.h (struct frame_id): Define.
3919 (get_frame_id): Declare.
3920 (frame_find_by_id): Declare.
3921 * frame.c (frame_find_by_id): New function.
3922 (get_frame_id): New function.
3923
304270b6
AV
39242002-06-10 Andrey Volkov <avolkov@transas.com>
3925
3926 * ser-e7kpc.c: Fix duplicated define and call of
3927 _initialize_ser_e7000pc
3928
2f2cf184
DJ
39292002-06-09 Daniel Jacobowitz <drow@mvista.com>
3930
3931 * signals/signals.c (target_signal_from_host): Fix #ifdef
3932 SIGRTMIN case.
3933 (do_target_signal_to_host): Likewise.
3934
caaa3122
DJ
39352002-06-09 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * mips-tdep.c (mips_find_abi_section): New function.
3938 (mips_gdbarch_init): Call it.
3939
6ac5df3a
MK
39402002-06-09 Mark Kettenis <kettenis@gnu.org>
3941
3942 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3943 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3944 after Andrew's 2002-06-08 gdbarch change.
3945
82ea117a
MK
39462002-06-09 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386-linux-nat.c (suppy_gregset): Don't supply
3949 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3950 register cache.
3951 (fill_gregset): Don't fetch it under the same circumstances.
3952
3c25f8c7
AC
39532002-06-09 Andrew Cagney <cagney@redhat.com>
3954
3955 * Makefile.in (callback_h): Define.
3956 (remote_sim_h): Update path to remote-sim.h.
3957 (remote-rdp.o): Add $(callback_h).
3958 (remote-sim.o): Use $(callback_h).
3959 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3960 * remote-rdp.c: Include "gdb/callback.h".
3961
1029b7fa
MK
39622002-06-09 Mark Kettenis <kettenis@gnu.org>
3963
3964 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3965 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3966
616675d3
AC
39672002-06-08 Andrew Cagney <ac131313@redhat.com>
3968
a3efda28
AC
3969 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3970 * rdi-share/serpardr.c: Ditto.
3971 * rdi-share/unixcomm.c: Ditto.
3972 * rdi-share/serdrv.c: Ditto.
3973 * rdi-share/hostchan.h: Ditto.
3974 * rdi-share/hostchan.c: Ditto.
3975 * rdi-share/host.h: Ditto.
3976 * rdi-share/devsw.c: Ditto.
3977
c5f10366
AC
3978 * objfiles.h: Change type of obj_private to void pointer.
3979 * pa64solib.c: Update copyright. Don't include "assert.h", use
3980 strcmp instead of STREQ, use LONGEST, do not use PTR
3981 * somsolib.c: Ditto.
3982
616675d3
AC
3983 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3984 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3985 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3986
e4b415d9
AC
39872002-06-08 Andrew Cagney <ac131313@redhat.com>
3988
3989 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3990 (default_get_saved_register): Delete function.
3991 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3992 generic_unwind_get_saved_register.
3993 * gdbarch.h, gdbarch.c: Re-generate.
3994
ca0d0b52
AC
39952002-06-08 Andrew Cagney <ac131313@redhat.com>
3996
3997 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3998 generic_func_frame_chain_valid.
3999 * gdbarch.h, gdbarch.c: Re-generate.
4000 * blockframe.c (generic_func_frame_chain_valid): Only check
4001 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4002 passing FP to PC_IN_CALL_DUMMY.
4003 Fix PR gdb/360.
4004
76860b5f
AC
40052002-06-08 Andrew Cagney <ac131313@redhat.com>
4006
4007 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4008 (register_gdbarch_data): Initialize init_p.
4009 (gdbarch_data): Initialize data pointer using the init function.
4010 (init_gdbarch_data): Delete function.
4011 (gdbarch_update_p): Update.
4012 (initialize_non_multiarch): Update.
4013 (struct gdbarch): Add field initialized_p.
4014 * gdbarch.h, gdbarch.c: Re-generate.
4015
8dda9770
ML
40162002-06-07 Michal Ludvig <mludvig@suse.cz>
4017
4018 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4019 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4020 better do the things actually here.
4021 * x86-64-tdep.c (x86_64_register_name2nr): New.
4022 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4023 (x86_64_gdbarch_init): Respect the above change.
4024 * x86-64-tdep.h (x86_64_register_name2nr)
4025 (x86_64_register_nr2name): Add prototypes.
4026 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4027
3d79a47c
MS
40282002-06-06 Michael Snyder <msnyder@redhat.com>
4029
7bd91a28
MS
4030 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4031 Delete extra braces and re-indent.
4032 (d10v_store_return_value): Char return values
3d79a47c
MS
4033 must be shifted over by one byte in R0.
4034 (d10v_extract_return_value): Delete extra braces, re-indent.
4035
095a4c96
EZ
40362002-06-06 Elena Zannoni <ezannoni@redhat.com>
4037
4038 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4039 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4040 (d10v_integer_to_address): Rewrite.
4041 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4042 the d10v specific functions which take care of converting to the
4043 correct space.
4044
e8a77ca4
EZ
40452002-06-06 Elena Zannoni <ezannoni@redhat.com>
4046
4047 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4048 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4049
4f2e4a4f
AC
40502002-06-02 Andrew Cagney <ac131313@redhat.com>
4051
4052 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4053 includes.
4054 * config/tm-linux.h: Ditto.
4055 * config/alpha/tm-alphalinux.h: Ditto.
4056 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4057 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4058 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4059 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4060 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4061 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4062 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4063 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4064 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4065 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4066 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4067 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4068 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4069 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4070 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4071 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4072 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4073 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4074 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4075 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4076 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4077 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4078 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4079 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4080 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4081 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4082 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4083 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4084 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4085 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4086 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4087 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4088 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4089 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4090 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4091 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4092 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4093
ae2ab2ce
AS
40942002-05-04 Aidan Skinner <aidan@velvet.net>
4095
4096 * ada-exp.tab.c: New file
4097 * ada-exp.y: New file
4098 * ada-lang.c: New file
4099 * ada-lang.h: New file
4100 * ada-lex.c: New file
4101 * ada-lex.l: New file
4102 * ada-tasks.c: New file
4103 * ada-typeprint.c: New file
4104 * ada-valprint.c: New file
4105
0ddd0135
JT
41062002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4107
4108 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4109 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4110
750fbacc
JT
41112002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4112
4113 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4114 insetead of ppc-linux-tdep.o.
4115 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4116 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4117
df94e18a
AC
41182002-06-02 Andrew Cagney <ac131313@redhat.com>
4119
4120 2002-05-07 Christian Groessler <chris@groessler.org>
4121 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4122 bit register contents for little endian hosts.
4123
1a38ab75
AC
41242002-06-01 Andrew Cagney <ac131313@redhat.com>
4125
4126 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4127 any maintainer.
4128
8b1632ac
AC
41292002-06-01 Andrew Cagney <ac131313@redhat.com>
4130
4131 * gdbarch.h: Regenerate.
4132
627054c8
AC
41332002-06-01 Andrew Cagney <ac131313@redhat.com>
4134
4135 * MAINTAINERS: Add everyone to write-after-approval list.
4136
4f460812
AC
41372002-06-01 Andrew Cagney <ac131313@redhat.com>
4138
4139 * stack.c (frame_info): Use frame_register_unwind instead of
4140 saved_regs. Mention when the SP is on the stack or in a register.
4141
4142 * frame.h (frame_register_unwind_ftype): Define. Document.
4143 (struct frame_info): Add field register_unwind and
4144 register_unwind_cache.
4145 (frame_register_unwind): Declare.
4146 (generic_unwind_get_saved_register): Declare.
4147
4148 * frame.c (frame_register_unwind): New function.
4149 (generic_unwind_get_saved_register): New function.
4150
4151 * blockframe.c (generic_call_dummy_register_unwind): New function.
4152 (frame_saved_regs_register_unwind): New function.
4153 (set_unwind_by_pc): New function.
4154 (create_new_frame): New function.
4155 (get_prev_frame): New function.
4156
de888f76
AC
41572002-05-30 Andrew Cagney <ac131313@redhat.com>
4158
4159 * a29k-share/: Delete directory.
4160 * remote-vx29k.c: Delete file.
4161
2f2c3626
JT
41622002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4163
4164 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4165 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4166
9ce5c36a
JT
41672002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4168
4169 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4170 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4171 (sparc64nbsd-nat.o)
4172 (sparcnbsd-nat.o)
4173 (sparcnbsd-tdep.o): New dependency lists.
4174 * NEWS: Note new UltraSPARC NetBSD native configuration.
4175 * configure.host (sparc64-*-netbsd*): New host.
4176 * configure.tgt (sparc-*-netbsdelf*)
4177 (sparc-*-netbsd*): Set gdb_target to nbsd.
4178 (sparc64-*-netbsd*): New target.
4179 * sparc64nbsd-nat.c: New file.
4180 * sparcnbsd-nat.c: New file.
4181 * sparcnbsd-tdep.c: New file.
4182 * sparcnbsd-tdep.h: New file.
4183 * config/sparc/nbsd.mt: New file.
4184 * config/sparc/nbsd64.mh: New file.
4185 * config/sparc/nbsd64.mt: New file.
4186 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4187 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4188 (HOST_IPC): Remove.
4189 * config/sparc/nbsdaout.mt: Remove.
4190 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4191 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4192 (HOST_IPC): Remove.
4193 * config/sparc/nbsdelf.mt: Remove.
4194 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4195 sparc-nat.c compatiblity defines.
4196 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4197 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4198 * config/sparc/tm-nbsd64.h: New file.
4199 * config/sparc/tm-nbsdaout.h: Remove.
4200 * config/sparc/xm-nbsd.h: Remove.
4201
ef3cf062
JT
42022002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4203
4204 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4205 * sparc-tdep.c: Include osabi.h.
4206 (gdbarch_tdep): Add osabi member.
4207 (_initialize_sparc_tdep): Use gdbarch_register.
4208 (sparc_gdbarch_init): Use generic OS ABI framework.
4209 (sparc_dump_tdep): New function.
4210
ee8ff470
KB
42112002-05-30 Kevin Buettner <kevinb@redhat.com>
4212
4213 * corefile.c (do_captured_read_memory_integer): Return non-zero
4214 result.
4215 (safe_read_memory_integer): Copy result of memory read when
4216 status is non-zero. Also, add comments.
4217
7b112f9c
JT
42182002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4219
4220 * Makefile.in (ppc_tdep_h): Define.
4221 (ppc-linux-nat.o)
4222 (ppc-linux-tdep.o)
4223 (rs6000-tdep.o): Use $(ppc_tdep_h).
4224 (ppc-sysv-tdep.o)
4225 (ppcnbsd-nat.o)
4226 (ppcnbsd-tdep.o): New dependency lists.
4227 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4228 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4229 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4230 (ppc_sysv_abi_broken_use_struct_convention)
4231 (ppc_sysv_abi_use_struct_convention)
4232 (ppc_sysv_abi_push_arguments): Move to...
4233 * ppc-sysv-tdep.c: ...here.
4234 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4235 * rs6000-tdep.c (process_note_abi_tag_sections)
4236 (get_elfosabi): Remove.
4237 (rs6000_gdbarch_init): Use generic OS ABI framework.
4238 (rs6000_dump_tdep): New function.
4239 (_initialize_rs6000_tdep): Use gdbarch_register.
4240 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4241 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4242 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4243 of ppc-linux-tdep.o.
4244 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4245 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4246 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4247 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4248 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4249 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4250
480dd42a
JB
42512002-05-29 Jim Blandy <jimb@redhat.com>
4252
4253 * macroscope.c (default_macro_scope): Put `void' in empty argument
4254 list.
4255
4182591f
AC
42562002-05-29 Andrew Cagney <ac131313@redhat.com>
4257
4258 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4259 * arch-utils.c: Include "sim-regno.h".
4260 * gdbarch.sh: Don't include "sim-regno.h".
4261 * gdbarch.h, gdbarch.c: Regenerate.
4262 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4263 here.
4264 * arch-utils.h (legacy_register_sim_regno): To here.
4265 * remote-sim.c (legacy_register_sim_regno): Move function from
4266 here.
4267 * arch-utils.c (legacy_register_sim_regno): To here.
4268
8238d0bf
AC
42692002-05-28 Andrew Cagney <ac131313@redhat.com>
4270
4271 * sim-regno.h: New file.
4272 * Makefile.in (sim_regno_h): Define.
4273 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4274 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4275 (legacy_register_sim_regno): New function.
4276 (one2one_register_sim_regno): New function.
4277 (gdbsim_fetch_register): Rewrite.
4278 (gdbsim_store_register): Only store a register when
4279 REGISTER_SIM_REGNO is valid.
4280 * d10v-tdep.c: Include "sim-regno.h".
4281 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4282 (d10v_ts3_register_sim_regno): Ditto.
4283 * gdbarch.sh: Include "sim-regno.h".
4284 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4285 * gdbarch.h, gdbarch.c: Regenerate.
4286 * arch-utils.h (default_register_sim_regno): Delete declaration.
4287 * arch-utils.c (default_register_sim_regno): Delete function.
4288
485721b1
JT
42892002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4290
4291 * ppcnbsd-nat.c: Rewrite.
4292 * ppcnbsd-tdep.c: New file.
4293 * ppcnbsd-tdep.h: New file.
4294 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4295 solib.o, and solib-svr4.o.
4296 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4297 nbsd-tdep.o, and corelow.o.
4298
697f244d
AC
42992002-05-28 Andrew Cagney <ac131313@redhat.com>
4300
4301 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4302 `tr' and `sed'. Mention that `broken' targets are not expected to
4303 build.
4304
f08caad1 43052002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4306
4307 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4308 Let PC point right after the prologue before looking up symbols.
4309
3139facc
MH
43102002-05-27 Martin M. Hunt <hunt@redhat.com>
4311
4312 * i386-tdep.c (i386_register_virtual_type): Return
4313 builtin_type_vec128i for SSE registers.
4314
4315 * gdbtypes.h (builtin_type_vec128i): Declare.
4316
4317 * gdbtypes.c (build_builtin_type_vec128i): New function.
4318 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4319 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4320 (build_gdbtypes): Initialize new builtin vector types.
4321 (_initialize_gdbtypes): Register new vector types with gdbarch.
4322
6e3ba3b8
JT
43232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4324
4325 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4326 since it has been multi-arch'd.
4327 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4328 Move Alpha and VAX multi-arch news entries to same section
4329 as other multi-arch news.
4330
93d5585d
JT
43312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4332
4333 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4334 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4335 static. Rename some register numbers to put them in ns32k-tdep
4336 private namespace.
4337 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4338 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4339 functions.
4340 (_initialize_ns32k_tdep): Use gdbarch_register.
4341 * ns32k-tdep.h: New file.
4342 * ns32knbsd-tdep.c: New file.
4343 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4344 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4345 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4346 REGISTER_BYTES, REGISTER_BYTE): Remove.
4347 * config/ns32k/tm-ns32k.h: New file.
4348 * config/ns32k/tm-umax.h: Remove.
4349
efb2c70e
JT
43502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4351
4352 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4353 ns32k_store_struct_return, ns32k_extract_return_value,
4354 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4355 functions.
4356 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4357 ns32k_saved_pc_after_call.
4358 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4359 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4360 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4361 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4362 ns32k_extract_struct_value_address.
4363
7bcc927b
JT
43642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4365
4366 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4367 ns32k_fix_call_dummy): New.
4368 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4369 ns32k_call_dummy_words.
4370 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4371 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4372 CALL_DUMMY_NARGS): Remove.
4373 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4374
78f9d765
JT
43752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4376
4377 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4378 ns32k_frame_saved_pc, ns32k_frame_args_address,
4379 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4380 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4381 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4382 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4383 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4384 (BREAKPOINT): Remove..
4385 (FRAME_CHAIN): Define as ns32k_frame_chain.
4386 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4387 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4388 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4389 (FRAME_FIND_SAVED_REGS): Remove.
4390 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4391 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4392 (POP_FRAME): Define as ns32k_pop_frame.
4393
f2c762e0
JT
43942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4395
4396 * ns32k-tdep.c (ns32k_register_byte_32082,
4397 ns32k_register_byte_32382, ns32k_register_raw_size,
4398 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4399 functions.
4400 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4401 ns32k_register_byte_32382.
4402 * config/ns32k/tm-umax.h: Update copyright years.
4403 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4404 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4405 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4406 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4407 (ns32k_get_enter_addr): Fix prototype.
4408
af137673
JT
44092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4410
4411 * ns32k-tdep.c: Update copyright years.
4412 (ns32k_register_name_32082): New function.
4413 (ns32k_register_name_32382): Ditto.
4414 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4415 (REGISTER_NAME): Define as ns32k_register_name_32382.
4416 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4417 (REGISTER_NAME): Define as ns32k_register_name_32082.
4418
a8bc7b56
JB
44192002-05-24 Jim Blandy <jimb@redhat.com>
4420
4421 * dwarf2read.c (free_line_header): Use xfree, not free.
4422
83a45910
JT
44232002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4426 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4427
0db71247
AC
44282002-05-23 Andrew Cagney <ac131313@redhat.com>
4429
4430 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4431
b9e5e4dd
AC
44322002-05-23 Andrew Cagney <ac131313@redhat.com>
4433
4434 From Ross Alexander at NEC Europe:
4435 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4436
de530e84
MS
44372002-05-23 Michael Snyder <msnyder@redhat.com>
4438
4439 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4440 for input, rather than parse_and_eval_address.
4441
b91b96f4
AC
44422002-05-23 Andrew Cagney <ac131313@redhat.com>
4443
4444 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4445 * Makefile.in (sim_d10v_h): Update definition.
4446
8b279e7a
AC
44472002-05-24 Andrew Cagney <cagney@redhat.com>
4448
4449 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4450 change `2002-05-22 Michael Snyder' below.
4451 (d10v_push_arguments): Ditto.
4452 (d10v_extract_return_value): Ditto.
4453
0a3d0425
JB
44542002-05-23 Jim Blandy <jimb@redhat.com>
4455
4456 * macrotab.c (check_for_redefinition): Don't complain if the new
4457 definition is the same as the previous one. Take more arguments
4458 to allow the comparison.
4459 (macro_define_object, macro_define_function): Pass more arguments
4460 to check_for_redefinition.
4461
78eac43e
MS
44622002-05-22 Michael Snyder <msnyder@redhat.com>
4463
4464 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4465 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4466 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4467 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4468 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4469 Add a temp variable to save a call (and a memory read).
4470 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4471 if possible (so that PC_IN_CALL_DUMMY will work).
4472
9bc1edb8
CV
44732002-05-22 Corinna Vinschen <vinschen@redhat.com>
4474
4475 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4476
005ef3d2
ML
44772002-05-22 Michal Ludvig <mludvig@suse.cz>
4478
4479 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4480 fde->cie_ptr.
4481 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4482 (dwarf2_build_frame_info): Add offset to fde->initial_location
4483 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4484 (execute_stack_op): Change type of 'result' from ULONGEST to
4485 CORE_ADDR.
005ef3d2 4486
fcf4f891
JT
44872002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * config/alpha/tm-nbsd.h: Include solib.h.
4490
cfef91e4
JT
44912002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4492
4493 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4494 assumptions about the host's byte order.
4495
9964235a
JT
44962002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4497
4498 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4499 to dependency list.
4500 * alphanbsd-tdep.c: Include solib-svr4.h.
4501 * shnbsd-tdep.c: Ditto.
4502
9eeef8ef
JT
45032002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4504
4505 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4506 nbsd-tdep.h to dependency list.
4507 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4508 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4509 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4510 nbsdaout.mh and nbsdelf.mh consistently.
4511 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4512 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4513 nbsdaout.mt and nbsdelf.mh consistently.
4514 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4515 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4516 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4517 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4518 a.out shared library stuff from here...
4519 * config/nm-nbsdaout.h: ...to here.
4520 * config/tm-nbsd.h: Remove.
4521 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4522 * config/arm/nbsd.mh: Remove.
4523 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4524 nbsd-tdep.o.
4525 * config/arm/nbsdaout.mh: New file.
4526 * config/arm/nbsdelf.mh: New file.
4527 * config/arm/nm-nbsdaout.h: New file.
4528 * config/i386/nbsd.mh: Remove.
4529 * config/i386/nbsd.mt: Remove.
4530 * config/i386/nbsdaout.mh: New file.
4531 * config/i386/nbsdaout.mt: New file.
4532 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4533 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4534 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4535 i386_register_u_addr): Remove.
4536 * config/i386/nm-nbsdaout.h: New file.
4537 * config/i386/nm-nbsdelf.h: Remove.
4538 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4539 (USE_STRUCT_CONVENTION): Remove.
4540 * config/i386/tm-nbsdaout.h: New file.
4541 * config/i386/tm-nbsdelf.h: Remove.
4542 * config/m68k/nbsd.mh: Remove.
4543 * config/m68k/nbsd.mt: Remove.
4544 * config/m68k/nbsdaout.mh: New file.
4545 * config/m68k/nbsdaout.mt: New file.
4546 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4547 * config/m68k/nm-nbsdaout.h: New file.
4548 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4549 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4550 * config/ns32k/nbsd.mh: Remove.
4551 * config/ns32k/nbsd.mt: Remove.
4552 * config/ns32k/nbsdaout.mh: New file.
4553 * config/ns32k/nbsdaout.mt: New file.
4554 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4555 * config/ns32k/nm-nbsdaout.h: New file.
4556 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4557 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4558 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4559 (SVR4_SHARED_LIBS): Remove.
4560 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4561 * config/sparc/nbsd.mh: Remove.
4562 * config/sparc/nbsd.mt: Remove.
4563 * config/sparc/nbsdaout.mh: New file.
4564 * config/sparc/nbsdaout.mt: New file.
4565 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4566 * config/sparc/nbsdelf.mt: New file.
4567 * config/sparc/nm-nbsdaout.h: New file.
4568 * config/sparc/nm-nbsdelf.h: Remove.
4569 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4570 * config/sparc/tm-nbsdaout.h: New file.
4571
257ce470
JT
45722002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4573
4574 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4575 mipsnbsd-tdep.c
4576 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4577
76a6d5fe
JT
45782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4579
4580 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4581 shnbsd-nat.c.
4582 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4583
45888261
JT
45842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4585
4586 * NEWS: Note new MIPS NetBSD native configuration.
4587 * configure.host (mips*-*-netbsd*): New host.
4588 * configure.tgt (mips*-*-netbsd*): New target.
4589 * mipsnbsd-nat.c: New file.
4590 * mipsnbsd-tdep.c: New file.
4591 * mipsnbsd-tdep.h: New file.
4592 * config/mips/nbsd.mh: New file.
4593 * config/mips/nbsd.mt: New file.
4594 * config/mips/nm-nbsd.h: New file.
4595 * config/mips/tm-nbsd.h: New file.
4596
70f80edf
JT
45972002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4598
4599 * Makefile.in (SFILES): Add osabi.c.
4600 (COMMON_OBS): Add osabi.o.
4601 (osabi.o): New dependency list.
4602 * osabi.c: New file.
4603 * osabi.h: New file.
4604 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4605
4606 * Makefile.in (alpha_tdep_h): Define and use instead of
4607 alpha-tdep.h.
4608 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4609 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4610 Remove.
4611 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4612 * alpha-tdep.h: Include osabi.h.
4613 (alpha_abi): Remove.
4614 (gdbarch_tdep): Use generic OS ABI framework.
4615 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4616 gdbarch_register_osabi.
4617 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4618 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4619 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4620
4621 * Makefile.in (sh_tdep_h): Add osabi.h.
4622 * sh-tdep.h (sh_osabi): Remove.
4623 (gdbarch_tdep): Use generic OS ABI framework.
4624 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4625 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4626 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4627 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4628
4629 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4630 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4631 gdbarch_register_osabi.
4632 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4633 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4634 (get_elfosabi): Rename to...
4635 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4636 ABI framework support routines.
4637 (arm_gdbarch_init): Use generic OS ABI framework.
4638 (arm_dump_tdep): Likewise.
4639 (_initialize_arm_tdep): Likewise.
4640 * arm-tdep.h: Include osabi.h.
4641 (arm_abi): Remove.
4642 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4643 osabi member.
4644 (arm_gdbarch_register_os_abi): Remove prototype.
4645 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4646 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4647
4648 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4649 * mips-tdep.c: Include osabi.h.
4650 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4651 OS ABI framework.
4652
d194345b
KH
46532002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4654
4655 * h8300-tdep.c: Fix formatting.
4656
70c6b0d1
EZ
46572002-05-20 Elena Zannoni <ezannoni@redhat.com>
4658
4659 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4660 printing vector registers.
4661
165b8e33
AC
46622002-05-19 Andrew Cagney <ac131313@redhat.com>
4663
4664 From Fernando Nasser:
4665 * remote.c (remote_async_open_1): Re-throw the exception when the
4666 connection fails.
4667 (remote_cisco_open): Ditto.
4668 (remote_open_1): Ditto.
4669
36918e70
AC
46702002-05-19 Andrew Cagney <ac131313@redhat.com>
4671
4672 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4673 (remote_start_remote): Add uiout parameter. Pass through to
4674 remote_start_remote_dummy.
4675 (remote_open_1): Use catch_exception instead of catch_errors.
4676 (remote_async_open_1): Ditto.
4677 (remote_cisco_open): Ditto.
4678
ae44c0c4
AC
46792002-05-19 Andrew Cagney <ac131313@redhat.com>
4680
4681 * remote.c (remote_start_remote): Replace PTR with void pointer.
4682 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4683 static.
4684
8efe637d
AC
46852002-05-18 Andrew Cagney <ac131313@redhat.com>
4686
4687 * gdb_indent.sh: Allow the script to be run in the sim directory.
4688
2f1b5984
MK
46892002-05-18 Mark Kettenis <kettenis@gnu.org>
4690
f0f625e2
MK
4691 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4692 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4693
2f1b5984
MK
4694 * corelow.c (core_open): Only call set_gdbarch_from_file if
4695 exec_bfd is NULL.
4696
fc974602
AV
46972002-05-17 Andrey Volkov <avolkov@transas.com>
4698
4699 * h8300-tdep.c: Add support of EXR register
4700 * config/h8300/tm-h8300.h: Ditto.
4701
906709f4
AV
47022002-05-17 Andrey Volkov <avolkov@transas.com>
4703
4704 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4705
6e591d68
AV
47062002-05-17 Andrey Volkov <avolkov@transas.com>
4707
4708 * h8300-tdep.c: Change literal regnums to REGNO.
4709
84f0252a
JB
47102002-05-17 Jim Blandy <jimb@redhat.com>
4711
e0e9281e
JB
4712 * NEWS: Note addition of macro support.
4713
84f0252a
JB
4714 Expand preprocessor macros in C expressions.
4715 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4716 (scan_macro_expansion, scanning_macro_expansion,
4717 finished_macro_expansion): New function declarations.
4718 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4719 variable declarations.
4720 * parser-defs.h (expression_context_pc): New declaration.
4721 * parse.c (expression_context_pc): New variable.
4722 (parse_exp_1): Set expression_context_pc, as well as
4723 expression_context_block.
4724 * c-exp.y (yylex): If we're not already reading the result of a
4725 macro expansion, try to macro-expand the next token. When we're
4726 done scanning a macro expansion, switch back to the mainline text.
4727 Commas and `if's in a macro's expansion don't terminate the input.
4728 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4729 (macro_original_text, macro_expanded_text,
4730 expression_macro_lookup_func, expression_macro_lookup_baton): New
4731 variables.
4732 (scan_macro_expansion, scanning_macro_expansion,
4733 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4734 c_preprocess_and_parse): New functions.
4735 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4736 c_preprocess_and_parse, instead of c_parse.
4737 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4738 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4739
1c509ca8
JR
4740Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4741
4742 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4743 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4744 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4745
2250ee0c
CV
47462002-05-17 Corinna Vinschen <vinschen@redhat.com>
4747
4748 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4749
ab3b8126
JT
47502002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4751
4752 * Makefile.in (sh_tdep_h): Define and use.
4753 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4754 register enum): Move to...
4755 * * sh-tdep.h: ...here.
4756 * sh-tdep.c: Include sh-tdep.h.
4757 * sh3-rom.c: Likewise.
4758 * shnbsd-tdep.c: Likewise.
4759
ed9d4749
MS
47602002-05-16 Michael Snyder <msnyder@redhat.com>
4761
4762 * arm-tdep.c: Spelling fix in comment.
4763
2e276125
JB
47642002-05-16 Jim Blandy <jimb@redhat.com>
4765
6821892e
JB
4766 Add commands for manually expanding macros and showing their
4767 definitions.
4768 * macrocmd.c, macroscope.c, macroscope.h: New files.
4769 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4770 (macroscope_h): New variable.
4771 (HFILES_NO_SRCDIR): Add macroscope.h.
4772 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4773 (macroscope.o, macrocmd.o): New rules.
4774
2e276125
JB
4775 Teach the Dwarf 2 reader to read macro information.
4776 * dwarf2read.c: #include "macrotab.h".
4777 (dwarf_macinfo_buffer): New variable.
4778 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4779 dwarf_macinfo_size.
4780 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4781 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4782 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4783 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4784 dwarf2_macro_spaces_in_definition): New complaints.
4785 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4786 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4787 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4788 the partial symbol table.
4789 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4790 from what's recorded in the partial symbol table.
4791 (read_file_scope): If the compilation unit has a
4792 `DW_AT_macro_info' attribute, read its macro information.
4793 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4794
2f53fe6c
DJ
47952002-05-16 Daniel Jacobowitz <drow@mvista.com>
4796
4797 Fix PR gdb/546
4798 * ser-tcp.c: Don't include <netinet/udp.h>.
4799
2be99286
SC
48002002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4801
4802 * MAINTAINERS: Update my email address.
4803
c9af212b 48042002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4805
4806 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4807 include file of the same name.
4808
bf5f1a52
CV
48092002-05-16 Corinna Vinschen <vinschen@redhat.com>
4810
4811 * configure.tgt: Mark v850 as multi-arched.
4812 * config/v850/tm-v850.h: Remove file.
4813 * config/v850/v850.mt: Eliminate TM_FILE.
4814
435e042a
CV
48152002-05-16 Corinna Vinschen <vinschen@redhat.com>
4816
4817 * v850-tdep.c: Full multi-arch.
4818 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4819 Define GDB_MULTI_ARCH to 2.
4820
9819c6c8
PM
48212002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4822
4823 * p-exp.y (current_type): New static variable.
4824 Carries the type of the expression at the position that is parsed.
4825 (push_current_type, pop_current_type): Two new functions. Used
4826 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4827 (search_field): New static variable. Set to one after parsing a point
4828 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4829 (FIELDNAME): New token. After a point only a token belonging to
4830 current_type type definition is allowed.
4831 (all over token rules): reset and change current_type according
4832 to rules.
4833 (exp '[' rule): insert implicit array index field if
4834 exp is a pascal string type.
4835
3a06899a
CV
48362002-05-16 Corinna Vinschen <vinschen@redhat.com>
4837
4838 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4839 frame info. Use frame_info's saved_regs instead of matching member
4840 in extra_frame_info throughout.
4841 (v850_frame_init_saved_regs): New function.
4842 (v850_init_extra_frame_info): Move most functionality into
4843 v850_frame_init_saved_regs().
4844 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4845 (v850_frame_find_saved_regs): Remove declaration.
4846 (FRAME_FIND_SAVED_REGS): Remove definition.
4847 (v850_frame_init_saved_regs): Add declaration.
4848 (FRAME_INIT_SAVED_REGS): Add definition.
4849
6ed14b0e
CV
48502002-05-16 Corinna Vinschen <vinschen@redhat.com>
4851
4852 * v850-tdep.c: Begin multi-arch'ing v850.
4853 (v850_target_architecture_hook): Remove function.
4854 (v850_gdbarch_init): New function. Add code previously in
4855 v850_target_architecture_hook().
4856 (_initialize_v850_tdep): Don't set target_architecture_hook.
4857 Call register_gdbarch_init() instead.
4858
42725910
DJ
48592002-05-16 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4862 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4863 (fixup_class_method_type): Likewise.
4864
99d9066e
JB
48652002-05-15 Jim Blandy <jimb@redhat.com>
4866
4867 Add macro structures to GDB's symbol tables. Nobody puts anything
4868 in them yet.
4869 * symtab.h (struct symtab): New member: `macro_table'.
4870 * buildsym.h (pending_macros): New global variable.
4871 * buildsym.c: #include "macrotab.h".
4872 (buildsym_init): Initialize `pending_macros'.
4873 (end_symtab): If we found macro information while reading a CU's
4874 debugging info, do build a symtab structure for it. Make the
4875 symtab point to the macro information, and clear the
4876 `pending_macros' pointer which held it while we were reading the
4877 debug info.
4878 (really_free_pendings): Free any pending macro table.
4879 * objfiles.h (struct objfile): New member: `macro_cache'.
4880 * objfiles.c (allocate_objfile): Set allocate and free functions
4881 for the macro cache's objstack.
4882 (free_objfile): Empty the macro cache's obstack.
4883 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4884 set new allocate and free functions for it.
4885 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4886 free functions for the macro cache's objstack. (Why is this
4887 function building its own objfile?)
4888 * symmisc.c (print_objfile_statistics): Print statistics on the
4889 macro bcache.
4890 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4891
c899585b
RE
48922002-05-15 Richard Earnshaw <rearnsha@arm.com>
4893
4894 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4895 (REGISTER_U_ADDR): Delete definition.
4896 (arm_register_u_addr): Delete declaration.
4897
a6cdd8c5
RE
48982002-05-15 Richard Earnshaw <rearnsha@arm.com>
4899
4900 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4901 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4902
c97dcfc7
AC
49032002-05-14 Andrew Cagney <ac131313@redhat.com>
4904
4905 * regcache.c (register_valid): Revise comments refering to "Not
4906 available" and "unavailable".
4907 * frame.c (frame_register_read): Ditto.
4908 * findvar.c (value_of_register): Ditto.
4909
93021b7d
AC
49102002-05-15 Andrew Cagney <cagney@redhat.com>
4911
4912 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4913 (remote-sim.o): Update dependencies.
4914 (d10v-tdep.o): Specify dependencies.
4915 (sim_d10v_h): Define.
4916
a86bc61c
JB
49172002-05-14 Jim Blandy <jimb@redhat.com>
4918
4919 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4920 * macrotab.c (macro_lookup_inclusion, find_definition,
4921 new_macro_table): Same.
4922
4923 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4924 not `! strcmp ()'. This is a dubious improvement.
4925 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4926
4927 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4928 although it's not necessary, to avoid a warning.
4929
2fdde8f8
DJ
49302002-05-14 Daniel Jacobowitz <drow@mvista.com>
4931
4932 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4933 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4934 TYPE_INSTANCE_FLAGS.
4935 (struct main_type): New.
4936 (struct type): Move most members to struct main_type. Change
4937 cv_type and as_type to new type_chain member. Add instance_flags.
4938 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4939 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4940 (finish_cv_type): Remove prototype.
4941 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4942 Set TYPE_CHAIN.
4943 (alloc_type_instance): New function.
4944 (smash_type): New function.
4945 (make_pointer_type, make_reference_type, make_function_type)
4946 (smash_to_member_type, smash_to_method_type): Call smash_type.
4947 (make_qualified_type): New function.
4948 (make_type_with_address_space): Call make_qualified_type.
4949 (make_cv_type): Likewise.
4950 (finish_cv_type): Remove unnecessary function.
4951 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4952 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4953 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4954 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4955 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4956 * hpread.c (hpread_read_struct_type): Likewise.
4957 * stabsread.c (read_struct_type): Likewise.
4958
843fedf4
EZ
49592002-05-14 Elena Zannoni <ezannoni@redhat.com>
4960
4961 * configure.tgt: Add a catch all sh* target, for cases like
4962 sh[2,3,4]-elf and sh-hms.
4963
05a6c72c
KS
49642002-05-14 Keith Seitz <keiths@redhat.com>
4965
4966 * event-loop.c (create_file_handler): Don't do anything but
4967 update data when we are given a fd which we are already
4968 monitoring.
4969
5d085aaf
ML
49702002-05-14 Michal Ludvig <mludvig@suse.cz>
4971
4972 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4973 (update_context): Use __func__ in warnings.
4974
9db8d71f
DJ
49752002-05-14 Daniel Jacobowitz <drow@mvista.com>
4976
4977 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4978 and tcp_close to net_open and net_close.
4979 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4980 using UDP if requested. Don't try to disable Nagle on UDP
4981 sockets.
4982 * remote.c (remote_serial_open): New function. Warn about UDP.
4983 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4984
5dbc6baa
EZ
49852002-05-13 Elena Zannoni <ezannoni@redhat.com>
4986
4987 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4988
cc3023f7
EZ
49892002-05-13 Elena Zannoni <ezannoni@redhat.com>
4990
4991 * configure.tgt: Remove sh-hms target.
4992 * MAINTAINERS: Don't list sh-hms as a separate target.
4993
ec2bcbe7
JB
49942002-05-13 Jim Blandy <jimb@redhat.com>
4995
4996 Add first preprocessor macro-expansion files.
4997 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4998 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4999 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5000 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5001 (COMMON_OBS): Add macrotab.o, macroexp.o.
5002 (macroexp.o, macrotab.o): New rules.
5003
6d531722
AC
50042002-05-13 Andrew Cagney <ac131313@redhat.com>
5005
5006 * config/m88k/tm-m88k.h: Update copyright.
5007 (m88k_target_write_pc): Declare
5008 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5009 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5010 (SHIFT_INST_REGS): Update definition.
5011 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5012 using old definition of TARGET_WRITE_PC.
5013 * regcache.c (generic_target_write_pc): Delete code handling
5014 NNPC_REGNUM.
5015 * gdbarch.sh (NNPC_REGNUM): Delete.
5016 * gdbarch.h, gdbarch.c: Regenerate.
5017
3e3f2739
RE
50182002-05-13 Richard Earnshaw <rearnsha@arm.com>
5019
5020 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5021 builtin reg number.
5022
0004e5a2
DJ
50232002-05-13 Daniel Jacobowitz <drow@mvista.com>
5024
5025 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5026 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5027 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5028 access macros.
5029 * c-typeprint.c (cp_type_print_method_args): Likewise.
5030 (c_type_print_args): Likewise.
5031 * d10v-tdep.c (d10v_push_arguments): Likewise.
5032 (d10v_extract_return_value): Likewise.
5033 * expprint.c (print_subexp): Likewise.
5034 * gdbtypes.c (lookup_primitive_typename): Likewise.
5035 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5036 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5037 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5038 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5039 (TYPE_VECTOR): Likewise.
5040 * hpread.c (hpread_read_struct_type)
5041 (fix_static_member_physnames, fixup_class_method_type)
5042 (hpread_type_lookup): Likewise.
5043 * mdebugread.c (parse_symbol, parse_type): Likewise.
5044 * p-lang.c (is_pascal_string_type): Likewise.
5045 * valops.c (hand_function_call): Likewise.
5046 * x86-64-tdep.c (classify_argument): Likewise.
5047
5048 * hpread.c (hpread_read_function_type)
5049 (hpread_read_doc_function_type): Call replace_type.
5050 * dstread.c (create_new_type): Delete.
5051 (decode_dst_structure, process_dst_function): Call alloc_type.
5052 Use type access macros.
5053
dff95cc7
MK
50542002-05-12 Mark Kettenis <kettenis@gnu.org>
5055
5056 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5057 the're not supported by the current architecture.
5058 (i387_fill_fxsave): Likewise.
5059
bbcd32ad
FF
50602002-05-12 Fred Fish <fnf@redhat.com>
5061
5062 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5063 sect_index_xxx members to index the first slot in section_offsets
5064 if all of the section_offsets are zero.
5065
89cf4787
MK
50662002-05-12 Mark Kettenis <kettenis@gnu.org>
5067
5068 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5069 checked in with last change.
5070
1f77ffc5
MK
50712002-05-12 Mark Kettenis <kettenis@gnu.org>
5072
5073 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5074 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5075 config.sub.
5076
89b8b4a9
DJ
50772002-05-12 Daniel Jacobowitz <drow@mvista.com>
5078
5079 * Makefile.in: Update dependencies.
5080
14a5e767
AC
50812002-05-11 Andrew Cagney <ac131313@redhat.com>
5082
5083 * language.c (local_hex_string_custom): Simplify. Do not depend
5084 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5085
5086 * memattr.c (mem_info_command): Replace calls to
5087 longest_local_hex_string and longest_local_hex_string_custom.
5088 * buildsym.c (make_blockvector): Ditto.
5089 * solib.c (info_sharedlibrary_command): Ditto.
5090 * tracepoint.c (tracepoints_info): Ditto.
5091 * symtab.c (print_msymbol_info): Ditto.
5092
5093 * language.c (local_hex_string): Delete.
5094 (local_hex_string_custom): Delete.
5095 (longest_local_hex_string): Rename to local_hex_string.
5096 (longest_local_hex_string_custom): Rename to
5097 local_hex_string_custom.
5098 * language.h (local_hex_string): Change parameter type to LONGEST.
5099 (local_hex_string_custom): Ditto.
5100 (longest_local_hex_string): Delete declaration.
5101 (longest_local_hex_string_custom): Ditto.
5102
5103 * solib.c: Update copyright.
5104 * memattr.c: Update copyright.
5105
13d01224
AC
51062002-05-11 Andrew Cagney <ac131313@redhat.com>
5107
5108 * arch-utils.h (legacy_register_to_value): Declare.
5109 (legacy_value_to_register): Declare.
5110 (legacy_convert_register_p): Declare.
5111 * arch-utils.c (legacy_register_to_value): New function.
5112 (legacy_value_to_register): New function.
5113 (legacy_convert_register_p): New function.
5114
5115 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5116 (VALUE_TO_REGISTER): Define.
5117 (CONVERT_REGISTER_P): Define.
5118 * gdbarch.h, gdbarch.c: Regenerate.
5119
5120 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5121 VALUE_TO_REGISTER.
5122 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5123 CONVERT_REGISTER_P.
5124
4a1970e4
DJ
51252005-05-11 Daniel Jacobowitz <drow@mvista.com>
5126 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5127
5128 * Makefile.in: Update dependencies for valops.c.
5129 * valops.c: Include "gdb_assert.h".
5130 (typecmp): Skip THIS parameter to methods.
5131 (find_method_list): Remove static_memfuncp argument,
5132 update callers. Check for stub methods.
5133 (find_value_oload_method_list): Don't set *static_memfuncp.
5134 (find_overload_match): Don't check for stub methods. Assert
5135 that methods are not stubbed. Handle static methods.
5136 (value_find_oload_method_list): Remove static_memfuncp argument.
5137 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5138 to the argument list for static stub methods.
5139 * value.h (value_find_oload_method_list): Update prototype.
5140
b2e75d78
AC
51412002-05-11 Andrew Cagney <ac131313@redhat.com>
5142
5143 * arch-utils.h (generic_register_size): Declare.
5144 (generic_register_raw_size, generic_register_virtual_size): Delete
5145 declarations.
5146 * arch-utils.c (generic_register_raw_size): Delete.
5147 (generic_register_size): New function.
5148 (generic_register_virtual_size): Delete.
5149
5150 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5151 default generic_register_size.
5152 * gdbarch.h, gdbarch.c: Re-generate.
5153
5154 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5155 register_virtual_size.
5156 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5158
451fbdda
AC
51592002-05-11 Andrew Cagney <ac131313@redhat.com>
5160
5161 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5162 * gdbarch.h, gdbarch.c: Regenerate.
5163 * gnu-v3-abi.c: Update copyright.
5164 (vtable_address_point_offset): Update.
5165 (gnuv3_rtti_type): Update.
5166 (gnuv3_baseclass_offset): Update.
5167 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5168 (init_fetch_link_map_offsets): Update.
5169 * remote.c (get_remote_state): Update.
5170
6d2f5cea
DJ
51712002-05-11 Daniel Jacobowitz <drow@mvista.com>
5172
5173 * TODO: Remove value_headof/value_from_vtable_info comment.
5174 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5175 * values.c (value_headof, value_from_vtable_info): Delete.
5176 * value.h (value_from_vtable_info): Delete prototype.
5177
d2324da4
AC
51782002-05-11 Andrew Cagney <ac131313@redhat.com>
5179
5180 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5181 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5182 $(gdb_regex_h).
5183 (gdb_assert_h): Define.
5184 (gdb_wait_h): Define.
5185 (gdb_regex_h): Define.
5186
5c717440
DJ
51872002-05-11 Daniel Jacobowitz <drow@mvista.com>
5188
5189 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5190 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5191
6c7861b3
JT
51922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5193
5194 * nbsd-tdep.c: Fix comment.
5195
ea5bc2a6
JT
51962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5197
5198 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5199 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5200 (nbsd-tdep.o): New dependency list.
5201 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5202 nbsd-tdep.h.
5203 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5204 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5205 * nbsd-tdep.c: New file.
5206 * nbsd-tdep.h: New file.
5207 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5208 nbsd-tdep.h.
5209 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5210 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5211 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5212 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5213
b28da865
JT
52142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5215
5216 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5217 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5218 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5219 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5220 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5221 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5222
4b8ff1fa
JT
52232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5224
5225 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5226 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5227 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5228 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5229 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5230 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5231 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5232
dfe6eb1f
JT
52332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5234
5235 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5236 fetch_elfcore_registers to...
5237 * i386nbsd-tdep.c: ...here.
5238 (i386nbsd_use_struct_convention): Rename to...
5239 (i386nbsd_aout_use_struct_convention): ...this.
5240 (i386nbsd_supply_reg): New function.
5241 (i386nbsd_fill_reg): New function.
5242 (fetch_core_registers): Use i386nbsd_supply_reg.
5243 (fetch_elfcore_registers): Likewise.
5244 (_initialize_i386nbsd_tdep): New function.
5245 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5246 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5247 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5248 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5249 (i386nbsd_aout_use_struct_convention): ...this.
5250
20cb8cda
JT
52512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5252
5253 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5254 (store_inferior_registers): Use shnbsd_fill_reg.
5255 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5256 sh_nbsd_supply_register): Collapse into...
5257 (shnbsd_supply_reg): ...this.
5258 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5259 (shnbsd_fill_reg): ...this.
5260 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5261 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5262 (fetch_core_registers): Use shnbsd_supply_reg.
5263 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5264 (sh_nbsd_core_fns): Rename to...
5265 (shnbsd_core_fns): ...this.
5266 (sh_nbsd_elfcore_fns): Rename to...
5267 (shnbsd_elfcore_fns): ...this.
5268 (sh_nbsd_init_abi): Rename to...
5269 (shnbsd_init_abi): ...this.
5270 (_initialize_sh_nbsd_tdep): Rename to...
5271 (_initialize_shnbsd_tdep): ...this.
5272 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5273 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5274 sh_nbsd_fill_register): Remove prototypes.
5275 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5276
e750d25e
JT
52772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5278
5279 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5280 (i387-nat.o): Delete dependency list.
5281 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5282 (x86-64-linux-nat.o): Likewise.
5283 * i387-nat.c: Delete file, moving contents to...
5284 * i387-tdep.c: ...here.
5285 * i387-nat.h: Rename...
5286 * i387-tdep.h: ...to this.
5287 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5288 * i386-linux-nat.c: Likewise.
5289 * i386bsd-nat.c: Likewise.
5290 * i386gnu-nat.c: Likewise.
5291 * i386nbsd-nat.c: Likewise.
5292 * i386v4-nat.c: Likewise.
5293 * x86-64-linux-nat.c: Likewise.
5294 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5295 * config/i386/go32.mh (NATDEPFILES): Likewise.
5296 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5297 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5298 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5299 * config/i386/linux.mh (NATDEPFILES): Likewise.
5300 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5301 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5302 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5303 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5304
1aee598a
JT
53052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5306
5307 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5308 (alphanbsd-nat.o): Remove dependency list.
5309 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5310 * alphanbsd-nat.c: Delete. Contents moved to...
5311 * alphanbsd-tdep.c: ...here.
5312 (_initialize_alphanbsd_tdep): Register core functions.
5313 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5314
12bcb0fe
JT
53152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5316
5317 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5318 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5319 (alphanbsd-nat.o): Likewise.
5320 (alphabsd-tdep.o): New dependency list.
5321 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5322 (fill_gregset): Use alphabsd_fill_reg.
5323 (supply_fpregset): Use alphabsd_supply_fpreg.
5324 (fill_fpregset): Use alphabsd_fill_fpreg.
5325 (fetch_inferior_registers): Use struct reg and struct fpreg
5326 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5327 and alphabsd_supply_fpreg.
5328 (store_inferior_registers): Use struct reg and struct fpreg
5329 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5330 and alphabsd_fill_fpreg.
5331 * alphabsd-tdep.c: New file.
5332 * alphabsd-tdep.h: New file.
5333 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5334 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5335 alphabsd_supply_fpreg.
5336 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5337 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5338
361d1df0
EC
53392002-05-11 Eric Christopher <echristo@redhat.com>
5340
5341 * mips-tdep.c (mips_double_register_type): Fix thinko.
5342 (mips_single_register_type): Ditto.
5343 * MAINTAINERS: Add self.
5344
92dd7cee
MK
53452002-05-11 Mark Kettenis <kettenis@gnu.org>
5346
5347 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5348 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5349 right thing on architectures with different endianness and/or
5350 integer sizes.
5351
e27da16d
JT
53522002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5353
5354 From Christian Limpach <chris@Pin.LU>
5355 * configure.in: Change sed expression which comments out
5356 NATDEPFILES to also comment out continuation lines.
5357 * configure: Regenerate.
5358
ddde02bd
EZ
53592002-05-10 Elena Zannoni <ezannoni@redhat.com>
5360
5361 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5362 big patch.
5363
1c922164
EZ
53642002-05-10 Elena Zannoni <ezannoni@redhat.com>
5365
5366 * sh-tdep.c: Include correct file.
5367
283150cd
EZ
53682002-05-10 Elena Zannoni <ezannoni@redhat.com>
5369
5370 New support for sh64-elf (sh5) target.
5371
5372 * configure.tgt: For sh64-elf target, default to sh-elf.
5373
5374 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5375 (struct gdbarch_tdep): Add new fields for new registers and ABI
5376 info.
361d1df0 5377
283150cd
EZ
5378 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5379 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5380 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5381 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5382 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5383 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5384 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5385 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5386 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5387 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5388 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5389 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5390 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5391 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5392 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5393 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5394 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5395 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5396 sign_extend, sh64_nofp_frame_init_saved_regs,
5397 sh64_init_extra_frame_info, sh64_get_saved_register,
5398 sh64_extract_struct_value_address, sh64_pop_frame,
5399 sh64_push_arguments, sh64_extract_return_value,
5400 sh64_store_return_value, sh64_show_media_regs,
5401 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5402 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5403 sh_sh64_register_virtual_type,
5404 sh_sh64_register_convert_to_virtual,
5405 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5406 sh64_register_read, sh64_pseudo_register_write,
5407 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5408 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5409 sh64_do_pseudo_register, sh_compact_do_registers_info,
5410 sh64_do_registers_info, sh_gdbarch_init): New functions.
5411
3117ed25
EZ
54122002-05-10 Elena Zannoni <ezannoni@redhat.com>
5413
5414 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5415
2654e6d4
DJ
54162002-05-10 Daniel Jacobowitz <drow@mvista.com>
5417
5418 * linespec.c (decode_line_1): Check for a double quote after
5419 a filename correctly.
5420
9ab3e532
JB
54212002-05-10 Jim Blandy <jimb@redhat.com>
5422
5423 Properly track the size of the current objfile's .debug_line section.
5424 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5425 (DWARF_LINE_SIZE): New macro.
5426 (dwarf2_build_psymtabs_hard): Record the line section's size in
5427 the partial symbol table.
5428 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5429 symbol table.
5430
126fa72d
PS
54312002-05-10 Petr Sorfa <petrs@caldera.com>
5432
5433 * ia64-tdep.c: Handle breakpoints on L instruction type
5434 in MLX instruction bundle by moving the breakpoint to
5435 the third slot (X instruction type) as L holds only data.
5436
1f077a3e
KB
54372002-05-10 Kevin Buettner <kevinb@redhat.com>
5438
5439 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5440 (process_one_symbol): Complain about discarding local symbols
5441 due to a misplaced N_LBRAC entry.
5442
8120c9d5 54432002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5444
5445 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5446 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5447 decrease the depth we are at, in the case of templates.
361d1df0 5448
67b2c998
DJ
54492002-05-09 Daniel Jacobowitz <drow@mvista.com>
5450
5451 * mips-tdep.c (mips_float_register_type): New function.
5452 (mips_double_register_type): New function.
5453 (mips_print_register): Use them.
5454 (do_fp_register_row): Likewise.
5455
fd326606
DJ
54562002-05-09 Daniel Jacobowitz <drow@mvista.com>
5457
6609d9af 5458 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5459 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5460 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5461
bef35864
MS
54622002-05-09 Michael Snyder <msnyder@redhat.com>
5463
5464 * remote-rdp.c (remote_rdp_can_run): Remove.
5465
c55a3f73
TT
54662002-05-09 Tom Tromey <tromey@redhat.com>
5467
5468 * jv-valprint.c (java_val_print): Handle `char' as a special case
5469 of TYPE_CODE_INT.
5470
b8d5e71d
MS
54712002-05-09 Michael Snyder <msnyder@redhat.com>
5472
5473 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5474 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5475 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5476 str r(0123),[sp,#nn].
361d1df0 5477 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5478 order-independent by placing it in a loop.
5479
e2cd42dd
MS
54802002-05-06 Michael Snyder <msnyder@redhat.com>
5481
5482 * stabsread.c (read_type): Add recognition for new attribute:
5483 "@V;" means that an array type is actually a vector.
5484 This is analogous to the vector flag that's been added to dwarf2.
5485
3ce1502b
MK
54862002-05-09 Mark Kettenis <kettenis@gnu.org>
5487
5488 * i386-tdep.h (i386_abi): New enum.
5489 (struct gdbarch_tdep): Replace os_ident member with abi.
5490 (i386_gdbarch_register_os_abi): New prototype.
5491 * i386-tdep.c (i386_abi_names): New array.
5492 (process_note_abi_tag_sections): Removed.
5493 (process_note_sections): New function.
5494 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5495 (struct i386_abi_handler): New struct.
5496 (i386_abi_handler_list): New variable.
5497 (i386_gdbarch_register_os_abi): New function.
5498 (i386_gdbarch_init): Adapt for the changes given above.
5499
084c156a
DJ
55002002-05-08 Daniel Jacobowitz <drow@mvista.com>
5501
5502 * gregset.h: Say "GNU/Linux".
5503
6599f021
EZ
55042002-05-08 Elena Zannoni <ezannoni@redhat.com>
5505
5506 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5507 (build_gdbtypes): Build builtin_type_v2_float.
5508 (_initialize_gdbtypes): Register new builtin type.
5509
40af4b0c
AC
55102002-05-08 Andrew Cagney <ac131313@redhat.com>
5511
5512 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5513 (clear_gdbarch_swap): New function.
5514 (initialize_non_multiarch): Call.
5515 (gdbarch_update_p): Before calling init(), swap out and clear the
5516 existing architecture.
5517 * gdbarch.c: Regenerate.
5518
4fe84f46
JT
55192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5520
5521 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5522 alphanbsd-tdep.c.
5523
4015edd1
JT
55242002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5525
5526 * sh-nbsd-nat.c: Rename to...
5527 * shnbsd-nat.c: ...this.
5528 * sh-nbsd-tdep.c: Rename to...
5529 * shnbsd-tdep.c: ...this.
5530 * sh-nbsd-tdep.h: Rename to...
5531 * shnbsd-tdep.h: ...this.
5532 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5533 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5534
0e2bd219
RE
55352002-05-08 Richard Earnshaw <rearnsha@arm.com>
5536
5537 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5538 concatenation for command help messages.
5539
13a38d45
JT
55402002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5541
5542 * NEWS: Note new sh*-*-netbsdelf* configuration.
5543 * configure.host: Set gdb_host_cpu to sh for all sh*.
5544 (sh*-*-netbsdelf*): New host.
5545 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5546 (sh*-*-netbsdelf*): New target.
5547 * sh-nbsd-nat.c: New file.
5548 * sh-nbsd-tdep.c: New file.
5549 * sh-nbsd-tdep.h: New file.
5550 * config/sh/nbsd.mh: New file.
5551 * config/sh/nbsd.mt: New file.
5552 * config/sh/nm-nbsd.h: New file.
5553 * config/sh/tm-nbsd.h: New file.
5554
d658f924
JT
55552002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5556
5557 * sh-tdep.c (sh_osabi_names): Declare.
5558 (process_note_abi_tag_sections): New function.
5559 (get_elfosabi): Ditto.
5560 (sh_gdbarch_register_os_abi): Ditto.
5561 (sh_dump_tdep): Ditto.
5562 _initialize_sh_tdep): Use gdbarch_register to register
5563 sh_gdbarch_init and sh_dump_tdep.
5564 * config/sh/tm-sh.h (sh_osabi): Declare.
5565 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5566
848cfffb
AC
55672002-05-07 Andrew Cagney <ac131313@redhat.com>
5568
5569 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5570 (thumb_scan_prologue): Ditto.
5571 (arm_find_callers_reg): Ditto.
5572 (arm_frame_chain): Ditto.
5573 (arm_init_extra_frame_info): Ditto.
5574 (arm_frame_saved_pc): Ditto.
5575 (arm_pop_frame): Ditto.
5576 (arm_push_return_address): New function.
5577 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5578 call_dummy_location, call_dummy_breakpoint_offset_p,
5579 call_dummy_breakpoint_offset, call_dummy_p,
5580 call_dummy_stack_adjust_p, call_dummy_words,
5581 sizeof_call_dummy_words, call_dummy_start_offset,
5582 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5583 call_dummy_address, push_return_address and push_dummy_frame for
5584 generic dummy frames.
5585
e7d717c0
JT
55862002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5587
5588 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5589 size computation for alloca.
5590 (sh_fp_frame_init_saved_regs): Likewise.
5591
7bbcf283
RE
55922002-05-07 Richard Earnshaw <rearnsha@arm.com>
5593
5594 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5595 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5596 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5597 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5598 * remote-rdp.c (remote_rdp_fetch_register): Use
5599 ARM_MAX_REGISTER_RAW_SIZE.
5600 (remote_rdp_store_register): Likewise.
5601
4657573b
ML
56022002-05-07 Michal Ludvig <mludvig@suse.cz>
5603
361d1df0 5604 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5605 added default labels to switch {} statements.
5606 * x86-64-tdep.c: Ditto.
5607 * x86-64-linux-nat.c: Ditto.
5608
010f3b2f
JT
56092002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5610
5611 * solib.h: Protect against multiple inclusion.
5612
debd256d
JB
56132002-05-06 Jim Blandy <jimb@redhat.com>
5614
9ab3e532
JB
5615 Add first preprocessor macro-expansion files.
5616 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5617 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5618 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5619 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5620 (COMMON_OBS): Add macrotab.o, macroexp.o.
5621 (macroexp.o, macrotab.o): New rules.
5622
debd256d
JB
5623 Separate the job of reading the line number info statement program
5624 header (...expialidocious) out into its own function.
5625 * dwarf2read.c (struct line_head, struct filenames, struct
5626 directories): Replace with...
5627 (struct line_header): New structure, containing the full
5628 contents of the statement program header, including the
5629 include directory and file name tables.
5630 (read_file_scope): If we have line number info, instead of just
5631 calling dwarf_decode_lines to do all the work, call
5632 dwarf_decode_line_header first to get a `struct line_header'
5633 containing the data in the statement program header, and then
5634 pass that to dwarf_decode_lines, which will pick up where that
5635 left off. Be sure to clean up the `struct line_header' object.
5636 (dwarf_decode_line_header, free_line_header, add_include_dir,
5637 add_file_name): New functions.
5638 (dwarf_decode_lines): Move all the code to read the statement
5639 program header into dwarf_decode_line_header. Take the line
5640 header it built as the first argument, instead of the offset to
5641 the compilation unit's line number info. Use the new `struct
5642 line_header' type instead of the old structures. No need to do
5643 cleanups here now, since we don't allocate anything.
5644 (dwarf2_statement_list_fits_in_line_number_section,
5645 dwarf2_line_header_too_long): New complaints.
5646
ac3aafc7
EZ
56472002-05-06 Elena Zannoni <ezannoni@redhat.com>
5648
5649 * gdbtypes.c (init_vector_type): New function.
5650 (build_builtin_type_vec128): Simplify the representation of SIMD
5651 registers.
5652 (build_gdbtypes): Initialize new builtin vector types.
5653 (_initialize_gdbtypes): Register new vector types with gdbarch.
5654 (builtin_type_v4_float, builtin_type_v4_int32,
5655 builtin_type_v8_int16, builtin_type_v16_int8,
5656 builtin_type_v2_int32, builtin_type_v4_int16,
5657 builtin_type_v8_int8): New (renamed) SIMD types.
5658
13e49980
MK
56592002-05-06 Mark Kettenis <kettenis@gnu.org>
5660
5661 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5662 (i387_fill_fxsave): Likewise.
5663
997b20b8
AO
56642002-05-05 Alexandre Oliva <aoliva@redhat.com>
5665
5666 * alpha-tdep.c (alpha_extract_return_value): Don't use
5667 non-constant array size in prototype.
5668
535c96ce
AC
56692002-05-04 Andrew Cagney <ac131313@redhat.com>
5670
5671 From Brian Taylor <briant at model dot com>:
5672 * ui-out.c (ui_out_field_core_addr): Use the function
5673 longest_local_hex_string_custom'to format addresses > 32 bits
5674 wide.
5675
5676 * ui-out.c (ui_out_field_core_addr): Update comment.
5677
bedfa57b
AC
56782002-05-04 Andrew Cagney <ac131313@redhat.com>
5679
5680 * stack.c (select_and_print_frame): Make static. Delete the
5681 parameter `level'.
5682 (func_command): Update call.
5683 (select_frame_command): Delete code computing the frame level.
5684 * frame.h (select_and_print_frame): Delete declaration.
5685
f621c63e
AC
56862002-05-04 Andrew Cagney <ac131313@redhat.com>
5687
5688 * sparc-tdep.c (sparc_get_saved_register): Comment why
5689 get_prev_frame call is safe.
5690
0f7d239c
AC
56912002-05-04 Andrew Cagney <ac131313@redhat.com>
5692
5693 * frame.h (select_frame): Delete level parameter.
5694 * stack.c (select_frame): Update. Use frame_relative_level to
5695 obtain the frame's level.
5696 (select_and_print_frame): Update call.
5697 (select_frame_command): Ditto.
5698 (up_silently_base): Ditto.
5699 (down_silently_base): Ditto.
5700 * ocd.c (ocd_start_remote): Ditto.
5701 * remote-rdp.c (remote_rdp_open): Ditto.
5702 * remote-mips.c (mips_initialize): Ditto.
5703 (common_open): Ditto.
5704 * remote-e7000.c (e7000_start_remote): Ditto.
5705 * m3-nat.c (select_thread): Ditto.
5706 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5707 (child_get_current_exception_event): Ditto.
5708 * varobj.c (varobj_create): Ditto.
5709 (varobj_update): Ditto.
5710 (c_value_of_root): Ditto.
5711 * tracepoint.c (finish_tfind_command): Ditto.
5712 * corelow.c (core_open): Ditto.
5713 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5714 * thread.c (info_threads_command): Ditto.
5715 (switch_to_thread): Ditto.
5716 * infrun.c (normal_stop): Ditto.
5717 (restore_selected_frame): Ditto.
5718 (restore_inferior_status): Ditto.
5719 * breakpoint.c (insert_breakpoints): Ditto.
5720 (watchpoint_check): Ditto.
5721 (bpstat_stop_status): Ditto.
5722 (do_enable_breakpoint): Ditto.
5723 * blockframe.c (flush_cached_frames): Ditto.
5724 (reinit_frame_cache): Ditto.
5725
71d6c7b1
AC
57262002-05-04 Andrew Cagney <ac131313@redhat.com>
5727
5728 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5729 maintainer.
5730
cda6c68a
JB
57312002-05-04 Jim Blandy <jimb@redhat.com>
5732
5733 * gdbtypes.c (replace_type): Doc fix.
5734
5c1c87f0
AC
57352002-05-04 Andrew Cagney <ac131313@redhat.com>
5736
5737 * valprint.c (strcat_longest): Delete commented out function.
5738 Update copyright.
5739
cd9bfe15
AC
57402002-05-04 Andrew Cagney <ac131313@redhat.com>
5741
5742 * MAINTAINERS: Mark a29k as deleted.
5743 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5744 Move new configurations to the top.
5745 * configure.tgt: Remove a29k.
5746 * config/a29k/tm-vx29k.h: Delete.
5747 * config/a29k/vx29k.mt: Delete.
5748 * config/a29k/tm-a29k.h: Delete.
5749 * config/a29k/a29k-udi.mt: Delete.
5750 * config/a29k/a29k.mt: Delete.
5751 * a29k-tdep.c: Delete.
5752 * remote-udi.c: Delete.
5753 * remote-mm.c: Delete.
5754 * remote-eb.c: Delete.
5755 * remote-adapt.c: Delete.
5756 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
5757 * config/s390/s390x.mt: Ditto.
5758 * config/s390/s390.mt: Ditto.
5759 * config/sparc/sparclynx.mh: Ditto.
5760 * config/sparc/linux.mh: Ditto.
5761 * config/pa/hppaosf.mh: Ditto.
5762 * config/pa/hppabsd.mh: Ditto.
5763 * config/ns32k/nbsd.mt: Ditto.
5764 * config/mips/vr5000.mt: Ditto.
5765 * config/m68k/sun3os4.mh: Ditto.
5766 * config/m68k/nbsd.mt: Ditto.
5767 * config/m68k/m68klynx.mh: Ditto.
5768 * config/m32r/m32r.mt: Ditto.
5769 * config/i386/x86-64linux.mt: Ditto.
5770 * config/i386/nbsdelf.mt: Ditto.
5771 * config/i386/nbsd.mt: Ditto.
5772 * config/i386/i386lynx.mh: Ditto.
5773
bf0c5130
AC
57742002-05-04 Andrew Cagney <ac131313@redhat.com>
5775
5776 * target.c (debug_print_register): New function. Handle oversize
5777 registers.
5778 (debug_to_fetch_registers): Call.
5779 (debug_to_store_registers): Call.
5780
2ae1c2d2
JB
57812002-05-03 Jim Blandy <jimb@redhat.com>
5782
13a393b0
JB
5783 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5784 (read_type): Doc fix.
5785 * gdbtypes.c (replace_type): Doc fix.
5786
2ae1c2d2
JB
5787 * stabsread.c (multiply_defined_struct): New complaint.
5788 (read_struct_type): If the type we were passed isn't empty, or
5789 incomplete, don't read the new struct type into it; complain,
5790 and return the original type unchanged. Take a new `type_code'
5791 argument, which is the type code for the new type.
5792 (read_type): Rather than storing the type's type code here, pass
5793 it as an argument to read_struct_type, and let that take care of
5794 storing it. That way, we don't overwrite the original type code,
5795 so read_struct_type can use it to decide whether we're overwriting
5796 something we shouldn't.
5797 (complain_about_struct_wipeout): New function.
5798
8de9bdc4
AC
57992002-05-03 Andrew Cagney <ac131313@redhat.com>
5800
5801 * gdbarch.sh: Assert that gdbarch is non-NULL.
5802 * gdbarch.c: Regenerate.
5803
f773fdbb
JM
58042002-05-03 Jason Merrill <jason@redhat.com>
5805
5806 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5807 and return NULL.
5808
0e04a514
ML
58092002-05-03 Michal Ludvig <mludvig@suse.cz>
5810
5811 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5812 (x86_64_dwarf2gdb_regno_map_length),
5813 (x86_64_dwarf2_reg_to_regnum): Added.
5814 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5815 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5816 (_initialize_x86_64_tdep): Synced with the change above.
5817 (x86_64_skip_prologue): Reformulated message.
5818
065432a8
PM
58192002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5820
5821 * f-exp.y: Also use new prev_lexptr variable
5822 to improve error reporting. Based on Michael Snyder
5823 2002-04-24 dated patch to c-exp.y.
5824 * jv-exp.y: Likewise.
5825 * m2-exp.y: Likewise.
5826
a3162708
EZ
58272002-05-02 Elena Zannoni <ezannoni@redhat.com>
5828
5829 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5830 we are dealing with vectors.
5831
03620c38
PM
58322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5833
5834 * config/m68k/tm-nbsd.h: Obvious fix,
5835 correct machine name.
5836
6604db2e
PM
58372002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5838
5839 * p-typeprint.c (pascal_type_print_base): Add support
5840 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5841
0906b739
PM
58422002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5843
5844 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5845 for fondamental pascal 'char' type.
5846
e2625b33
PM
58472002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5848
5849 * p-lang.h (is_pascal_string_type): Declaration changed,
5850 new sixth argument of type char ** added.
361d1df0 5851 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5852 changed. Args length_pos, length_size, string_pos, char_size
5853 can now be NULL. New argument arrayname set to the field
5854 name of the char array. Return value set to char array
5855 field index plus one.
361d1df0 5856 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5857 is_pascal_string_type function.
5858
cf17c188
AC
58592002-05-02 Andrew Cagney <cagney@redhat.com>
5860
5861 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5862 <cagney@redhat.com> change.
5863 * gdbarch.c: Regenerate.
5864
52bca491
AC
58652002-05-02 Andrew Cagney <cagney@redhat.com>
5866
5867 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5868 before probing for a new one. Detect errorenous gdbarch_init
5869 functions.
5870 * gdbarch.c: Regenerate.
5871
d5e72505
AC
58722002-05-01 Andrew Cagney <cagney@redhat.com>
5873
5874 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5875 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5876 * config/v850/tm-v850.h: Ditto. Update copyright.
5877
af566d9f
AC
58782002-04-30 Andrew Cagney <ac131313@redhat.com>
5879
5880 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5881 current_gdbarch.
5882
880d85fa
MS
58832002-04-30 Michael Snyder <msnyder@redhat.com>
5884
94c30b78
MS
5885 * arm-tdep.c: Whitespace clean-ups.
5886 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5887 should have been removed as part of 4/24 change.
5888
6f5987a6
KB
58892002-04-30 Kevin Buettner <kevinb@redhat.com>
5890
5891 * rs6000-tdep.c: Added comment describing how fpscr register
5892 numbers were chosen.
5893
1a113c93
MS
58942002-04-30 Michael Snyder <msnyder@redhat.com>
5895
5896 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5897
9a6f53fe
EZ
58982002-04-29 Elena Zannoni <ezannoni@redhat.com>
5899
5900 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5901 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5902 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5903
11ed25ac
KB
59042002-04-29 Kevin Buettner <kevinb@redhat.com>
5905
5906 From Louis Hamilton <hamilton@redhat.com>:
5907 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5908 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5909 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5910 not bfd-private xcoff data, to determine wordsize.
5911 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5912
ae232405
AC
59132002-04-29 Andrew Cagney <ac131313@redhat.com>
5914
5915 GDB 5.2 released from 5.2 branch.
5916
91fd20f7
ML
59172002-04-29 Michal Ludvig <mludvig@suse.cz>
5918
5919 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5920 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5921 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5922
2dc5091b
EZ
59232002-04-29 Elena Zannoni <ezannoni@redhat.com>
5924
5925 * rs6000-tdep.c (rs6000_extract_return_value,
5926 rs6000_store_return_value): Handle returning vectors.
5927 (rs6000_gdbarch_init): Use
5928 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5929 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5930 New function.
5931 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5932 vectors.
5933 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5934 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5935
2b9848d8
PM
59362002-04-24 Pierre Muller <ics.u-strasbg.fr>
5937
5938 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5939 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5940 with fprintf_unfiltered (gdb_stderr,...).
5941
f8d17dc5
PM
59422002-04-24 Pierre Muller <ics.u-strasbg.fr>
5943
5944 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5945 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5946 Replace fprintf (stderr,...
5947 with fprintf_unfiltered (gdb_stderr,....
5948 * remote-es.c: Likewise.
5949 * remote-os9k.c: Likewise.
5950 * remote-st.c: Likewise.
5951
2f2f1ad1
AS
59522002-04-28 Andreas Schwab <schwab@suse.de>
5953
5954 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5955 linux-proc.o and gcore.o.
5956
b6779aa2
AC
59572002-04-26 Michal Ludvig <mludvig@suse.cz>
5958
5959 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5960 code without frame pointers.
5961
7e57f5f4
AC
59622002-04-26 Andrew Cagney <ac131313@redhat.com>
5963
5964 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5965 ON_STACK is needed.
5966
2ceb85d0
BE
59672002-04-26 Ben Elliston <bje@redhat.com>
5968
5969 * target.c (do_xfer_memory): Correct reference to the new option
5970 "trust-readonly-sections".
5971
f5f8a009
EZ
59722002-04-26 Elena Zannoni <ezannoni@redhat.com>
5973
5974 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5975 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5976 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5977 vectors.
5978 (read_array_type): Record the fact that this array type is really a
5979 vector (i.e. are passed in by value).
5980
5868c862
JT
59812002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5984 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5985 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5986 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5987 * alpha-linux-tdep.c: Include frame.h.
5988 (alpha_linux_sigcontext_addr): New function.
5989 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5990 alpha_linux_sigcontext_addr.
5991 * alpha-osf1-tdep.c: Include gdbcore.h.
5992 (alpha_osf1_sigcontext_addr): New function.
5993 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5994 alpha_osf1_sigcontext_addr.
5995 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5996 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5997
bfb01f37
AC
59982002-04-26 Andrew Cagney <ac131313@redhat.com>
5999
361d1df0 6000 * stack.c (selected_frame_level):
bfb01f37
AC
6001 (select_frame): Do not set selected_frame_level.
6002 * frame.h (selected_frame_level): Delete declaration.
6003
15813d3f
AC
60042002-04-26 Andrew Cagney <ac131313@redhat.com>
6005
6006 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6007 convert_from_func_ptr-addr when AIX / PowerOpen.
6008
6096c27a
AC
60092002-04-25 Andrew Cagney <ac131313@redhat.com>
6010
6011 * valops.c (hand_function_call): Call
6012 generic_save_call_dummy_addr.
6013 * frame.h (generic_save_call_dummy_addr): Declare.
6014 * blockframe.c (struct dummy_frame): Add fields call_lo and
6015 call_hi.
6016 (generic_find_dummy_frame): Check for PC in range call_lo to
6017 call_hi instead of entry_point_address.
6018 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6019 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6020 (generic_save_call_dummy_addr): New function.
6021
f510d44e
DM
60222002-04-24 David S. Miller <davem@redhat.com>
6023
6024 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6025 sparc_skip_prologue.
6026 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6027 information to find prologue when possible.
6028 (sparc_prologue_frameless_p): Call examine_prologue directly.
6029 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6030 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6031 second argument.
6032 (SKIP_PROLOGUE): Likewise.
6033
15d72a92
JT
60342002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6035
6036 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6037 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6038 indicate that the condition it was testing is always true.
6039 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6040 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6041 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6042
accc6d1f
JT
60432002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6044
6045 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6046 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6047 tdep->jb_pc and tdep->jb_elt_size.
6048 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6049 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6050 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6051 * alpha-nat.c (get_longjmp_target): Remove.
6052 (JB_ELEMENT_SIZE): Ditto.
6053 (JB_PC): Ditto.
6054 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6055 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6056 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6057 to alpha_get_longjmp_target.
6058 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6059 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6060 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6061
1bfdc549
AC
60622002-04-25 Andrew Cagney <ac131313@redhat.com>
6063
6064 * README: Update to GDB 5.2.
6065
1bd316f0
AC
60662002-04-25 Andrew Cagney <ac131313@redhat.com>
6067
6068 * gdbarch.sh (LC_ALL): Set to `c'.
6069
2e5ff58c
TR
60702002-04-25 Theodore A. Roth <troth@verinet.com>
6071
6072 * avr-tdep.c: Ran through gdb_indent.sh.
6073
e33ce519
TR
60742002-04-25 Theodore A. Roth <troth@verinet.com>
6075
6076 * MAINTAINERS: Add myself as AVR maintainer.
6077 * NEWS: Note new target avr.
6078
8818c391
TR
60792002-04-25 Theodore A. Roth <troth@verinet.com>
6080
6081 * Makefile.in: Add support for AVR target.
6082 * configure.tgt: Add support for AVR target.
6083 * avr-tdep.c: New file
6084 * config/avr/avr.mt: New file.
6085
79509c2d
TR
60862002-04-25 Theodore A. Roth <troth@verinet.com>
6087
6088 * MAINTAINERS: Add myself to write-after-approval.
6089
dac8068e
PM
60902002-04-24 Pierre Muller <ics.u-strasbg.fr>
6091
6092 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6093 with fprintf_unfiltered (gdb_stderr,....
6094
25bf3106
PM
60952002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6096
6097 Fix PR gdb/508.
6098 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6099
24467a86
PM
61002002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6101
6102 * p-exp.y: Also use new prev_lexptr variable
6103 to improve error reporting. Based on Michael Snyder
6104 2002-04-24 dated patch to c-exp.y.
6105
95b80706
JT
61062002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6107
6108 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6109 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6110 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6111 to 0.
6112 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6113 and struct value.
6114 (FUNCTION_START_OFFSET): Remove.
6115 (BREAKPOINT): Ditto.
6116
e90cc612
JT
61172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6118
6119 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6120 * NEWS: Ditto.
6121
6c72f9f9
JT
61222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6123
6124 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6125 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6126 alpha_linux_pc_in_sigtramp.
6127 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6128 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6129 alpha_osf1_pc_in_sigtramp.
6130 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6131 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6132 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6133 alphafbsd_pc_in_sigtramp.
6134 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6135 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6136 alphanbsd_pc_in_sigtramp.
6137 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6138 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6139
5e4f3379
JT
61402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6143
da8ca43d
JT
61442002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6145
6146 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6147 alphanbsd-tdep.c.
6148 (alphanbsd-nat.o): New dependency list.
6149 (alphanbsd-tdep.o): Ditto.
6150 * NEWS: Note new native NetBSD/alpha configuration.
6151 * alphanbsd-nat.c: New file.
6152 * alphanbsd-tdep.c: Ditto.
6153 * configure.host (alpha*-*-netbsd*): New host.
6154 * configure.tgt (alpha*-*-netbsd*): New target.
6155 * config/alpha/nbsd.mh: New file.
6156 * config/alpha/nbsd.mt: Ditto.
6157 * config/alpha/nm-nbsd.h: Ditto.
6158 * config/alpha/tm-nbsd.h: Ditto.
6159
36a6271d
JT
61602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6161
6162 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6163 (alpha-osf1-tdep.o): New dependency list.
6164 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6165 and skip_sigtramp_frame members.
6166 * alpha-linux-tdep.c: Include gdbcore.h.
6167 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6168 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6169 * alpha-osf1-tdep.c: New file.
6170 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6171 alpha-osf1-dep.c.
6172 (alpha_frame_past_sigtramp_frame): New function.
6173 (alpha_dynamic_sigtramp_offset): Ditto.
6174 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6175 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6176 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6177 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6178 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6179 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6180 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6181 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6182 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6183 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6184 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6185 to find_solib_trampoline_target.
6186 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6187 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6188 (SKIP_TRAMPOLINE_CODE): Remove.
6189 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6190 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6191 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6192 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6193 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6194 (PROC_SIGTRAMP_MAGIC): Ditto.
6195 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6196 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6197 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6198 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6199 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6200
2f4bc57b
JT
62012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6202
6203 * NEWS: Note that Alpha targets are now multi-arch.
6204
665132f9
MS
62052002-04-24 Michael Snyder <msnyder@redhat.com>
6206
6207 * parser-defs.h (prev_lexptr): New external variable.
6208 * parse.c (parse_exp_1): Set prev_lexptr to null before
6209 calling the language-specific parser.
6210 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6211 (yyerror): Use prev_lexptr in error reporting.
6212
32872fa7
DJ
62132002-04-24 Daniel Jacobowitz <drow@mvista.com>
6214
6215 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6216 * gregset.h: If FILL_FPXREGSET is defined, provide
6217 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6218 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6219 is defined, call fill_fpxregset.
6220
57e76fac
MS
62212002-04-24 Roland McGrath <roland@frob.com>
6222
6223 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6224 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6225 (supply_gregset, supply_fpregset): New functions.
6226
6227 * gnu-nat.c (gnu_find_memory_regions): New function.
6228 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6229 (gnu_xfer_memory): Add a cast.
6230
f43845b3
MS
62312002-04-24 Michael Snyder <msnyder@redhat.com>
6232
361d1df0 6233 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6234 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6235 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6236 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6237 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6238 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6239
a0abec03
AC
6240Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6241
6242 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6243 NUM_PSEUDO_REGS can be used.
6244
d7bd68ca
AC
62452002-04-24 Andrew Cagney <ac131313@redhat.com>
6246
6247 * arch-utils.h: Update copyright.
6248
6249 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6250 * gdbarch.h, gdbarch.c: Re-generate.
6251
6252 * inferior.h (IN_SIGTRAMP): Delete definition.
6253 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6254 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6255
6256 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6257 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6258 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6259 (find_proc_framesize): Ditto.
6260 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6261 (alpha_init_extra_frame_info): Ditto.
6262 * infrun.c (handle_inferior_event): Ditto.
6263 (handle_inferior_event): Ditto.
6264 (check_sigtramp2): Ditto.
6265 * blockframe.c (create_new_frame): Ditto.
6266 (get_prev_frame): Ditto.
6267 * ppc-linux-tdep.c: Update comments.
6268 * i386-linux-tdep.c: Update comments.
6269 * breakpoint.c (bpstat_what): Update comment.
6270
4867e41e
DM
62712002-04-24 David S. Miller <davem@redhat.com>
6272
21d83aa5
DM
6273 * i960-tdep.c (register_in_window_p): New function.
6274 (i960_find_saved_register): Use it instead of
6275 REGISTER_IN_WINDOW_P.
6276 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6277
4867e41e
DM
6278 * symtab.h (find_stab_function_addr): Kill extern.
6279 * minsyms.c (find_stab_function_addr): Remove from here...
6280 * dbxread.c: ... to here, and mark it static.
6281
69cdf6a2
DM
62822002-04-20 David S. Miller <davem@redhat.com>
6283
6284 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6285 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6286
5a595886
DM
62872002-04-21 David S. Miller <davem@redhat.com>
6288
6289 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6290 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6291 (vx_write_register): Likewise.
6292
1da1a192
JB
62932002-04-23 J. Brobecker <brobecker@gnat.com>
6294
6295 * source.c (is_regular_file): New function.
6296 (openp): Check wether file to open is a regular file
6297 to avoid opening directories.
6298
baa6f10b
JT
62992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6300
6301 * findvar.c (extract_signed_integer): Cast printf argument
6302 to suppress format warning.
6303 (extract_unsigned_integer): Likewise.
6304 * infcmd.c (registers_info): Likewise.
6305 * top.c (get_prompt_1): Likewise.
6306 * valops.c (value_assign): Likewise.
6307 * valprint.c (print_decimal): Likewise.
6308
b2c4da81
L
63092002-04-22 H.J. Lu (hjl@gnu.org)
6310
6311 * c-exp.y (typebase): Support
361d1df0 6312
b2c4da81
L
6313 [long|long long|short] [signed|unsigned] [int|]
6314
6315 and
6316
6317 signed [long|long long|short] int
6318
f267bd6a
JT
63192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6320
6321 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6322 and vax-tdep.h.
6323 * vax-tdep.h: New file.
6324 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6325 Make several routines static.
6326 (vax_get_saved_register): New function.
6327 (vax_gdbarch_init): New function.
6328 (_initialize_vax_tdep): Register vax_gdbarch_init.
6329 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6330 Remove macros now under the control of gdbarch.
6331
da3c6d4a
MS
63322002-04-22 Michael Snyder <msnyder@redhat.com>
6333
11d3b27d
MS
6334 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6335 Some whitespace and coding standards tweaks.
da3c6d4a 6336
a33f7558
JT
63372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6338
6339 * vax-tdep.c: Include regcache.h.
6340 (vax_call_dummy_words): New.
6341 (sizeof_vax_call_dummy_words): New.
6342 (vax_fix_call_dummy): New function.
6343 (vax_saved_pc_after_call): Ditto.
6344 * config/vax/tm-vax.h: Don't include regcache.h.
6345 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6346 (CALL_DUMMY): Remove.
6347 (CALL_DUMMY_WORDS): Define.
6348 (SIZEOF_CALL_DUMMY_WORDS): Define.
6349 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6350
47a73475
MS
63512002-04-18 Michael Snyder <msnyder@redhat.com>
6352
6353 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6354
52efde73
JT
63552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * vax-tdep.c (vax_frame_chain): New function.
6358 (vax_push_dummy_frame): Ditto.
6359 (vax_pop_frame): Ditto.
6360 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6361 (FRAMELESS_FUNCTION_INVOCATION): Use
6362 generic_frameless_function_invocation_not.
6363 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6364 (POP_FRAME): Use vax_pop_frame.
6365
ea74468c
JT
63662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6367
6368 * vax-tdep.c (vax_store_struct_return): New function.
6369 (vax_extract_return_value): Ditto.
6370 (vax_store_return_value): Ditto.
6371 (vax_extract_struct_value_address): Ditto.
6372 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6373 vax_store_struct_return.
6374 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6375 (STORE_RETURN_VALUE): Use vax_store_return_value.
6376 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6377
5516aa92
JT
63782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6379
6380 * vax-tdep.c (vax_frame_saved_pc): New function.
6381 (vax_frame_args_address_correct): Ditto.
6382 (vax_frame_args_address): Ditto.
6383 (vax_frame_locals_address): Ditto.
6384 (vax_frame_num_args): Move code to be in proximity to
6385 other frame-related functions.
6386 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6387 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6388 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6389 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6390 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6391
36af0b35
L
63922002-04-22 H.J. Lu (hjl@gnu.org)
6393
6394 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6395 includedir.
6396
ab62c900
JT
63972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6398
6399 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6400 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6401 (FRAME_INIT_SAVED_REGS): New macro.
6402
7232b100
JT
64032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6406
b70d2aee
JT
64072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6408
6409 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6410 where needed.
6411 (fetch_osf_core_registers): Likewise.
6412 (supply_gregset): Likewise.
6413
a0e8a2d1 64142002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6415
a0e8a2d1
JB
6416 * symfile.h (get_section_index): Define.
6417 * symfile.c (get_section_index): New function.
6418 * mdebugread.c (SC_IS_SBSS): New macro.
6419 (SC_IS_BSS): Return true for the scBss storage class only, as
6420 the scSBss storage class refers to the .sbss section.
6421 (parse_partial_symbols): Discard the symbols which associated
6422 section does not exist.
6423 Make sure to use the .sbss section index for symbols which
6424 storage class is scBss, rather than using the .bss section index.
6425
51eb8b08
JT
64262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6427
6428 * vax-tdep.c: Update copyright years.
6429 (vax_register_name): New function.
6430 (vax_register_byte): Ditto.
6431 (vax_register_raw_size): Ditto.
6432 (vax_register_virtual_size): Ditto.
6433 (vax_register_virtual_type): Ditto.
6434 * config/vax/tm-vax.h: Update copyright years.
6435 (REGISTER_NAMES): Remove.
6436 (REGISTER_NAME): Define.
6437 (REGISTER_BYTE): Use vax_register_byte.
6438 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6439 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6440 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6441
6cc1c0a8
AC
64422002-04-21 Andrew Cagney <ac131313@redhat.com>
6443
6444 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6445 declaration
6446 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6447
9319a2fe
DM
64482002-04-21 David S. Miller <davem@redhat.com>
6449
6450 * arch-utils.c (generic_prologue_frameless_p): Kill
6451 SKIP_PROLOGUE_FRAMELESS_P code.
6452 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6453 references.
6454 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6455 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6456 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6457 references.
6458 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6459 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6460 (sparc_gdbarch_init): Pass it to
6461 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6462
e9ed6d01
JT
64632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6464
6465 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6466 (alphabsd-nat.o): New dependency list.
6467
36012033
JT
64682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6469
6470 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6471 alphafbsd-tdep.c.
6472 (alpha-linux-tdep.o): New dependency list.
6473 (alphafbsd-tdep.o): Likewise.
6474
3379287a
JT
64752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6476
6477 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6478 to here...
6479 * alpha-tdep.c: ...from here.
6480 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6481
4bcbd6cb
JT
64822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6483
6484 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6485 prototype from here...
6486 * alpha-tdep.h: ...to here.
6487
b31da25e
AC
64882002-04-21 Andrew Cagney <ac131313@redhat.com>
6489
6490 * frame.h (selected_frame_level): Document as deprecated.
6491 (frame_relative_level): Declare.
6492 * stack.c (frame_relative_level): New function.
6493 (selected_frame_level): Document as deprecated.
6494 (select_frame): Do not set the selected_frame_level.
6495
6496 * stack.c (frame_info, record_selected_frame): Update.
6497 (frame_command, current_frame_command): Update.
6498 (up_silently_base, up_command, down_silently_base): Update.
6499 (down_command): Update.
6500 * inflow.c (kill_command): Update.
6501 * tracepoint.c (finish_tfind_command): Update.
6502 * corelow.c (core_open): Update.
6503 * thread.c (info_threads_command): Update.
6504 (do_captured_thread_select): Update.
6505 * infcmd.c (finish_command): Update.
6506 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6507
9c1d6fe5
JT
65082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6509
6510 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6511
ab89facf
AC
65122002-04-21 Andrew Cagney <ac131313@redhat.com>
6513
6514 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6515 type const.
6516
82a4efa1
JT
65172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6518
6519 * alphafbsd-tdep.c: Update copyright years. Include
6520 alpha-tdep.h.
6521 (alphafbsd_use_struct_convention): Make static.
6522 (alphafbsd_init_abi): New function.
6523 (_initialize_alphafbsd_tdep): New function.
6524 * config/alpha/tm-fbsd.h: Update copyright years.
6525 (USE_STRUCT_CONVENTION): Remove.
6526
44dffaac
JT
65272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6528
6529 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6530 an Alpha ABI variant.
6531 (alpha_abi_handler_list): Declare.
6532 (alpha_gdbarch_register_os_abi): New function.
6533 (alpha_gdbarch_init): Give registered ABI variant handlers a
6534 chance to tweak the gdbarch once we have set up defaults.
6535 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6536
65585be4
JT
65372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6538
6539 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6540 to standard_coerce_float_to_double.
6541 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6542
d9b023cc
JT
65432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6544
6545 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6546 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6547 from gdbarch_tdep rather than a constant.
6548 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6549 the default text address for all Alpha Unix ABIs.
6550 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6551 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6552
dc129d82
JT
65532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6554
6555 * alpha-tdep.h: New file. Includes several Alpha target constants
6556 taken from...
6557 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6558 let gdbarch deal with.
6559 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6560 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6561 to dependency list.
6562 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6563 Alpha target register names.
6564 * alphabsd-nat.c: Likewise.
6565 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6566 Alpha target register names. Make serveral routines static.
6567 (alpha_get_saved_register): New function.
6568 (alpha_abi_names): New.
6569 (process_note_abi_tag_sections): New function.
6570 (get_elfosabi): New function.
6571 (alpha_gdbarch_init): New function.
6572 (alpha_dump_tdep): New function.
6573 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6574
d49d1e0a
AC
65752002-04-21 Andrew Cagney <ac131313@redhat.com>
6576
6577 * frame.c (find_saved_register): Delete #ifdef
6578 HAVE_REGISTER_WINDOWS code.
6579 * config/sparc/tm-sparc.h: Update comments.
6580 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6581
92e8c9ed
AC
65822002-04-21 Andrew Cagney <ac131313@redhat.com>
6583
6584 * i960-tdep.c (i960_find_saved_register): New function.
6585 (i960_get_saved_register): New function.
6586 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6587 (i960_get_saved_register): Declare.
6588 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6589
e1925118
DM
65902002-04-20 David S. Miller <davem@redhat.com>
6591
6592 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6593
29673b29
AC
65942002-04-20 Andrew Cagney <ac131313@redhat.com>
6595
6596 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6597 instead of NUM_PSEUDO_REGS.
6598
6c86dcd5
DM
65992002-04-20 David S. Miller <davem@redhat.com>
6600
6601 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6602 GDB_MULTI_ARCH_PARTIAL
6603 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6604 define, let tm-sp64.h do it.
6605
aa40ec90
JT
66062002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * frame.c (find_saved_register): Avoid a NULL pointer
6609 dereference and actually walk the frame list.
6610
0f79675b
AC
66112002-04-20 Andrew Cagney <ac131313@redhat.com>
6612
6613 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6614 sorted in most most-recent-used order. Document.
6615 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6616
f91305dd 66172002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6618
6619 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6620 instead of ->prev.
6621 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6622 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6623 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6624 instead of ->prev.
6625
73d322b1
EZ
66262002-04-19 Elena Zannoni <ezannoni@redhat.com>
6627
6628 Fix PR gdb/471.
6629 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6630 (build_builtin_type_vec128): Ditto.
6631 (append_composite_type_field): Fix calculation of type length in
6632 union case.
6633
ccd9a834
EZ
66342002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6635
6636 * config/djgpp/README: Update.
6637
6638 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6639 compiler warnings.
6640
a57f9e49
JT
66412002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6642
6643 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6644 (alpha_setup_arbitrary_frame): ...to this.
6645 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6646 for alpha_setup_arbitrary_frame.
6647
f4f9705a
AC
66482002-04-18 Andrew Cagney <cagney@redhat.com>
6649
6650 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6651 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6652
f4f9705a
AC
6653 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6654 * target.h (memory_breakpoint_from_pc): Update declaration.
6655 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6656
6657 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6658 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6659 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6660 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6661 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6662 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6663 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6664 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6665 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6666 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6667 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6668 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6669
6670 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6671 const pointer.
6672 * monitor.c (monitor_insert_breakpoint): Ditto.
6673 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6674
6675 * config/mcore/tm-mcore.h: Update copyright.
6676 * mem-break.c: Ditto.
6677 * xstormy16-tdep.c: Ditto.
6678
29f319b8
PM
66792002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6680
6681 * p-exp.y: Add precedence rule for '^' token.
6682 This removes the shift/reduce conflicts.
6683 Remove the comment concerning these shift/reduce conflicts.
6684
ebeac11a
EZ
66852002-04-18 Elena Zannoni <ezannoni@redhat.com>
6686
6687 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6688 (registers_powerpc_nofp): New register set for processors
6689 without floating point unit.
6690
27c31547
DM
66912002-04-18 David S. Miller <davem@redhat.com>
6692
6693 * MAINTAINERS: Add myself to write-after-approval.
6694
47a73475
MS
66952002-04-17 Michael Snyder <msnyder@redhat.com>
6696
6697 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6698
953836b2
AC
66992002-04-17 Andrew Cagney <ac131313@redhat.com>
6700
6701 * rs6000-tdep.c (frame_initial_stack_address): Use
6702 frame_register_read to read the alloca_reg.
6703
8b0d4340
AC
67042002-04-17 Andrew Cagney <ac131313@redhat.com>
6705
6706 * frame.c (find_saved_register): Find saved registers in the next
6707 not prev frame.
6708 Fix PR gdb/365.
6709
d8864532
AC
67102002-04-17 Andrew Cagney <ac131313@redhat.com>
6711
6712 * gdbarch.sh (LANG): Set to ``c''.
6713
36cc83a3 67142002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6715
36cc83a3 6716 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6717
2f4150cc 67182002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6719
6720 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6721 Update copyright.
6722
628703c6 6723 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6724 Also fix PR gdb/391.
361d1df0 6725
56157b4a
AC
67262002-04-14 Andrew Cagney <ac131313@redhat.com>
6727
6728 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6729 * aclocal.m4, configure: Re-generate.
6730 Fix PR gdb/391.
361d1df0 6731
6d1e3329
EZ
67322002-04-14 Elena Zannoni <ezannoni@redhat.com>
6733
6734 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6735 instead of tm_print_insn.
6736
cb06fa07
EZ
67372002-04-14 Elena Zannoni <ezannoni@redhat.com>
6738
6739 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6740
f208ba17
AC
67412002-04-14 Andrew Cagney <ac131313@redhat.com>
6742
6743 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6744 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6745 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6746
20f01a46
DH
67472002-04-12 Don Howard <dhoward@redhat.com>
6748
6749 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6750 max_user_call_depth.
6751 (init_cmd_lists): Initialize the new value;
6752 * cli/cli-script.c (execute_user_command): Limit the call depth of
6753 user defined commands. This avoids a core-dump when user commands
6754 are infinitly recursive.
6755
a88376a3
KB
67562002-04-12 Kevin Buettner <kevinb@redhat.com>
6757
6758 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6759 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6760 from tdep struct instead of DEFAULT_LR_SAVE.
6761 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6762 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6763 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6764
f2172603
MS
67652002-04-12 Michael Snyder <msnyder@redhat.com>
6766
694f61fb 6767 * Remote.c: Spelling fix.
20fe79c8
MS
6768 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6769 If no symbol found for "sbrk", try "_sbrk".
6770 (make_output_phdrs): Use bfd_section_name.
6771 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6772 * eval.c: Indentation fix-ups.
169a7369
MS
6773 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6774 in case it gets applied to an address that is already
6775 in the instruction space.
de74f71f
MS
6776 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6777 * symfile.c: Fix indentation, long lines.
f2172603
MS
6778 * source.c: White space fix-up.
6779
cda5a58a
AC
67802002-04-12 Andrew Cagney <cagney@redhat.com>
6781
6782 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6783 * frame.c (frame_register_read): New function. Return non-zero on
6784 success.
6785 (read_relative_register_raw_bytes_for_frame): Delete.
6786 (read_relative_register_raw_bytes): Delete.
6787 * frame.h (frame_register_read): Declare.
6788 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6789 * sh-tdep.c: Ditto.
6790 * infcmd.c (do_registers_info): Ditto.
6791 * hppa-tdep.c: Ditto.
6792 * rs6000-tdep.c: Ditto.
6793 * h8500-tdep.c: Ditto.
6794 * mips-tdep.c: Ditto.
6795 * h8300-tdep.c: Ditto.
6796 * z8k-tdep.c: Ditto.
6797
2ea5f656
KB
67982002-04-12 Kevin Buettner <kevinb@redhat.com>
6799
6800 From Jimi X <jimix@watson.ibm.com>:
6801 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6802 64-bit SysV ABI.
6803
27b15785
KB
68042002-04-12 Kevin Buettner <kevinb@redhat.com>
6805
6806 From Jimi X <jimix@watson.ibm.com>:
6807 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6808 bfd info.
6809
5d57ee30
KB
68102002-04-12 Kevin Buettner <kevinb@redhat.com>
6811
6812 From Jimi X <jimix@watson.ibm.com>:
6813 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6814 register sets for these processor variants.
6815
bc1e36ca
DJ
68162002-04-11 Daniel Jacobowitz <drow@mvista.com>
6817
bc1e36ca
DJ
6818 * regformats/reg-ppc.dat: Support FPSCR.
6819
e3f36dbd
KB
68202002-04-11 Kevin Buettner <kevinb@redhat.com>
6821
6822 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6823 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6824 Add fpscr as an invalid/unfetchable register.
6825 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6826 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6827 (fill_fpregset): Add support for register fpscr.
6828 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6829 (fill_gregset): Account for the fact that register ``mq'' might
6830 not exist.
6831 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6832 (registers_power): Add fpscr to register set at slot 71.
6833 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6834 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6835
943c9c25
MS
68362002-04-11 Michael Snyder <msnyder@redhat.com>
6837
6838 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6839 * configure: Regenerate.
6840 * config.in: Regenerate.
6841 * acconfig.h: Add define for _SYSCALL32.
6842 * core-sol2.c: Remove #define _SYSCALL32.
6843 * solib-legacy.c: Remove #define _SYSCALL32.
6844
d8c0a2e7
AC
68452002-04-10 Andrew Cagney <ac131313@redhat.com>
6846
6847 * stack.c (select_frame): Cleanup internal error message, do not
6848 use %p.
6849
7cc19214
AC
68502002-04-10 Andrew Cagney <ac131313@redhat.com>
6851
6852 * stack.c (select_frame): Check that selected_frame and the
6853 specified level are as expected.
6854 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6855 Update copyright.
6856 * frame.h (struct frame_info): Add field `level'. Update
6857 copyright.
6858 Work-in-progress PR gdb/464.
6859
67a2b77e
AC
68602002-04-10 Andrew Cagney <ac131313@redhat.com>
6861
6862 * maint.c (maint_print_section_info): Rename print_section_info.
6863 (print_bfd_section_info, print_objfile_section_info): Update.
6864 * inferior.h (struct gdbarch): Add opaque declaration.
6865 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6866 * gdbarch.h: Regenerate.
6867
8cfda98c
ML
68682002-04-10 Michal Ludvig <mludvig@suse.cz>
6869
6870 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6871 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6872 (kernel_u_size): Added.
6873 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6874 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6875
ca439ad2 68762002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6877
ca439ad2
JI
6878 * valarith.c (find_size_for_pointer_math): New function, either returns
6879 the size for a pointer's target, returns 1 for void *, or errors for
6880 incomplete types.
6881 (value_add, value_sub): use find_size_for_pointer_math.
6882
2f2893d9
DJ
68832002-04-09 Daniel Jacobowitz <drow@mvista.com>
6884
6885 * linux-low.c (linux_look_up_symbols): New hook.
6886 (linux_target_ops): Add linux_look_up_symbols.
6887 * remote-utils.c (decode_address): New function.
6888 (look_up_one_symbol): New function.
6889 * server.c (handle_query): Call target look_up_symbols hook.
6890 * server.h (look_up_one_symbol): Add prototype.
6891 * target.h (struct target_ops): Add look_up_symbols hook.
6892
96cb11df
AC
68932002-04-09 Andrew Cagney <ac131313@redhat.com>
6894
6895 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6896 override FP_REGNUM with frame->fp. Update copyright.
6897 * parse.c (num_std_regs, std_regs): Delete.
6898 (target_map_name_to_register): Do not search std_regs. Update
6899 function description.
6900 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6901 declarations. Update copyright.
6902 Fix PR gdb/251.
361d1df0 6903
97658e92
DJ
69042002-04-09 Daniel Jacobowitz <drow@mvista.com>
6905
6906 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6907 after the last symbol in a block.
6908
6044e3eb
PM
69092002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6910
6911 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6912 is non zero as a found symbol.
6913
0406ec40
AC
69142002-04-08 Andrew Cagney <ac131313@redhat.com>
6915
6916 * findvar.c: Include "builtin-regs.h".
6917 (value_of_register): Call value_of_builtin_reg when applicable.
6918 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6919 (target_map_name_to_register): Call
6920 builtin_reg_map_name_to_regnum.
6921 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6922 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6923 (builtin_regs_h): Define.
6924 (builtin-regs.o): New target.
6925 (findvar.o): Add $(builtin_regs_h).
6926 * builtin-regs.c, builtin-regs.h: New files.
6927 * std-regs.c: New file.
6928 Partial fix for PR gdb/251.
6929
56a6dfb9
KB
69302002-04-08 Kevin Buettner <kevinb@redhat.com>
6931
6932 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6933 it's no longer required.
6934
3a808432
AC
69352002-04-08 Andrew Cagney <ac131313@redhat.com>
6936
6937 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6938
7c40d541
KB
69392002-04-08 Kevin Buettner <kevinb@redhat.com>
6940
6941 From Jimi X <jimix@watson.ibm.com>:
6942 * rs6000-tdep.c (rs6000_software_single_step): Use
6943 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6944 and size. Use target_insert_breakpoint() and
6945 target_remove_breakpoint() to insert and remove breakpoints
6946 instead of explicit memory reads and writes.
6947
cc9836a8
KB
69482002-04-08 Kevin Buettner <kevinb@redhat.com>
6949
6950 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6951 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6952 ELF_OBJECT_FORMAT ifdef.
6953
7495d1dc
KB
69542002-04-08 Kevin Buettner <kevinb@redhat.com>
6955
6956 From Jimi X <jimix@watson.ibm.com>:
6957 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6958
4288e836
KB
69592002-04-08 Kevin Buettner <kevinb@redhat.com>
6960
6961 From Jimi X <jimix@watson.ibm.com>:
6962 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6963 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6964
a4e4e501
MK
69652002-04-07 Mark Kettenis <kettenis@gnu.org>
6966
6967 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6968 s/asprintf/xasprintf/.
6969 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6970
006defba
AC
69712002-04-07 Andrew Cagney <ac131313@redhat.com>
6972
6973 I believe Jeff Law denies responsability for this one:
6974 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6975 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6976 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6977 Work-around for PR gdb/366.
6978
7aa83cac
EZ
69792002-04-07 Elena Zannoni <ezannoni@redhat.com>
6980
6981 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6982 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6983 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6984
cf1fcca1
EZ
69852002-04-07 Elena Zannoni <ezannoni@redhat.com>
6986
6987 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6988 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6989 information.
6990
3f289e6f
AC
69912002-04-07 Andrew Cagney <ac131313@redhat.com>
6992
6993 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6994 maintainer.
6995
129188f6
AC
69962002-04-07 Andrew Cagney <ac131313@redhat.com>
6997
6998 * README (Reporting Bugs in GDB): Document the bug web page as the
6999 prefered way of submitting bugs.
7000 Fix PR gdb/402.
7001
1200cd6e
AC
70022002-04-06 Andrew Cagney <ac131313@redhat.com>
7003
7004 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7005 -1. Update comment.
7006 * gdbarch.h, gdbarch.c: Re-generate.
7007
2853c33c
AS
70082002-04-07 Andreas Schwab <schwab@suse.de>
7009
7010 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7011 buffer to regcache_collect.
7012
c2169756
AC
70132002-04-06 Andrew Cagney <ac131313@redhat.com>
7014
7015 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7016 * gdbarch.c, gdbarch.h: Re-generate.
7017
25f1b008
AC
70182002-04-06 Andrew Cagney <ac131313@redhat.com>
7019
7020 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7021 declaration. Fix -Werror.
7022
59263426
DJ
70232002-04-05 Daniel Jacobowitz <drow@mvista.com>
7024
7025 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7026 * gdbarch.c: Regenerate.
7027
f5db4da3
MS
70282002-04-05 Michael Snyder <msnyder@redhat.com>
7029
80f8a6eb
MS
7030 * breakpoint.c (clear_command): Rewrite middle section to
7031 combine two loops with identical control conditions.
7032 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7033 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7034
ad3dcc5c
L
70352002-04-05 H.J. Lu (hjl@gnu.org)
7036
7037 * solib-svr4.c (bkpt_names): Add "__start".
7038
f32e7a74
AC
70392002-04-04 Andrew Cagney <ac131313@redhat.com>
7040
7041 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7042 as test for 64 bit target.
7043
8227c0ff
AC
70442002-04-05 Andrew Cagney <ac131313@redhat.com>
7045
7046 * h8500-tdep.c (h8500_write_fp): Delete function.
7047 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7048 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7049 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7051 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7052 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7053 (s390_write_fp):
7054 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7055 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7056 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7057 (d10v_write_fp): Delete function.
7058 * inferior.h (write_fp, generic_target_write_fp): Delete
7059 declarations.
7060 * regcache.c (generic_target_write_fp): Delete function.
7061 (write_fp): Delete function.
7062 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7063 * gdbarch.h, gdbarch.c: Regenerate.
7064 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7065 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7066 (sparc64_write_fp): Delete declaration.
7067 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7068 (h8500_write_fp): Delete declaration.
7069
2757dd86
AC
70702002-04-04 Andrew Cagney <ac131313@redhat.com>
7071
7072 * sparc-tdep.c (sparc64_write_fp): Delete.
7073 (sparc_push_dummy_frame): Replace write_fp call with code to store
7074 the FP directly.
7075 (sparc_gdbarch_init): Do not initialize write_fp.
7076
c69255e1
KB
70772002-04-05 Kevin Buettner <kevinb@redhat.com>
7078
7079 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7080 clause.
7081
ae767bfb
JB
70822002-03-29 Jim Blandy <jimb@redhat.com>
7083
7084 * stack.c (get_selected_block): Add new argument `addr_in_block',
7085 used to return the exact code address we used to select the block,
7086 not just the block.
7087 * blockframe.c (get_frame_block, get_current_block): Same.
7088 * frame.h (get_frame_block, get_current_block,
7089 get_selected_block): Update declarations.
7090 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7091 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7092
84d2ac95
MS
70932002-04-05 Michael Snyder <msnyder@redhat.com>
7094
7095 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7096 warning message.
7097
596aa3bf
JB
70982002-04-05 J. Brobecker <brobecker@gnat.com>
7099
7100 * utils.c (xfullpath): New function.
7101 * defs.h (xfullpath): Add declaration.
7102 * source.c (openp): Use xfullpath in place of gdb_realpath to
7103 avoid resolving the basename part of filenames when the
7104 associated file is a symbolic link. This fixes a potential
7105 inconsistency between the filenames known to GDB and the
7106 filenames it prints in the annotations.
7107 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7108 to be able to match a filename with either the real filename, or
7109 the name of any symbolic link to this file.
7110 (lookup_partial_symtab): Ditto.
7111
c02f5703
MS
71122002-04-04 Michael Snyder <msnyder@redhat.com>
7113
7114 * breakpoint.c: Add support for hardware breakpoints in overlays.
7115 (overlay_events_enabled): New state variable.
7116 (insert_breakpoints): Use overlay_events_enabled to decide
7117 whether to attempt to set a breakpoint at the overlay load addr.
7118 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7119 (remove_breakpoint): Use overlay_events_enabled to decide
7120 whether breakpoints need to be removed from overlay load addr.
7121 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7122 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7123 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7124 disable_overlay_breakpoints): Update overlay_events_enabled.
7125
5fb290d7
DJ
71262002-04-04 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * dwarf2read.c (struct function_range): New.
7129 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7130 (check_cu_functions): New.
7131 (read_file_scope): Initialize global function lists.
7132 Call dwarf_decode_line after processing children.
7133 (read_func_scope): Add to global function list.
7134 (dwarf_decode_lines): Call check_cu_functions everywhere
7135 record_line is called. Call record_line with a linenumber
7136 of 0 to mark sequence ends.
7137
7b3fabf0
ML
71382002-04-04 Michal Ludvig <mludvig@suse.cz>
7139
361d1df0 7140 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7141 change sync with glibc.
7142
bce58c09
JB
71432002-04-03 Jim Blandy <jimb@redhat.com>
7144
7145 * configure.in: Call AC_C_INLINE.
7146 * configure: Regenerated.
361d1df0 7147
2fccf04a
DJ
71482002-04-01 Daniel Jacobowitz <drow@mvista.com>
7149
7150 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7151 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7152
2d1bfe2e
MK
71532002-03-31 Mark Kettenis <kettenis@gnu.org>
7154
a5941fbf
MK
7155 * NEWS: Mention gcore support on FreeBSD/i386.
7156
a90cd31d
MK
7157 * fbsd-proc.c: New file.
7158 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7159 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7160
2d1bfe2e
MK
7161 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7162 while statement.
7163
9eb6e5a1
JB
71642002-03-29 Jim Blandy <jimb@redhat.com>
7165
7166 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7167 unescaped newlines in string literals, but newer ones don't. So
7168 escape them.
7169
f02df580
MS
71702002-03-26 Michael Snyder <msnyder@redhat.com>
7171 Andrew Cagney <cagney@redhat.com>
7172
361d1df0 7173 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7174 restore file to memory.
7175 * cli/cli-dump.h: New file.
7176 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7177 * NEWS: Mention new commands.
f02df580 7178
109f874e
MS
71792002-03-28 Michael Snyder <msnyder@redhat.com>
7180
7181 * symfile.c (symbol_file_add): Move test for null symbols to later.
7182
520f6ade
AC
71832002-03-27 Andrew Cagney <ac131313@redhat.com>
7184
7185 From veksler at il.ibm.com:
7186 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7187 the xstrduped original path.
7188 Fix PR gdb/417.
7189
d4654627
MS
71902002-03-27 Michael Snyder <msnyder@redhat.com>
7191
7192 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7193 * infcmd.c (_initialize_infcmd): Ditto.
7194 * language.c (_initialize_language): Ditto.
7195 * symfile.c (_initialize_symfile): Ditto.
7196 * top.c (_init_main): Ditto.
7197 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7198
6be8bc0c
EZ
71992002-03-27 Elena Zannoni <ezannoni@redhat.com>
7200
7201 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7202 vector registers handling.
7203 (skip_prologue): Handle new AltiVec instructions. Fill in new
7204 fields of frame data.
7205 (frame_get_saved_regs): Fill in information for AltiVec registers.
7206
12af6855
JB
72072002-03-27 Jim Blandy <jimb@redhat.com>
7208
7209 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7210 a function; leave this macro here to invoke that function.
7211 (symbol_init_mangled_name): Declaration for that function.
7212 * symtab.c (symbol_init_mangled_name): New function.
7213
dc672865
AC
72142002-03-27 Andrew Cagney <ac131313@redhat.com>
7215
7216 * valarith.c: Replace strerror with safe_strerror.
7217 * tracepoint.c: Ditto.
7218 * lin-lwp.c: Ditto.
7219 * go32-nat.c: Ditto.
7220 * inflow.c: Ditto.
7221 * gnu-nat.c: Ditto.
7222
d96429cd
AS
72232002-03-27 Andreas Schwab <schwab@suse.de>
7224
7225 * event-top.c (command_line_handler): Remove useless if.
7226
7e336ba1
AJ
72272002-03-27 Andreas Jaeger <aj@suse.de>
7228
7229 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7230 comment.
7231
de220d0f
ML
72322002-03-27 Michal Ludvig <mludvig@suse.cz>
7233
7234 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7235 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7236 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7237 (x86_64_linux_dr_get_status, supply_gregset),
7238 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7239 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7240 (x86_64_register_info_table): Add.
7241 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7242 (x86_64_register_raw_size, x86_64_register_virtual_type),
7243 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7244 general x86_64_register_info_table.
7245 (i386_gdbarch_init): gdbarch_register_bytes is now set
7246 dynamicaly during initialization.
7247 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7248 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7249
0e98d0a7
DJ
72502002-03-27 Daniel Jacobowitz <drow@mvista.com>
7251
7252 * gdbserver/server.c (main): Call target_signal_to_host_p
7253 and target_signal_to_host on signals received from the remote.
7254 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7255 target_signal_from_host on signals sent to the remote.
7256 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7257 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7258
3130066b
DJ
72592002-03-27 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * signals/signals.c: Include "server.h" in gdbserver build.
7262 (target_signal_from_name): Don't use STREQ.
7263 (_initialize_signals): Likewise. Don't include function in
7264 gdbserver build.
7265
9aedf4f4
DJ
72662002-03-27 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * signals.c: Moved to...
7269 * signals/signals.c: Here.
7e336ba1 7270 * Makefile (signals.o): Update.
9aedf4f4 7271
3fa41cdb
JL
72722002-03-26 Jeff Law (law@redhat.com)
7273
7274 * somread.c (som_symtab_read): Remove some commented out code and
7275 updated related comments. Do not set the minimal symbol table to
7276 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7277 in a dynamic executable.
7278 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7279 where we are unable to find the minimal symbol for the given
7280 PC value.
7281
ee677e8d
MS
72822002-03-25 Jeff Law (law@redhat.com)
7283
7284 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7285
e76e1718
ML
72862002-03-25 Michal Ludvig <mludvig@suse.cz>
7287
7288 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7289
18a642a1
AC
72902002-03-23 Andrew Cagney <ac131313@redhat.com>
7291
7292 * command.h: Update copyright.
7293 (struct cmd_list_element): Replace definition with opaque
7294 declaration.
7295 (enum cmd_types): Document that it will eventually be moved to
7296 cli/cli-decode.h
7297 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7298 (MALLOCED_REPLACEMENT): Delete macro.
7299 * Makefile.in (cli_decode_h): Add $(command_h).
7300 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7301 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7302 * completer.c: Include "cli/cli-decode.h".
7303 * maint.c: Include "cli/cli-decode.h".
7304 * cli/cli-decode.h: Include "command.h".
7305 (enum command_class): Delete.
7306 (enum cmd_types): Comment out.
7307 (enum cmd_auto_boolean): Delete.
7308 (enum var_types): Delete.
7309
b2875cc0
AC
73102002-03-23 Andrew Cagney <ac131313@redhat.com>
7311
7312 * cli/cli-decode.c: Include "gdb_assert.h".
7313 (add_set_or_show_cmd): New static function.
7314 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7315 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7316 all fields, such as func, from the set command.
7317
3b45974e
AC
73182002-03-23 Andrew Cagney <ac131313@redhat.com>
7319
7320 * MAINTAINERS (sh-elf): Change warning flag to -w.
7321
823ca731
AC
73222002-03-23 Andrew Cagney <cagney@redhat.com>
7323
7324 * defs.h (error): Add printf format attribute.
7325 * thread-db.c (thread_from_lwp): Fix error format string.
7326 * stack.c (parse_frame_specification): Ditto.
7327 * cli/cli-decode.c (undef_cmd_error): Ditto.
7328 * scm-lang.c (scm_lookup_name): Ditto.
7329 * tracepoint.c (trace_error): Ditto.
7330 * remote-utils.c (usage): Ditto.
7331 * remote.c (compare_sections_command): Ditto.
7332 Fix PR gdb/328.
7333
0e101458
AC
73342002-03-22 Andrew Cagney <ac131313@redhat.com>
7335
7336 * gdbtypes.c (append_composite_type_field): New function.
7337 (init_composite_type): New function.
7338 * gdbtypes.h (append_composite_type_field): Declare.
7339 (init_composite_type): Ditto.
7340
8e0662df
EZ
73412002-03-22 Elena Zannoni <ezannoni@redhat.com>
7342
7343 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7344 function.
8e0662df
EZ
7345 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7346 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7347 structure returning convention for SYSV ABI case, but not
7348 for GNU/Linux, FreeBSD, or NetBSD.
7349
3121eff0
DJ
73502002-03-22 Daniel Jacobowitz <drow@mvista.com>
7351
7352 * symtab.h (lookup_block_symbol): Add mangled_name argument
7353 to prototype.
7354
7355 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7356 with new mangled_name argument.
7357 * linespec.c (decode_line_1): Likewise.
7358 * valops (value_of_this): Likewise.
7359 * symtab.c (lookup_transparent_type): Likewise.
7360 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7361 (lookup_symbol): If we are given a mangled name, pass it down
7362 to lookup_symbol_aux.
7363 (lookup_block_symbol): If we are given a mangled name to check
7364 against, only return symbols which match it.
7365
349b409f
CF
73662002-03-22 Christopher Faylor <cgf@redhat.com>
7367
7368 * win32-nat.c (child_create_inferior): Check for proper shell to use
7369 here, in case the user changes it on the fly.
7370 (_initialize_inftarg): Remove shell path considerations.
7371
2a873819
EZ
73722002-03-21 Elena Zannoni <ezannoni@redhat.com>
7373
7374 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7375 for gdbarch_max_register_raw_size and max_register_virtual_size.
7376 Adjust copyright year.
7377
a1b9830c
DJ
73782002-03-21 Daniel Jacobowitz <drow@mvista.com>
7379
7380 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7381 in a function to cover the entire beginning of the function
7382 as well if it does not already.
7383
8b5790f2
TR
73842002-03-21 Tom Rix <trix@redhat.com>
7385
7386 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7387 (rs6000_ptrace64): Renamed from ptrace64.
7388
bdbe5747
MH
73892002-03-20 Martin M. Hunt <hunt@redhat.com>
7390
7391 * gdbserver/remote-utils.c (remote_open): Don't call
7392 getprotobyname, we're all using TCP here so just use
7393 IPPROTO_TCP.
7e336ba1 7394 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7395
73962002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7397
bdbe5747
MH
7398 * regcache.c (_initialize_regcache): No need to call
7399 build_regcache() at this time; it gets called whenever
7400 the gdbarch changes.
7401
7781cd62
DB
74022002-03-20 David O'Brien <obrien@FreeBSD.org>
7403
7404 * sparc-nat.c: Include sys/param.h where possible.
7405
f65ca430
DJ
74062002-03-20 Daniel Jacobowitz <drow@mvista.com>
7407
7408 Fix PR gdb/422.
7409 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7410 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7411 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7412 complex types.
7413 * stabsread.c (rs6000_builtin_type): Likewise.
7414 (read_sun_floating_type): Likewise.
7415
0c867556
PS
74162002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7417
7418 * stabsread.c (read_member_functions): Remove skip code for duplicate
7419 constructor/destructor methods. Use standard parsing for these
7420 methods and just do not chain them to the list of methods after
7421 parsing.
7422
12b9c64f
AO
74232002-03-19 Alexandre Oliva <aoliva@redhat.com>
7424
7425 * coffread.c: Remove redundant static declarations. Replace
7426 occurrences of `PTR' with `void *'.
7427 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7428 * top.h (quit_cover): Likewise.
7429 * defs.h (catch_errors): Likewise.
7430
349c5d5f
AC
74312002-03-18 Andrew Cagney <ac131313@redhat.com>
7432
7433 * defs.h (XMALLOC): Define.
7434 * gdb-events.sh (XMALLOC): Delete macro.
7435 * gdb-events.c, gdb-events.h: Regenerate.
7436 * gdbarch.sh (XMALLOC): Delete macro.
7437 * gdbarch.c: Regenerate.
7438 * serial.c (XMALLOC): Delete macro.
7439 * ui-file.c (XMALLOC): Ditto.
7440 * ser-unix.h (XMALLOC): Ditto.
7441 * sh-tdep.c (XMALLOC): Ditto.
7442 * ui-out.c (XMALLOC): Ditto.
7443 * utils.c (XMALLOC): Ditto.
7444 * i386-tdep.c (XMALLOC): Ditto.
7445 * gdb-events.c (XMALLOC): Ditto.
7446 * d10v-tdep.c (XMALLOC): Ditto.
7447 * cli-out.c (XMALLOC): Ditto.
7448
7449 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7450 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7451 * ui-file.c, ui-out.c: Ditto.
7452
7d0766f3
AC
74532002-03-18 Andrew Cagney <ac131313@redhat.com>
7454
7455 * command.h (struct cmd_list_element): Add field context.
7456 (set_cmd_context, get_cmd_context): Declare.
7457 * cli/cli-decode.h: Ditto.
7458 * cli/cli-decode.c (get_cmd_context): New function.
7459 (set_cmd_context): New function.
7460 (add_cmd): Initialize context.
7461 Part of fixing PR gdb/145 and PR gdb/146.
7462
5913bcb0
AC
74632002-03-17 Andrew Cagney <ac131313@redhat.com>
7464
1868c04e
AC
7465 * cli/cli-decode.c (cmd_type): New function.
7466 * command.h (cmd_type): Declare.
7467 * infrun.c (set_schedlock_func): Call function cmd_type.
7468 * kod.c (kod_set_os): Call cmd_type.
7469 * cris-tdep.c (cris_version_update): Use function cmd_type.
7470 (cris_mode_update, cris_abi_update): Ditto.
7471
5913bcb0
AC
7472 * command.h: (execute_cmd_post_hook): Declare.
7473 (execute_cmd_pre_hook): Declare.
7474 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7475 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7476 functions. Execute pre/post hook while ensuring that afterwords
7477 hook_in is cleared.
7478 * top.c (execute_command): Use execute_cmd_post_hook, and
7479 execute_cmd_pre_hook to execute pre/post commands.
7480 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7481 hook_stop_stub.
7482 (hook_stop_stub): Call execute_cmd_pre_hook.
7483
b51450c9
AC
74842002-03-17 Andrew Cagney <ac131313@redhat.com>
7485
7486 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7487 set'' and this leads to a core dump. Move xstrdup of
7488 operating_system to after check that it is not NULL.
7489
f66c9f11
AC
74902002-03-17 Andrew Cagney <ac131313@redhat.com>
7491
8e694ecf
AC
7492 * kod.c (kod_set_os): Remove unnecessary check that
7493 ``command->type'' is set_cmd.
7494
f66c9f11
AC
7495 * valprint.c (set_input_radix): Use input_radix.
7496 (set_output_radix): Use output_radix.
7497 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7498 isn't reverted.
7499
9d01611c
AC
75002002-03-16 Andrew Cagney <ac131313@redhat.com>
7501
7502 * value.h (struct value): Delete field ``substring_addr''. Change
7503 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7504 force_core_addr_align and force_pointer_aligh.
7505
7506 * value.h (struct value): Fix typo in above change.
9d01611c 7507
4156bb53
PS
75082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7509
7510 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7511 to fix internal_error from ``maintenance print architecture''.
7512
0e5e3ea6
PS
75132002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7514
7515 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7516 for gcc versions after gcc-2.8.1.
7517
9b013045
PS
75182002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7519
7520 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7521 for method resolution. Restore adjustment of ``this'' pointer after
7522 calling value_struct_elt, which was accidentally removed during the
7523 HP merge.
7524
376c9600
AC
75252002-03-15 Andrew Cagney <ac131313@redhat.com>
7526
7527 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7528 value_of_register.
7529 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7530 get_saved_register.
7531 * value.h (value_of_register): Update.
7532
a4db0f07
RH
75332002-03-14 Richard Henderson <rth@redhat.com>
7534
7535 * configure.in: Detect declaration for canonicalize_file_name.
7536 * utils.c (canonicalize_file_name): Declare, if needed.
7537 (gdb_realpath): Prefer realpath if available and usable.
7538 * config.in, configure: Rebuild.
7539
96383835
RH
75402002-03-14 Richard Henderson <rth@redhat.com>
7541
7542 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7543 a constant array bound.
7544
7545 * MAINTAINERS: Add myself to write-after-approval.
7546
75245b24
MS
75472002-03-14 Michael Snyder <msnyder@redhat.com>
7548
7549 * symfile.c (syms_from_objfile): Return immediately if no syms.
7550 (symbol_file_add): Return immediately if no syms.
7551 (find_sym_fns): Return immediately if no syms.
7552
e641a1ca
ML
75532002-03-13 Michal Ludvig <mludvig@suse.cz>
7554
7555 * gdbserver/remote-util.c (remote_open): Print remote-side's
7556 IP address when remote debugging over the network.
7e336ba1 7557
df08bfec
DB
75582002-03-12 David O'Brien <obrien@FreeBSD.org>
7559
7560 * config/sparc/fbsd.mh: Fix copyright.
7561 * config/sparc/fbsd.mt: Likewise.
7562
9a57864f
RE
75632002-03-11 Richard Earnshaw <rearnsha@arm.com>
7564
7565 * MAINTAINERS: Fix typo in name of gdb warnings option.
7566 (x86-64): Fix formating so that this can be parsed by awk.
7567
dd7bf85e
DJ
75682002-03-10 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7571 * defs.h: Include "gdb/signals.h".
7572 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7573
33a0a2ac
ML
75742002-03-10 Michal Ludvig <mludvig@suse.cz>
7575
7576 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7577 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7578 from x86-64-tdep.h
7579
dd824b04
DJ
75802002-03-10 Daniel Jacobowitz <drow@mvista.com>
7581 Don Howard <dhoward@redhat.com>
7582
7583 * mips-tdep.c (ST0_FR): Define.
7584 (mips2_fp_compat): New function, temporarily disabled.
7585 (mips_read_fp_register_single): New function.
7586 (mips_read_fp_register_double): New function.
7587 (mips_print_register): Use them.
7588 (do_fp_register_row): Likewise.
7589
6a41ff59
AC
75902002-03-09 Andrew Cagney <ac131313@redhat.com>
7591
7592 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7593 approval''.
7594
4ea09c10
PS
75952002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7596
7597 * stabsread.c (read_member_functions): Fix is_stub test for
7598 static member functions, improve comment.
7599
6ccc741d
RE
76002002-03-07 Richard Earnshaw <rearnsha@arm.com>
7601
7602 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7603 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7604 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7605 commands that set boolean values.
7606 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7607 (arm_rdi_resume): Always initialize PC.
7608 (arm_rdi_open): Don't use rslt as a boolean.
7609 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7610 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7611 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7612 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7613
438013df
AO
76142002-03-06 Alexandre Oliva <aoliva@redhat.com>
7615
7616 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7617 * configure: Rebuilt.
7618
70ed8774
SC
76192002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7620
7621 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7622 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7623
5ba2abeb
AC
76242002-03-06 Andrew Cagney <ac131313@redhat.com>
7625
7626 * cli/cli-decode.c (set_cmd_completer): New function.
7627 * command.h (set_cmd_completer): Declare.
7628 * cli/cli-decode.h (set_cmd_completer): Ditto.
7629
7630 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7631 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7632 * win32-nat.c (_initialize_inftarg): Ditto.
7633 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7634 * proc-api.c (_initialize_proc_api): Ditto.
7635 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7636 * source.c (_initialize_source): Ditto.
7637 * exec.c (_initialize_exec): Ditto.
7638 * solib.c (_initialize_solib): Ditto.
7639 * top.c (init_main): Ditto.
7640 * tracepoint.c (_initialize_tracepoint): Ditto.
7641 * symfile.c (_initialize_symfile): Ditto.
7642 * printcmd.c (_initialize_printcmd): Ditto.
7643 * infcmd.c (_initialize_infcmd): Ditto.
7644 * corefile.c (_initialize_core): Ditto.
7645
f779ca99
AC
76462002-03-05 Andrew Cagney <ac131313@redhat.com>
7647
7648 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7649
01a3934b
AC
76502002-03-05 Andrew Cagney <ac131313@redhat.com>
7651
7652 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7653
37057839
AC
76542002-03-05 Andrew Cagney <ac131313@redhat.com>
7655
7656 * NEWS: Update headings, 5.2 has branched.
7657
c6ecbae5
DJ
76582002-03-04 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7661 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7662 (register_addr, REGISTER_RAW_SIZE): Likewise.
7663 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7664 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7665
e9f30c21
ML
76662002-03-03 Michal Ludvig <mludvig@suse.cz>
7667
7668 * MAINTAINERS (x86-64): Add myself.
7669 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7670 changed value_ptr -> struct value *
7671
54394ac3
DB
76722002-03-01 David O'Brien <obrien@FreeBSD.org>
7673
7674 * configure.host (sparc64-*-freebsd): Add.
7675 * configure.tgt: Likewise.
7676 * config/sparc/fbsd.mh: New file.
7677 * config/sparc/fbsd.mt: Likewise.
7678 * config/sparc/nm-fbsd.h: Likewise.
7679 * config/sparc/tm-fbsd.h: Likewise.
7680
bfe95955
DJ
76812002-03-01 Daniel Jacobowitz <drow@mvista.com>
7682
7683 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7684 regformats/reg-s390x.dat.
7685
f33c6cbf
AC
76862002-03-01 Andrew Cagney <ac131313@redhat.com>
7687
7688 * utils.c: Add FIXME explaining true/false problem.
7689
5ecaa7dd
AC
76902002-02-28 Andrew Cagney <ac131313@redhat.com>
7691
7692 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7693
2a251cc2
MC
76942002-02-28 Michael Chastain <mec@shout.net>
7695
7696 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7697
6a8031a3 76982002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7699
7700 * gdbserver/linux-s390-low.c: New file.
7701 * regformats/reg-s390.dat: New file.
7702 * regformats/reg-s390x.dat: New file.
7703 * gdbserver/configure.srv: Add S/390.
7704 * gdbserver/Makefile.in: Add S/390.
7705 * configure.tgt: Enable gdbserver for S/390.
7706
ac469903
EZ
77072002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7708
7709 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7710 first line of the doc string for "info dos", except at the end of
7711 the sentence, since the short help stops at the first period.
7712
985cb1a3
JM
77132002-02-28 Jason Merrill <jason@redhat.com>
7714
7715 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7716
c570663e
FF
77172002-02-27 Fred Fish <fnf@redhat.com>
7718
7719 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7720 comment (dumy -> dummy).
7721
43630227
PS
77222002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7723
7724 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7725
b84911e8
RB
77262002-02-27 Rodney Brown <rbrown64@csc.com.au>
7727
7728 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7729
58caa3dc
DJ
77302002-02-27 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * gdbserver/acconfig.h: New file.
7733 * gdbserver/i387-fp.c: New file.
7734 * gdbserver/i387-fp.h: New file.
7735 * gdbserver/linux-x86-64.c: New file.
7736 * regformats/reg-x86-64.dat: New file.
7737 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7738 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7739 * gdbserver/configure.in: Add support for regsets.
7740 * gdbserver/config.in: Regenerate.
7741 * gdbserver/configure: Regenerate.
7742 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7743 * gdbserver/linux-low.h: New file.
7744 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7745 for regsets.
7746 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7747 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7748 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7749 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7750 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7751 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7752 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7753 "i387-fp.h". Add PTRACE_GETREGS and friends.
7754 * gdbserver/regcache.c (supply_register): New function.
7755 (supply_register_by_name): New function.
7756 (collect_register): New function.
7757 (collect_register_by_name): New function.
7758
93652174
DJ
77592002-02-27 Daniel Jacobowitz <drow@mvista.com>
7760
7761 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7762 (config.status): Add configure.srv dependency.
7763 (server_h): Add config.h dependency.
7764
a02e4a61
DJ
77652002-02-27 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7768 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7769 * gdbserver/configure.srv: Change i386-*-linux* to use
7770 reg-i386-linux.o.
7771
ce0eebec
AC
77722002-02-26 Andrew Cagney <ac131313@redhat.com>
7773
7774 * x86-64-tdep.c: Re-indent. Update copyright date.
7775
82dbc5f7
AC
77762002-02-26 Andrew Cagney <ac131313@redhat.com>
7777
7778 From Michal Ludvig <mludvig@suse.cz>:
7779 * x86-64-tdep.c (value.h): Delete.
7780 (gdb_assert.h): Include.
7781 (x86_64_register_convert_to_virtual,
7782 x86_64_register_convert_to_raw ): Add check which lets only
7783 floating-point values to be converted.
7784 (value_push): Delete.
7785 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7786 (i386_gdbarch_init): Number of register_bytes fixed.
7787
e4621584
AC
77882002-02-26 Andrew Cagney <ac131313@redhat.com>
7789
7790 * MAINTAINERS: Add x86-64 target.
7791
81a9a963
AC
77922002-02-26 Andrew Cagney <ac131313@redhat.com>
7793
7794 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7795 * osfsolib.c (solib_map_sections): Ditto.
7796 * irix5-nat.c (solib_map_sections): Ditto.
7797 * corelow.c (gdb_check_format): Ditto.
7798 * symfile.c (symfile_bfd_open): Ditto.
7799 * solib.c (solib_map_sections): Ditto.
7800 Fix PR gdb/354.
7e336ba1 7801
0f017ab9
AC
78022002-02-26 Andrew Cagney <ac131313@redhat.com>
7803
7804 * remote.c (_initialize_remote): By default, disable ``e'' and
7805 ``E'' step out-of-range packets.
7806
75738c29
AS
78072002-02-26 Andreas Schwab <schwab@suse.de>
7808
7809 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7810 m68k_linux_frame_saved_pc.
7811 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7812 in_sigtramp.
7813 (SIGCONTEXT_PC_OFFSET): Remove.
7814 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7815 m68k_linux_sigtramp_saved_pc): New functions.
7816 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7817 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7818 (UCONTEXT_PC_OFFSET): Define.
7819 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7820 non-RT and RT signal trampolines.
7821
7e8ed687
RE
78222002-02-26 Richard Earnshaw <rearnsha@arm.com>
7823
7824 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7825 (TARGET_NBPG, STACK_END_ADDR): Delete
7826 (VARIABLES_INSIDE_BLOCK): Delete.
7827
6972bc8b
AC
78282002-02-25 Andrew Cagney <ac131313@redhat.com>
7829
7830 * utils.c (perror_with_name): Make string parameter constant.
7831 (print_sys_errmsg): Ditto.
7832 (query): Ditto.
7833 * defs.h (perror_with_name): Update.
7834 (print_sys_errmsg): Update.
7835 (query): Update.
7836
aa32f823
DJ
78372002-02-25 Daniel Jacobowitz <drow@mvista.com>
7838
7839 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7840 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7841
19caaa45
PS
78422002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7843
7844 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7845 if it already matches the current architecture from the exec file.
7846 Include arch-utils.h for gdbarch_info_init prototype.
7847 * Makefile.in (rs6000-nat.o): Update dependencies.
7848
d951901f
EZ
78492002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7850
7851 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7852 list of exported variables.
7853
7ea81414
DJ
78542002-02-24 Daniel Jacobowitz <drow@mvista.com>
7855
7856 * gdbserver/configure.srv: New file.
7857 * gdbserver/configure.in: Use configure.srv instead
7858 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7859 from it.
7860 * gdbserver/configure: Regenerated.
7861 * gdbserver/terminal.h: New file.
7862 * gdbserver/Makefile.in: Update for configure changes. Remove
7863 more unneeded include paths.
7864
080fe24b
AC
78652002-02-24 Andrew Cagney <ac131313@redhat.com>
7866
7867 From wiz at danbala:
7868 * config/sparc/tm-sp64.h: Fix grammar and typos.
7869 Fix PR gdb/287.
7870
8605d56e
AC
78712002-02-24 Andrew Cagney <ac131313@redhat.com>
7872
7873 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7874 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7875 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7876 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7877 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7878 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7879 * s390-tdep.c: Ditto.
92362027
AC
7880 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7881 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7882 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7883 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7884 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7885 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7886 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7887 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7888 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7889 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7890 Fix PR gdb/378.
7e336ba1 7891
8ed32cc0
AC
78922002-02-23 Andrew Cagney <ac131313@redhat.com>
7893
a3007b6f
AC
7894 * lin-thread.c: Delete file.
7895 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7896 to gdb_proc_service.h.
7897 * configure: Re-generate.
7898
50a9e2f1
AC
7899 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7900 * serial.c (serial_open): Delete check for "ocd".
7901 Fix PR gdb/349.
7902
8b6e7932
AC
7903 * Makefile.in (linux-thread.o): Delete target.
7904 * linux-thread.c: Delete file.
7905
d155c46b
AC
7906 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7907 renamed SH files to be consistent.
7908
8ed32cc0
AC
7909 * symtab.c (sort_search_symbols): Use xfree.
7910
0e18d038
RE
79112002-02-23 Richard Earnshaw <rearnsha@arm.com>
7912
7913 * arm-linux-tdep.c (arm_linux_init_abi): Register
7914 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7915 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7916 definition with undef, since we don't want the sysvr4 definition.
7917 (SKIP_TRAMPOLINE_CODE): Likewise.
7918
27aac7ff
AC
79192002-02-23 Andrew Cagney <ac131313@redhat.com>
7920
7921 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7922
7923 * configure.in: (AC_CHECK_FUNCS) Added test for
7924 canonicalize_file_name Regenerated.
7925 * config.in, configure: Regenerated.
7926 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7927 defined use canonicalize_file_name.
7e336ba1 7928
65a6e0ee
MC
79292002-02-23 Michael Chastain <mec@shout.net>
7930
7931 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7932
47b95330
AC
79332002-02-23 Andrew Cagney <ac131313@redhat.com>
7934
7935 * README: Remove references to cygnus.com.
7936 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7937 dot com'' form. Remove references to cygnus.com and sourceware.
7938
696f451b
AC
79392002-02-23 Andrew Cagney <ac131313@redhat.com>
7940
7941 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7942 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7943 1003.1-2001 no longer allows "head -1".
7944 * gdb/Makefile.in (version.c): Likewise.
7945 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7946 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7947 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7948
bbaca940
AC
79492002-02-23 Andrew Cagney <ac131313@redhat.com>
7950
7951 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7952 * command.h (cmd_cfunc_eq): Declare.
7953 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7954
7955 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7956 ``struct cmd_list_element *''.
7957 * cli/cli-cmds.c (is_complete_command): Update. Use
7958 cmd_cfunc_eq.
7959 * top.c (execute_command): Pass the command to
7960 is_complete_command.
7961 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7962
b8b8b047
AC
79632002-02-23 Andrew Cagney <ac131313@redhat.com>
7964
7965 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7966 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7967 architecture defines.
7968 * s390-tdep.c (s390_gdbarch_init): Likewise.
7969
19d3fc80
RE
79702002-02-23 Richard Earnshaw <rearnsha@arm.com>
7971
7972 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7973 (arm_linux_push_arguments): Likewise.
7974 (arm_linux_init_abi): Register them. Also register linux-specific
7975 call_dummy_words.
7976 (find_minsym_and_objfile): Use strcmp, not STREQ.
7977 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7978 (arm_linux_call_dummy_words): Delete declaration.
7979 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7980 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7981 declarations.
7982 (LOWEST_PC): Delete.
7983
3ab13650
PS
79842002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7985
7986 * maint.c (print_section_info): Do not prepend `0x' to filepos
7987 output, it will be handled by local_hex_string_custom.
7988
19d3fc80 79892002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7990
7991 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7992 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7993 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7994
d85a5daf
JB
79952002-02-22 Jim Blandy <jimb@redhat.com>
7996
7997 Indicate that the bcache functions don't change the strings
7998 they're passed.
7999 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8000 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8001
eeb25b8a
PM
80022002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8003
8004 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8005
6badb179
CF
80062002-02-21 Christopher Faylor <cgf@redhat.com>
8007
8008 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8009 find the complete path to a loaded DLL.
8010
e8717518
FF
80112002-02-21 Fred Fish <fnf@redhat.com>
8012
8013 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8014 that marks the end of the range of a function, enter a line number
8015 entry that has a line number of zero and a PC offset that matches
8016 the end of the function. This starts a range of PC's for which no
8017 line number information is known.
8018 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8019 PC's for which no line number info is found (line number is zero)
8020 then we didn't find any valid line information.
8021 * symtab.h: Document use of zero line number entry.
8022
9abe5450
EZ
80232002-02-21 Elena Zannoni <ezannoni@redhat.com>
8024
8025 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8026 (have_ptrace_getvrregs): Define for run time checks.
8027 (gdb_vrregset_t): New type for Altivec register handling.
8028 (fetch_register, store_register): Fetch/store altivec register
8029 when needed.
8030 (fetch_altivec_register, store_altivec_register): New functions.
8031 (supply_vrregset, fill_vrregset): New functions.
8032 (fetch_altivec_registers, store_altivec_registers): New functions.
8033 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8034 registers as well.
8035
aaa38bb5
AJ
80362002-02-21 Jiri Smid <smid@suse.cz>
8037
8038 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8039
b34db576
RE
80402002-02-21 Richard Earnshaw <rearnsha@arm.com>
8041
8042 * Makefile.in (armnbsd-nat.o): Update dependencies.
8043 * armnbsd-nat.c (supply_gregset): New function. Common code to
8044 supply the integer register set.
8045 (supply_fparegset): New function. Similar for FPA registers.
8046 (fetch_regs, fetch_fp_regs): Use them.
8047 (fetch_core_registers): Likewise.
8048 (fetch_elfcore_registers): New function.
8049 (arm_netbsd_elfcore_fns): New core-file type specification.
8050 (_initialize_arm_netbsd_nat): Register it.
8051
3e56fc4b
RE
80522002-02-21 Richard Earnshaw <rearnsha@arm.com>
8053
8054 * armnbsd-nat.c: Include gdbcore.h.
8055 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8056 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8057 'void' to declaration, to shut up ARI.
8058 (fetch_core_registers): Make static. Rewrite using supply_register.
8059 (arm_netbsd_core_fns): New core-file type specification.
8060 (_initialize_arm_netbsd_nat): New function.
8061
097f6b0b
CF
80622002-02-21 Christopher Faylor <cgf@redhat.com>
8063
8064 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8065 value.
8066
c914e0cc
CF
80672002-02-20 Christopher Faylor <cgf@redhat.com>
8068
8069 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8070 fails.
8071
385fa495
DJ
80722002-02-20 Daniel Jacobowitz <drow@mvista.com>
8073
8074 * jv-exp.y (parse_number): Change type of implicit longs
8075 to builtin_type_uint64.
8076
e5f1222d
DJ
80772002-02-20 Daniel Jacobowitz <drow@mvista.com>
8078
8079 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8080 to be an integer instead of a `union wait'.
8081
75c9abc6
DJ
80822002-02-20 Daniel Jacobowitz <drow@mvista.com>
8083
8084 * mips-linux-nat.c: Call the operating system GNU/Linux.
8085 * mips-linux-tdep.c: Likewise.
8086 * mips-tdep.c: Likewise.
8087
551792a5
DJ
80882002-02-20 Daniel Jacobowitz <drow@mvista.com>
8089
8090 Fix PR gdb/265.
8091 * jv-exp.y (parse_number): Handle 64-bit integers.
8092
ee6e2b82
DJ
80932002-02-20 Daniel Jacobowitz <drow@mvista.com>
8094
8095 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8096 AC_STDC_HEADERS to AC_HEADER_STDC.
8097 * gdbserver/configure: Regenerated.
8098
a48442a0
RE
80992002-02-20 Richard Earnshaw <rearnsha@arm.com>
8100
8101 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8102 is defined.
8103 * sparc-tdep.c (get_longjmp_target): Likewise.
8104
fe419ffc
RE
81052002-02-20 Richard Earnshaw <rearnsha@arm.com>
8106
8107 * News: Add news about ARM and Multi-arch. Mention the new target
8108 arm*-*-netbsd*.
8109
5832ed7e
JB
81102002-02-19 Jim Blandy <jimb@redhat.com>
8111
8112 * stabsread.c (error_type_complaint): Improve error message.
8113
84563040
DJ
81142002-02-19 Daniel Jacobowitz <drow@mvista.com>
8115
8116 * gdbserver/README: Update documentation.
8117 * gdbserver/configure.in: Update configury to match documentation.
8118 * gdbserver/Makefile.in: Likewise.
8119 * gdbserver/configure: Regenerated.
8120 * gdbserver/aclocal.m4: New file, generated by aclocal.
8121 * gdbserver/config.in: New file, generated by autoheader.
8122
375fd65b
RE
81232002-02-19 Richard Earnshaw <rearnsha@arm.com>
8124
8125 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8126 armnbsd-nat.c.
8127
08216dd7
RE
81282002-02-19 Richard Earnshaw <rearnsha@arm.com>
8129
8130 * arm-tdep.h (enum arm_float_model): New enum.
8131 (struct gdbarch_tdep): Add fp_model.
8132 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8133 up floating-point conversions until we know the floating-point model
8134 in use by the inferior. Don't complain about being unable to
8135 determine the ABI of the inferior when we don't have one.
8136 (arm_extract_return_value): Support different floating-point models.
8137 (arm_store_return_value): Likewise.
aaa38bb5 8138 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8139 ARM_FLOAT_SOFT.
8140 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8141
65d6d66a
PS
81422002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8143
8144 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8145 of ``current_gdbarch''.
8146
47221191
RE
81472002-02-19 Richard Earnshaw <rearnsha@arm.com>
8148
8149 * armnbsd-nat.c : ANSIfy all function declarations.
8150 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8151 (fetch_inferior_registers): Re-implement in terms of above.
8152 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8153 (store_inferior_registers): Re-implement in terms of above.
8154
fdf39c9a
RE
81552002-02-19 Richard Earnshaw <rearnsha@arm.com>
8156
aaa38bb5 8157 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8158 kernel.
8159 * arm-linux-tdep.c: Likewise.
8160 * config/arm/tm-linux.h: Likewise.
8161
93247f88
RE
81622002-02-19 Richard Earnshaw <rearnsha@arm.com>
8163
8164 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8165 * config/arm/nbsd.mt (TM_FILE): Delete.
8166 * config/arm/tm-nbsd.h: Delete.
8167
d7b486e7
RE
81682002-02-19 Richard Earnshaw <rearnsha@arm.com>
8169
8170 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8171 Initialize CALL_DUMMY_LENGTH.
8172
41d39a95
RE
81732002-02-19 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8176 function.
8177 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8178 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8179 defines one thing and that is incorrect for this port.
8180 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8181
e1195560
PM
81822002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8183
8184 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8185
c1748f97
PM
81862002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8187
8188 * win32-nat.c (display_selector): New function. Displays information
8189 about the information returned by GetThreadSelectorEntry API function.
8190 (display_selectors): New function. Displays the infomation of
8191 the selector given as argument, or of CS, DS ans FS selectors
8192 if no argument is given.
8193 ( _initialize_inftarg): Add "w32" as info prefix command.
8194 Add "info w32 selector" as command calling display_selectors.
8195
e41e6bbf
PM
81962002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8197
8198 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8199 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8200 if not defined.
8201
0d3a9f48
RE
82022002-02-18 Richard Earnshaw <rearnsha@arm.com>
8203
8204 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8205
3fb4b924
RE
82062002-02-18 Richard Earnshaw <rearnsha@arm.com>
8207
8208 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8209 (arm_fix_call_dummy): Call it.
8210 (arm_call_dummy_breakpoint_offset): Delete.
8211 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8212 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8213
7f55af32
AC
82142002-02-18 Andrew Cagney <ac131313@redhat.com>
8215
8216 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8217 Default to func_frame_chain_valid.
8218 * gdbarch.h, gdbarch.c: Re-generate.
8219 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8220
05f13b9c
EZ
82212002-02-18 Elena Zannoni <ezannoni@redhat.com>
8222
8223 * ppc-linux-nat.c: Update copyright.
8224 (fetch_register, store_register): Add tid parameter, don't compute
8225 tid here.
8226 (fetch_ppc_registers, store_ppc_registers): Add tid
8227 parameter. Pass it along to callees.
8228 (fetch_inferior_registers, store_inferior_registers): Compute tid
8229 here, and pass it to calleed functions.
8230 (fill_gregset, supply_fpregset): Clean up formatting.
8231
d7afb4c9
RE
82322002-02-18 Richard Earnshaw <rearnsha@arm.com>
8233
8234 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8235 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8236
9df628e0
RE
82372002-02-18 Richard Earnshaw <rearnsha@arm.com>
8238
8239 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8240 * gdbarch.c gdbarch.h: Regenerate.
8241 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8242 function.
8243 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8244 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8245 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8246
8247 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8248 * arm-tdep.c (arm_get_longjmp_target): New function.
8249 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8250 this to a positive value register arm_get_longjmp_target as the
8251 longjmp handler.
8252 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8253 (arm_linux_init_abi): Set up longjmp description in tdep.
8254 * armnbsd-nat.c (get_longjmp_target): Delete.
8255 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8256 description in tdep.
8257 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8258 (get_longjmp_target): Delete declaration.
8259 (GET_LONGJMP_TARGET): Delete.
8260 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8261 (GET_LONGJMP_TARGET): Delete.
8262
57bc8964
KB
82632002-02-17 Kevin Buettner <kevinb@redhat.com>
8264
8265 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8266 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8267 of ``current_gdbarch''.
8268
83d31a92
TT
82692002-02-17 Tom Tromey <tromey@redhat.com>
8270
8271 * cli/cli-cmds.c (compare_strings): New function.
8272 (complete_command): Only print each unique item once.
8273 * completer.h (complete_line): Declare.
8274 * completer.c (complete_line): New function.
8275 (line_completion_function): Use it.
8276
17ef5d92
AC
82772002-02-16 Andrew Cagney <ac131313@redhat.com>
8278
8279 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8280 * gdbarch.h, gdbarch.c: Re-generate.
8281
491b8946
DJ
82822002-02-16 Daniel Jacobowitz <drow@mvista.com>
8283
8284 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8285
82862002-02-16 Daniel Jacobowitz <drow@mvista.com>
8287
8288 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8289 * valops.c (value_arg_coerce): Don't take the address of a reference
8290 to convert an argument to a reference.
8291
dfe7f3ac
CF
82922002-02-15 Christopher Faylor <cgf@redhat.com>
8293
8294 * win32-nat.c (get_image_name): New function.
8295 (handle_load_dll): Use get_image_name function.
8296 (get_child_debug_event): Avoid registering debug events until possibly
8297 execed process is started.
8298 (child_create_inferior): Allow invocation via shell so that command
8299 line redirection, etc. works ok.
8300 (_initialize_inftarg): Add new command: "set shell" to control whether
8301 a shell is used to start a process.
8302
1d33e73a
DJ
83032002-02-15 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8306 instead of find_register_by_number.
8307 (cannot_store_register): Likewise.
8308
48cd0caa
PM
83092002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8310
aaa38bb5 8311 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8312 fprintf_unfiltered (gdb_stderr, ...).
8313
8656e7d8
DJ
83142002-02-15 Daniel Jacobowitz <drow@mvista.com>
8315
8316 * gdbserver/gdbserver.1: Document --attach.
8317
66e810cd
RE
83182002-02-15 Richard Earnshaw <rearnsha@arm.com>
8319
8320 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8321 descriptions.
8322 * arm-tdep.c (arm_default_arm_le_breakpoint)
8323 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8324 (arm_default_thumb_be_breakpoint): New. Initialize them from
8325 traditional breakpoint defines.
8326 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8327 (arm_gdbarch_init): Initialize new breakpoint variables.
8328 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8329 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8330 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8331 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8332 code out to ...
8333 (arm_netbsd_init_abi_common): ... here; new function.
8334 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8335 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8336 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8337 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8338
97e03143
RE
83392002-02-15 Richard Earnshaw <rearnsha@arm.com>
8340
8341 * arm-tdep.h (enum arm_abi): New enum.
8342 (struct gdbarch_tdep): New structure.
8343 (LOWEST_PC): Provide a default.
8344 (arm_gdbarch_register_os_abi): Declare new function.
8345 * arm-tdep.c (arm_abi_names): New array.
8346 (process_note_abi_tag_sections): New function.
8347 (get_elfosabi): New function.
8348 (arm_gdbarch_register_os_abi): New function.
8349 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8350 support for that ABI has been built in, then call the appropriate
8351 configuration routine. Use gdbarch_num_regs() to get the number
8352 of registers.
8353 (arm_dump_tdep): New function.
8354 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8355 place-holder functions.
8356 (_initialize_arm_tdep): Register them.
8357 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8358
8359 * armnbsd-tdep.c: New file.
8360 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8361 * config/arm/nbsd.mt (TDEPFILES): Add it.
8362 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8363
8364 * armnbsd-nat.c: Include regcache.h.
8365 * Makefile.in (armnbsd-nat.o): Update dependency list.
8366
8367 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8368
ad68be46
DJ
83692002-02-14 Daniel Jacobowitz <drow@mvista.com>
8370
8371 * gdbserver/Makefile.in: Fix typos in target rules.
8372
003d6d1d
DJ
83732002-02-14 Daniel Jacobowitz <drow@mvista.com>
8374
aaa38bb5 8375 Fix part of PR gdb/267.
003d6d1d
DJ
8376 * linespec.c (find_methods): Handle constructors specially for now.
8377
6b230f1b
CV
83782002-02-14 Corinna Vinschen <vinschen@redhat.com>
8379
8380 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8381 handling.
8382 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8383 standard_coerce_float_to_double().
8384
1ea98d12
CF
83852002-02-14 Christopher Faylor <cgf@redhat.com>
8386
8387 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8388 GDBINIT_FILENAME.
8389
dd47e6fd
EZ
83902002-02-14 Elena Zannoni <ezannoni@redhat.com>
8391
8392 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8393 find_variant_by_name, because it confuses the multiarch
8394 framework. Return NULL if there isn't an architecture with the
8395 user supplied name, instead of forcing a different one without
8396 recording the change with the multiarch machinery.
8397 (find_variant_by_name): Delete.
8398
d7e39b9e
PS
83992002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8400
8401 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8402 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8403
76e42a4f
MH
84042002-02-13 Martin M. Hunt <hunt@redhat.com>
8405
aaa38bb5 8406 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8407 print_frame_info_listing_hook, set current_source_symtab.
8408
0a30fbc4
DJ
84092002-02-14 Daniel Jacobowitz <drow@mvista.com>
8410
8411 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8412 and remove unused $(INCLUDE_DIR).
8413 Add regcache.c to OBS.
8414 Add generated register protocol files to clean target.
8415 Update dependencies for new objects, obsolete old target code.
8416
8417 * gdbserver/linux-low.c: Remove all platform-specific code to
8418 new files. Remove various dead code. Update to use regcache
8419 functionality.
8420 * gdbserver/remote-utils.c (fromhex): Add return statement
8421 to quiet warning.
8422 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8423 constant.
8424 (input_interrupt): Add integer parameter to match prototype
8425 of a signal handler.
8426 (outreg): Use register_data ().
8427 (prepare_resume_reply): Use gdbserver_expedite_regs.
8428 * gdbserver/server.c (main): Dynamically allocate own_buf because
8429 PBUFSIZ is no longer constant. Use registers_to_string () and
8430 registers_from_string ().
8431 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8432 for error (), fatal (), and warning (). Update definition of
8433 PBUFSIZ to use regcache functionality. Add include guard.
8434 * gdbserver/utils.c (fatal): Add missing ``const''.
8435 (warning): New function.
8436
8437 * regformats/regdat.sh: Include "regcache.h" in generated files.
8438 Provide init_registers () function.
8439 * regformats/regdef.h: Add prototype for set_register_cache ().
8440 Add include guard.
8441
8442 * gdbserver/linux-arm-low.c: New file.
8443 * gdbserver/linux-i386-low.c: New file.
8444 * gdbserver/linux-ia64-low.c: New file.
8445 * gdbserver/linux-m68k-low.c: New file.
8446 * gdbserver/linux-mips-low.c: New file.
8447 * gdbserver/linux-ppc-low.c: New file.
8448 * gdbserver/linux-sh-low.c: New file.
8449
8450 * gdbserver/regcache.c: New file.
8451 * gdbserver/regcache.h: New file.
8452
8453 * gdbserver/low-linux.c: Removed obsolete file.
8454
4cc841d0
DJ
84552002-02-14 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8458 * config/i386/linux.mt: Likewise.
8459 * config/ia64/linux.mt: Likewise.
8460 * config/m68k/linux.mh: Likewise.
8461 * config/powerpc/linux.mh: Likewise.
8462 * config/mips/linux.mt: Likewise.
8463
8464 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8465
8466 * config/i386/i386lynx.mh: Mark gdbserver variables
8467 as (currently) obsolete for this target.
8468 * config/i386/nbsd.mt: Likewise.
8469 * config/i386/nbsdelf.mt: Likewise.
8470 * config/m32r/m32r.mt: Likewise.
8471 * config/m68k/m68klynx.mh: Likewise.
8472 * config/m68k/nbsd.mt: Likewise.
8473 * config/m68k/sun3os4.mh: Likewise.
8474 * config/mips/vr5000.mt: Likewise.
8475 * config/ns32k/nbsd.mt: Likewise.
8476 * config/pa/hppabsd.mh: Likewise.
8477 * config/pa/hppaosf.mh: Likewise.
8478 * config/powerpc/nbsd.mt: Likewise.
8479 * config/rs6000/rs6000lynx.mh: Likewise.
8480 * config/s390/s390.mt: Likewise.
8481 * config/s390/s390x.mt: Likewise.
8482 * config/sparc/sparclynx.mh: Likewise.
8483 * config/sparc/sun4os4.mh: Likewise.
8484 * config/i386/x86-64linux.mt: Likewise.
8485 * config/sparc/linux.mh: Likewise.
8486
a85f51e7
DJ
84872002-02-14 Daniel Jacobowitz <drow@mvista.com>
8488
8489 * configure.tgt: Configure gdbserver only for known working
8490 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8491 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8492 SUBDIRS if it is configured. Update comment for ${nativefile}.
8493 * configure: Regenerated.
8494
65554fef
MS
84952002-02-13 Michael Snyder <msnyder@redhat.com>
8496
670a52db
MS
8497 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8498
6dbdc4a3
MS
8499 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8500 (default_gcore_mach): Just return 0, work around a problem in bfd.
8501 (default_gcore_target): OK to return NULL if exec_bfd is null.
8502 (make_mem_sec): Use a cast, avoid a warning.
8503
8504 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8505 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8506 sizeof (host pointer) != sizeof (target pointer)).
8507 (procfs_make_note_section): Avoid overflow in psargs string.
8508
aaa38bb5 8509 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8510 implementation return an error.
8511
85122002-02-13 Rodney Brown <rbrown64@csc.com.au>
8513
8514 * procfs.c (procfs_make_note_section): Provide a default definition
8515 (for alpha-dec-osf4.0f). Fix typos.
8516
1e4d76e7
EZ
85172002-02-13 Elena Zannoni <ezannoni@redhat.com>
8518
8519 * linux-proc.c: Add include of regcache.h.
8520 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8521
b6d1a1d5
AC
85222002-02-13 Andrew Cagney <ac131313@redhat.com>
8523
8524 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8525 * memattr.c (create_mem_region): Disallow useless empty region.
8526 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8527 non-overlapping.
b6d1a1d5 8528
6c6ea35e
MC
85292002-02-13 Michael Chastain <mec@shout.net>
8530
8531 * defs.h: Kill CONST_PTR.
8532 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8533 * c-lang.c (c_builtin_types): Likewise.
8534 * ch-lang.c (ch_builtin_types): Likewise.
8535 * f-lang.c (f_builtin_types): Likewise.
8536 * language.c (unknown_builtin_types): Likewise.
8537 * m2-lang.c (m2_builtin_types): Likewise.
8538 * p-lang.c (pascal_builtin_types): Likewise.
8539 * scm-lang.c (c_builtin_types): Likewise.
8540
3e0b0f48
KS
85412002-02-13 Keith Seitz <keiths@redhat.com>
8542
8543 * arm-tdep.h (arm_get_next_pc): Add declaration.
8544
67255d04
RE
85452002-02-13 Richard Earnshaw <rearnsha@arm.com>
8546
8547 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8548 with other related struct-returning functions.
8549 (arm_extract_struct_value_address): New function.
8550 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8551 initialize float_format, double_format and long_double_format as
8552 appropriate to the endianness of the target.
8553 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8554 (arm_use_struct_convention): Delete declaration.
8555 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8556
079777f6
KS
85572002-02-13 Keith Seitz <keiths@redhat.com>
8558
8559 * defs.h (core_addr_to_string_nz): New function.
8560
34588f23
MK
85612002-02-13 Mark Kettenis <kettenis@gnu.org>
8562
8563 Apply missing bits of 2002-01-15 patch.
8564 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8565 (fill_fpregset): Use i387_fill_fsave.
8566
49b563f9
KS
85672002-02-12 Keith Seitz <keiths@redhat.com>
8568
49b563f9
KS
8569 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8570 (core_addr_to_string_nz): New function.
8571
aeb98c60
RE
85722002-02-11 Richard Earnshaw <rearnsha@arm.com>
8573
8574 * arm-linux-nat.c: Really include arm-tdep.h.
8575 * config/arm/tm-linux.h (struct type, struct value): Declare.
8576
65554fef
MS
85772002-02-11 Michael Snyder <msnyder@redhat.com>
8578
8579 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8580 (gcore section): Ifdef for Solaris and Unixware only.
8581 (procfs_do_thread_registers): Unixware needs one lwpstatus
8582 per thread (not one prstatus or pstatus).
8583 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8584 not over all gdb threads. For unixware, call elfcore_write_pstatus
8585 once before iterating over threads.
8586
34e8f22d
RE
85872002-02-11 Richard Earnshaw <rearnsha@arm.com>
8588
8589 * arm-tdep.h: New file.
8590 * arm-tdep.c: Include arm-tdep.h.
8591 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8592 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8593 (arm_print_float_info, arm_register_type, convert_to_extended)
8594 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8595 (arm_extract_return_value, arm_register_name): Make static.
8596 (arm_software_single_step): Similarly. Fix types in declaration.
8597 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8598 (arm_store_return_value, arm_store_struct_return): New functions.
8599 (arm_gdbarch_init): Register the above functions. Also register
8600 call_dummy_start_offset, sizeof_call_dummy_words,
8601 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8602 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8603 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8604 prologue_cache.saved_regs here, rather than ...
8605 (_initialize_arm_tdep): ... here.
8606 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8607 declarations.
8608 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8609 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8610 (arm_print_float_info, arm_register_type, convert_to_extended)
8611 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8612 (arm_extract_return_value, arm_register_name): Delete declarations.
8613 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8614 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8615 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8616 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8617 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8618 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8619 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8620 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8621 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8622 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8623 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8624 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8625 interface.
8626 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8627 * remote-rdi.c remote-rdp.c: Likewise.
8628 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8629 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8630 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8631 definition.
8632
8633 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8634 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8635 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8636 from non-ARM_ prefixed definitions.
8637 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8638 all uses of above.
8639 * remote-rdi.c remote-rdp.c: Likewise.
8640 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8641
148754e5
RE
86422002-02-11 Richard Earnshaw <rearnsha@arm.com>
8643
8644 * arm-tdep.c (arm_frameless_function_invocation)
8645 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8646 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8647 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8648 (arm_pop_frame, arm_get_next_pc): Make static.
8649 (arm_gdbarch_init): Register above in gdbarch structure.
8650 (arm_read_fp): Renamed from arm_target_read_fp.
8651 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8652 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8653 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8654 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8655 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8656 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8657 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8658 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8659 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8660 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8661 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8662
434d2d4f
DJ
86632002-02-10 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * symtab.c (compare_search_syms): New function.
8666 (sort_search_symbols): New function.
8667 (search_symbols): Sort symbols after searching rather than
8668 before.
8669
55241689
AC
86702002-02-10 Andrew Cagney <ac131313@redhat.com>
8671
8672 * NEWS: Linux -> GNU/Linux.
8673
028c194b
AC
86742002-02-10 Andrew Cagney <ac131313@redhat.com>
8675
8676 * gdbarch.sh: For for level one methods, disallow a definition
8677 when partially multi-arched. Add comments explaining rationale.
8678 * gdbarch.h: Re-generate.
8679
6acf50cd
AC
86802002-02-10 Andrew Cagney <ac131313@redhat.com>
8681
8682 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8683 multi-arch partial.
aaa38bb5 8684
50248794
AC
86852002-02-10 Andrew Cagney <ac131313@redhat.com>
8686
8687 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8688 field. Use diff -u.
8689 * gdbarch.c: Re-generate.
8690
c30e0066
AC
86912002-02-10 Andrew Cagney <ac131313@redhat.com>
8692
9b56c5f3 8693 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8694 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8695 partial.
8696
6e6d6484
AC
86972002-02-10 Andrew Cagney <ac131313@redhat.com>
8698
8699 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8700 multi-arch partial.
8701 (PUSH_ARGUMENTS): Switch to using predefault.
8702 * gdbarch.c: Regenerate.
8703
c203844d
AC
87042002-02-10 Andrew Cagney <ac131313@redhat.com>
8705
8706 * valops.c (PUSH_ARGUMENTS): Delete definition.
8707 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8708 partial. Default to default_push_arguments.
8709 * gdbarch.h, gdbarch.c: Regenerate.
8710
b5a2688f
AC
87112002-02-09 Andrew Cagney <ac131313@redhat.com>
8712
8713 * defs.h (throw_exception): Rename return_to_top_level. Update
8714 comments.
8715 * utils.c (error_stream, internal_verror, quit): Ditto.
8716 * top.c (throw_exception, catcher): Ditto.
8717 * sparclet-rom.c (sparclet_load): Ditto.
8718 * remote.c (interrupt_query, minitelnet): Ditto.
8719 * remote-sds.c (interrupt_query): Ditto.
8720 * remote-mips.c (mips_error, mips_kill): Ditto.
8721 * ocd.c (interrupt_query): Ditto.
8722 * monitor.c (monitor_interrupt_query): Ditto.
8723 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8724 * target.h: Update comment.
aaa38bb5 8725
b5a2688f 8726 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8727
2fa5c1e0
AC
87282002-02-09 Andrew Cagney <ac131313@redhat.com>
8729
8730 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8731 default_double_format.
8732 * gdbarch.h, gdbarch.c: Re-generate.
8733 * findvar.c (floatformat_unknown): Delete variable definition.
8734 * doublest.h (floatformat_unknown): Delete variable declaration.
8735
da966255
JB
87362002-02-09 Jim Blandy <jimb@redhat.com>
8737
8738 * stabsread.c (read_type): Add code to parse Sun's syntax for
8739 prototyped function types.
8740
123a4891
AC
87412002-02-09 Andrew Cagney <ac131313@redhat.com>
8742
8743 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8744 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8745
fb39c8f3
PS
87462002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8747
8748 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8749 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8750 now _initialize_xcoffsolib gets called again and overrides the
8751 commands from solib.c in a native configuration.
8752
0b87a11d
MK
87532002-02-09 Mark Kettenis <kettenis@gnu.org>
8754
8755 * doublest.c (store_typed_floating): Don't try to return a value.
8756 Fixes PR gdb/290.
8757
bdc2fc72
JB
87582002-02-08 Jim Blandy <jimb@redhat.com>
8759
8760 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8761 is prototyped and has no arguments, print its argument list as
8762 `(void)'.
8763
da69bbcf
CD
87642002-02-08 Chris Demetriou <cgd@broadcom.com>
8765
8766 * MAINTAINERS (write-after-approval): Add myself.
8767 (paper-trail): I've escaped!
aaa38bb5 8768
b69571f5
CF
87692002-02-08 Christopher Faylor <cgf@redhat.com>
8770
8771 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8772 changes.
8773 (_initialize_check_for_gdb_ini): Ditto.
8774
f6871398
MH
87752002-02-08 Martin M. Hunt <hunt@redhat.com>
8776
8777 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8778 xaprintf -> xasprintf.
8779
4e52d31c
PM
87802002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8781
8782 * win32-nat.c: Remove use of printf and sprintf functions.
8783
39bbf761
RE
87842002-02-08 Richard Earnshaw <rearnsha@arm.com>
8785
8786 * arm-tdep.c (arm_frame_chain_valid): Make static.
8787 (arm_push_arguments): Likewise.
8788 (arm_gdbarch_init): New function.
8789 (_initialize_arm_tdep): Call it.
8790 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8791 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8792 (FRAME_CHAIN_VALID): Delete.
8793 (arm_frame_chain_valid): Delete declaration.
8794 (PUSH_ARGUMENTS): Delete.
8795 (arm_push_arguments): Delete declaration.
8796 (CALL_DUMMY_P): Delete.
8797
9c9532c9
CV
87982002-02-08 Andrew Cagney <ac131313@redhat.com>
8799 Corinna Vinschen <vinschen@redhat.com>
8800
8801 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8802 on builtin float types.
8803
4e8f7a8b
DJ
88042002-02-08 Daniel Jacobowitz <drow@mvista.com>
8805
8806 * utils.c: Include <curses.h> before "bfd.h".
8807 * tui/tui-hooks.c: Likewise.
8808 * tui/tui.c: Likewise.
8809 * tui/tuiCommand.c: Likewise.
8810 * tui/tuiData.c: Likewise.
8811 * tui/tuiDataWin.c: Likewise.
8812 * tui/tuiDisassem.c: Likewise.
8813 * tui/tuiGeneralWin.c: Likewise.
8814 * tui/tuiIO.c: Likewise.
8815 * tui/tuiLayout.c: Likewise.
8816 * tui/tuiRegs.c: Likewise.
8817 * tui/tuiSource.c: Likewise.
8818 * tui/tuiSourceWin.c: Likewise.
8819 * tui/tuiStack.c: Likewise.
8820 * tui/tuiWin.c: Likewise.
8821
cd4bffcf
EZ
88222002-02-07 Elena Zannoni <ezannoni@redhat.com>
8823
8824 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8825 to include space for pseudoregs as well. Update loops accordingly.
8826 (sh_fp_frame_init_saved_regs): Ditto.
8827 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8828
26806ce2
AC
88292002-02-07 Andrew Cagney <ac131313@redhat.com>
8830
8831 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8832 Add Richard Earnshaw to Arm maintainers.
8833
97fdab62
AC
88342002-02-07 Andrew Cagney <ac131313@redhat.com>
8835
a6b98203
AC
8836 * defs.h (warning_begin): Delete declaration.
8837
97fdab62
AC
8838 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8839 Delete macro.
8840
78b29b40
MS
88412002-02-07 Michael Snyder <msnyder@redhat.com>
8842
aaa38bb5 8843 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8844 Logic bug, remove misplaced else.
8845
d8849953
KD
88462002-02-07 Klee Dienes <klee@apple.com>
8847
8848 * fork-inferior.c (fork_inferior): Add '!' to the list of
8849 characters that need to be quoted when building a string for the
8850 shell. Quote '!' specifically with a backslash, since CSH chokes
8851 when trying to evaluate "str!str".
aaa38bb5 8852
095778a0
NC
88532002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8854
8855 * rdi-share/host.h: Only provide a typedef for bool if it is not
8856 defined.
8857
1900040c
MS
88582002-02-04 Michael Snyder <msnyder@redhat.com>
8859
8860 * breakpoint.h (enum bptype): Add new overlay event bp type.
8861 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8862
1900040c
MS
8863 * breakpoint.c (create_internal_breakpoint): New function.
8864 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8865 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8866 (create_thread_event_breakpoint): Ditto.
8867 (create_solib_event_breakpoint): Ditto.
8868 (create_overlay_event_breakpoint): New function.
8869 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8870 (update_breakpoints_after_exec): Delete and re-initialize
8871 overlay event breakpoints after an exec. Add FIXME comment
8872 about longjmp breakpoint.
8873 (print_it_typical): Ignore overlay event breakpoints.
8874 (print_one_breakpoint): Ditto.
8875 (mention): Ditto.
8876 (bpstat_what): Do not stop for overlay event breakpoints.
8877 (delete_breakpoint): Don't delete overlay event breakpoints.
8878 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8879 (breakpoint_re_set): Re-create overlay event breakpoint.
8880
8881 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8882 (overlay_manual_command): Disable overlay breakpoints.
8883 (overlay_off_command): Disable overlay breakpoints.
8884
082fc60d
RE
88852002-02-06 Richard Earnshaw <rearnsha@arm.com>
8886
8887 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8888 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8889 to here from config/tm-arm.h.
8890 (coff_sym_is_thumb): Make static.
8891 (arm_elf_make_msymbol_special): New function.
8892 (arm_coff_make_msymbol_special): New function.
8893 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8894 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8895 (coff_sym_is_thumb): Delete declaration.
8896 (arm_elf_make_msymbol_special): Declare.
8897 (arm_coff_make_msymbol_special): Declare.
8898 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8899 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8900
039c5766
RE
89012002-02-06 Richard Earnshaw <rearnsha@arm.com>
8902
8903 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8904
89052002-02-06 Richard Earnshaw <rearnsha@arm.com>
8906
8907 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8908 * gdbarch.c gdbarch.h: Regenerate.
8909 * arch-utils.c (default_print_float_info): New function.
8910 * arch-utils.h (default_print_float_info): Prototype it.
8911 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8912 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8913 (PRINT_FLOAT_INFO): Document it.
8914
8915 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8916 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8917 (PRINT_FLOAT_INFO): Define.
8918
58fa08f0
PM
89192002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8920
aaa38bb5 8921 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8922 Add typecast to sprintf argument to suppress a warning.
8923
7393af7c
PM
89242002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8925
58fa08f0 8926 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8927 to allow easier handling of pass state.
8928 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8929 that gives exception name and address.
8930 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8931 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8932 exceptions added.
aaa38bb5
AJ
8933 (child_continue): Correctly report continue_status.
8934 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8935 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8936 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8937 the exception should be passed to debuggee or not.
8938
6af4589c
MS
89392002-02-05 Michael Snyder <msnyder@redhat.com>
8940
8941 * regcache.c (fetch_register): Call target_fetch_register
8942 only if we don't call FETCH_PSEUDO_REGISTER.
8943 (store_register): Call target_store_register only if we
8944 don't call STORE_PSEUDO_REGISTER.
8945
a2cf933a
EZ
89462002-02-05 Elena Zannoni <ezannoni@redhat.com>
8947
8948 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8949 ELF_MAKE_MSYMBOL_SPECIAL.
8950 * gdbarch.c, gdbarch.h: Regenerate.
8951 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8952 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8953 * elfread.c (elf_symtab_read): Compile use of
8954 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8955 multiarched.
8956 * coffread.c (coff_symtab_read): Ditto, for
8957 COFF_MAKE_MSYMBOL_SPECIAL.
8958
6bb7be43
JB
89592002-02-05 Jim Blandy <jimb@redhat.com>
8960
8961 * solib-svr4.c (svr4_truncate_ptr): New function.
8962 (svr4_relocate_section_addresses): Do the address arithmetic with
8963 the appropriate truncation for target addresses, even when
8964 CORE_ADDR is larger than a target address.
8965
e18651ec
DJ
89662002-02-05 Daniel Jacobowitz <drow@mvista.com>
8967
8968 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8969 to (int *).
8970
6b2725be
DJ
89712002-02-05 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8974 code.
8975
fca9e603
DJ
89762002-02-05 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8979
6c537a52
DJ
89802002-02-05 Daniel Jacobowitz <drow@mvista.com>
8981
8982 * gdbserver/linux-low.c: Remove unused include files.
8983
d844cde6
DJ
89842002-02-05 Daniel Jacobowitz <drow@mvista.com>
8985
8986 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8987 (read_inferior_memory): Use it.
8988 (write_inferior_memory): Likewise.
8989
d07c63e7
DJ
89902002-02-05 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8993 grubbing through sys_errlist.
8994
da6d8c04
DJ
89952002-02-05 Daniel Jacobowitz <drow@mvista.com>
8996
8997 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8998
5b421780
PM
89992002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9000 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9001
9f60d481
AC
90022002-02-04 Andrew Cagney <ac131313@redhat.com>
9003
9004 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9005 (do_sfunc, set_cmd_sfunc): New functions.
9006
9007 * command.h (struct cmd_list_element): Add field func.
9008 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9009 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9010 * cli/cli-decode.h: Ditto.
9011
9012 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9013 (help_all, help_cmd_list): Ditto.
9014 (find_cmd, complete_on_cmdlist): Ditto.
9015 * top.c (execute_command): Ditto.
9016
9017 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9018 function.sfunc.
9019
9020 * infcmd.c (notice_args_read): Fix function signature.
9021
9022 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9023 * cli/cli-decode.c (add_set_cmd): Ditto.
9024 * utils.c (initialize_utils): Ditto.
9025 * maint.c (_initialize_maint_cmds): Ditto.
9026 * infrun.c (_initialize_infrun): Ditto.
9027 * demangle.c (_initialize_demangler): Ditto.
9028 * remote.c (add_packet_config_cmd): Ditto.
9029 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9030 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9031 * proc-api.c (_initialize_proc_api): Ditto.
9032 * kod.c (_initialize_kod): Ditto.
9033 * valprint.c (_initialize_valprint): Ditto.
9034 * top.c (init_main): Ditto.
9035 * infcmd.c (_initialize_infcmd): Ditto.
9036 * corefile.c (_initialize_core): Ditto.
9037 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9038 * arch-utils.c (initialize_current_architecture): Ditto.
9039 (_initialize_gdbarch_utils): Ditto.
9040 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9041
9042 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9043 * wince.c (_initialize_inftarg): Ditto.
9044 * symfile.c (_initialize_symfile): Ditto.
9045 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9046 * language.c (_initialize_language): Ditto.
9047 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9048
f9ba0717
MS
90492002-02-04 Michael Snyder <msnyder@redhat.com>
9050
9051 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9052
0c74b2a7
DJ
90532002-02-04 Daniel Jacobowitz <drow@mvista.com>
9054
9055 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9056 Add rules for building the register data files.
9057
c638789f
DJ
90582002-02-04 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * regformats/regdat.sh: Add braces to the definition of
9061 expedite_regs_${arch}.
9062
db253027
DJ
90632002-02-04 Daniel Jacobowitz <drow@mvista.com>
9064
9065 * regformats/regdef.h (struct reg): Add comment describing the
9066 requirements for offset and size fields.
9067
206be19c
AS
90682002-02-04 Andreas Schwab <schwab@suse.de>
9069
9070 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9071 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9072
181c1381
RE
90732002-02-04 Richard Earnshaw <rearnsha@arm.com>
9074
9075 * gdbarch.sh (copyright): Update years in generated header.
9076 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9077 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9078 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9079 * dbxread.c: Likewise.
9080 * dwarfread.c: Likewise.
9081 * elfread.c: Likewise.
9082 * somread.c: Likewise.
9083
9084 * arm-tdep.c (arm_smash_text_address): New function.
9085 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9086
fa4ba8da
PM
90872002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9088
9089 Add support for hardware watchpoints on win32 native.
aaa38bb5 9090 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9091 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9092 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9093 of debug registers.
9094 (debug_registers_changed): New variable. Reflects when debug registers
9095 are changed and need to be written to inferior.
aaa38bb5 9096 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9097 was set, used when new threads are created.
9098 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9099 i386-nat code.
9100 (thread_rec): Set dr array if id is the thread of current_event .
9101 (child_continue, child_resume): Change the debug registers for all
9102 threads if debug_registers_changed.
9103 (child_add_thread): Change the debug registers if debug_registers_used.
9104 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9105 Link nm.h to new nm-cygwin.h file.
9106 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9107 of hardware registers.
9108
a73c86fb
AC
91092002-02-03 Andrew Cagney <ac131313@redhat.com>
9110
9111 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9112 Restore behavour broken by 2002-01-20 Andrew Cagney
9113 <ac131313@redhat.com> IEEE_FLOAT removal.
9114
acf5ed49
DJ
91152002-02-03 Daniel Jacobowitz <drow@mvista.com>
9116
9117 * c-valprint.c (c_val_print): Pass a proper valaddr to
9118 cp_print_class_method.
9119 * valops.c (search_struct_method): If there is only one method
9120 and args is NULL, return that method.
9121
493d28d5
DJ
91222002-02-03 Daniel Jacobowitz <drow@mvista.com>
9123
9124 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9125 accessing tag_name directly.
9126
7495dfdb
DJ
91272002-02-03 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9130 of accessing tag_name directly.
9131
dd6bda65
DJ
91322002-02-03 Daniel Jacobowitz <drow@mvista.com>
9133
9134 PR gdb/280
9135 * gdbtypes.c (replace_type): New function.
9136 * gdbtypes.h (replace_type): Add prototype.
9137 * stabsread.c (read_type): Use replace_type.
9138
88fe217c
RE
91392002-02-03 Richard Earnshaw <rearnsha@arm.com>
9140
9141 * Makefile.in (memattr.o): Add missing dependencies rule.
9142
e5d66720
PS
91432002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9144
9145 * breakpoint.c (break_at_finish_command): Really export.
9146 (break_at_finish_at_depth_command): Ditto.
9147 (tbreak_at_finish_command): Ditto.
9148 * hppa-tdep.c: Include completer.h.
9149 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9150 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9151
fffee0be
AC
91522002-02-01 Andrew Cagney <ac131313@redhat.com>
9153
9154 * utils.c (do_write): New function.
9155 (error_stream): Rewrite combining the code from error_begin and
9156 verror.
9157 (verror): Rewrite using error_stream.
9158 (error_begin): Delete function.
9159
255e7dbf
AC
91602002-02-01 Andrew Cagney <ac131313@redhat.com>
9161
9162 * utils.c (error_begin): Make static.
9163 * defs.h (error_begin): Delete declaration.
9164
9165 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9166 (decode_line_1): Use cplusplus_error instead of error_begin,
9167 cplusplus_hint and return_to_top_level.
9168 * coffread.c (coff_symfile_read): Use error instead of error_begin
9169 and return_to_top_level.
9170 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9171
ddfe3c15
AC
91722002-02-01 Andrew Cagney <ac131313@redhat.com>
9173
9174 * language.h (type_error, range_error): Make string parameter
9175 constant.
9176 * language.c (warning_pre_print): Delete extern declaration.
9177 * dwarfread.c (warning_pre_print): Ditto.
9178 * language.c (type_error, range_error): Rewrite to use verror and
9179 vwarning instead of warning_begin.
9180
03ac34d5
MS
91812002-02-01 Michael Snyder <msnyder@redhat.com>
9182
261c4ca2
MS
9183 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9184 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9185
e00d1dc8
AC
91862002-02-01 Andrew Cagney <ac131313@redhat.com>
9187
9188 * command.h (NO_FUNCTION): Delete macro.
9189 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9190 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9191 * tracepoint.c (_initialize_tracepoint): Ditto.
9192 * cli/cli-decode.c (add_set_cmd): Ditto.
9193 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9194
76b79d6e
DJ
91952002-02-01 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9198 Update ``this'' pointer when calling virtual functions.
9199
799f9e91
MS
92002002-02-01 Michael Snyder <msnyder@redhat.com>
9201
c7bd442c 9202 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9203 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9204
3cf384d4
DJ
92052002-02-01 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * regformats/reg-arm.dat: New file.
9208 * regformats/reg-i386.dat: New file.
9209 * regformats/reg-ia64.dat: New file.
9210 * regformats/reg-m68k.dat: New file.
9211 * regformats/reg-mips.dat: New file.
9212 * regformats/reg-ppc.dat: New file.
9213 * regformats/reg-sh.dat: New file.
9214 * regformats/regdef.h: New file.
9215 * regformats/regdat.sh: New file.
9216
0defa245
RE
92172002-02-01 Richard Earnshaw <reanrsha@arm.com>
9218
9219 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9220 (arm_frame_args_address, arm_frame_locals_address): New functions.
9221 (arm_frame_num_args): New function.
9222 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9223 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9224 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9225
405f26e6
MS
92262002-01-31 Michael Snyder <msnyder@redhat.com>
9227
502fd408
MS
9228 * breakpoint.c (break_at_finish_command): Export.
9229 (break_at_finish_at_depth_command): Export.
9230 (tbreak_at_finish_command): Export.
9231 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9232 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9233 "tbreak" commands, which are HPPA specific.
9234
7d35e135
MS
9235 * printcmd.c (disassemble_command): Remove an ancient
9236 artifact of an old merge.
9237
aaa38bb5 9238 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9239 Define enum constant values for overlay mode.
9240 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9241 (overlay_is_mapped, overlay_auto_command,
9242 overlay_manual_command): Ditto.
d874f1e2 9243
aaa38bb5
AJ
9244 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9245 breakpoint_here_p, breakpoint_inserted_here_p,
9246 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9247 describe_other_breakpoints, check_duplicates, clear_command):
9248 Coding standard fixes.
9249
8add0441 9250 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9251 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9252 code: check bfd SEC_READONLY flag for section.
9253
e351066e
AC
92542002-01-31 Andrew Cagney <ac131313@redhat.com>
9255
7d35e135 9256 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9257
8a48e967
DJ
92582002-01-30 Daniel Jacobowitz <drow@mvista.com>
9259
9260 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9261 data symbols, since we search based on textlow and texthigh.
9262 (find_pc_sect_symtab): Likewise.
9263
f5a96129
AC
92642002-01-30 Andrew Cagney <ac131313@redhat.com>
9265
9266 * defs.h (vwarning): Declare.
f5a96129
AC
9267 * utils.c (vwarning): New function.
9268 (warning): Call vwarning.
9269 (warning_begin): Delete function.
9270
9271 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9272 the warning message.
9273 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9274 warning_begin.
9275
cefd4ef5
MS
92762002-01-30 Michael Snyder <msnyder@redhat.com>
9277
1a703748
MS
9278 * NEWS: Mention "set trust-readonly-sections" command.
9279 Mention generate-core-file command.
cefd4ef5 9280
3a11626d
MS
92812002-01-15 Michael Snyder <msnyder@redhat.com>
9282
9283 * target.c: New command, "set trust-readonly-sections on".
9284 (do_xfer_memory): Honor the suggestion to trust readonly sections
9285 by reading them from the object file instead of from the target.
9286 (initialize_targets): Register command "set trust-readonly-sections".
9287
d1c7e53b
AC
92882002-01-29 Andrew Cagney <ac131313@redhat.com>
9289
9290 * parse.c (target_map_name_to_register): Simplify, search regs and
9291 pseudo-regs using a single loop.
9292
e2c9a72c
AC
92932002-01-30 Andrew Cagney <ac131313@redhat.com>
9294
9295 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9296
69824b4e
MK
92972002-01-15 Rodney Brown <rbrown64@csc.com.au>
9298
9299 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9300 * config/i386/i386v42mp.mh: Add i387-nat.o .
9301 * i386v4-nat.c: Include i387-nat.h.
9302 (supply_fpregset): Use i387_supply_fsave.
9303 (fill_fpregset): Use i387_fill_fsave.
9304
6eb69eab
RE
93052002-01-30 Richard Earnshaw <rearnsha@arm.com>
9306
9307 * arm-tdep.c (arm_call_dummy_words): Define.
9308 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9309 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9310 (CALL_DUMMY_WORDS): Define.
9311 (arm_call_dummy_words): Declare.
9312 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9313 (arm_linux_call_dummy_words): Declare.
9314
9852326a
AS
93152002-01-30 Andreas Schwab <schwab@suse.de>
9316
9317 * m68klinux-nat.c: Fix last change to use regcache_collect
9318 instead of referencing registers[] directly.
9319
977a3030
AC
93202002-01-29 Andrew Cagney <ac131313@redhat.com>
9321
9322 * parse.c (target_map_name_to_register): Delete code wrapped in
9323 #ifdef REGISTER_NAME_ALIAS_HOOK.
9324
2076c72b
MS
93252002-01-28 Michael Snyder <msnyder@redhat.com>
9326
9327 * regcache.c (legacy_read_register_gen): Need to be able to
9328 read pseudo-register as well as real register.
9329 (legacy_write_register_gen): Ditto.
9330
8fcc723b
AC
93312002-01-28 Andrew Cagney <ac131313@redhat.com>
9332
9333 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9334 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9335 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9336 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9337 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9338 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9339 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9340 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9341 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9342 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9343 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9344 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9345 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9346 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9347 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9348 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9349 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9350 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9351 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9352 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9353
afe64c1a
AC
93542002-01-28 Andrew Cagney <ac131313@redhat.com>
9355
9356 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9357 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9358 (initialize_current_architecture): Update target_byte_order using
9359 information from BFD.
aaa38bb5 9360 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9361 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9362
75bc7ddf
AC
93632002-01-28 Andrew Cagney <ac131313@redhat.com>
9364
9365 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9366 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9367
9368 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9369 #ifdef INVALID_FLOAT.
9370 * infcmd.c (do_registers_info): Ditto.
9371 * values.c (unpack_double): Ditto. Add comment.
9372
9373 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9374 already commented out.
9375
0280a90a
AS
93762002-01-26 Andreas Schwab <schwab@suse.de>
9377
9378 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9379 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9380 registers and add support for PTRACE_GETREGS.
9381
7072a954
AC
93822002-01-24 Andrew Cagney <ac131313@redhat.com>
9383
9384 GDB 5.1.1 released from 5.1 branch.
9385 * NEWS: Add 5.1.1 news.
9386 * README: Sync with 5.1 branch.
9387
86f902e0
FF
93882002-01-23 Fred Fish <fnf@redhat.com>
9389
9390 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9391 stabstring on initial malloc. Reallocing will copy it for us,
9392 if necessary.
9393
8af51c36
EZ
93942002-01-23 Elena Zannoni <ezannoni@redhat.com>
9395
aaa38bb5 9396 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9397 (HFILES_NO_SRCDIR): Remove hpread.h.
9398 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9399 (hpread.o): Update dependencies.
9400 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9401
9402 * hp-psymtab-read.c: Remove file.
9403 * hp-symtab-read.c: Remove file.
9404 * hpread.h: Remove file.
9405
9406 * hpread.c: Merge all contents of hp-psymtab-read.c,
9407 hp-symtab-read.c and hpread.h into this file, as it was prior to
9408 January 1999.
9409
9410 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9411 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9412 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9413 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9414
dc5cfeb6
EZ
94152002-01-23 Elena Zannoni <ezannoni@redhat.com>
9416
9417 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9418 fill_gregset): Call gdbarch_tdep() just once, assign result to
9419 variable and use that, instead of calling the function several
9420 times.
9421
ea87b71b
AO
94222002-01-24 Alexandre Oliva <aoliva@redhat.com>
9423
9424 * configure.host: Accept sparcv9 as alias for sparc64.
9425 * configure.tgt: Likewise.
9426
13fc0c2f
KB
94272002-01-22 Kevin Buettner <kevinb@redhat.com>
9428
9429 * solib-aix5.c (build_so_list_from_mapfile)
9430 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9431 arguments is not reversed.
9432 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9433 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9434
7bd872fe
EZ
94352002-01-22 Elena Zannoni <ezannoni@redhat.com>
9436
9437 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9438 modified version of obsolete sh_fetch_pseudo_register.
9439 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9440 (sh4_register_read): New function.
9441 (sh_pseudo_register_write): New function. Renamed and modified
9442 version of obsolete sh_store_pseudo_register.
9443 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9444 (sh4_register_write): New function.
9445 (sh_gdbarch_init): Remove setting of gdbarch function
9446 fetch_pseudo_register and store_pseudo_register. Remove setting of
9447 register_convert_to_raw, register_convert_to_virtual,
9448 register_convertible.
9449 (sh_sh4_register_convertible): Delete. No longer needed. All is
9450 taken care by architecture specific functions
9451 register_read/register_write.
9452 (sh_sh4_register_convert_to_virtual): Make static.
9453 (sh_sh4_register_convert_to_raw): Ditto.
9454
069e84fd
AC
94552002-01-22 Andrew Cagney <ac131313@redhat.com>
9456
9457 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9458 (floatformat_is_nan, floatformat_mantissa): Ditto.
9459
9460 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9461 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9462 builtin_type_ieee_double_little,
9463 builtin_type_ieee_double_littlebyte_bigword,
9464 builtin_type_m68881_ext, builtin_type_i960_ext,
9465 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9466 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9467 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9468 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9469
211a4f69
CV
94702002-01-22 Corinna Vinschen <vinschen@redhat.com>
9471
9472 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9473 parameter. Set frameless flag if it exists and depended of
9474 whether the scanned function is frameless or not.
9475 (xstormy16_skip_prologue): If function is frameless, return
9476 result of xstormy16_scan_prologue().
9477 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9478 call.
9479
f81353e4
EZ
94802002-01-21 Elena Zannoni <ezannoni@redhat.com>
9481
9482 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9483 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9484 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9485 sh_sh4_register_byte, sh_sh4_register_raw_size,
9486 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9487 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9488 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9489 sh_store_pseudo_register, sh_do_pseudo_register): Call
9490 gdbarch_tdep() just once, assign result to variable and use that,
9491 instead of calling the function several times.
9492
63c73a17
MK
94932002-01-20 Mark Kettenis <kettenis@gnu.org>
9494
9495 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9496 macros instead of LAST_FPU_CTRL_REGNUM.
9497 (store_register): Likewise.
9498
39ad761d
JB
94992002-01-21 Jim Blandy <jimb@redhat.com>
9500
9501 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9502 is up-to-date before running the program, not just when a program
9503 exits.
9504
3d74b771
FF
95052002-01-21 Fred Fish <fnf@redhat.com>
9506
9507 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9508 when we have found all instructions we are looking for.
9509
966fbf70
RE
95102002-01-21 Richard Earnshaw <rearnsha@arm.com>
9511
9512 * arm-tdep.c (arm_register_name): New function.
9513 (arm_registers_names): Make static.
9514 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9515 (arm_register_name): Declare.
9516 (REGISTER_NAME): Use it.
9517
c3b4394c
RE
95182002-01-21 Richard Earnshaw <rearnsha@arm.com>
9519 Kevin Buettner <kevinb@redhat.com>
9520
9521 Convert arm targets to new FRAME interface.
9522 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9523 (arm_frame_find_save_regs): Delete.
9524 (arm_frame_init_saved_regs): New.
9525 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9526 Allocate extra_info as required. Convert all uses of fsr.regs
9527 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9528 to use extra_info.
9529 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9530 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9531 (check_prologue_cache, save_prologue_cache): Likewise.
9532 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9533 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9534 (FRAME_FIND_SAVED_REGS): Delete.
9535 (arm_frame_find_saved_regs): Delete prototype.
9536 (arm_frame_init_saved_regs): New prototype.
9537 (FRAME_INIT_SAVED_REGS): Define.
9538
61d99182
AC
95392002-01-20 Andrew Cagney <ac131313@redhat.com>
9540
9541 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9542
6aaea291
AC
95432002-01-20 Andrew Cagney <ac131313@redhat.com>
9544
9545 From Jeff Law <law@redhat.com>:
9546 * infttrace.c: Include <sys/pstat.h>.
9547 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9548 exec file if the ttrace equivalent fails.
9549
15f698d2
AC
95502002-01-20 Andrew Cagney <ac131313@redhat.com>
9551
9552 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9553 (closeLogFile): Ditto.
9554
f86ddd7c
MC
95552002-01-20 Michael Chastain <mec@shout.net>
9556
9557 * top.c (print_gdb_version): Bump copyright year to 2002.
9558
904507ce
AC
95592002-01-20 Andrew Cagney <ac131313@redhat.com>
9560
9561 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9562 Zannoni and Eli Zaretskii.
9563
d7f0b9ce
DJ
95642002-01-20 Daniel Jacobowitz <drow@mvista.com>
9565
9566 * buildsym.c: Update copyright years.
9567 * c-typeprint.c: Likewise.
9568 * dwarf2read.c: Likewise.
9569 * f-typeprint.c: Likewise.
9570 * gdbtypes.c: Likewise.
9571 * gdbtypes.h: Likewise.
9572 * hp-symtab-read.c: Likewise.
9573 * hpread.c: Likewise.
9574 * mdebugread.c: Likewise.
9575 * p-typeprint.c: Likewise.
9576
3fd3d7d2
AC
95772002-01-20 Andrew Cagney <ac131313@redhat.com>
9578
9579 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9580 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9581 byte-order selectable.
9582 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9583 * arch-utils.c: Ditto.
9584 (set_endian): Ditto.
9585 (set_endian_from_file): Ditto.
9586 * gdbserver/low-sim.c (create_inferior): Ditto.
9587 * gdbarch.sh: Ditto.
9588 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9589 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9590 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9591 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9592 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9593 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9594 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9595 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9596 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9597 macro definition.
9598 * config/mips/tm-wince.h: Remove #undef of macro
9599 TARGET_BYTE_ORDER_SELECTABLE.
9600 * config/sh/tm-wince.h: Ditto.
9601
b02dede2
DJ
96022002-01-20 Daniel Jacobowitz <drow@mvista.com>
9603
9604 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9605 member function fields. Add accessor macro
9606 TYPE_FN_FIELD_ARTIFICIAL.
9607 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9608 * c-typeprint.c (c_type_print_base): Skip artificial member
9609 functions.
9610
c3643761
DJ
96112002-01-20 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * f-typeprint.c: Delete unused function f_type_print_args.
9614 * p-typeprint.c: Delete unused function pascal_type_print_args.
9615
8176bb6d
DJ
96162002-01-20 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9619 comment. Add ``artificial'' to ``union field_location''.
9620
9621 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9622
9623 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9624 * mdebugread.c (parse_symbol): Likewise.
9625 * stabsread.c (define_symbol): Likewise.
9626 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9627 initializing TYPE_FIELD_BITPOS to n (obsolete).
9628 (hpread_doc_function_type): Likewise.
9629 * hpread.c (hpread_function_type): Likewise.
9630
7fd60527
AC
96312002-01-20 Andrew Cagney <ac131313@redhat.com>
9632
9633 * configure.in (host_makefile_frag): Only require a host makefile
9634 fragment when a native build.
9635 * configure: Re-generate.
9636
c2f05ac9
AC
96372002-01-20 Andrew Cagney <ac131313@redhat.com>
9638
9639 * doublest.h (floatformat_from_type): Declare.
9640 * doublest.c (floatformat_from_type): New function.
9641 (convert_typed_floating): Use.
9642
9643 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9644 call to function floatformat_from_type.
9645
9646 * gdbarch.sh (IEEE_FLOAT): Delete.
9647 * gdbarch.h, gdbarch.c: Re-generate.
9648 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9649 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9650 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9651 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9652 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9653 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9654 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9655 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9656 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9657 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9658 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9659 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9660
9661 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9662 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9663 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9664 * sh-tdep.c (sh_gdbarch_init): Ditto.
9665 * mips-tdep.c (mips_gdbarch_init): Ditto.
9666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9667 * cris-tdep.c (cris_gdbarch_init): Ditto.
9668
abf22e64
AJ
96692002-01-20 Jiri Smid <smid@suse.cz>
9670
9671 * configure.host, configure.tgt: Support x86-64.
9672 * NEWS: Note new target x86-64.
9673
b7c4cbf8
AJ
9674 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9675 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9676 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9677 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9678 x86-64-linux-nat.o): Fix dependencies.
9679
82600034
AC
96802002-01-19 Andrew Cagney <ac131313@redhat.com>
9681
9682 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9683 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9684 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9685 * config/sparc/xm-sun4os4.h: Delete file.
9686 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9687
bbe5c628
AC
96882002-01-19 Andrew Cagney <ac131313@redhat.com>
9689
9690 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9691 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9692 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9693 * config/i386/i386lynx.mh (XM_FILE): Delete.
9694 * config/rs6000/xm-rs6000ly.h: Delete file.
9695 * config/sparc/xm-sparclynx.h: Delete file.
9696 * config/m68k/xm-m68klynx.h: Delete file.
9697 * config/i386/xm-i386lynx.h: Delete file.
9698 * config/xm-lynx.h: Delete file.
9699 * config/djgpp/fnchange.lst: Update.
9700
f8453e34
JT
97012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9702
9703 * alpha-tdep.c (alpha_register_byte): New function.
9704 (alpha_register_raw_size): Ditto.
9705 (alpha_register_virtual_size): Ditto.
9706 (alpha_skip_prologue_internal): Renamed from
9707 alpha_skip_prologue.
9708 (alpha_skip_prologue): New version that calls
9709 alpha_skip_prologue_internal.
9710 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9711 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9712 second argument from alpha_skip_prologue.
9713 (REGISTER_BYTE): Use alpha_register_byte.
9714 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9715 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9716 (FRAMELESS_FUNCTION_INVOCATION): Use
9717 generic_frameless_function_invocation_not.
9718 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9719 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9720
52d9e613
AC
97212002-01-19 Andrew Cagney <ac131313@redhat.com>
9722
9723 * config/mips/xm-news-mips.h: Delete file.
9724 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9725
9726 * config/m88k/xm-m88k.h: Delete file.
9727 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9728 * config/m88k/xm-delta88v4.h: Ditto.
9729 * config/m88k/xm-delta88.h: Ditto.
9730
9731 * config/alpha/xm-fbsd.h: Delete file.
9732 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9733
9734 * config/sparc/xm-sparc.h: Delete file.
9735 * Makefile.in (xm-sun4os4.h): Delete dependency.
9736 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9737 * config/sparc/xm-sun4os4.h: Ditto.
9738 * config/sparc/xm-linux.h: Ditto.
9739
9740 * config/i386/xm-windows.h: Delete file.
9741
2d1b2124
AC
97422002-01-19 Andrew Cagney <ac131313@redhat.com>
9743
9744 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9745 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9746
ee1f65f0
JT
97472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9748
9749 * alpha-tdep.c (alpha_call_dummy_words): New.
9750 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9751 (CALL_DUMMY_P): Define.
9752 (CALL_DUMMY_WORDS): Define.
9753 (SIZEOF_CALL_DUMMY_WORDS): Define.
9754
98081e55
PB
97552002-01-19 Per Bothner <per@bothner.com>
9756
9757 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9758 isn't NULL, which can happen with some gcj-3.x-produced code.
9759
0d056799
JT
97602002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * alpha-tdep.c (alpha_register_virtual_type): New function.
9763 (alpha_init_frame_pc_first): Ditto.
9764 (alpha_fix_call_dummy): Ditto.
9765 (alpha_store_struct_return): Ditto.
9766 (alpha_extract_struct_value_address): Ditto.
9767 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9768 alpha_register_virtual_type.
9769 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9770 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9771 alpha_extract_struct_value_address.
9772 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9773 (INIT_FRAME_PC): Use init_frame_pc_noop.
9774 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9775
4604bcad
MK
97762002-01-19 Mark Kettenis <kettenis@gnu.org>
9777
9778 * i386gnu-nat.c: Include "i386-tdep.h".
9779 (fetch_fpregs): Simplify code dealing with uninitialized floating
9780 point states such that it doesn't require FP7_REGNUM.
9781
140f9984
JT
97822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9783
abf22e64
AJ
9784 * alpha-tdep.c (frame_extra_info): New.
9785 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9786 frame->extra_info.
9787 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9788 (alpha_frame_saved_pc): Use frame->extra_info.
9789 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9790 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9791 (init_extra_frame_info): Rename to...
9792 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9793 (alpha_print_extra_frame_info): New function.
140f9984
JT
9794 (alpha_frame_locals_address): Ditto.
9795 (alpha_frame_args_address): Ditto.
abf22e64 9796 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9797 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9798 alpha_frame_args_address.
abf22e64 9799 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9800 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9801 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9802 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9803 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9804 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9805
d734c450
JT
98062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9807
9808 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9809 (alpha_cannot_fetch_register): Ditto.
9810 (alpha_cannot_store_register): Ditto.
9811 (alpha_register_convertible): Ditto.
9812 (alpha_use_struct_convention): Ditto.
9813 * config/alpha/tm-alpha.h: Update copyright years.
9814 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9815 (INNER_THAN): Use core_addr_lessthan.
9816 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9817 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9818 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9819 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9820 (FRAME_CHAIN): Remove unnecessary cast.
9821
b4ceaee6
AC
98222002-01-18 Andrew Cagney <ac131313@redhat.com>
9823
9824 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9825 obsolete.
9826
0a65a603
AC
98272002-01-18 Andrew Cagney <ac131313@redhat.com>
9828
9829 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9830 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9831 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9832 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9833 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9834 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9835 * x86-64-linux-nat.c: Ditto.
9836
636a6dfc
JT
98372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9838
abf22e64 9839 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9840 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9841 (REGISTER_NAME): Define.
9842
acceddb6
JT
98432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9846
ec32e4be
JT
98472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * alpha-tdep.c: Update copyright years.
9850 (alpha_next_pc): New function.
9851 (alpha_software_single_step): Ditto.
9852 * config/alpha/tm-alpha.h: Add prototype for
9853 alpha_software_single_step.
9854
e771a871
JT
98552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9856
9857 * alphabsd-nat.c: Update copyright years.
9858 (fill_gregset): Use regcache_collect.
9859 (fill_fpregset): Likewise.
9860 (fetch_inferior_registers): Only fetch integer registers
9861 if requested to do so.
9862 (store_inferior_registers): Only store integer registers
9863 if requested to do so.
9864
7708fa01
AC
98652002-01-17 Andrew Cagney <ac131313@redhat.com>
9866
9867 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9868 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9869 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9870 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9871 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9872 * config/arm/linux.mh (XDEPFILES): Delete.
9873 * config/arm/nbsd.mh (XDEPFILES): Delete.
9874 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9875 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9876 * config/i386/i386m3.mh (XDEPFILES): Delete.
9877 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9878 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9879 * config/i386/fbsd.mh (XDEPFILES): Delete.
9880 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9881 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9882 * config/i386/i386v4.mh (XDEPFILES): Delete.
9883 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9884 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9885 * config/i386/i386aix.mh (XDEPFILES): Delete.
9886 * config/i386/go32.mh (XDEPFILES): Delete.
9887 * config/i386/cygwin.mh (XDEPFILES): Delete.
9888 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9889 * config/i386/i386mach.mh (XDEPFILES): Delete.
9890 * config/i386/i386v32.mh (XDEPFILES): Delete.
9891 * config/i386/linux.mh (XDEPFILES): Delete.
9892 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9893 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9894 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9895 * config/i386/i386sco.mh (XDEPFILES): Delete.
9896 * config/i386/i386v.mh (XDEPFILES): Delete.
9897 * config/i386/nbsd.mh (XDEPFILES): Delete.
9898 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9899 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9900 * config/i386/symmetry.mh (XDEPFILES): Delete.
9901 * config/i386/obsd.mh (XDEPFILES): Delete.
9902 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9903 * config/ia64/linux.mh (XDEPFILES): Delete.
9904 * config/ia64/aix.mh (XDEPFILES): Delete.
9905 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9906 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9907 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9908 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9909 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9910 * config/m68k/linux.mh (XDEPFILES): Delete.
9911 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9912 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9913 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9914 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9915 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9916 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9917 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9918 * config/m88k/delta88.mh (XDEPFILES): Delete.
9919 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9920 * config/m88k/m88k.mh (XDEPFILES): Delete.
9921 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9922 * config/mips/linux.mh (XDEPFILES): Delete.
9923 * config/mips/irix6.mh (XDEPFILES): Delete.
9924 * config/mips/irix5.mh (XDEPFILES): Delete.
9925 * config/mips/irix4.mh (XDEPFILES): Delete.
9926 * config/mips/irix3.mh (XDEPFILES): Delete.
9927 * config/mips/decstation.mh (XDEPFILES): Delete.
9928 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9929 (NATDEPFILES): Move core-aout.o to here.
9930 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9931 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9932 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9933 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9934 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9935 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9936 * config/pa/hpux11.mh (XDEPFILES): Delete.
9937 * config/powerpc/aix.mh (XDEPFILES): Delete.
9938 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9939 * config/powerpc/linux.mh (XDEPFILES): Delete.
9940 * config/romp/rtbsd.mh: Rename XDEPFILES.
9941 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9942 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9943 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9944 * config/s390/s390.mh (XDEPFILES): Delete.
9945 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9946 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9947 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9948 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9949 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9950 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9951 * config/sparc/linux.mh (XDEPFILES): Delete.
9952 * config/vax/vaxult.mh (XDEPFILES): Delete.
9953 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9954 * Makefile.in (DEPFILES): Remove XDEPFILES.
9955
375fc983
AC
99562002-01-17 Andrew Cagney <ac131313@redhat.com>
9957
9958 * utils.c (internal_verror): Fix comments, default is yes not no.
9959 Update queries to match. Default to quit and dump core.
9960
8926118c
AC
99612002-01-17 Andrew Cagney <ac131313@redhat.com>
9962
9963 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9964 copyright.
9965 * defs.h, event-top.c, gdbcmd.h: Ditto.
9966 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9967 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9968 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9969 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9970 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9971 * mi/mi-main.c:Ditto.
9972
9973 * stack.c, symfile.c: Update copyright.
9974
45b7b345
DJ
99752002-01-17 Daniel Jacobowitz <drow@mvista.com>
9976
db728ff7
DJ
9977 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9978 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9979 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9980 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9981
db728ff7
DJ
99822002-01-17 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9985 * gdbserver/low-lynx.c (myattach): Likewise.
9986 * gdbserver/low-nbsd.c (myattach): Likewise.
9987 * gdbserver/low-sim.c (myattach): Likewise.
9988 * gdbserver/low-sparc.c (myattach): Likewise.
9989 * gdbserver/low-sun3.c (myattach): Likewise.
9990
9991 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9992
db728ff7 9993 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9994 (main): Handle "--attach".
9995
8de3c354
AC
99962002-01-16 Andrew Cagney <ac131313@redhat.com>
9997
9998 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9999 maintainer.
10000
b0129042
DJ
100012002-01-15 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * c-typeprint.c (is_type_conversion_operator): Add additional
10004 check for non-conversion operators.
10005
ba8679fb 100062002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10007
10008 * linux-proc.c: Add "info proc" command, a la procfs.c.
10009 (read_mapping): New function, abstract and re-use code.
10010 (linux_find_memory_regions): Use new func read_mapping.
10011 (linux_info_proc_cmd): New function, implement "info proc".
10012 (_initialize_linux_proc): Add new command "info proc".
10013
e4f9b4d5
MS
100142002-01-15 Michael Snyder <msnyder@redhat.com>
10015
10016 * symfile.c (generic_load): Use bfd_map_over_sections method
10017 instead of manipulating bfd structure members directly.
10018 (add_section_size_callback): New function, bfd sections callback
10019 used by generic_load.
10020 (load_sections_callback): New function, bfd sections callback
10021 used by generic_load.
10022
08cf96df
EZ
100232002-01-15 Elena Zannoni <ezannoni@redhat.com>
10024
abf22e64 10025 [Based on work by Jim Blandy]
08cf96df
EZ
10026 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10027 (builtin_type_vec128): Export.
10028 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10029 types.
10030 (builtin_type_vec128): New builtin type for 128 bit vector
10031 registers.
10032 (build_gdbtypes): Initialize builtin_type_v16qi and
10033 builtin_type_v8hi. Create the vec128 register builtin type
10034 structure.
10035 (build_builtin_type_vec128): New function.
abf22e64 10036 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10037 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10038 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10039 AltiVec register to new builtin type.
10040
d7242108
DJ
100412001-01-15 Daniel Jacobowitz <drow@mvista.com>
10042
10043 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10044 to make_cv_type.
10045
4ee3352d
AC
100462002-01-14 Andrew Cagney <ac131313@redhat.com>
10047
10048 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10049 CLEAN_UP_REGISTER_VALUE.
10050 * regcache.c (supply_register): Update only call.
10051
f015b2e7
AC
100522002-01-14 Andrew Cagney <ac131313@redhat.com>
10053
10054 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10055 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10056 a29k-*-vxworks* targets as obsolete.
10057
356ae49d
MS
100582002-01-14 Michael Snyder <msnyder@redhat.com>
10059
10060 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10061 until we can resolve portability issues.
10062 * gregset.h: Remove references to fpxregs.
10063 * gcore.c (gcore_command): Initialize note_sec to NULL.
10064
ade8f45e
AC
100652002-01-13 Andrew Cagney <ac131313@redhat.com>
10066
10067 * signals.c (target_signal_to_name): Rewrite. Only use
10068 signals[].name when in bounds and non-NULL.
abf22e64 10069
89c49e7a
AC
100702002-01-13 Andrew Cagney <ac131313@redhat.com>
10071
10072 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10073 * signals.c (target_signal_to_name): Verify that SIG is within the
10074 bounds of the signals array.
10075
4daa9f9f
AC
100762002-01-13 Andrew Cagney <ac131313@redhat.com>
10077
10078 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10079
ba4bbdcb
KS
100802002-01-13 Keith Seitz <keiths@redhat.com>
10081
10082 * stack.c (print_frame_info_base): Print the frame's pc
10083 only if when print_frame_info_listing_hook is not defined.
10084
575bbeb6
KS
100852002-01-13 Keith Seitz <keiths@redhat.com>
10086
10087 * varobj.c (varobj_set_value): Make sure that there were no
10088 errors evaluating the object before attempting to set its
10089 value.
10090 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10091 so this offset adjustment is no longer necessary.
10092 (create_child): Don't set the error flag if the child is
10093 a CPLUS_FAKE_CHILD.
10094 (value_of_child): If value_fetch_lazy fails, return NULL
10095 so that callers will be notified that an error occurred.
10096 (c_value_of_variable): Delay check of variable's validity
10097 until later. We actually want all structs and unions to have
10098 the value "{...}".
10099 Do not return "???" for variables which could not be evaluated.
10100 This error condition must be returned to the caller so that it
10101 can get the error condition from gdb.
10102 (cplus_name_of_child): Adjust index for vptr before figuring
10103 out the name of the child.
10104 (cplus_value_of_child): If a child's (real) parent is not valid,
10105 don't even bother trying to give a value for it. Just return
10106 an error. Change all instances in this function.
10107 (cplus_type_of_child): If our parent is one of the "fake"
10108 parents, we need to get at the type of the real parent, and
10109 derive the child's true type using this information.
10110
b76898ab
AC
101112002-01-13 Andrew Cagney <ac131313@redhat.com>
10112
10113 From 2002-01-09 John Marshall <johnm@falch.net>:
10114 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10115 sources.redhat.com, and tweak some related URLs which had
10116 suffered from linkrot.
10117
b6649e88
AC
101182002-01-13 Andrew Cagney <ac131313@redhat.com>
10119
10120 From Jeff law:
10121 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10122 structures passed in registers.
10123
82cc5033
EZ
101242002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10125
10126 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10127 white space which prevented compilation. Reported by DSK
10128 <dsk@student.unsw.edu.au>.
10129
ba5f2f8a
MS
101302002-01-11 Michael Snyder <msnyder@redhat.com>
10131
fbd35540
MS
10132 * symfile.c (build_section_addr_info_from_section_tab):
10133 Use bfd access method instead of manipulating bfd directly.
10134 (syms_from_objfile): Ditto.
10135 (simple_overlay_update_1): Ditto.
10136 (simple_overlay_update): Ditto.
10137 (generic_load): Ditto.
10138 (overlay_unmapped_address): FIXME comment, bfd access methods.
10139 (sections_overlap): FIXME comment, bfd access methods.
10140 (pc_in_mapped_range): FIXME comment, bfd access methods.
10141 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10142 (section_is_mapped): FIXME comment, bfd access methods.
10143 (section_is_overlay): FIXME comment, bfd access methods.
10144
ba5f2f8a
MS
10145 * symfile.c (generic_load): Whitespace and long line cleanups.
10146 Remove duplicate variable, change several local variables to
10147 more appropriate data types.
10148 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10149
17df2af6
AC
101502002-01-12 Andrew Cagney <ac131313@redhat.com>
10151
10152 From Peter Schauer:
10153 * language.c (longest_local_hex_string_custom): Use phex_nz to
10154 convert NUM to a hex string.
10155
ec920329
EZ
101562002-01-12 Elena Zannoni <ezannoni@redhat.com>
10157
10158 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10159 the function.
538a76d6 10160 Update Copyright year.
ec920329 10161
3abd2e01
AC
101622002-01-12 Andrew Cagney <ac131313@redhat.com>
10163
10164 * language.c (longest_raw_hex_string): Delete unused function.
10165
b21b22e0
PS
101662002-01-11 Petr Sorfa <petrs@caldera.com>
10167
10168 * MAINTAINERS (write-after-approval): Add myself.
10169 * dwarf2read.c (read_tag_string_type): Handling of
10170 DW_AT_byte_size.
10171 (read_tag_string_type): FORTRAN fix to prevent propagation of
10172 first string size.
10173 (set_cu_language): Handling of DW_LANG_Fortran95
10174
747fe712
RE
101752002-01-11 Richard Earnshaw <rearnsha@arm.com>
10176
10177 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10178 GETPID(inferior_ptid).
10179 (store_inferior_registers): Likewise.
10180
f1bea926
JM
101812002-01-10 Jason Merrill <jason@redhat.com>
10182
10183 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10184 Fix DW_OP_minus.
10185
ae940673
AC
101862002-01-10 Andrew Cagney <ac131313@redhat.com>
10187
10188 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10189 and bfd/elf32-sh-nbsd.c.
10190
00546b04
MS
101912002-01-10 Michael Snyder <msnyder@redhat.com>
10192
352ed7b4
MS
10193 * NEWS: Mention --pid and corefile/proc-id behavior change.
10194
c18be923
MS
10195 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10196 * gcore.c: Include cli/cli-decode.h instead of command.h.
10197
00546b04
MS
10198 * main.c (captured_main): Add new command line option "--pid".
10199 If the second command line argument (following the symbol-file)
10200 begins with a digit, try to attach to it before trying to open
10201 it as a corefile.
10202 (print_gdb_help): Document the "--pid" argument.
10203
db60ec62
EZ
102042002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10205
10206 * completer.c (command_completer): New function.
10207
10208 * completer.h <command_completer>: Add prototype.
10209
10210 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10211 completer for the "help" command.
10212
39c22d1a
JM
102132002-01-09 Jason Merrill <jason@redhat.com>
10214
10215 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10216
c564377f
MS
102172002-01-09 Michael Snyder <msnyder@redhat.com>
10218
975aec09
MS
10219 * i386-linux-nat.c (fill_fpxregset): Make global.
10220 (store_fpxregset): Ditto.
10221
db4a10fa
MS
10222 * gregset.h (gdb_fpxregset_t): Define.
10223 (supply_fpxregset): Prototype.
10224 (fill_fpxregset): Prototype.
10225
c564377f
MS
10226 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10227
c3d45d70
RE
102282002-01-09 Richard Earnshaw <rearnsha@arm.com>
10229
10230 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10231 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10232 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10233
fcc87af1
AC
102342002-01-09 Andrew Cagney <ac131313@redhat.com>
10235
10236 * MAINTAINERS: Update target maintainer rules so that any
10237 Maintainer can approve a tested patch for a maintenance-only
10238 target.
10239
dd96c05b
RE
102402002-01-09 Richard Earnshaw <rearnsha@arm.com>
10241
d4297db9 10242 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10243
d4297db9 10244 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10245 IN_SIGTRAMP.
10246
145fdc6e
MS
102472002-01-08 Michael Snyder <msnyder@redhat.com>
10248
10249 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10250 real name of the executable, rather than the /proc name.
10251
be4d1333
MS
102522002-01-03 Michael Snyder <msnyder@redhat.com>
10253
10254 Implement a "generate-core-file" command in gdb, save target state.
10255 * gcore.c: New file. Implement new command 'generate-core-file'.
10256 Save a corefile image of the current state of the inferior.
10257 * linux-proc.c: Add linux-specific code for saving corefiles.
10258 * target.h (struct target_ops): Add new target vectors for saving
10259 corefiles; to_find_memory_regions and to_make_corefile_notes.
10260 (target_find_memory_regions): New macro.
10261 (target_make_corefile_notes): New macro.
10262 * target.c (update_current_target): Inherit new target methods.
10263 (dummy_find_memory_regions): New place-holder method.
10264 (dummy_make_corefile_notes): New place-holder method.
10265 (init_dummy_target): Initialize new dummy target vectors.
10266 * exec.c (exec_set_find_memory_regions): New function.
10267 Allow the exec_ops vector for memory regions to be taken over.
10268 (exec_make_note_section): New function, target vector method.
10269 * defs.h (exec_set_find_memory_regions): Export prototype.
10270 * procfs.c (proc_find_memory_regions): New function, corefile method.
10271 (procfs_make_note_section): New function, corefile method.
10272 (init_procfs_ops): Set new target vector pointers.
10273 (find_memory_regions_callback): New function.
10274 (procfs_do_thread_registers): New function.
10275 (procfs_corefile_thread_callback): New function.
10276 * sol-thread.c (sol_find_memory_regions): New function.
10277 (sol_make_note_section): New function.
10278 (init_sol_thread_ops): Initialize new target vectors.
10279 * inftarg.c (inftarg_set_find_memory_regions): New function.
10280 Allow to_find_memory_regions vector to be taken over.
10281 (inftarg_set_make_corefile_notes): New function.
10282 Allow to_make_corefile_notes vector to be taken over.
10283 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10284 interface layer if not target_has_execution (may be a corefile).
10285 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10286 * config/sparc/sun4sol2.mh: Ditto.
10287 * config/alpha/alpha-linux.mh: Ditto.
10288 * config/arm/linux.mh: Ditto.
10289 * config/i386/x86-64linux.mh: Ditto.
10290 * config/ia64/linux.mh: Ditto.
10291 * config/m68k/linux.mh: Ditto.
10292 * config/mips/linux.mh: Ditto.
10293 * config/powerpc/linux.mh: Ditto.
10294 * config/sparc/linux.mh: Ditto.
10295
c6b92abd
MS
102962002-01-07 Michael Snyder <msnyder@redhat.com>
10297
10298 * arm-linux-nat.c: Remove references to regcache.c internal data
10299 (registers[] and register_valid[]).
10300
4b09dc8c
MS
103012002-01-07 Michael Snyder <msnyder@redhat.com>
10302
abf22e64
AJ
10303 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10304 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10305 symbol file and shlibs.
10306 * Makefile.in: Add rule for linux-proc.o.
10307 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10308 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10309 * config/arm/linux.mh: Ditto.
10310 * config/i386/linux.mh: Ditto.
10311 * config/i386/x86-64linux.mh: Ditto.
10312 * config/ia64/linux.mh: Ditto.
10313 * config/m68k/linux.mh: Ditto.
10314 * config/mips/linux.mh: Ditto.
10315 * config/powerpc/linux.mh: Ditto.
10316 * config/sparc/linux.mh: Ditto.
10317
c25b74ac
PM
103182002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10319
10320 * win32-nat.c: Add i386-tdep.h dependency.
10321
94cd915f
MS
103222002-01-07 Michael Snyder <msnyder@redhat.com>
10323
c7cccb76
MS
10324 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10325 instead of bfd_get_arch_size. Don't bail out just because
10326 there's no exec_bfd.
abf22e64 10327
34c0bd93
MS
10328 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10329 * p-valprint.c (pascal_object_print_value): Ditto.
10330 * somread.c (som_symtab_read): Ditto.
10331 * symfile.c (simple_free_overlay_region_table): Ditto.
10332 * valops.c (value_assign): Ditto.
10333
21c1c920
MS
10334 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10335 use tilde_expand and strerror for opening save-tracepoints file.
10336
5bbd998e
MS
10337 * thread-db.c (thread_db_new_objfile): Indendation fix.
10338
94cd915f
MS
10339 * infptrace.c (GDB_MAX_ALLOCA): New define.
10340 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10341 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10342 can be overridden with whatever value is appropriate to the host).
10343 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10344 alloca to allocate potentially large buffer.
10345 * rs6000-nat.c (child_xfer_memory): Ditto.
10346 * symm-nat.c (child_xfer_memory): Ditto.
10347 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10348
494e8a93
JSC
103492002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10350
10351 From Nick Clifton <nickc@redhat.com>
10352 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10353
d0e1d48e
MS
103542002-01-07 Michael Snyder <msnyder@redhat.com>
10355
abf22e64 10356 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10357 Don't use exec_bfd if it's NULL.
10358
290b2c7a
MK
103592002-01-06 Mark Kettenis <kettenis@gnu.org>
10360
abf22e64 10361 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10362
aef21287
AC
103632002-01-06 Andrew Cagney <ac131313@redhat.com>
10364
10365 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10366 * gnu-nat.c: Ditto.
10367
30efa627
AC
103682002-01-06 Andrew Cagney <ac131313@redhat.com>
10369
10370 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10371 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10372 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10373 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10374 z8k-coff have not been multi-arched. Update z8k-coff build
10375 status.
10376
9b4ff276
AC
103772002-01-06 Andrew Cagney <ac131313@redhat.com>
10378
10379 * MAINTAINERS: Mark a29k target as obsolete.
10380 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10381 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10382 comments.
10383 * NEWS: Note that a29k targets are obsolete.
10384 * a29k-tdep.c: Mark as obsolete.
10385 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10386 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10387 a29k-*-vxworks* targets as obsolete.
10388 * remote-adapt.c: Obsolete.
10389 * remote-eb.c: Obsolete.
10390 * remote-mm.c: Obsolete.
10391 * remote-udi.c: Obsolete.
10392 * config/a29k/a29k-udi.mt: Obsolete.
10393 * config/a29k/a29k.mt: Obsolete.
10394 * config/a29k/tm-a29k.h: Obsolete.
10395 * config/a29k/tm-vx29k.h: Obsolete.
10396 * config/a29k/vx29k.mt: Obsolete.
10397
a9011d31
AC
103982002-01-05 Andrew Cagney <ac131313@redhat.com>
10399
10400 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10401 with BFD_ENDIAN_BIG.
10402
9299404e
AC
104032002-01-05 Andrew Cagney <ac131313@redhat.com>
10404
10405 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10406 * configure, config.in: Re-generate.
10407 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10408 * defs.h: Do not include <endian.h>.
10409
7e89e357
JT
104102002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10411
10412 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10413 * config.in: Regenerate.
10414 * configure.in: Update copyright years.
10415 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10416 * configure: Regenerate.
10417 * i386bsd-nat.c: Update copyright years.
10418 (fill_gregset): Use regcache_collect.
10419 (fetch_inferior_registers): Only fetch integer registers
10420 if requested to do so. Add support for XMM registers
10421 using PT_GETXMMREGS.
10422 (store_inferior_registers): Only store integer registers
10423 if requested to do so. Add support for XMM registers
10424 using PT_SETXMMREGS.
10425 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10426 (store_inferior_registers): Remove.
10427 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10428 (fetch_elfcore_registers): New function.
10429 (i386nbsd_elfcore_fns): New.
10430 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10431 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10432 i386bsd-nat.o.
10433 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10434 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10435 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10436 * config/i386/tm-nbsd.h: Update copyright years.
10437 (HAVE_SSE_REGS): Define.
10438 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10439 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10440 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10441 (SIGCONTEXT_PC_OFFSET): Remove.
10442 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10443
a752853e
AC
104442002-01-05 Andrew Cagney <ac131313@redhat.com>
10445
10446 * configure.tgt: Remove powerpc-*-macos* target.
10447 * config/m68k/xm-mpw.h: Delete file.
10448 * config/xm-mpw.h: Delete file.
10449 * ser-mac.c: Delete file.
10450 * mpw-make.sed: Delete file.
10451 * mpw-config.in: Delete file.
10452 * mac-xdep.c: Delete file.
10453 * mac-gdb.r: Delete file.
10454 * mac-defs.h: Delete file.
10455 * mac-nat.c: Delete file.
10456 * config/powerpc/macos.mh: Delete file.
10457 * config/powerpc/macos.mt: Delete file.
10458 * config/powerpc/nm-macos.h: Delete file.
10459 * config/powerpc/tm-macos.h: Delete file.
10460 * source.c (openp, open_source_file): Remove obsolete code.
10461 * top.c (gdb_readline): Ditto.
10462 * utils.c (query): Ditto.
10463 * event-top.c (display_gdb_prompt): Ditto.
10464 * Makefile.in (ser-mac.o): Delete obsolete target.
10465 * NEWS: Update.
10466
d7449b42
AC
104672002-01-04 Andrew Cagney <ac131313@redhat.com>
10468
10469 * defs.h (BIG_ENDIAN): Delete macro definition.
10470 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10471 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10472 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10473 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10474 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10475 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10476 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10477 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10478 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10479 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10480 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10481 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10482 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10483 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10484 * gdbarch.c: Re-generate.
10485
356374e8
DJ
104862002-01-04 Daniel Jacobowitz <drow@mvista.com>
10487
10488 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10489 for core files.
10490
a2b8f8f8
JT
104912002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10492
10493 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10494
12466af9
AC
104952002-01-04 Andrew Cagney <ac131313@redhat.com>
10496
10497 * value.h (value_ptr): Delete typedef.
10498
3549ab40
JT
104992002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10500
10501 * i386nbsd-nat.c: Update copyright years.
10502 Include i386-tdep.h.
10503
fedbd091
EZ
105042002-01-04 Elena Zannoni <ezannoni@redhat.com>
10505
10506 * stabsread.c: Update copyright years.
10507
10508 From Debashis Mahata <debashis.mahata@wipro.com>:
10509 (read_struct_fields): Deal with Sun C compiler erroneous stab
10510 output for structs and unions.
fec8b34f 10511 Fix PR gdb/269.
fedbd091 10512
eb43544b
DJ
105132002-01-04 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10516 prototype.
10517
1514d34e
DJ
105182002-01-04 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * cp-abi.c: Fix whitespace.
10521 (baseclass_offset): New wrapper function.
10522 * cp-abi.h (baseclass_offset): Add prototype.
10523 (struct cp_abi_ops): Add baseclass_offset pointer.
10524
10525 * valops.c (vb_match): Move to...
10526 * gnu-v2-abi.c (vb_match): here.
10527 * valops.c (baseclass_offset): Move to...
10528 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10529
10530 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10531
10532 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10533 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10534 * hpacc-abi.c (init_hpacc_ops): Likewise.
10535
7f8c9282
DJ
105362002-01-04 Daniel Jacobowitz <drow@mvista.com>
10537
10538 * valops.c (find_overload_match): Accept obj as a
10539 reference parameter. Update it before returning.
10540 * value.h (find_overload_match): Update prototype.
10541 * eval.c (evaluate_subexp_standard): Pass object to
10542 find_overload_match by reference.
10543
f23631e4
AC
105442002-01-03 Andrew Cagney <ac131313@redhat.com>
10545
10546 * valarith.c: Replace value_ptr with struct value pointer. Remove
10547 register attribute from value declarations.
10548 * valops.c: Ditto.
10549 * value.h: Ditto.
10550 * scm-lang.c (scm_lookup_name): Ditto.
10551
79e10fab 105522002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10553
79e10fab
AC
10554 Abstract the functionality of iterating over mapped memory
10555 regions into a general purpose iterator function.
abf22e64 10556 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10557 iterator for memory sections.
10558 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10559 (solib_mappings_callback): New function, callback for above.
10560 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10561 (info_mappings_callback): New function, callback for above.
10562
10563 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10564
c5ad026a
MK
105652002-01-01 Mark Kettenis <kettenis@gnu.org>
10566
d2a7c97a
MK
10567 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10568 * i386-tdep.c: Include "elf-bfd.h".
10569 (process_note_abi_tag_sections): New function.
10570 (i386_gdbarch_init): Add code to recognize various OS/ABI
10571 combinations.
10572
c5ad026a
MK
10573 * maint.c (_initialize_maint_cmds): Add missing \ in
10574 string-literal.
10575
a1a5b71e 10576For older changes see ChangeLog-2001
c906108c
SS
10577\f
10578Local Variables:
10579mode: change-log
10580left-margin: 8
10581fill-column: 74
10582version-control: never
10583End: