2002-08-21 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-21 Michael Snyder <msnyder@redhat.com>
2
3 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4 (MSYMBOL_SIZE): Replace macro with function.
5 (DEFAULT_MIPS_TYPE): Delete unused macro.
6 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
7 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
8
9 2002-08-21 Jim Blandy <jimb@redhat.com>
10
11 * valops.c (value_cast): Simplify and correct logic for doing a
12 static cast from a pointer to a base class to a pointer to a
13 derived class.
14
15 2002-08-21 Andrew Cagney <ac131313@redhat.com>
16
17 * infcmd.c (default_print_registers_info): Replace
18 do_registers_info.
19 (registers_info): Use gdbarch_print_registers_info instead of
20 DO_REGISTERS_INFO.
21 * inferior.h (default_print_registers_info): Replace
22 do_registers_info.
23 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
24 (DO_REGISTERS_INFO): Change to a predicate function.
25 * gdbarch.h, gdbarch.c: Regenerate.
26
27 2002-08-21 Keith Seitz <keiths@redhat.com>
28
29 * gdb-events.sh: Add target-changed event.
30 * gdb-events.c: Regenerated.
31 * gdb-events.c: Regenerated.
32 * valops.c (value_assign): Add target-changed event notification
33 to inlval_register, lval_memory, and lval_reg_frame_relative.
34
35 2002-08-21 Joel Brobecker <brobecker@gnat.com>
36
37 * NEWS: Add an entry regarding the improvement of the next/step
38 operation on Alpha Tru64 multi-processor machines.
39
40 2002-08-21 Andrew Cagney <ac131313@redhat.com>
41
42 * Makefile.in: Update dependencies for mi/ cli/ and tui/
43 directores.
44 * Makefile.in: Update all _h macro definitions.
45 * Makefile.in (install-gdbtk): Move to install section.
46 (rdi-share/libangsd.a): Move to end of file.
47
48 2002-08-19 Andrew Cagney <ac131313@redhat.com>
49
50 * frame.c (frame_register_unwind): When a register, set addrp to
51 the register's byte.
52
53 2002-08-20 Michael Snyder <msnyder@redhat.com>
54
55 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
56 used locally, so move them from the target machine header to here.
57 (mips_set_processor_type, mips_register_name, mips32_next_pc,
58 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
59 Make static.
60 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
61
62 2002-08-20 Andrew Cagney <cagney@redhat.com>
63
64 * NEWS: Mention that the Apollo line was made obsolete.
65 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
66 m68*-hp-hpux* obsolete.
67 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
68 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
69 * buildsym.c (make_blockvector): Make static.
70 * buildsym.h (make_blockvector): Make extern declaration obsolete.
71 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
72 (ALLDEPFILES): Remove dstread.c.
73 (dstread.o): Obsolete make rule.
74 * dstread.c: Makefile obsolete.
75 * dst.h: Ditto.
76 * config/m68k/hp300hpux.mt: Ditto.
77 * config/m68k/hp300hpux.mh: Ditto.
78 * config/m68k/hp300bsd.mt: Ditto.
79 * config/m68k/hp300bsd.mh: Ditto.
80 * config/m68k/apollo68b.mt: Ditto.
81 * config/m68k/apollo68v.mh: Ditto.
82 * config/m68k/apollo68b.mh: Ditto.
83
84 2002-08-20 Michael Snyder <msnyder@redhat.com>
85
86 * mips-tdep.c (mips_in_return_stub): Make static.
87 (mips_gdbarch_init): Set in_solib_return_trampoline.
88 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
89
90 2002-08-20 Michael Snyder <msnyder@redhat.com>
91
92 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
93 * gdbarch.c, gdbarch.h: Regenerate.
94 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
95 Add.
96 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
97
98 2002-08-20 Michael Snyder <msnyder@redhat.com>
99
100 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
101 (mips_gdbarch_init): Set skip_trampoline_code,
102 in_solib_call_trampoline.
103 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
104 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
105
106 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
107
108 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
109
110 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
111 vector type for ev registers.
112 (e500_pseudo_register_read): New function.
113 (e500_pseudo_register_write): New function.
114 (e500_dwarf2_reg_to_regnum): New function.
115 (PPC_UISA_NOFP_SPRS): New macro.
116 (PPC_EV_REGS): New macro.
117 (PPC_GPRS_PSEUDO_REGS): New macro.
118 (registers_e500): New register set for e500.
119 (variants): Add e500 variant.
120 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
121 before setting architectural dependent variations. Initialize ev
122 registers numbers. Add case for e500 architecture. Set the
123 number of pseudo registers.
124
125 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
126
127 * rs6000-tdep.c: Clean up comments.
128
129 2002-08-20 Andrew Cagney <cagney@redhat.com>
130
131 * h8300-tdep.c: Re-indent file.
132
133 2002-08-20 Jim Blandy <jimb@redhat.com>
134
135 * Makefile.in (LDFLAGS): Allow the configure script to establish a
136 default for this.
137 * gdbserver/Makefile.in (LDFLAGS): Same.
138
139 2002-08-20 Keith Seitz <keiths@redhat.com>
140
141 * breakpoints.c (watch_command_1): Use internal breakpoint
142 when setting a watchpoint_scope breakpoint.
143
144 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
145
146 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
147 (build_builtin_type_vec64i): Ditto.
148 (build_builtin_type_vec128): Ditto.
149 (build_builtin_type_vec128i): Ditto.
150
151 2002-08-19 Michael Snyder <msnyder@redhat.com>
152
153 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
154 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
155 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
156 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
157 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
158 CALL_DUMMY_ADDRESS): Delete.
159 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
160 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
161 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
162 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
163 push_return_address.
164 (mips_register_raw_size, mips_eabi_use_struct_convention,
165 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
166 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
167 mips_init_extra_frame_info, mips_eabi_push_arguments,
168 mips_n32n64_push_arguments, mips_push_return_address,
169 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
170 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
171
172 2002-08-19 Michael Snyder <msnyder@redhat.com>
173
174 * mips-tdep.c (mips_frame_num_args): New function.
175 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
176 frame_saved_pc, frame_args_address, frame_locals_address,
177 frame_num_args, and frame_args_skip.
178 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
179 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
180 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
181 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
182
183 2002-08-20 Michael Snyder <msnyder@redhat.com>
184
185 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
186 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
187 * mips-tdep.c (mips_store_struct_return): New function.
188 (mips_extract_struct_value_address): New function.
189 (mips_gdbarch_init): Set store_struct_return and
190 extract_struct_value_address.
191
192 2002-08-20 David Carlton <carlton@math.stanford.edu>
193
194 * dwarf2read.c (dwarf2_build_psymtabs): Check that
195 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
196 (read_file_scope): Check that line_header is nonzero before
197 decoding macro information.
198
199 2002-08-20 Mark Kettenis <kettenis@gnu.org>
200
201 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
202 flag the general-purpose registers as floating-point on targets
203 that don't support the floating-point registers.
204
205 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
206
207 * rs6000-tdep.c (altivec_register_p): Delete.
208 (rs6000_do_altivec_registers): Delete.
209 (rs6000_altivec_registers_info): Delete.
210 (rs6000_do_registers_info): Delete.
211 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
212 (rs6000_gdbarch_init): Remove setting of do_registers_info.
213
214 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
215
216 * infcmd.c (do_registers_info): Print vector registers in hex
217 format only.
218 (print_vector_info): Check that printing registers
219 makes sense.
220 (print_float_info): Ditto.
221
222 2002-08-20 Andrew Cagney <ac131313@redhat.com>
223
224 * mips-tdep.c (mips_gdbarch_init): Update.
225 (mips_o32_extract_return_value): Rewrite.
226 (mips_o32_store_return_value): Rewrite.
227 (mips_o32_xfer_return_value): New function.
228 (mips_xfer_register): Tweak debug print message. Allow for
229 buf_offset when dumping the value transfered.
230
231 2002-08-20 Andrew Cagney <ac131313@redhat.com>
232
233 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
234 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
235 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
236 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
237 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
238
239 2002-08-14 Michael Snyder <msnyder@redhat.com>
240
241 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
242
243 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
244
245 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
246 register.
247 (P): New macro to define a register as a pseudo register.
248 (R, R4, R8, R16, FR32, R64, R0): Updated.
249 (struct variant): Add new fields for number of pseudo registers
250 and number of total registers.
251 (tot_num_registers): New macro replacing....
252 (num_registers): ...deleted macro.
253 (num_registers): New function.
254 (num_pseudo_registers): New function.
255 (variants): Update all variants to intialize new fields correctly.
256 Postpone initialization of number of pseudo regs and real regs.
257 (init_variants): New function.
258 (rs6000_gdbarch_init): Initialize variants. Update calculation of
259 registers offsets.
260
261 2002-08-19 David Carlton <carlton@math.stanford.edu>
262
263 * valops.c (search_struct_field): Change error message to treat
264 return value of 0 from value_static_field as meaning that field is
265 optimized out.
266 (value_struct_elt_for_reference): Ditto.
267 * values.c (value_static_field): Treat an unresolved location the
268 same as a nonexistent symbol. Fix PR gdb/635.
269 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
270 enclosed. Fix PR gdb/574.
271 * MAINTAINERS: Add self to Write After Approval list.
272
273 2002-08-19 Andrew Cagney <ac131313@redhat.com>
274
275 * mips-tdep.c (mips_xfer_register): New function.
276 (mips_n32n64_extract_return_value): Rewrite.
277 (mips_gdbarch_init): For N32 and N64, set extract_return_value
278 instead of deprecated_extract_return_value.
279
280 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
281
282 * rs6000-tdep.c (TDEP): Delete macro.
283 (branch_dest): Replace use of TDEP macro with its body.
284 (rs6000_pop_frame): Ditto.
285 (rs6000_push_arguments): Ditto.
286 (rs6000_skip_trampoline_code): Ditto.
287 (rs6000_frame_saved_pc): Ditto.
288 (rs6000_frame_chain): Ditto.
289 (rs6000_register_name): Ditto.
290 (rs6000_register_byte): Ditto.
291 (rs6000_register_raw_size): Ditto.
292 (rs6000_register_virtual_type): Ditto.
293 (rs6000_register_convertible): Ditto.
294 (rs6000_convert_from_func_ptr_addr): Ditto.
295
296 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
297
298 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
299 conditionally.
300 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
301 MIPS_LINUX_JB_ELEMENT_SIZE.
302 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
303 for MAX_REGISTER_RAW_SIZE arrays.
304 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
305 MIPS_LINUX_JB_ELEMENT_SIZE.
306
307 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
308
309 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
310
311 2002-08-19 Aidan Skinner <aidan@velvet.net>
312
313 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
314 ada-valprint.c ada-tasks.c.
315 (YYFILES): Add ada-exp.y.
316 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
317 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
318 (ada-exp.tab.o): New target.
319
320 2002-08-18 Andrew Cagney <ac131313@redhat.com>
321
322 * regcache.c (regcache_xfer_part): New function.
323 (regcache_raw_read_part): New function.
324 (regcache_raw_write_part): New function.
325 (regcache_cooked_read_part): New function.
326 (regcache_cooked_write_part): New function.
327 * regcache.h (regcache_raw_read_part): Declare.
328 (regcache_raw_write_part): Declare.
329 (regcache_cooked_read_part): Declare.
330 (regcache_cooked_write_part): Declare.
331
332 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
333
334 * remote.c (remote_open_1): Add async_p.
335 (remote_async_open_1): Delete.
336 (open_remote_target): Delete.
337 (remote_open, extended_remote_open): Update calls to remote_open_1.
338 (remote_async_open, extended_remote_async_open): Call
339 remote_open_1 instead of remote_async_open_1.
340
341 2002-08-19 Mark Kettenis <kettenis@gnu.org>
342
343 * blockframe.c: Fix a few coding standard violations.
344
345 2002-08-19 Mark Kettenis <kettenis@gnu.org>
346
347 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
348 here from ...
349 * config/i386/tm-i386sco5.h: ... here. File removed.
350 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
351
352 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
353 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
354 (TM_FILE): Set to tm-i386.h.
355 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
356 * config/i386/tm-i386v.h: Remove file.
357 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
358 instead of "i386/tm-i386v.h".
359 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
360 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
361 "i386/tm-i386v.h".
362 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
363 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
364 "i386/tm-i386.h".
365
366 2002-08-18 Mark Kettenis <kettenis@gnu.org>
367
368 * config/i386/nm-i386v.h: Add protection against
369 multiple-inclusion.
370 (i386_register_u_addr): Remove prototype.
371 (register_u_addr): New prototype.
372 (REGISTER_U_ADDR): Redefine accordingly.
373 * i386v-nat.c: Improve several comments.
374 (i386_register_u_addr): Change signature and rename to
375 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
376 ubase variable.
377
378 2002-08-18 Andrew Cagney <ac131313@redhat.com>
379
380 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
381 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
382 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
383 deprecated_extract_return_value.
384 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
385 rename mips_o32o64_push_arguments.
386 (mips_gdbarch_init): Update.
387 (mips_extract_return_value): Delete.
388 (mips_o32_extract_return_value): Clone mips_extract_return_value.
389 (mips_o64_extract_return_value): Clone mips_extract_return_value.
390 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
391 (mips_n32n64_extract_return_value): Clone
392 mips_extract_return_value.
393 (mips_store_return_value): Delete.
394 (mips_o32_store_return_value): Clone mips_store_return_value.
395 (mips_o64_store_return_value): Clone mips_store_return_value.
396 (mips_eabi_store_return_value): Clone mips_store_return_value.
397 (mips_n32n64_store_return_value): Clone mips_store_return_value.
398
399 2002-08-18 Aidan Skinner <aidan@velvet.net>
400
401 * ada-lang.c: Use gdb_string.h instead of <string.h>.
402 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
403
404 2002-08-18 Aidan Skinner <aidan@velvet.net>
405
406 * ada-lang.c: Run through gdb_indent.sh.
407 * ada-lang.h: Run through gdb_indent.sh.
408 * ada-tasks.c: Run through gdb_indent.sh.
409 * ada-typeprint.c: Run through gdb_indent.sh.
410 * ada-valprint.c: Run through gdb_indent.sh.
411
412 2002-08-18 Andrew Cagney <ac131313@redhat.com>
413
414 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
415 ABI.
416
417 2002-08-18 Mark Kettenis <kettenis@gnu.org>
418
419 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
420
421 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
422 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
423
424 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
425 write_register_gen instead of write_register_bytes.
426
427 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
428 i[3456]-*-osf1mk* configurations have been made obsolete.
429 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
430 i[3456]86-*-osf1mk* hosts obsolete.
431 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
432 targets obsolete.
433 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
434 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
435 config/i386/i386m3.mt, config/i386/nm-m3.h,
436 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
437 config/i386/i386mk.mh, config/i386/i386mk.mt,
438 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
439 obsolete.
440 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
441 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
442 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
443
444 2002-08-18 Andrew Cagney <ac131313@redhat.com>
445
446 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
447 (hppa_value_returned_from_stack): Declare.
448 (hppa_extract_return_value): Declare.
449 * config/pa/hppa.mt: New file.
450 * configure.tgt: Recognize hppa*-*-*.
451 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
452
453 2002-08-18 Mark Kettenis <kettenis@gnu.org>
454
455 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
456 comment.
457
458 2002-08-17 Mark Kettenis <kettenis@gnu.org>
459
460 * top.c (gdb_rl_operate_and_get_next): Make sure
461 operate-and-get-next functions correctly even when the history
462 list is completely filled.
463
464 2002-08-18 Andrew Cagney <ac131313@redhat.com>
465
466 * MAINTAINERS (Target Instruction Set Architectures): Rename
467 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
468 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
469 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
470 already listed under Host/Native.
471
472 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
473 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
474 mips*-*-*.
475
476 2002-08-17 Andrew Cagney <ac131313@redhat.com>
477
478 * config/ia64/ia64.mt: New file.
479 * config/alpha/alpha.mt: New file.
480 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
481 ia64-linux-gnu. Mention that ia64-elf is broken.
482 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
483
484 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
485
486 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
487 generic_func_frame_valid instead of func_frame_valid.
488
489 2002-08-16 Joel Brobecker <brobecker@gnat.com>
490
491 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
492 procfs appears to be broken when debugging on multi-processor
493 machines. So enable software single stepping in order to avoid
494 using the procfs interface to do next/step operations, using
495 internal breakpoints instead.
496
497 * infrun.c (handle_inferior_event): Readjust the stop_pc by
498 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
499 make this pc address equal to the value it would have if the
500 system stepping capability was used. Also set a new flag used
501 to ensure that we don't readjust the PC one more time later.
502
503 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
504 address by DECR_PC_AFTER_BREAK when software single step is
505 in use for this architecture, as this has already been taken
506 care of in handle_inferior_event().
507
508 2002-08-16 Joel Brobecker <brobecker@gnat.com>
509
510 * infrun.c (handle_inferior_event): Minor reformatting, to make
511 a rather long condition expression easier to read.
512
513 2002-08-16 Andrew Cagney <ac131313@redhat.com>
514
515 * Makefile.in (gdbtk.o): Move to end of file.
516 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
517 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
518 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
519 (gdbtk-wrapper.o, gdbres.o): Ditto.
520
521 2002-08-16 Andrew Cagney <ac131313@redhat.com>
522
523 * Makefile.in (copying.o): Separate out compile rule.
524 (hpux-thread.o, procfs.o, signals.o): Ditto.
525 (v850ice.o, z8k-tdep.o): Ditto.
526 (tui-file.o): Move to TUI section.
527 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
528 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
529
530 2002-08-16 Joel Brobecker <brobecker@gnat.com>
531
532 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
533 skip_trampoline_code, for better namespace-proofing.
534
535 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
536
537 2002-08-16 Joel Brobecker <brobecker@gnat.com>
538
539 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
540
541 2002-08-16 Joel Brobecker <brobecker@gnat.com>
542
543 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
544 signal, check whether we hit a breakpoint before checking for a
545 single step breakpoint. Otherwise, GDB fails to notice that a
546 breakpoint has been hit when stepping onto a breakpoint.
547
548 2002-08-16 Keith Seitz <keiths@redhat.com>
549
550 * gdb-events.sh (clear_gdb_event_hooks): New function.
551 * gdb-events.c: Regenerate.
552 * gdb-events.h: Regenerate.
553
554 2002-08-16 Andrew Cagney <ac131313@redhat.com>
555
556 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
557 not_a_sw_breakpoint.
558 * breakpoint.h (bpstat_stop_status): Add parameter names.
559
560 2002-08-16 Grace Sainsbury <graces@redhat.com>
561
562 * remote.c (remote_insert_hw_breakpoint)
563 (remote_remove_hw_breakpoint): Fix calculation of length field
564 for Z-packet.
565
566 2002-08-15 Michael Snyder <msnyder@redhat.com>
567
568 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
569 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
570 (supply_fpregset): Ditto.
571
572 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
573 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
574 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
575 (TARGET_READ_SP): Delete.
576 (DO_REGISTERS_INFO): Delete.
577 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
578 Delete.
579 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
580 from macros to functions.
581
582 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
583 (mips_register_convertible, mips_register_convert_to_virtual,
584 mips_register_convert_to_raw): Make static.
585 (mips_read_sp): New function.
586 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
587 (mips_do_registers_info): Make static.
588 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
589 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
590 (mips_register_convert_from_type, mips_register_convert_to_type):
591 New functions.
592 (mips_gdbarch_init): Set up function_start_offset,
593 register_virtual_size, pc_in_sigtramp.
594
595 2002-08-15 Andrew Cagney <ac131313@redhat.com>
596
597 * infcmd.c (vector_info): New function.
598 (_initialize_infcmd): Add command "info vector".
599 (print_vector_info): New function.
600
601 * gdbarch.sh (PRINT_VECTOR_INFO): New method
602 * gdbarch.h, gdbarch.c: Regenerate.
603
604 2002-08-15 Andrew Cagney <ac131313@redhat.com>
605
606 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
607 ``print_all''. Only print vector registers when ``print_all''.
608
609 2002-08-15 Andrew Cagney <ac131313@redhat.com>
610
611 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
612 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
613
614 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
615 Add `args' parameter.
616 * gdbarch.h, gdbarch.c: Regenerate.
617
618 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
619
620 * infcmd.c (float_info): Call print_float_info.
621 (print_float_info): New function. By default, print the
622 floating-point registers.
623
624 * arch-utils.h (default_print_float_info): Delete declaration.
625 * arch-utils.c (default_print_float_info): Delete function.
626
627 2002-08-16 Mark Kettenis <kettenis@gnu.org>
628
629 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
630 out define.
631
632 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
633 FRAME.
634
635 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
636 * configure.host: Make i[3456]86-*-aix host obsolete.
637 * configure.tgt: Make i[3456]86-*-aix target obsolete.
638 * config/i386/i386aix.mh, config/i386/i386aix.mt,
639 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
640 config/i386/xm-i386aix.h: Make files obsolete.
641 * i386aix-nat.c: Make file obsolete.
642 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
643 (i386aix-nat.o): Make target obsolete.
644
645 * config/i386/nm-gnu.h: Removed.
646 * config/i386/nm-i386gnu.h: New file.
647 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
648 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
649 Moved here from ...
650 * config/i386/tm-i386gnu.h: ... here. Removed.
651 * config/i386/xm-i386gnu.h: Removed.
652 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
653 (NAT_FILE): Set to nm-i386gnu.h.
654 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
655 * i386-tdep.c: New file.
656 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
657 (i386gnu-tdep.o): Specify dependencies.
658
659 2002-08-15 Mark Kettenis <kettenis@gnu.org>
660
661 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
662 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
663 Adjust a few comments to reflect reality a bit closer.
664 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
665 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
666 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
667 target_insert_watchpoint, target_remove_watchpoint):
668 Move defines to ...
669 * config/i386/nm-i386sco5.h: ... here.
670 (kernel_u_size): Add prototype. Improve a few comments and add
671 protection against multiple inclusion.
672
673 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
674 out define.
675
676 * uw-thread.c (SP_ARG0): Define if not already defined.
677 * config/i386/tm-i386.h (SO_ARG0): Remove define.
678
679 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
680
681 * config/i386/tm-i386.h: Don't include "regcache.h".
682
683 * i387-tdep.h (i387_print_float_info): New prototype.
684 * i387-tdep.c (print_i387_value, print_i387_ext,
685 print_i387_status_word, print_i387_control_word): Add `struct
686 ui_file *' argument and use it for output.
687 (i387_print_float_info): Renamed from i387_float_info. Add
688 `struct gdbarch *' and `struct ui_file *' arguments and use the
689 latter for output.
690 * i386-tdep.c: Include "i387-tdep.h".
691 (i386_gdbarch_init): Set print_float_info.
692 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
693 (FLOAT_INFO): Remove define.
694
695 2002-08-13 Michael Snyder <msnyder@redhat.com>
696
697 * mips-tdep.c (mips_push_arguments): Rename to
698 mips_eabi_push_arguments, and tune for EABI.
699 (MIPS_REGS_HAVE_HOME_P): Delete.
700 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
701 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
702 Delete references to mips_regs_have_home_p.
703
704 2002-08-14 Keith Seitz <keiths@redhat.com>
705
706 * Makefile.in (install-gdbtk): Create insight plugin directory.
707 Install plugins.tcl file.
708
709 2002-08-14 Keith Seitz <keiths@redhat.com>
710
711 * configure.in: Move SUBDIRS to near top of the file so that
712 --enable options may add things to it.
713 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
714 * configure: Regenerate.
715
716 2002-08-13 Michael Snyder <msnyder@redhat.com>
717
718 * mips-tdep.c (mips_o32o64_push_arguments): New function,
719 cloned from mips_push_arguments, tuned for o32/o64 ABI.
720 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
721
722 2002-08-13 Andrew Cagney <ac131313@redhat.com>
723
724 * vax-tdep.c (vax_get_saved_register): Delete function.
725 (vax_gdbarch_init): Update.
726 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
727 (ns32k_gdbarch_init): Update.
728 * alpha-tdep.c (alpha_get_saved_register): Delete function.
729 (alpha_gdbarch_init): Update.
730
731 2002-08-13 Andrew Cagney <cagney@redhat.com>
732
733 * regcache.c (init_regcache_descr): Overallocate the
734 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
735 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
736 nr_raw_registers.
737 (set_register_cached): Add range checking assertions. Use
738 current_regcache.
739
740 2002-08-13 Mark Kettenis <kettenis@gnu.org>
741
742 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
743 numbers for MMX registers.
744
745 2002-08-13 Andrew Cagney <cagney@redhat.com>
746
747 * i386-tdep.c (i386_gdbarch_init): Use
748 generic_unwind_get_saved_register.
749
750 2002-08-13 Kevin Buettner <kevinb@redhat.com>
751
752 * procfs.c (procfs_can_use_hw_breakpoint): New function.
753 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
754 target vector.
755 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
756 Delete. Add comment regarding this now-deleted target method.
757
758 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
759
760 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
761 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
762 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
763 real PC and the page number (if it's within the memory bank window).
764 (m68hc11_pseudo_register_write): Likewise when saving.
765 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
766 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
767 (m68hc11_register_raw_size): And use 32-bit for it.
768 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
769 16K memory bank is used by the prog; also use the virtual pc.
770
771 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
772
773 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
774 (m68hc11_gdbarch_init): Install it in gdbarch.
775 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
776 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
777 (MSYMBOL_SIZE): New for documentation.
778 (insn_return_kind): Enum to specify how a function returns.
779 (frame_extra_info): Cleanup and record the return mode.
780 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
781 register in address computation.
782 (m68hc11_get_return_insn): New to obtain the return instruction used
783 by the function.
784 (m68hc11_frame_init_saved_regs): Take into account the return
785 instruction used by the function for far and interrupt functions.
786 (m68hc11_init_extra_frame_info): Take into account page register.
787 (m68hc11_frame_args_address): Adjust according to the return mode.
788 (show_regs): Print page register only when it's used.
789
790 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
791
792 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
793 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
794 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
795 registers.
796 (m68hc11_register_raw_size): Likewise.
797
798 2002-08-13 Andrew Cagney <cagney@redhat.com>
799
800 * i386-tdep.c (i386_register_name): Handle mmx registers.
801 (mmx_regnum_p): New function.
802 (i386_mmx_names): New array.
803 (mmx_num_regs): New variable.
804 (i386_pseudo_register_read): New function.
805 (i386_pseudo_register_write): New function.
806 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
807
808 * regcache.c (regcache_raw_read_unsigned): New function.
809 (regcache_raw_read_signed): New function.
810 * regcache.h (regcache_raw_read_unsigned): Declare.
811 (regcache_raw_read_signed): Declare.
812
813 2002-08-13 Andrew Cagney <cagney@redhat.com>
814
815 * regcache.c (regcache_raw_read_as_address): Delete function.
816 (regcache_cooked_read_signed): New function.
817 (regcache_cooked_read_unsigned): New function.
818 * regcache.h (regcache_cooked_read_signed): Declare.
819 (regcache_cooked_read_unsigned): Declare.
820 (regcache_raw_read_as_address): Delete declaration.
821
822 * blockframe.c (generic_read_register_dummy): Use
823 regcache_cooked_read_unsigned.
824 * i386-tdep.c (i386_extract_struct_value_address): Use
825 regcache_cooked_read_unsigned.
826
827 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
828
829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
830 double sizes according to ELF ABI flags.
831 (gdbarch_tdep): Record elf_flags.
832
833 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
834
835 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
836 (m6812_prolog): They can appear in 68HC12 function prologue.
837 (m68hc11_frame_chain): Cleanup.
838
839 2002-08-12 Andrew Cagney <cagney@redhat.com>
840
841 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
842 declarations.
843 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
844 (i386_linux_register_raw_size): Delete function.
845 (i386_linux_init_abi): Update.
846 * i386-tdep.c (i386_register_raw_size): Delete function.
847 (i386_register_byte): Delete function.
848 (i386_gdbarch_init): Update.
849 (i386_register_size): Delete array.
850 (i386_register_offset): Delete array.
851
852 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
853 (REGISTER_RAW_SIZE): Delete macro.
854 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
855 (REGISTER_BYTE): Delete macro.
856
857 2002-08-11 Aidan Skinner <aidan@velvet.net>
858
859 * ada-lang.c (ada_lookup_partial_symbol)
860 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
861 prototype names so that grep ^func works properly.
862
863 * ada-lang.c (ada_array_element_type)
864 (ada_lookup_partial_symbol): Fix typos in parameter list.
865
866 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
867 Fix prototype names so that grep ^func works properly.
868
869 2002-08-10 Andrew Cagney <cagney@redhat.com>
870 Elena Zannoni <ezannoni@redhat.com>
871 Martin M. Hunt <hunt@redhat.com>
872
873 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
874 (build_builtin_type_vec128i): Set the vector bit.
875 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
876 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
877 (build_builtin_type_vec64): New function.
878 (build_builtin_type_vec64i): New function.
879 (build_gdbtypes): Initialize builtin_type_vec64 and
880 builtin_type_vec64i.
881
882 2002-08-09 Andrew Cagney <cagney@redhat.com>
883
884 * regcache.c (regcache_dump): Compare the register offset
885 with REGISTER_BYTE.
886 * arch-utils.c (generic_register_byte): New function.
887 * arch-utils.h (generic_register_byte): Declare.
888 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
889 * gdbarch.h, gdbarch.c: Regenerate.
890
891 2002-08-09 Andrew Cagney <cagney@redhat.com>
892
893 * regcache.c: Include "gdbcmd.h"
894 (_initialize_regcache): Add commands "maintenance print
895 registers", "maintenance print raw-registers" and "maintenance
896 print cooked-registers".
897 (enum regcache_dump_what): Define.
898 (dump_endian_bytes): New function.
899 (regcache_dump): New function.
900 (regcache_print): New function.
901 (maintenance_print_registers): New function.
902 (maintenance_print_raw_registers): New function.
903 (maintenance_print_cooked_registers): New function.
904 * Makefile.in (regcache.o): Update dependencies.
905
906 2002-08-09 Michael Snyder <msnyder@redhat.com>
907
908 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
909 (mips_push_arguments): Correct some comments. Use paddr_nz
910 for printing addresses in debug output. Replace static
911 allocation using MAX_REGISTER_RAW_SIZE with alloca.
912 (mips_n32n64_push_arguments): New function, cloned from
913 mips_push_arguments and tuned for the n32/n64 ABI.
914 (mips_push_register): Buffer needs dynamic allocation.
915 (mips_print_register): Ditto.
916 (do_gp_register_row): Ditto.
917 (mips_store_return_value): Ditto.
918 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
919
920 2002-08-09 Don Howard <dhoward@redhat.com>
921
922 * memattr.c (mem_info_command): Print special case of upper bound
923 as max CORE_ADDR + 1.
924
925 2002-08-08 Michael Snyder <msnyder@redhat.com>
926
927 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
928 returns structs by ref if they're too big to fit in two registers.
929
930 2002-08-09 Kevin Buettner <kevinb@redhat.com>
931
932 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
933 saved regs value.
934 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
935 mips_find_saved_regs().
936 (mips_pop_frame): Likewise.
937
938 2002-08-09 Kevin Buettner <kevinb@redhat.com>
939
940 * blockframe.c (frame_saved_regs_register_unwind): Revise
941 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
942 frames are in use.
943
944 2002-08-09 Grace Sainsbury <graces@redhat.com>
945
946 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
947 T-packets; the 'a' is not taken as a register number.
948 (remote_check_watch_resources, remote_stopped_by_watchpoint)
949 (remote_stopped_data_address): New functions; add to target
950 vector.
951 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
952 prototypes to match other implementations of this
953 function. replace integer argument with pointer -- the length
954 field in the Z-packet is the length of what is pointed to or 1 if
955 pointer is null. Add to target vector.
956 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
957 target vector.
958
959 From Mark Salter:
960 * remote.c (remote_wait): Add support to extract optional
961 watchpoint information from T-packet. Ignore unrecognized
962 optional info in T-packet.
963 (remote_async_wait): Ditto.
964
965 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
966
967 * cli/cli-dump.c: Change fopen modes to use binary open modes
968 as defined in include/fopen-bin.h throughout.
969
970 2002-08-08 Michael Snyder <msnyder@redhat.com>
971
972 * mips-tdep.c: Minor whitespace and indentation clean-ups.
973
974 2002-08-08 Kevin Buettner <kevinb@redhat.com>
975
976 * doublest.c (store_floating): Avoid floatformat_from_doublest()
977 assertion failure by returning early after a warning.
978
979 2002-08-08 Kevin Buettner <kevinb@redhat.com>
980
981 * mips-tdep.c (mips_find_saved_regs): Make static.
982 (mips_frame_init_saved_regs): New function.
983 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
984 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
985 (mips_find_saved_regs): Delete declaration.
986
987 2002-08-08 Grace Sainsbury <graces@redhat.com>
988
989 * remote.c (remote_wait, remote_async_wait): Change
990 thread_num from int to ULONGEST.
991 (unpack_varlen_hex): Change result parameter from
992 int * to ULONGEST *.
993
994 2002-08-08 Andrew Cagney <ac131313@redhat.com>
995
996 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
997 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
998 powerpc*-*-*.
999 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1000
1001 2002-08-08 Andrew Cagney <cagney@redhat.com>
1002
1003 * gcore.c (override_derive_stack_segment): Delete variable.
1004 (preempt_derive_stack_segment): Delete function.
1005 (derive_stack_segment): Delete function.
1006 (default_derive_stack_segment): Renamed to derive_stack_segment.
1007 (override_derive_heap_segment): Delete variable.
1008 (preempt_derive_heap_segment): Delete function.
1009 (derive_heap_segment): Delete function.
1010 (default_derive_heap_segment): Rename to derive_heap_segment.
1011
1012 2002-08-06 Michael Snyder <msnyder@redhat.com>
1013
1014 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1015 * mips-tdep.c (mips_EABI_use_struct_convention,
1016 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1017 New functions. (mips_use_struct_convention): Delete.
1018 (mips_gdbarch_init): set use_gdbarch_convention.
1019
1020 2002-08-06 Michael Snyder <msnyder@redhat.com>
1021
1022 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1023 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1024 mips_o32_reg_struct_has_addr): New functions.
1025 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1026
1027 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1028
1029 * regcache.c (pseudo_register): Delete function.
1030 (fetch_register): Delete function.
1031 (store_register): Delete function.
1032 (regcache_raw_read, legacy_read_register_gen): Use
1033 target_fetch_registers instead of fetch_register.
1034 (legacy_write_register_gen, regcache_raw_write): Use
1035 target_store_register instead of store_register.
1036 (write_register_bytes): Ditto.
1037
1038 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1039 (STORE_PSEUDO_REGISTER): Delete.
1040 * gdbarch.h, gdbarch.c: Regenerate.
1041
1042 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1043
1044 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1045 write dump file binary.
1046
1047 2002-08-05 Michael Snyder <msnyder@redhat.com>
1048
1049 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1050 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1051 (mips_gdbarch_init): Set N32 target to be mips64.
1052
1053 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1054
1055 * frame.c (find_saved_register): Break out of loop once saved
1056 register address is found. Don't mention sparc in loop comment
1057 anymore.
1058
1059 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1060
1061 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1062 mips_default_saved_regsize to 8.
1063
1064 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1065
1066 * gcore.c: Do not include <sys/procfs.h>.
1067 * Makefile.in (gcore.o): Update dependencies.
1068
1069 2002-08-06 Andrew Cagney <cagney@redhat.com>
1070
1071 * configure.tgt: Make arc-*-* obsolete.
1072 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1073 * MAINTAINERS: Make arc-elf obsolete.
1074 * arc-tdep.c: Make file obsolete.
1075 * config/arc/arc.mt: Ditto.
1076 * config/arc/tm-arc.h: Ditto.
1077
1078 2002-08-05 Theodore A. Roth <troth@verinet.com>
1079
1080 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1081
1082 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1083
1084 * mcore-tdep.c (mcore_gdbarch_init): Use
1085 generic_unwind_get_saved_register instead of
1086 generic_get_saved_register.
1087 * v850-tdep.c (v850_gdbarch_init): Ditto.
1088 * frv-tdep.c (frv_gdbarch_init): Ditto.
1089 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1090 * s390-tdep.c (s390_gdbarch_init): Ditto.
1091 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1092 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1093 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1094
1095 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1096
1097 * objfiles.h: Add missing #include "symfile.h"
1098
1099 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1100
1101 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1102
1103 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1104 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1105 of FIELD_BITSIZE.
1106
1107 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1108
1109 * NEWS: Cleanup and nitpick.
1110
1111 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1112
1113 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1114
1115 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1116
1117 * Makefile.in (gdbtk-bp.o): Update dependencies.
1118 (gdbtk-register.o): Ditto.
1119 (gdbtk-varobj.o): Ditto.
1120
1121 2002-08-03 Andrew Cagney <cagney@redhat.com>
1122
1123 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1124 m68hc11_fetch_pseudo_register.
1125 (m68hc11_pseudo_register_write): Replace
1126 m68hc11_store_pseudo_register.
1127 (m68hc11_gdbarch_init): Update.
1128
1129 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1130
1131 * gdbarch.sh: Include "gdb_string.h".
1132 * gdbarch.c: Regenerate.
1133
1134 * regcache.c: Include "gdb_string.h".
1135 * ax-general.c: Ditto.
1136 * varobj.c: Ditto.
1137 * std-regs.c: Ditto.
1138 * fbsd-proc.c: Ditto.
1139 * thread.c: Ditto.
1140
1141 * Makefile.in (regcache.o): Update dependencies.
1142 (thread.o, gdbarch.o): Ditto.
1143 (ax-general.o, gdbarch.o): Ditto.
1144 (varobj.o, std-regs.o): Ditto.
1145 (fbsd-proc.o): Specify dependencies.
1146
1147 2002-08-02 Andrew Cagney <cagney@redhat.com>
1148
1149 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1150 regnum.
1151 (regcache_cooked_write): Ditto.
1152
1153 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1154
1155 * regcache.c (regcache_cooked_read): New function.
1156 (regcache_cooked_write): New function.
1157 (read_register_gen): Rewrite using regcache_cooked_read.
1158 (write_register_gen): Rewrite using regcache_cooked_write.
1159
1160 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1161 Declare.
1162
1163 2002-08-02 Andrew Cagney <cagney@redhat.com>
1164
1165 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1166 Replace the architecture methods register_read and register_write.
1167 * gdbarch.h, gdbarch.c: Regenerate.
1168 * regcache.c (init_regcache_descr): Update.
1169 (read_register_gen): Update.
1170 (write_register_gen): Update.
1171 (supply_register): Update comment.
1172
1173 * sh-tdep.c (sh_gdbarch_init): Update.
1174 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1175 `regcache' and `gdbarch' parameters. Make `buffer' a void
1176 pointer. Update code.
1177 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1178 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1179 void pointer. Update code.
1180 (sh64_register_write): Delete.
1181 (sh4_register_read): Delete.
1182 (sh64_register_read): Delete.
1183 (sh4_register_write): Delete.
1184 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1185 void pointer, `to' parameter a void pointer.
1186 (sh_sh64_register_convert_to_raw): Ditto.
1187
1188 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1189
1190 * mips-tdep.c (mips_register_virtual_type): Use architecture
1191 invariant return values.
1192
1193 2002-08-01 Andrew Cagney <cagney@redhat.com>
1194
1195 * linux-proc.c: Include "gdb_string.h".
1196 * Makefile.in (linux-proc.o): Update dependency list.
1197
1198 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1199
1200 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1201 comment.
1202
1203 2002-08-01 Grace Sainsbury <graces@redhat.com>
1204
1205 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1206 to_insert_watchpoint, to_remove_watchpoint,
1207 to_stopped_by_watchpoint, to_stopped_data_address,
1208 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1209 target vecctor. Define their corresponding macros so they call
1210 them.
1211
1212 * target.c: Add default and debug versions of for
1213 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1214 to_insert_watchpoint, to_remove_watchpoint,
1215 to_stopped_by_watchpoint, to_stopped_data_address,
1216 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1217
1218 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1219
1220 * mips-tdep.c (mips_register_virtual_type): New function.
1221 (mips_gdbarch_init): Register mips_register_virtual_type()
1222 with gdbarch machinery.
1223 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1224 this file instead of tm-bigmips.h.
1225 (MIPS_REGSIZE): Delete this macro.
1226 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1227 multiarch version in mips-tdep.c will be found.
1228
1229 2002-08-01 Andrew Cagney <cagney@redhat.com>
1230
1231 * NEWS: Menion that CHILL has been made obsolete.
1232
1233 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1234 * gdbserver/Makefile.in: Ditto.
1235 * stabsread.c (read_range_type): Ditto.
1236 * gdbtypes.h: Ditto.
1237 * language.c (binop_type_check): Ditto.
1238 (binop_result_type): Ditto.
1239 (integral_type): Ditto.
1240 (character_type): Ditto.
1241 (string_type): Ditto.
1242 (boolean_type): Ditto.
1243 (structured_type): Ditto.
1244 (lang_bool_type): Ditto.
1245 (binop_type_check): Ditto.
1246 * language.h (_LANG_chill): Ditto.
1247 * dwarfread.c (set_cu_language): Ditto.
1248 * dwarfread.c (CHILL_PRODUCER): Ditto.
1249 * dwarfread.c (handle_producer): Ditto.
1250 * expression.h (enum exp_opcode): Ditto.
1251 * eval.c: Ditto for comments.
1252 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1253 * expprint.c (print_subexp): Ditto.
1254 (print_subexp): Ditto.
1255 * valops.c (value_cast): Ditto.
1256 (search_struct_field): Ditto.
1257 * value.h (COERCE_VARYING_ARRAY): Ditto.
1258 * symfile.c (init_filename_language_table): Ditto.
1259 (add_psymbol_with_dem_name_to_list): Ditto.
1260 * valarith.c (value_binop): Ditto.
1261 (value_neg): Ditto.
1262 * valops.c (value_slice): Ditto.
1263 * symtab.h (union language_specific): Ditto.
1264 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1265 (SYMBOL_DEMANGLED_NAME): Ditto.
1266 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1267 * defs.h (enum language): Ditto.
1268 * symtab.c (got_symtab): Ditto.
1269 * utils.c (fprintf_symbol_filtered): Ditto.
1270
1271 * ch-typeprint.c: Make file obsolete.
1272 * ch-valprint.c: Make file obsolete.
1273 * ch-lang.h: Make file obsolete.
1274 * ch-exp.c: Make file obsolete.
1275 * ch-lang.c: Make file obsolete.
1276
1277 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1278 CHILL_LIB.
1279 (TARGET_FLAGS_TO_PASS): Ditto.
1280 (CHILLFLAGS): Obsolete.
1281 (CHILL): Obsolete.
1282 (CHILL_FOR_TARGET): Obsolete.
1283 (CHILL_LIB): Obsolete.
1284 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1285 ch-valprint.c.
1286 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1287 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1288 ch-lang.o.
1289 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1290 targets.
1291
1292 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1293
1294 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1295 This does not change anything at the moment, but will be helpful
1296 later when full Ada support is integrated.
1297
1298 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1299
1300 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1301 help message.
1302
1303 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1304
1305 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1306 and save it in a local variable. Use variable in later test.
1307
1308 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1309
1310 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1311 test. (Thanks to Daniel Jacobowitz.)
1312
1313 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1314
1315 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1316 (mips_abi_strings): Add "n64".
1317 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1318
1319 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1320
1321 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1322 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1323
1324 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1325
1326 * utils.c (host_pointer_to_address, address_to_host_pointer):
1327 Use gdb_assert() instead of explicit call to internal_error().
1328
1329 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1330
1331 * Makefile.in (rs6000-nat.o): Update dependencies.
1332
1333 From Nicholas Duffek:
1334 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1335 (aix-thread.o): New rule.
1336 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1337 * config/powerpc/aix432.mh: New file.
1338
1339 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1342 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1343 (fetch_core_registers, ppc_linux_supply_gregset)
1344 (ppc_linux_supply_fpregset): New functions.
1345 (ppc_linux_regset_core_fns): New.
1346 (_initialize_ppc_linux_tdep): Call add_core_fns.
1347 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1348 and ppc_linux_supply_gregset.
1349 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1350 (supply_fpregset): Call ppc_linux_supply_fpregset.
1351 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1352 corelow.o.
1353 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1354
1355 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * symtab.c (lookup_symbol): Demangle before lowercasing.
1358
1359 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1360
1361 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1362 declaration.
1363 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1364 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1365 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1366 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1367 "gdb_string.h".
1368 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1369 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1370 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1371 (avr-tdep.o, mon960-rom.o): Ditto.
1372 (aout_stabs_gnu_h): Define.
1373 (symtab_h): Remove $(gdb_obstack_h).
1374
1375 2002-07-30 Jim Blandy <jimb@redhat.com>
1376
1377 Patch from David Carlton <carlton@math.stanford.edu>:
1378 * gdbinit.in: Move the `dir' commands that add GDB's own source
1379 directory to the search path to the end, so that the `gdb' source
1380 directory will be searched first.
1381
1382 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1383
1384 * gdb_obstack.h: New file.
1385 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1386 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1387 * objfiles.h: Include "gdb_obstack.h".
1388 * Makefile.in (gdb_obstack_h): Define.
1389 (symtab_h): Add $(gdb_obstack_h).
1390 (objfiles_h): Add $(gdb_obstack_h).
1391
1392 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1393 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1394 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1395 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1396 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1397 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1398 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1399 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1400
1401 * Makefile.in (bcache.o): Update dependencies.
1402 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1403 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1404 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1405 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1406 (stabsread.o, symfile.o, symmisc.o): Ditto.
1407 (symtab.o, typeprint.o, macroexp.o): Ditto.
1408 (macrotab.o, mdebugread.o): Ditto.
1409 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1410 (coff_ecoff_h, aout_aout64_h): Define.
1411 (aout_stabs_gnu_h, libaout_h): Define.
1412
1413 2002-07-29 Andrew Cagney <cagney@redhat.com>
1414
1415 * regcache.c (struct regcache_descr): Rename nr_registers to
1416 nr_cooked_registers. Revise comments describing the structure
1417 member fields.
1418 (init_regcache_descr): Update.
1419 (init_legacy_regcache_descr): Update.
1420 (read_register_gen, write_register_gen): When a cooked register in
1421 the raw register range, directly access the value from the raw
1422 register cache.
1423
1424 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1425
1426 * z8k-tdep.c: Do not include "obstack.h".
1427 * h8300-tdep.c, h8500-tdep.c: Ditto.
1428 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1429 * valprint.c, v850-tdep.c: Ditto.
1430 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1431 * mn10200-tdep.c: Ditto.
1432
1433 * Makefile.in (z8k-tdep.o): Update dependencies.
1434 (m68hc11-tdep.o, valprint.o): Ditto.
1435 (v850-tdep.o, d10v-tdep.o): Ditto.
1436 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1437 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1438 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1439 (sh_opc_h, gdb_sim_sh_h): Define.
1440 (elf_sh_h, elf_bfd_h): Define.
1441 (opcode_m68hc11_h): Define.
1442 (OPCODES_SRC, OPCODES_DIR): define.
1443 (OPCODES): Use $(OPCODES_DIR).
1444 (gdb_sim_d10v_h): Rename sim_d10v_h.
1445 (gdb_sim_arm_h): Rename sim_arm_h.
1446
1447 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1448
1449 * utils.c (host_pointer_to_address, address_to_host_pointer):
1450 Change internal_error() message to indicate function responsible
1451 for the error.
1452
1453 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1454
1455 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1456 calls to local_hex_string_custom().
1457
1458 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1459
1460 * irix5-nat.c: Move IRIX shared library support from here...
1461 * solib-irix.c: ...to here. Revised substantially to work with
1462 generic solib framework.
1463
1464 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1465 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1466 * mips-irix-tdep.c: New file.
1467
1468 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1469 (mips-irix-tdep.o, solib-irix.o): New rules.
1470 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1471 solib-irix.o.
1472 * config/mips/irix6.mt (TDEPFILES): Likewise.
1473 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1474
1475 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1476
1477 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1478 disabled (via ``#if 0'') includes.
1479
1480 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1481
1482 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1483 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1484 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1485 Add support for the fpscr register.
1486 * rs6000-nat.c (regmap, fetch_inferior_registers)
1487 (store_inferior_registers, fetch_core_registers): Likewise.
1488
1489 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1490
1491 * rs6000-nat.c (language.h): Include.
1492 (special_regs): Delete this array.
1493 (regmap): New function.
1494 (fetch_register, store_register): Use regmap() to map gdb
1495 register numbers to ptrace register numbers. Also, use
1496 outputs from regmap() to make decisions regarding type of
1497 ptrace() call to make. In particular, don't compare against
1498 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1499 (fetch_inferior_registers, store_inferior_registers): Where
1500 possible, obtain register numbers from tdep struct. Don't
1501 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1502 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1503 (LAST_UISA_SP_REGNUM): Delete.
1504
1505 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1506
1507 * rs6000-nat.c (ppc-tdep.h): Include.
1508 (fetch_registers, store_register, fetch_core_registers): Don't
1509 access registers[] directly. Instead, use supply_register() or
1510 regcache_collect() as appropriate.
1511 (find_toc_address): Format hex address with local_hex_string().
1512
1513 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1514
1515 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1516 bfd/elf32-frv.c.
1517
1518 2002-07-24 Tom Tromey <tromey@redhat.com>
1519
1520 * jv-exp.y: Marked all strings with _().
1521 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1522 internal_error.
1523 (MethodInvocation, CastExpression, parse_number, yyerror,
1524 java_type_from_name, push_expression_name, yylex): Typo fixes.
1525
1526 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1529 (tee_file_flush, tee_file_write, tee_file_fputs)
1530 (tee_file_isatty): New.
1531 * ui-file.h (tee_file_new): Add prototype.
1532
1533 2002-07-24 Aidan Skinner <aidan@velvet.net>
1534
1535 * ada-lang.c: Change k&r style function definitions to prototyped
1536 form.
1537 * ada-typeprint.c: Change k&r style function definitions to prototyped
1538 form.
1539 * ada-valprint.c: Change k&r style function definitions to prototyped
1540 form.
1541
1542 2002-07-24 Andrew Cagney <cagney@redhat.com>
1543
1544 * README: Remove reference to remote-bug.
1545 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1546 remote-bug.c.
1547 (m88k-nat.o): Delete rule.
1548 (m88k-tdep.o): Delete rule.
1549 (remote-bug.o): Delete rule.
1550 * MAINTAINERS: Mark as obsolete.
1551 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1552 * m88k-tdep.c: Make file obsolete.
1553 * config/m88k/m88k.mh: Ditto.
1554 * config/m88k/delta88v4.mh: Ditto.
1555 * config/m88k/delta88v4.mt: Ditto.
1556 * config/m88k/delta88.mt: Ditto.
1557 * config/m88k/delta88.mh: Ditto.
1558 * remote-bug.c: Ditto.
1559 * config/m88k/tm-delta88.h: Ditto.
1560 * config/m88k/nm-delta88v4.h: Ditto.
1561 * config/m88k/xm-delta88.h: Ditto.
1562 * config/m88k/xm-dgux.h: Ditto.
1563 * config/m88k/tm-m88k.h: Ditto.
1564 * config/m88k/nm-m88k.h: Ditto.
1565 * config/m88k/tm-delta88v4.h: Ditto.
1566 * m88k-nat.c: Ditto.
1567 * cxux-nat.c: Ditto.
1568 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1569 and m88*-*-* obsolete.
1570 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1571 m88*-*-* obsolete.
1572
1573 2002-07-24 Andrew Cagney <cagney@redhat.com>
1574
1575 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1576 constant. Same for local pointer variables.
1577 (extract_signed_integer): Ditto.
1578 * defs.h (extract_unsigned_integer): Update.
1579 (extract_signed_integer): Update.
1580
1581 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1582
1583 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1584 * gdbserver/configure: Regenerate.
1585 * gdbserver/config.in: Regenerate.
1586
1587 2002-07-24 Andrew Cagney <cagney@redhat.com>
1588
1589 * regcache.c (regcache_raw_write): Change buf parameter to a
1590 constant void pointer.
1591 (regcache_raw_read): Change buf parameter to a void pointer.
1592 (legacy_write_register_gen): Change myaddr parameter a constant
1593 void pointer.
1594 (supply_register): Change val parameter to a const void pointer.
1595 * regcache.h (regcache_raw_write): Update declaration.
1596 (regcache_raw_read): Update declaration.
1597 (supply_register): Update declaration.
1598
1599 2002-07-24 Tom Tromey <tromey@redhat.com>
1600
1601 * defs.h (gdb_readline_wrapper): Declare.
1602 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1603 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1604 * top.c (gdb_readline_wrapper): New function.
1605 (command_line_input): Use it.
1606
1607 2002-07-24 Andrew Cagney <cagney@redhat.com>
1608
1609 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1610 regcache_read and regcache_write.
1611 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1612 * regcache.c: Update.
1613 * sh-tdep.c (sh64_push_arguments): Update comment.
1614 (sh_pseudo_register_read): Update.
1615 (sh_pseudo_register_write): Update.
1616 (sh4_register_read): Update.
1617 (sh4_register_write): Update.
1618 (sh64_pseudo_register_read): Update.
1619 (sh64_pseudo_register_write): Update.
1620 (sh64_register_read): Update.
1621 (sh64_register_write): Update.
1622 * i386-tdep.c (i386_extract_return_value): Update.
1623 (i386_extract_struct_value_address): Update.
1624 (i386_extract_return_value): Update.
1625 * blockframe.c (generic_read_register_dummy): Update.
1626 (generic_call_dummy_register_unwind): Update
1627 * infrun.c (write_inferior_status_register): Update.
1628
1629 2002-07-23 Jim Blandy <jimb@redhat.com>
1630
1631 * parser-defs.h (expression_context_pc): Make this extern.
1632 (Thanks to Michael Snyder.)
1633
1634 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1635
1636 GDB 5.2.1 released from 5.2 branch.
1637 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1638 * README: Update to mention 5.2.1.
1639
1640 2002-07-23 Mark Salter <msalter@redhat.com>
1641
1642 * remote.c (remote_read_bytes): Fix check for error.
1643
1644 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1645
1646 * aix-thread.c (language.h): Include.
1647 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1648 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1649 Print newlines at end of debug messages.
1650 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1651 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1652
1653 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1654
1655 * aix-thread.c (ppc-tdep.h): Include.
1656 (special_register_p): New function.
1657 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1658 (store_regs_user_thread): Use register number information from
1659 gdbarch_tdep struct instead of hardcoded offsets relative to
1660 FIRST_UISA_SP_REGNUM.
1661 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1662 special_register_p() instead of using FPLAST_REGNUM and
1663 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1664 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1665 will be MQ's register number.
1666
1667 2002-07-22 Michael Snyder <msnyder@redhat.com>
1668
1669 * aix-thread.c (ops): Rename to aix_thread_ops.
1670 (base_ops): Rename to base_target.
1671 (ops_attach): Rename to aix_thread_attach.
1672 (ops_detach): Rename to aix_thread_detach.
1673 (ops_resume): Rename to aix_thread_detach.
1674 (ops_wait): Rename to aix_thread_wait.
1675 (ops_kill): Rename to aix_thread_kill.
1676 (init_ops): Rename to init_aix_thread_ops.
1677 (ops_fetch_register): Rename to aix_thread_fetch_register.
1678 (ops_store_register): Rename to aix_thread_store_register.
1679 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1680 (ops_thread_alive): Rename to aix_thread_thread_alive.
1681 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1682 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1683 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1684 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1685 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1686 (store_regs_lib): Rename to store_regs_user_thread.
1687 (store_regs_kern): Rename to store_regs_kernel_thread.
1688
1689 2002-07-22 Michael Snyder <msnyder@redhat.com>
1690
1691 * aix-thread.c (ops_prepare_to_store): Eliminate.
1692 (init_ops): Don't initialize ops.prepare_to_store.
1693 (store_regs_kern): Pre-fetch register buffers from child,
1694 because some registers may not be in the cache. Copy
1695 regs from register cache only if they are cached.
1696 (store_regs_lib): Copy regs from register cache only
1697 if they are cached.
1698 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1699 fill_gprs64): Ditto.
1700
1701 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1702
1703 * aix-thread.c (gdb_assert.h): Include.
1704 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1705 register sizes (from register cache) match size of buffer holding
1706 register data.
1707 (fill_sprs32): Change parameter types to match those in the ptrace()
1708 buffer.
1709 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1710 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1711
1712 2002-07-22 Michael Snyder <msnyder@redhat.com>
1713
1714 * aix-thread.c (supply_sprs64): Cosmetic change.
1715 (supply_sprs32): Cosmetic change.
1716 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1717 (fill_sprs64): Use regcache_collect instead of read_register.
1718 (store_regs_lib): Use regcache_collect instead of
1719 read_register. Use fill_sprs32 instead of fill_sprs64,
1720 if debugging a 32-bit architecture.
1721 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1722 out of the register cache, instead of passing a pointer into
1723 the register cache directly to ptrace. Use regcache_collect
1724 insteaad of read_register.
1725 (ops_prepare_to_store): Use target_read_registers instead
1726 of read_register_bytes.
1727
1728 2002-07-20 Aidan Skinner <aidan@velvet.net>
1729
1730 * MAINTAINERS: Add self under write after approval.
1731
1732 2002-07-20 Aidan Skinner <aidan@velvet.net>
1733
1734 * ada-tasks.c: Change k&r style function definitions to prototyped
1735 form.
1736
1737 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1738
1739 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1740 * x86-64-tdep.c: Include "objfiles.h".
1741 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1742 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1743
1744 2002-07-17 Michal Ludvig <michal@suse.cz>
1745
1746 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1747 (update_context): Initialise cfa variable.
1748
1749 2002-07-17 Michael Snyder <msnyder@redhat.com>
1750
1751 * aix-thread.c: Shorten some long lines.
1752 Bring comments into line with code spec.
1753
1754 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1755
1756 * infrun.c: Re-indent using gdb_indent.sh.
1757
1758 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1759
1760 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1761 Leave the indentation temporarily untouched, to minimize the diffs.
1762
1763 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1764
1765 * stabsread.c: Make os9k sections of the code obsolete,
1766 for real this time.
1767 * stabsread.h: Make os9k sections of the code obsolete.
1768
1769 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1770
1771 * linux-low.c (regsets_store_inferior_registers): Add free()
1772 at the end of a loop to prevent memory leak.
1773 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1774 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1775 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1776 line a comment.
1777 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1778
1779 2002-07-17 Jim Blandy <jimb@redhat.com>
1780
1781 * macrocmd.c (info_macro_command): Remove newline from error
1782 message.
1783
1784 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1785
1786 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1787 (sh_gdbarch_init): Use it for sh-dsp.
1788
1789 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1790
1791 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1792 64-bit DWARF2 format.
1793
1794 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1795
1796 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1797 <sys/proc.h> when not available.
1798
1799 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1800
1801 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1802 * stabsread.c: Make os9k sections of the code obsolete.
1803 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1804 * config/i386/i386os9k.mt: Make file obsolete.
1805 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1806 (COMMON_OBS): Remove os9kread.o
1807 (SFILES): Remove os9kread.c.
1808 (os9kread.o, remote-os9k.o): Make target obsolete.
1809 * remote-os9k.c: Make file obsolete.
1810 * os9kread.c: Make file obsolete.
1811 * Makefile.in
1812
1813 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1814
1815 * NEWS: Mention that the FR30 has been made obsolete.
1816 * fr30-tdep.c: Make file obsolete.
1817 * config/fr30/tm-fr30.h: Ditto.
1818 * config/fr30/fr30.mt: Ditto.
1819 * configure.tgt: Make fr30-*-elf obsolete.
1820 * MAINTAINERS: Make fr30-elf obsolete.
1821
1822 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1823
1824 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1825 found is not inside a section.
1826
1827 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1828
1829 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1830 strerror().
1831 (pdc_realloc): Use xrealloc() instead of realloc().
1832
1833 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1834
1835 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1836 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1837 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1838 macros.
1839
1840 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1841
1842 * aix-thread.c (ptrace_check): Eliminate goto.
1843 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1844 problem.
1845
1846 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1847
1848 * aix-thread.c (gdbcmd.h): Include.
1849 (DEBUG, DBG, DBG2, dbg): Eliminate.
1850 (debug_aix_thread): New static global.
1851 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1852 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1853 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1854 invocations to DBG and DBG2 macros to test against
1855 ``debug_aix_thread'' and call fprintf_unfiltered().
1856 (_initialize_aix_thread): Add new command "set debug aix-thread".
1857
1858 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1859
1860 From Gerhard Tonn <TON@de.ibm.com>:
1861 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1862 instead of supply_register.
1863
1864 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1865
1866 * dwarf2cfi.c: Include "gdb_assert.h".
1867 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1868 non-NULL.
1869 (update_context): Do not use __func__. Add missing ``break''.
1870 (update_context): Do not use __func__.
1871
1872 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1875 and its setting. Set gdbarch instruction printing functions
1876 directly. For non-rs6000 case use new function
1877 gdb_print_insn_powerpc.
1878 (gdb_print_insn_powerpc): New function.
1879
1880 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1881
1882 * NEWS: Mention that the d30v has been marked obsolete.
1883 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1884 * configure.tgt: Mark d30v-*-* as obsolete.
1885 * d30v-tdep.c: Mark file as obsolete.
1886 * config/d30v/d30v.mt: Ditto.
1887 * config/d30v/tm-d30v.h: Ditto.
1888
1889 2002-07-13 Aidan Skinner <aidan@velvet.net>
1890
1891 * ada-tasks.c (add_task_entry): replace calls to
1892 malloc() with xmalloc
1893 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1894
1895 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1896 ada_finish_decode_line_1, all_sals_for_line
1897 ada_breakpoint_rewrite): replace calls to free() with xfree()
1898
1899 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1900
1901 From Nicholas Duffek (with minor changes by Martin Hunt,
1902 Louis Hamilton, and Kevin Buettner):
1903 * aix-thread.c: New file.
1904
1905 2002-07-12 Petr Sorfa <petrs@caldera.com>
1906
1907 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1908 complaint for invalid attribute class or form.
1909 (read_func_scope): DW_AT_frame_base
1910 better handling of DW_AT_block*.
1911 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1912 better handling of DW_AT_block*.
1913 (read_common_block): DW_AT_location
1914 better handling of DW_AT_block*.
1915 (read_partial_die): DW_AT_location better handling
1916 of DW_AT_block*.
1917 (new_symbol): DW_AT_external better handling of
1918 DW_AT_block*. Proper initialization of variable
1919 "addr".
1920 (attr_form_is_block): New function that returns true
1921 if the attribute's form is of DW_FORM_block*.
1922
1923 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1924
1925 * valops.c (find_method_list): Remove comment about
1926 removed STATIC_MEMFUNCP argument.
1927 (value_find_oload_method_list): Likewise.
1928
1929 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1930
1931 From Nicholas Duffek:
1932 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1933 target_new_objfile_hook.
1934
1935 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1936
1937 From Nicholas Duffek:
1938 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1939 csect.
1940
1941 2002-07-12 Andrew Cagney <cagney@redhat.com>
1942
1943 * MAINTAINERS: Mention --enable-sim-build-warnings.
1944 (m68hc11-elf): Disable sim build warnings.
1945 (m32r-elf): Mark as broken obsolete candidate.
1946 (x86_64-linux-gnu): Mark as buildable with -Werror.
1947 (arm-elf): Change -w to ``,'' which enables warnings but not
1948 -Werror.
1949
1950 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1951
1952 * bcache.h: Update copyright.
1953 (struct bstring, struct bcache): Move definition to "bcache.c".
1954 Replaced by opaque declaration.
1955 (bcache_xfree): Replace free_bcache.
1956 (bcache_xmalloc, bcache_memory_used): Declare.
1957
1958 * bcache.c: Update copyright.
1959 (struct bstring, struct bcache): Moved to here from "bcache.h".
1960 Update comments.
1961 (bcache_xmalloc, bcache_memory_used): New functions.
1962 (bcache_xfree): Replace function free_bcache.
1963
1964 * Makefile.in (objfiles.o): Add $(bcache_h).
1965 (objfiles_h): Remove $(bcache_h).
1966 (symfile.o): Add $(bcache_h).
1967
1968 * symmisc.c: Update copyright.
1969 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1970 (print_objfile_statistics): Use bcache_memory_used.
1971
1972 * symfile.c: Include "bcache.h".
1973 (reread_symbols): Use bcache_xfree.
1974 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1975 (add_psymbol_to_list): Pass psymbol_cache by value.
1976 (add_psymbol_with_dem_name_to_list): Ditto.
1977
1978 * objfiles.h: Update copyright.
1979 (struct bcache): Declare opaque. Do not include "bcache.h".
1980 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1981 bcache'' pointers.
1982 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1983
1984 * objfiles.c: Include "bcache.h". Update copyright.
1985 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1986 macro_cache.
1987 (free_objfile): Use bcache_xfree.
1988
1989 2002-07-11 Grace Sainsbury <graces@redhat.com>
1990
1991 * monitor.c (monitor_fetch_register): Make name a constant.
1992 (monitor_store_register): Same.
1993
1994 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1995
1996 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1997 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1998 (finish_block) For non-function blocks, hash the symbol table. For
1999 function blocks, mark the symbol table as unhashed.
2000 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2001 (msymbol_hash_iw): Likewise.
2002 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2003 value.
2004 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2005 (lookup_minimal_symbol): Likewise for both.
2006 * symtab.h (struct block): Add `hashtable' flag. Comment the
2007 hashtable.
2008 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2009 (ALL_BLOCK_SYMBOLS): Update.
2010 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2011 (struct symbol): Add `hash_next' pointer.
2012 * symtab.c (lookup_block_symbol): Search using the hash table when
2013 possible.
2014 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2015 (search_symbols, find_addr_symbol): Likewise.
2016
2017 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2018 (read_dst_symtab): Likewise.
2019 * jv-lang.c (get_java_class_symtab): Likewise.
2020 * mdebugread.c: Include "gdb_assert.h".
2021 (shrink_block): Assert that the block being modified is not hashed.
2022 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2023 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2024 symbols.
2025 (dump_symtab): Recognize hashed blocks.
2026 * printcmd.c (print_frame_args): Assert that function blocks do not
2027 have hashed symbol tables.
2028 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2029 (fill_in_ada_prototype, debug_print_block): Likewise.
2030 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2031
2032 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2033
2034 * stack.c (print_frame): Use result of frame_address_in_block()
2035 instead of fi->pc when evaluating symbols.
2036 (backtrace_command_1): Ditto.
2037
2038 2002-07-11 Andrew Cagney <cagney@redhat.com>
2039
2040 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2041 Make static.
2042
2043 * arm-tdep.c (arm_register_name): Make return type constant.
2044
2045 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2046
2047 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2048 prototype.
2049 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2050 * s390-tdep.c (s390_fp_regnum): Ditto.
2051 (s390_read_fp): Ditto.
2052 (s390_pop_frame): Ditto.
2053 (_initialize_s390_tdep): Ditto.
2054 * remote.c (get_remote_state): Ditto.
2055 * procfs.c (mappingflags): Ditto.
2056 * memattr.c (_initialize_mem): Ditto.
2057 * mcore-tdep.c (mcore_pop_frame): Ditto.
2058 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2059 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2060 * language.c (set_case_str): Ditto.
2061 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2062 * frv-tdep.c (new_variant): Ditto.
2063 (frv_stopped_data_address): Ditto.
2064 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2065 (context_alloc): Ditto.
2066 (frame_state_alloc): Ditto.
2067 (unwind_tmp_obstack_init): Ditto.
2068 (unwind_tmp_obstack_free): Ditto.
2069 (cfi_read_fp): Ditto.
2070 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2071 (cris_pop_frame): Ditto.
2072 * c-lang.c (scanning_macro_expansion): Ditto.
2073 (finished_macro_expansion): Ditto.
2074 (c_preprocess_and_parse): Ditto.
2075 * gdbarch.sh: Ditto.
2076 * gdbarch.h, gdbarch.c: Regenerate.
2077 * config/mn10200/tm-mn10200.h: Adjust indentation.
2078 * target.c: Adjust indentation.
2079 * symtab.h: Adjust indentation.
2080 * stabsread.h: Adjust indentation.
2081 * remote-es.c: Adjust indentation.
2082 * os9kread.c: Adjust indentation.
2083
2084 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2085
2086 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2087 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2088
2089 2002-07-10 Grace Sainsbury <graces@redhat.com>
2090
2091 * NEWS: Mention m68k, mcore multi-arching.
2092 * MAINTAINERS: Change status of m68k, mcore to reflect
2093 multi-arching.
2094
2095 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2096
2097 * valops.c (find_overload_match): Free oload_syms.
2098
2099 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2100
2101 Define HAVE_SYS_PROC_H if sys/proc.h exists
2102 * configure.in: Add check for sys/proc.h
2103 * config.in: Regenerate.
2104 * configure: Regenerate.
2105
2106 2002-07-09 Grace Sainsbury <graces@redhat.com>
2107
2108 * config/m68k/tm-m68k.h: Remove macros wrapped in
2109 #if !GDB_MULTI_ARCH.
2110
2111 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2112
2113 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2114 (perror_with_name, remote_close, remote_open, expect, play): Static.
2115
2116 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2117
2118 * config.in, configure: Regenerate.
2119
2120 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2121
2122 * dwarf2cfi.c: Include "gcore.h".
2123 (execute_stack_op): Fix implementation of the
2124 DW_OP_deref and DW_OP_deref_size operators by letting do their
2125 lookup in the target.
2126
2127 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2128
2129 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2130 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2131 tdep->sc_sp_offset.
2132
2133 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2134
2135 Fix PR gdb/595, gdb/602
2136 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2137 Don't call value_cast, just read the vtable pointer; update comments
2138 to match.
2139
2140 2002-07-05 Grace Sainsbury <graces@redhat.com>
2141
2142 * config/mcore/tm-mcore.h: Remove file.
2143 * config/mcore/mcore.mt: Remove definition of TM_FILE
2144 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2145
2146 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2147
2148 * i386bsd-tdep.c: Include "gdb_string.h".
2149
2150 2002-07-04 Grace Sainsbury <graces@redhat.com>
2151
2152 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2153 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2154 mcore-tdep.
2155 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2156 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2157 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2158 (RETVAL_REGNUM): Move macros from tm-mcore.h
2159 (mcore_reg_struct_has_addr): New function.
2160 (mcore_gdbarch_init): Added initializations for the macros removed
2161 from tm-mcore.h.
2162
2163 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2164
2165 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2166 traditonal string branding within the ELF header.
2167
2168 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2169
2170 * symtab.c (remove_params): New function.
2171 (make_symbol_overload_list): Use it instead of cplus_demangle.
2172 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2173
2174 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2175
2176 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2177
2178 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2179 New variables.
2180 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2181 and tdep->sigtramp_end.
2182 * i386obsd-nat.c: New file.
2183 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2184
2185 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2186 Don't call get_current_frame().
2187
2188 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2189
2190 * i386-nat.c (child_post_startup_inferior): New function
2191 calling i386_cleanup_dregs if
2192 I386_USE_GENERIC_WATCHPOINTS is defined.
2193 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2194 conditional to acknowledge that i386-nat.c has its
2195 own child_post_startup_inferior function.
2196
2197 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2198
2199 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2200 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2201 instead of MAX_REGISTER_RAW_SIZE.
2202 (i386_extract_return_value, i386_extract_struct_value_address):
2203 Convert to use regcache.
2204 (i386_gdbarch_init): Set max_register_raw_size and
2205 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2206 Set extract_return_value and extract_struct_value_address instead
2207 of their deprecated variants.
2208
2209 Convert i386 target to generic dummy frames.
2210 * i386-tdep.c: Include "symfile.h".
2211 (i386_frameless_signal_p): Consider a function to be frameless if
2212 the pc points at the first instruction of the function.
2213 (i386_frame_chain): Handle (generic) call dummies.
2214 (i386_frame_saved_pc): Likewise.
2215 (i386_frame_init_saved_regs): Remove code dealing with call
2216 dummies on the stack.
2217 (i386_push_dummy_frame): Removed.
2218 (i386_call_dummy_words): Removed.
2219 (i386_fix_call_dummy): Removed.
2220 (i386_push_return_address): New function.
2221 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2222 parameter, and don't call get_current_frame.
2223 (i386_pop_frame): New function.
2224 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2225 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2226 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2227 call_dummy_length to 0, set call_dummy_words to NULL, set
2228 sizeof_call_dummy_words to 0, set fix_call_dummy to
2229 generic_fix_call_dummy, set pc_in_call_dummy to
2230 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2231 generic_push_dummy_frame, set push_return_address to
2232 i386_push_return_address and set frame_chain_valid to
2233 generic_file_frame_chain_valid.
2234
2235 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2236
2237 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2238 byte offsets instead of an array of indexes.
2239 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2240
2241 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2242
2243 * gdbarch.sh (struct regcache): Add opaque declaration.
2244 (EXTRACT_RETURN_VALUE): New architecture method.
2245 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2246 * gdbarch.h, gdbarch.c: Regenerate.
2247 * arch-utils.c (legacy_extract_return_value): New function.
2248 * arch-utils.h (legacy_extract_return_value): Declare.
2249 * values.c (value_being_returned): Re-enable code handling
2250 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2251 deprecated_grub_regcache_for_registers call to block handling
2252 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2253 (EXTRACT_RETURN_VALUE): Do not define.
2254
2255 2002-07-03 Grace Sainsbury <graces@redhat.com>
2256
2257 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2258 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2259 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2260 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2261 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2262 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2263 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2264 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2265 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2266 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2267 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2268 argument so the function fits the prototype in the architecture
2269 vector.
2270 (mcore_pop_frame): Remove argument so the function fits the
2271 prototype. Use get_current_frame instead of the argument.
2272 (mcore_push_arguments): Change type of struct_return so the
2273 function can be used in the architecture vector.
2274 (mcore_store_struct_return): Add.
2275 (mcore_frame_init_saved_regs): Add.
2276 (mcore_gdbarch_init): Add function calls to replace the macros
2277 removed from tm-mcore.h
2278
2279 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2280
2281 * infcmd.c (print_return_value): Remove compatibility code calling
2282 deprecated_grub_regcache_for_registers.
2283
2284 * values.c: Include "regcache.h".
2285 (value_being_returned): Update. Use
2286 deprecated_grub_regcache_for_registers to extract the register
2287 buffer address.
2288 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2289 ``struct regcache''.
2290 * Makefile.in (values.o): Add dependency on $(regcache_h).
2291
2292 * inferior.h (run_stack_dummy): Change type of second parameter to
2293 a ``struct regcache''.
2294 * valops.c (hand_function_call): Change type of retbuf to ``struct
2295 regcache''. Allocate using regcache_xmalloc, clean using
2296 make_cleanup_regcache_xfree.
2297 * infcmd.c (run_stack_dummy): Update. Use
2298 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2299
2300 * regcache.c (do_regcache_xfree): New function.
2301 (make_cleanup_regcache_xfree): New function.
2302 * regcache.h (make_cleanup_regcache_xfree): Declare.
2303
2304 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2305
2306 * event-top.c (command_line_handler): Don't read past
2307 beginning of buffer.
2308
2309 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2310
2311 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2312 struct frame_id.
2313 (varobj_create): Store frame_id for root.
2314 (varobj_gen_name): Use xasprintf.
2315 (varobj_update): Save and restore frame using get_frame_id() and
2316 frame_find_by_id().
2317 (create_child): Use xasprintf.
2318 (new_root_variable): Initialize frame_id.
2319 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2320 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2321 to prevent memory leak.
2322
2323 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2324
2325 * valops.c (hand_function_call): Move declaration of retbuf to
2326 start of function, allocate using malloc, add a cleanup but before
2327 the inf_status cleanup, cleanup the buffer. Rename local variable
2328 old_chain to inf_status_cleanup.
2329
2330 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2331
2332 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2333
2334 * cli/cli-decode.c (cmd_func_p): New function.
2335 (cmd_func): New function.
2336
2337 * command.h: Add cmd_func() and cmd_func_p().
2338
2339 2002-07-03 Grace Sainsbury <graces@redhat.com>
2340
2341 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2342 (REGISTER_SIZE): Remove.
2343 (MAX_REGISTER_RAW_SIZE): Remove.
2344 (REGISTER_VIRTUAL_TYPE): Remove.
2345 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2346 (REGISTER_NAME): Remove.
2347 (USE_GENERIC_DUMMY_FRAMES): Remove.
2348 (CALL_DUMMY): Remove.
2349 (CALL_DUMMY_START_OFFSET): Remove.
2350 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2351 (CALL_DUMMY_LOCATION): Remove.
2352 (FIX_CALL_DUMMY): Remove.
2353 (CALL_DUMMY_ADDRESS): Remove.
2354 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2355 (SAVE_DUMMY_FRAME_TOS): Remove.
2356 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2357 (mcore_register_virtual_type): New function.
2358 (mcore_register_byte): New function.
2359 (mcore_register_size): New function.
2360 (mcore_register_name): New function.
2361 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2362 macros removed from tm-mcore.h.
2363 (mcore_dump_tdep): Add.
2364 (_initialize_mcore_tdep): Add gdbarch_register call.
2365
2366 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2367
2368 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2369 frameless_look_for_prologue, such that we actually call this
2370 function.
2371
2372 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2373
2374 * frame.h (frame_address_in_block): New function.
2375
2376 * blockframe.c (frame_address_in_block): New function extracted
2377 from get_frame_block().
2378 (get_frame_block): Use frame_address_in_block().
2379 (block_innermost_frame): Use frame_address_in_block() to match
2380 the frame pc address against the block boundaries rather than
2381 the frame pc directly. This prevents a failure when a frame pc
2382 is actually a return-address pointing immediately after the end
2383 of the given block.
2384
2385 2002-07-02 Grace Sainsbury <graces@redhat.com>
2386
2387 * MAINTAINERS: Add self under write after approval.
2388
2389 2002-07-02 Grace Sainsbury <graces@redhat.com>
2390
2391 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2392 used in architecture vector. The default is
2393 m68k_local_breakpoint_from_pc.
2394 (m68k_local_breakpoint_from_pc): Add.
2395 (enum): Add register numbers from tm-m68k.h.
2396 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2397 vector.
2398 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2399 GDB_MULTI_ARCH_PARTIAL.
2400 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2401 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2402 m68k-tdep.c.
2403 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2404 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2405 to enum in m68k-tdep.c
2406
2407 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2408
2409 * solib-osf.c (open_map): Compute the list of shared libraries
2410 loaded by the inferior, rather than the list of libraries loaded
2411 by GDB itself. Otherwise, GDB ends up reading the symbols from
2412 the wrong shared libraries...
2413
2414 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2415
2416 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2417 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2418 macros.
2419 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2420 Remove functions.
2421 (FRAMELESS_SIGNAL): Remove function.
2422 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2423 i386_linux_saved_pc_after_call): Removed.
2424 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2425 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2426 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2427
2428 * i386-tdep.c (i386_frameless_signal_p): New function.
2429 (i386_frame_chain): Deal with frameless signals.
2430 (i386_sigtramp_saved_sp): New function.
2431 (i386_frame_saved_pc): Deal with frameless signals.
2432 (i386_saved_pc_after_call): Make sure the correct value is
2433 returned just after entry into a sigtramp.
2434 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2435 i386fbsd4_sc_sp_offset): New variables.
2436 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2437 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2438 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2439 similiar to what we already did for sc_pc_offset.
2440 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2441 tdep->sc_sp_offset.
2442
2443 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2444
2445 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2446
2447 * config/i386/tm-x86-64linux.h: New.
2448 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2449 definitions.
2450 * config/i386/nm-x86-64.h: Rename to ...
2451 * config/i386/nm-x86-64linux.h: ... this one.
2452 * config/i386/x86-64linux.mh: Reflect the above change.
2453
2454 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2455
2456 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2457 with sigcontext_addr. Add sc_sp_offset.
2458 (i386bsd_sigtramp_saved_pc): Remove prototype.
2459 (i386bsd_sicontext_addr): Add prototype.
2460 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2461 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2462 (i386_svr4_sigtramp_saved_pc): Removed.
2463 (i386_svr4_sigcontext_addr): New function.
2464 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2465 Initialize tdep->sigcontext_addr instead. Initialize
2466 tdep->sc_pc_offset and tdep->sc_sp_offset.
2467 (i386_gdbarch_init): Likewise.
2468 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2469 any more.
2470 (i386bsd_sigtramp_saved_pc): Remove function.
2471 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2472 Initialize tdep->sigcontext_addr instead. Initialize
2473 tdep->sc_pc_offset.
2474 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2475 of tdep->sigtramp_saved_pc.
2476 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2477 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2478 instead.
2479
2480 * i386-tdep.c (i386_frameless_function_invocation,
2481 i386_frame_num_args, i386_frame_init_saved_regs,
2482 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2483 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2484 i386_extract_return_value, i386_store_return_value,
2485 i386_extract_struct_value_address, i386_register_virtual_type,
2486 i386_register_convertible, i386_register_convert_to_virtual,
2487 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2488 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2489 static.
2490
2491 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2492
2493 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2494
2495 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2496 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2497 this macro. Include "value.h".
2498
2499 2002-06-30 Aidan Skinner <aidan@velvet.net>
2500
2501 * ada-exp.tab.c: remove as it's a generated file
2502 * ada-lex.c: remove as it's a generated file
2503
2504 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2505
2506 * config/i386/tm-i386.h (struct frame_info, struct
2507 frame_saved_regs, struct value, struct type): Remove forward
2508 declarations.
2509
2510 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2511 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2512 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2513 (FILL_FPXREGSET): Define.
2514
2515 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2516
2517 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2518 i[3456]86-*-netbsd* case.
2519 * config/i386/tm-obsd.h: Removed.
2520 * config/i386/obsd.mt: Removed.
2521 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2522 core-aout.o.
2523 (MH_CFLAGS): Add -DYYDEBUG=0.
2524
2525 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2526 i386nbsd_sc_pc_offset on OpenBSD too.
2527
2528 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2529 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2530 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2531 define.
2532 * i386bsd-tdep.c: Include "arch-utils.h".
2533 (i386bsd_aout_in_solib_call_trampoline): New function.
2534 (i386bsd_init_abi): Set in_solib_call_trampoline to
2535 i386bsd_aout_in_solib_call_trampoline.
2536 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2537 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2538
2539 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2540
2541 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2542 (struct obstack, struct bcache): Add opaque declarations.
2543 * Makefile.in (macrotab_h): Update
2544
2545 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2546
2547 * blockframe.c (generic_find_dummy_frame): Change return type to
2548 ``struct regcache''.
2549 (struct dummy_frame): Replace field ``registers'' with regcache, a
2550 struct regcache object.
2551 (generic_find_dummy_frame): Update.
2552 (generic_push_dummy_frame): Update. Use regcache_xfree,
2553 regcache_xmalloc and regcache_cpy.
2554 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2555 regcache_xfree.
2556 (deprecated_generic_find_dummy_frame): Update.
2557 (generic_read_register_dummy): Update. Use
2558 regcache_read_as_address.
2559 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2560 (generic_get_saved_register): Update. Use regcache_read.
2561
2562 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2563
2564 * Makefile.in (objfiles_h): Add $(bcache_h).
2565 * objfiles.h: Include "bcache.h".
2566
2567 * Makefile.in (symtab_h): Remove $(bcache_h).
2568 * symtab.h: Do not include "bcache.h".
2569
2570 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2571
2572 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2573 generic_func_frame_chain_valid.
2574
2575 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2576
2577 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2578 * config/i386/tm-fbsd.h: Likewise.
2579
2580 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2581
2582 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2583 generic_unwind_get_saved_register.
2584
2585 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2586
2587 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2588 * regcache.c (supply_register): Add missing argument to
2589 register_buffer call.
2590
2591 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2592
2593 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2594 Solaris /bin/grep does not not like it. From Peter Schauer.
2595
2596 2002-06-26 Tom Tromey <tromey@redhat.com>
2597
2598 * command.h (add_setshow_cmd): Declare.
2599 (add_setshow_cmd_full): Declare.
2600 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2601 returns void. Use add_setshow_cmd_full.
2602 (add_setshow_cmd_full): New function.
2603 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2604 (add_setshow_boolean_cmd): Likewise.
2605
2606 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2607
2608 * config/vax/tm-vax.h: Protect from multiple inclusion.
2609 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2610 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2611 * config/vax/tm-vaxbsd.h: ...here. New file.
2612 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2613
2614 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2615
2616 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2617 (BELIEVE_PCC_PROMOTION): Remove.
2618 (AP_REGNUM): Move to...
2619 * config/vax/nm-vax.h: ...here.
2620 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2621 (vax_breakpoint_from_pc): New function.
2622 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2623 and gdbarch_believe_pcc_promotion.
2624
2625 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2626
2627 * Makefile.in (vax_tdep_h): Define.
2628 (vax-tdep.o): Use $(vax_tdep_h).
2629 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2630 (vax_dump_tdep): New function.
2631 (_initialize_vax_tdep): Register vax_dump_tdep.
2632 * vax-tdep.h: Include osabi.h.
2633 (struct gdbarch_tdep): New.
2634
2635 2002-06-26 Andrew Cagney <cagney@redhat.com>
2636
2637 * frame.h (deprecated_generic_find_dummy_frame): Rename
2638 generic_find_dummy_frame.
2639 * blockframe.c (generic_find_dummy_frame): Make static.
2640 (deprecated_generic_find_dummy_frame): New function.
2641 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2642 generic_find_dummy_frame with deprecated_find_dummy_frame.
2643 (sh64_nofp_frame_init_saved_regs): Ditto.
2644 (sh_fp_frame_init_saved_regs): Ditto.
2645 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2646 (s390_frame_chain): Ditto.
2647 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2648
2649 2002-06-26 Grace Sainsbury <graces@redhat.com>
2650
2651 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2652 gdbarch vector are at the top.
2653 (NUM_REGS): Remove.
2654 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2655 (FRAME_ARGS_ADDRESS): Remove.
2656 (FRAME_LOCALS_ADDRESS): Remove.
2657 (FRAME_NUM_ARGS): Remove.
2658 (FRAME_ARGS_SKIP): Remove.
2659 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2660 (m68k_gdbarch_init): Add gdbarch initializations for macros
2661 undefined in tm-m68k.h
2662
2663 2002-06-26 Grace Sainsbury <graces@redhat.com>
2664
2665 * monitor.h: Add the function regname to monitor_ops
2666 structure. This way NUM_REGS does not have to be a constant.
2667 * monitor.c (monitor_fetch_register): Added support for regname
2668 function. The function is called if the array regnames is NULL.
2669 (monitor_store_register): Same.
2670 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2671 regnames array.
2672 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2673 cpu32bug_cmds.regname to point to new function.
2674 * abug-rom.c (abug_regname): Same as above.
2675 (init_abug_cmds): Same.
2676 * dbug-rom.c (dbug_regname): Same as above.
2677 (init_dbug_cmds): Same.
2678 * remote-est.c (est_regname): Same.
2679 (init_est_cmds): Same.
2680 * rom68k-rom.c (rom68k_regname): Same.
2681 (init_rom68k_cmds): Same.
2682
2683 2002-06-25 Tom Tromey <tromey@redhat.com>
2684
2685 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2686
2687 2002-06-25 Andrew Cagney <cagney@redhat.com>
2688
2689 * infrun.c (stop_registers): Change variable's type to ``struct
2690 regcache'''.
2691 (xmalloc_inferior_status): Delete function.
2692 (free_inferior_status): Delete function.
2693 (normal_stop): Use regcache_cpy.
2694 (struct inferior_status): Change type of fields ``stop_registers''
2695 and ``registers'' to ``struct regcache''.
2696 (write_inferior_status_register): Use regcache_write.
2697 (save_inferior_status): Instead of calling
2698 xmalloc_inferior_status, allocate the inf_status buffer directly.
2699 Use regcache_dup_no_passthrough and regcache_dup to save the
2700 buffers.
2701 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2702 Replace the stop_registers regcache instead of overriding it. Use
2703 regcache_xfree. Instead of calling free_inferior_status, xfree
2704 the buffer directly.
2705 (discard_inferior_status): Use regcache_xfree. Instead of calling
2706 free_inferior_status, xfree the buffer directly.
2707 (build_infrun): Use regcache_xmalloc.
2708 (_initialize_infrun): Delete redundant call to build_infrun.
2709
2710 * Makefile.in (infcmd.o): Add $(regcache_h).
2711
2712 * infcmd.c: Include "regcache.h".
2713 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2714 obtain the address of `stop_registers' register buffer.
2715 (print_return_value): Ditto.
2716
2717 * inferior.h (struct regcache): Add opaque declaration.
2718 (stop_registers): Change variable's declared type to ``struct
2719 regcache''.
2720
2721 2002-06-24 Tom Tromey <tromey@redhat.com>
2722
2723 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2724 * target.c (initialize_targets): Fixed typo in
2725 trust-readonly-sections `show' documentation.
2726
2727 * main.c: Marked all strings with _().
2728
2729 2002-06-24 Don Howard <dhoward@redhat.com>
2730
2731 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2732 that means max CORE_ADDR+1.
2733 (lookup_mem_region): Ditto.
2734 (mem_info_command): Ditto.
2735
2736 2002-06-24 Grace Sainsbury <graces@redhat.com>
2737
2738 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2739 (REGISTER_BYTES_OK): Remove.
2740 (REGISTER_BYTES): Remove.
2741 (STORE_STRUCT_RETURN): Remove.
2742 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2743 (STORE_RETURN_VALUE): Remove.
2744 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2745 (FRAME_CHAIN): Remove.
2746 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2747 (FRAME_SAVED_PC): Remove.
2748 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2749 (m68k_store_struct_return): Add.
2750 (m68k_deprecated_extract_return_value): Add.
2751 (m68k_deprecated_extract_struct_value_address): Add.
2752 (m68k_store_return_value): Add.
2753 (m68k_frame_chain): Add.
2754 (m68k_frameless_function_invocation): Add.
2755 (m68k_frame_saved_pc): Add.
2756 (m68k_gdbarch_init): added set_gdbarch calls for new
2757 functions and deleted macros.
2758
2759 2002-06-23 Tom Tromey <tromey@redhat.com>
2760
2761 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2762 (ALLDEPFILES): Likewise.
2763 (udiheaders): Removed.
2764 (udip2soc.o): Likewise.
2765 (udi2go32.o): Likewise.
2766 (udr.o): Likewise.
2767 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2768
2769 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2770
2771 * infrun.c (_initialize_infrun): Delete unnecessary call to
2772 build_infrun.
2773
2774 * regcache.h: Update comments describing the regcache_cpy family
2775 of functions.
2776 (regcache_save, regcache_restore): Delete declaration.
2777 (regcache_save_no_passthrough): Delete declaration.
2778 (regcache_restore_no_passthrough): Delete declaration.
2779 * regcache.c (regcache_save): Delete function.
2780 (regcache_save_no_passthrough): Delete function.
2781 (regcache_restore): Delete function.
2782 (regcache_restore_no_passthrough): Delete function.
2783
2784 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2785
2786 * config/m68k/tm-m68k.h: Fix typo.
2787 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2788 (m68k_frame_init_saved_regs): Declare.
2789
2790 2002-06-21 Jim Blandy <jimb@redhat.com>
2791
2792 Remove some vestiges of Harris 88k support.
2793 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2794 register numbering quirk.
2795 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2796 odd symbols occurring in Harris 88k ELF targets.
2797
2798 2002-06-21 Tom Tromey <tromey@redhat.com>
2799
2800 * gdb_locale.h: New file.
2801 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2802 (defs_h): Added gdb_locale.h.
2803 * configure, config.in: Rebuilt.
2804 * configure.in (PACKAGE): Define.
2805 * defs.h: Include gdb_locale.h.
2806 * main.c (captured_main): Call setlocale, bindtextdomain,
2807 textdomain.
2808
2809 2002-06-21 Dave Brolley <brolley@redhat.com>
2810
2811 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2812 * config/frv/frv.mt: New file.
2813 * config/frv/tm-frv.h: New file.
2814 * configure.tgt: Support frv-*-*.
2815 * Makefile.in (frv-tdep.o): New target.
2816 * frv-tdep.c: New file.
2817 * NEWS: Mention frv.
2818
2819 2002-06-21 Dave Brolley <brolley@redhat.com>
2820
2821 * MAINTAINERS: Add self to "Write After Approval" list.
2822
2823 2002-06-21 Grace Sainsbury <graces@redhat.com>
2824
2825 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2826 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2827 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2828 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2829 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2830
2831 * m68k-tdep.c: Include arch-utils.h
2832 (m68k_register_raw_size): Add.
2833 (m68k_register_virtual_size): Add.
2834 (m68k_register_virtual_type): Add.
2835 (m68k_register_name): Add.
2836 (m68k_stack_align): Add.
2837 (m68k_register_byte): Add.
2838 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2839 tm-m68k.h.
2840
2841 2002-06-21 Grace Sainsbury <graces@redhat.com>
2842
2843 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2844 m68k_find_saved_regs.
2845 (m68k_pop_frame): Removed saved_regs structure, and replaced
2846 references to it with frame->saved_regs.
2847 (m68k_gdbarch_init): Added function calls to initialize the
2848 gdbarch structure.
2849 (m68k_fix_call_dummy): Add.
2850 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2851 (CALL_DUMMY): Remove.
2852 (CALL_DUMMY_LENGTH): Remove.
2853 (CALL_DUMMY_START_OFFSET): Remove.
2854 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2855 (FIX_CALL_DUMMY): Remove.
2856 (PUSH_DUMMY_FRAME): Remove.
2857 (POP_FRAME): Remove.
2858
2859 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2860
2861 * parse.c (parse_fprintf): New function used to avoid calls to
2862 fprintf in bison parser generated debug code.
2863 * parser-defs.h: Declaration of new parse_fprintf function.
2864 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2865 Set YYDEBUG to 1 by default.
2866 Set YYFPRINTF as parse_fprintf.
2867
2868 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2869
2870 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2871 encoding anymore.
2872 (pointer_encoding, enum ptr_encoding): New.
2873 (execute_cfa_program): Take care about pointer encoding.
2874 (dwarf2_build_frame_info): Only call parse_frame_info for
2875 .debug_frame and .eh_frame.
2876 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2877 fixed augmentation handling, added relative addressing,
2878 ignore duplicate FDEs. Added comments.
2879 * dwarf2cfi.c: Reindented.
2880
2881 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2882
2883 * event-top.c (command_handler): Don't use space_at_cmd_start
2884 unless there is sbrk() on the host. Assign time and space data
2885 to union fields of the appropriate length.
2886
2887 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2888
2889 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2890 x86_64_register_name. Return type changed to 'const char *'.
2891 (x86_64_register_name2nr): Rename to x86_64_register_number.
2892 (x86_64_gdbarch_init): Update to reflect the change.
2893 * x86-64-tdep.h: Ditto.
2894 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2895 (supply_fpregset): Ditto.
2896
2897 2002-06-19 Andrew Cagney <cagney@redhat.com>
2898
2899 * regcache.h: Update copyright.
2900 (struct regcache, struct gdbarch): Add opaque declarations.
2901 (current_regcache): Declare global variable.
2902 (regcache_read, regcache_write): Add gdbarch parameter.
2903 (regcache_save, regcache_save_no_passthrough)
2904 (regcache_restore, regcache_restore_no_passthrough)
2905 (regcache_dup, regcache_dup_no_passthrough)
2906 (regcache_cpy, regcache_cpy_no_passthrough)
2907 (deprecated_grub_regcache_for_registers)
2908 (deprecated_grub_regcache_for_register_valid)
2909 (regcache_valid_p): Add function declarations.
2910
2911 * regcache.c: Update copyright.
2912 (regcache_descr_handle): New global variable.
2913 (struct regcache_descr): Define.
2914 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2915 (regcache_descr, xfree_regcache_descr): New functions.
2916 (struct regcache): Define.
2917 (regcache_xmalloc, regcache_xfree): New functions.
2918 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2919 (regcache_dup, regcache_dup_no_passthrough): New functions.
2920 (regcache_valid_p, regcache_read_as_address): New functions.
2921 (deprecated_grub_regcache_for_registers): New function.
2922 (deprecated_grub_regcache_for_register_valid): New function.
2923 (current_regcache): New global variable.
2924 (register_buffer): Add regcache parameter. Update calls.
2925 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2926 (read_register_gen, write_register_gen): Update register_buffer
2927 call. Test for legacy_p instead of gdbarch_register_read_p or
2928 gdbarch_register_write_p.
2929 (regcache_collect): Update register_buffer call.
2930 (build_regcache): Rewrite. Use deprecated grub functions.
2931 (regcache_save, regcache_save_no_passthrough): New functions.
2932 (regcache_restore, regcache_restore_no_passthrough): New
2933 functions.
2934 (_initialize_regcache): Create the regcache_data_handle. Swap
2935 current_regcache global variable.
2936
2937 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2938 parameter to regcache_read and regcache_write calls.
2939 (sh4_register_read): Ditto.
2940 (sh64_pseudo_register_read): Ditto.
2941 (sh64_register_read): Ditto.
2942 (sh_pseudo_register_write): Ditto.
2943 (sh4_register_write): Ditto.
2944 (sh64_pseudo_register_write): Ditto.
2945 (sh64_register_write): Ditto.
2946
2947 * defs.h (XCALLOC): Define.
2948
2949 2002-06-19 Grace Sainsbury <graces@redhat.com>
2950
2951 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2952 * m68k-tdep.c (m68k_gdbarch_init): Added.
2953 (m68k_dump_tdep): Added.
2954
2955 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2956
2957 * ada-lang.c (fill_in_ada_prototype): Update comment.
2958
2959 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2960
2961 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2962 MIPS_ABI_LAST.
2963 (mips_abi_string, mips_abi_strings): New.
2964 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2965 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2966 tdep->mips_abi_string. Honor mips_abi_string. Default to
2967 O32 if no ABI is found.
2968 (mips_dump_tdep): Use mips_abi_strings.
2969 (mips_abi_update): New function.
2970 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2971 ``set mips abi'' and ``show mips abi''. Check the size of
2972 mips_abi_strings.
2973
2974 2002-06-19 Andrew Cagney <cagney@redhat.com>
2975
2976 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2977 constant.
2978
2979 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2980
2981 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2982 current frame using only the first stack size adjustment. All
2983 subsequent size adjustments are not considered to be part of
2984 the "static" part of the current frame.
2985 Compute the address of the saved registers relative to the
2986 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2987 in use in this frame.
2988
2989 2002-06-18 Don Howard <dhoward@redhat.com>
2990
2991 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2992 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2993 suggesting this solution.
2994
2995 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2996
2997 * config/romp/xm-rtbsd.h: Delete file.
2998 * config/romp/rtbsd.mh: Delete file.
2999
3000 2002-06-18 Keith Seitz <keiths@redhat.com>
3001
3002 * breakpoint.c (condition_command): Post breakpoint_modify
3003 when a condition is added to an existing breakpoint.
3004 (commands_command): Likewise for commands.
3005 (set_ignore_count): Likewise for ignore counts.
3006 If no tty, do not simply return, still need to send event
3007 notification.
3008 (ignore_command): Only print a newline if the command came
3009 from a tty.
3010 Don't call breakpoints_changed, since this is now properly
3011 handled by set_ignore_count.
3012
3013 2002-06-18 Andrew Cagney <cagney@redhat.com>
3014
3015 * MAINTAINERS: Note that cris-elf target can be compiled with
3016 -Werror.
3017 * cris-tdep.c (cris_register_name): Make return type constant.
3018 (cris_breakpoint_from_pc): Ditto.
3019
3020 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3021
3022 * frame.h (struct frame_info): Change type of context to
3023 'struct context'.
3024
3025 2002-06-17 Andrew Cagney <cagney@redhat.com>
3026
3027 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3028 pointer.
3029 * gdbarch.h, gdbarch.c: Regenerate.
3030 * config/mips/tm-mips.h (mips_register_name): Update.
3031 * i386-tdep.h (i386_register_name): Update.
3032 * mips-tdep.c (mips_register_name): Update
3033 * alpha-tdep.c (alpha_register_name): Update.
3034 * arch-utils.c (legacy_register_name): Update.
3035 * arch-utils.h (legacy_register_name): Update.
3036 * avr-tdep.c (avr_register_name): Update.
3037 * ia64-tdep.c (ia64_register_name): Update.
3038 * i386-tdep.c (i386_register_name): Update.
3039 * sparc-tdep.c (sparc32_register_name): Update.
3040 (sparc64_register_name): Update.
3041 (sparclite_register_name): Update.
3042 (sparclet_register_name): Update.
3043 * sh-tdep.c (sh_generic_register_name): Update.
3044 (sh_sh_register_name): Update.
3045 (sh_sh3_register_name): Update.
3046 (sh_sh3e_register_name): Update.
3047 (sh_sh_dsp_register_name): Update.
3048 (sh_sh3_dsp_register_name): Update.
3049 (sh_sh4_register_name): Update.
3050 (sh_sh64_register_name): Update.
3051 * s390-tdep.c (s390_register_name): Update.
3052 * rs6000-tdep.c (rs6000_register_name): Update.
3053 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3054 (ns32k_register_name_32382): Update.
3055 * d10v-tdep.c (d10v_ts2_register_name): Update.
3056 (d10v_ts3_register_name): Update.
3057 * xstormy16-tdep.c (xstormy16_register_name): Update.
3058 * vax-tdep.c (vax_register_name): Update.
3059 * v850-tdep.c (v850_register_name): Update.
3060 * m68hc11-tdep.c (m68hc11_register_name): Update.
3061 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3062 (am33_register_name): Update.
3063
3064 2002-06-17 Grace Sainsbury <graces@redhat.com>
3065
3066 * m68k-tdep.c: Reindented.
3067
3068 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3069
3070 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3071 list of predefined types.
3072
3073 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3074
3075 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3076 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3077 REGISTER_CONVERT_TO_RAW): Remove defines.
3078 (i386_register_virtual_type, i386_register_convertible,
3079 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3080 Remove prototypes.
3081 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3082 macros mentioned above.
3083
3084 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3085 (i386lynx_saved_pc_after_call): Remove prototype.
3086 * i386ly-tdep.c: Include "i386-tdep.h".
3087 (i386lynx_saved_pc_after_call): Make static. Use
3088 read_memory_nobpt instead of read_memory. Use
3089 read_memory_unsigned_integer instead of read_memory_integer.
3090 (i386lynx_init_abi): New function.
3091 (i386lynx_coff_osabi_sniffer): New function.
3092 (_initialize_i386bsd_tdep): New function.
3093
3094 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3095 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3096 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3097 (i386_fix_call_dummy): Remove prototype.
3098 * i386-tdep.c (i386_call_dummy_words): New variable.
3099 (i386_gdbarch_init): Adjust for removal of the
3100 macros mentioned above.
3101
3102 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3103
3104 * command.h (add_setshow_auto_boolean_cmd): Replace
3105 add_set_auto_boolean_cmd.
3106 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3107 add_set_auto_boolean_cmd.
3108 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3109 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3110 mask-address'' command.
3111 (show_mask_address): Add cmd parameter.
3112 * remote.c (add_packet_config_cmd): Update. Change type of
3113 set_func and show_func to cmd_sfunc_ftype.
3114 (_initialize_remote): Update `set remote Z-packet'
3115 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3116 (show_remote_protocol_e_packet_cmd): Ditto.
3117 (show_remote_protocol_E_packet_cmd): Ditto.
3118 (show_remote_protocol_P_packet_cmd): Ditto.
3119 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3120 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3121 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3122 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3123 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3124 (show_remote_protocol_Z_packet_cmd): Ditto.
3125 (show_remote_protocol_binary_download_cmd): Ditto.
3126 (show_remote_cmd): Pass NULL to all of above.
3127
3128 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3129
3130 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3131 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3132 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3133 POP_FRAME): Remove defines.
3134 (i386_push_arguments, i386_store_struct_return,
3135 i386_extract_return_value, i386_store_return_value,
3136 i386_extract_struct_value_address, i386_push_dummy_frame,
3137 i386_pop_frame): Renove prototypes.
3138 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3139 macros mentioned above.
3140
3141 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3142
3143 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3144 add_set_boolean_cmd.
3145 (add_setshow_cmd): New function.
3146 * command.h (add_setshow_boolean_cmd): Replace
3147 add_set_boolean_cmd.
3148 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3149 and ``set rdiromatzero''.
3150 * maint.c (_initialize_maint_cmds): Update commented out code.
3151 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3152 * target.c (initialize_targets): Update `set
3153 trust-readonly-sections'.
3154 * remote.c (_initialize_remote): Update `set remotebreak'.
3155
3156 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3157
3158 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3159 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3160 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3161 fit into multi-arch framework.
3162 (i386_breakpoint_from_pc): New function.
3163 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3164 above.
3165
3166 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3167 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3168 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3169 (i386_frameless_function_invocation, i386_frame_num_args,
3170 i386_frame_init_saved_regs): Remove prototypes.
3171 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3172 macros mentioned above.
3173
3174 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3175
3176 * cli/cli-decode.c (set_cmd_cfunc): Update.
3177 (set_cmd_sfunc): Update.
3178 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3179 (set_cmd_sfunc, set_cmd_cfunc): Update.
3180 * cli/cli-decode.h: Update.
3181
3182 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3183
3184 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3185 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3186
3187 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3188
3189 * defs.h (auto_boolean): Declare enum.
3190 * command.h (cmd_auto_boolean): Delete enum.
3191 * mips-tdep.c (mask_address_var): Update.
3192 (mips_mask_address_p): Update.
3193 (show_mask_address): Update.
3194 * remote.c (struct packet_config): Update.
3195 (update_packet_config): Update.
3196 (show_packet_config_cmd): Update.
3197 (packet_ok): Update.
3198 (add_packet_config_cmd): Update.
3199 (_initialize_remote):
3200 * command.h: Update.
3201 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3202 (do_setshow_command): Update.
3203 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3204 * cli/cli-decode.h: Update.
3205
3206 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3207
3208 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3209 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3210 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3211 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3212 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3213 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3214
3215 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3216 list of DJGPP COFF targets.
3217
3218 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3219 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3220 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3221 (FP0_REGNUM): Remove define.
3222 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3223 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3224 (i386_register_virtual_size): Remove protoype.
3225 * i386-tdep.c (i386_register_virtual_size): Removed.
3226 (i386_extract_return_value, i386_store_return_value): Use
3227 FP0_REGNUM instead of NUM_FREGS to determine whether the
3228 floating-point registers are available.
3229 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3230 Adjust for removal of macros mentioned above.
3231
3232 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3233
3234 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3235 comments.
3236 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3237 Remove prototypes.
3238 (supply_gregset, fill_gregset): Remove use of register keyword and
3239 remove declaration for regmap. Use I386_NUM_GREGS instead of
3240 NUM_REGS and NUM_FREGS.
3241 (FPREGSET_FSAVE_OFFSET): Remove.
3242 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3243 NUM_FREGS to determine whether the floating-point registers are
3244 available.
3245
3246 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3247 gnu_store_registers): Replace usage of NUM_GREGS with
3248 I386_NUM_GREGS.
3249
3250 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3251 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3252 usage of NUM_GREGS with I386_NUM_GREGS.
3253
3254 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3255
3256 * i386bsd-nat.c: Include "i386-tdep.h".
3257 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3258 I386_NUM_GREGS.
3259
3260 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3261 and associated comment. They no longer make any sense, since we
3262 don't use this file anymore on Linux.
3263
3264 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3265 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3266 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3267 elements in these arrays.
3268 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3269 MAX_NUM_REGS.
3270
3271 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3272
3273 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3274 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3275
3276 2002-06-14 Andrew Cagney <cagney@redhat.com>
3277
3278 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3279 EXTRACT_RETURN_VALUE.
3280 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3281 EXTRACT_STRUCT_VALUE_ADDRESS.
3282 * gdbarch.h, gdbarch.c: Regenerate.
3283
3284 * values.c (value_being_returned): Handle
3285 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3286 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3287
3288 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3289 * arm-tdep.c (arm_gdbarch_init): Update.
3290 * avr-tdep.c (avr_gdbarch_init): Update.
3291 * cris-tdep.c (cris_gdbarch_init): Update.
3292 * d10v-tdep.c (d10v_gdbarch_init): Update.
3293 * ia64-tdep.c (ia64_gdbarch_init): Update.
3294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3296 * s390-tdep.c (s390_gdbarch_init): Update.
3297 * sh-tdep.c (sh_gdbarch_init): Update.
3298 * s390-tdep.c (s390_gdbarch_init): Update.
3299 * sparc-tdep.c (sparc_gdbarch_init): Update.
3300 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3301 * v850-tdep.c (v850_gdbarch_init): Update.
3302 * vax-tdep.c (vax_gdbarch_init): Update.
3303 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3305
3306 * config/arc/tm-arc.h: Update.
3307 * config/d30v/tm-d30v.h: Update.
3308 * config/fr30/tm-fr30.h: Update.
3309 * config/h8300/tm-h8300.h: Update.
3310 * config/h8500/tm-h8500.h: Update.
3311 * config/i386/tm-i386.h: Update.
3312 * config/i386/tm-ptx.h: Update.
3313 * config/i386/tm-symmetry.h: Update.
3314 * config/i960/tm-i960.h: Update.
3315 * config/m32r/tm-m32r.h: Update.
3316 * config/m68k/tm-delta68.h: Update.
3317 * config/m68k/tm-linux.h: Update.
3318 * config/m68k/tm-m68k.h: Update.
3319 * config/m88k/tm-m88k.h: Update.
3320 * config/mcore/tm-mcore.h: Update.
3321 * config/mips/tm-mips.h: Update.
3322 * config/mn10200/tm-mn10200.h: Update.
3323 * config/pa/tm-hppa.h: Update.
3324 * config/pa/tm-hppa64.h: Update.
3325 * config/sparc/tm-sp64.h: Update.
3326 * config/sparc/tm-sparc.h: Update.
3327 * config/sparc/tm-sparclet.h: Update.
3328 * config/z8k/tm-z8k.h: Update.
3329
3330 2002-06-14 Andrew Cagney <cagney@redhat.com>
3331
3332 * Makefile.in (i386_linux_tdep_h): Define.
3333 (i386_tdep_h, i387_tdep_h): Define.
3334 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3335 $(i386_tdep_h) and $(i387_tdep_h).
3336 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3337
3338 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3339
3340 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3341 Already covered by the default.
3342
3343 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3344 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3345 (i386_gdbarch_init): Initialize long_double_format and long_double
3346 bit.
3347
3348 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3349 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3350 Move these to ...
3351 * config/i386/i386sol2.mh: ... here.
3352 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3353 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3354 (SIGCONTEXT_PC_OFFSET): Remove define.
3355 (IN_SIGTRAMP): Remove define.
3356 * i386-sol2-tdep.c: New file.
3357
3358 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3359 * config/i386/tm-i386nw.h: Removed.
3360
3361 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3362 USE_STRUCT_CONVENTION): Remove defines.
3363 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3364 (get_longjmp_target): Remove prototype.
3365 (IN_SIGTRAMP): Remove define.
3366 (i386bsd_in_sigtramp): Remove prototype.
3367 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3368 function. Update comment accordingly
3369 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3370 (FRAME_SAVED_PC): Remove define.
3371 (i386bsd_frame_saved_pc): Remove prototype.
3372 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3373 GET_LONGJMP_TARGET): Remove defines.
3374 (get_longjmp_target): Remove prototype.
3375 (IN_SIGTRAMP): Remove define.
3376 (i386bsd_in_sigtramp): Remove prototype.
3377 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3378 function. Update comment accordingly
3379 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3380 (FRAME_SAVED_PC): Remove define.
3381 (i386bsd_frame_saved_pc): Remove prototype.
3382 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3383 Remove prototype.
3384 (USE_STRUCT_CONVENTION): Remove prototype.
3385 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3386 declaration.
3387 (_initialize_i386bsd_nat): Revise logic to determine some
3388 constants at compile time when compiling a native GDB. Warn if
3389 things don't match up with what we expect.
3390 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3391 Remove variables.
3392 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3393 to use date stored in `struct gdbarch_tdep'.
3394 (i386bsd_sigcontext_offset): Remove varaible.
3395 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3396 stored in `struct gdbarch_tdep'.
3397 (i386bsd_frame_saved_pc): Make static.
3398 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3399 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3400 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3401 i386fbsd4_sc_pc_offset): New variables.
3402 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3403 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3404 functions.
3405 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3406 functions.
3407 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3408 Modify the value of i386fbsd_sigtramp_start and
3409 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3410 i386fbsd_sigtramp_end.
3411 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3412 function.
3413
3414 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3415 define to i386-linux-tdep.h.
3416 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3417 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3418 defines.
3419 (i386_linux_register_name, i386_linux_register_byte,
3420 i386_linux_register_raw_size): Remove prototypes.
3421 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3422 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3423 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3424 TARGET_WRITE_PC): Remove defines.
3425 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3426 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3427 i386_linux_write_pc): Remove prototypes.
3428 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3429 (get_longjmp_target): Remove prototype.
3430 * i386-linux-tdep.h: New file.
3431 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3432 * i386-linux-tdep.c: Include "i386-tdep.h" and
3433 "i386-linux-tdep.h".
3434 (i386_linux_register_name, i386_linux_register_byte,
3435 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3436 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3437 Make static.
3438 (i386_linux_init_abi): New function.
3439 (_initialize_i386_linux_tdep): New function.
3440
3441 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3442 (i386_saved_pc_after_call): Remove prototype.
3443 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3444 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3445 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3446 (i386_register_name, i386_stab_reg_to_regnum,
3447 i386_dwarf_reg_to_regnum): Remove prototypes.
3448 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3449 SIZEOF_SSE_REGS): Remove defines.
3450 (REGISTER_BYTES): Remove define.
3451 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3452 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3453 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3454 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3455 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3456 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3457 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3458 (get_longjmp_target): Remove prototype.
3459 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3460 (sigtramp_saved_pc): Remove define.
3461 (i386v4_sigtramp_saved_pc): Remove prototype.
3462 * config/i386/tm-go32.h (FRAME_CHAIN,
3463 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3464 (i386go32_frame_saved_pc): Remove prototype.
3465 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3466 (get_longjmp_target): Remove prototype.
3467 * i386-tdep.h: Include "osabi.h".
3468 (enum i386_abi): Removed.
3469 (enum struct_return): New enum.
3470 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3471 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3472 sc_pc_offset members.
3473 (i386_gdbarch_register_os_abi): Remove prototype.
3474 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3475 I386_SSE_NUM_REGS): New defines.
3476 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3477 I386_SSE_SIZEOF_REGS): New defines.
3478 (i386_register_name, i386_register_byte, i386_register_raw_size):
3479 New prototypes.
3480 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3481 (i386bsd_sigtramp_saved_pc): New prototype.
3482 * i386-tdep.c: Don't include "elf-bfd.h".
3483 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3484 i386_frame_chain, i386_saved_pc_after_call): Make static.
3485 (i386_frame_saved_pc): Rewrite to call architecture dependent
3486 function to deal with signal handlers. Make static.
3487 (i386go32_frame_saved_pc): Removed.
3488 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3489 Removed.
3490 (i386_get_longjmp_target): New function.
3491 (default_struct_convention, pcc_struct_convention,
3492 reg_struct_convention, valid_conventions, struct_convention): New
3493 variables.
3494 (i386_use_struct_convention): New function.
3495 (i386v4_sigtramp_saved_pc): Renamed to
3496 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3497 (i386_pc_in_sigtramp): New function.
3498 (i386_abi_names): Removed.
3499 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3500 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3501 Removed.
3502 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3503 i386_gdbarch_register_os_abi): Removed.
3504 (struct i386_abi_handler): Removed.
3505 (i386_abi_handler_list): Removed.
3506 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3507 functions.
3508 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3509 i386_nw_init_abi): New functions.
3510 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3511 Use set_gdbarch_xxx() calls instead of relying on macros for a
3512 number of calls.
3513 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3514 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3515 Register the various architecture variants defined in this file.
3516
3517 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3518
3519 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3520 (struct main_type): Remove arg_types member. Update comments for
3521 struct field.
3522 (TYPE_ARG_TYPES): Remove.
3523 (TYPE_FN_FIELD_ARGS): Update.
3524 (smash_to_method_type): Update prototype.
3525
3526 * c-typeprint.c (cp_type_print_method_args): Take method type
3527 instead of argument list. Use new argument layout. Simplify.
3528 (c_type_print_args): Use new argument layout. Simplify.
3529 (c_type_print_base): Update call to cp_type_print_method_args.
3530 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3531 argument; use die->type instead. Update call to
3532 smash_to_method_type.
3533 (read_structure_scope): Update call to dwarf2_add_member_fn.
3534 * gdbtypes.c (allocate_stub_method): Update comment.
3535 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3536 Use new argument layout.
3537 (check_stub_method): Use new argument layout. Don't count
3538 void as an argument.
3539 (print_arg_types): Update comments. Use new argument layout.
3540 (recursive_dump_type): Don't print arg_types member.
3541 * hpread.c (hpread_read_struct_type): Use new argument layout.
3542 (fixup_class_method_type): Likewise.
3543 (hpread_type_lookup): Likewise.
3544 * stabsread.c (read_type): Update calls to read_args and
3545 smash_to_method_type.
3546 (read_args): Use new argument layout. Simplify.
3547 * valops.c (typecmp): Use new argument layout. Update parameters
3548 and comments. Simplify.
3549 (hand_function_call): Use new argument layout.
3550 (search_struct_method): Update call to typecmp.
3551 (find_overload_match): Use new argument layout.
3552
3553 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3554
3555 * NEWS: Mention multithreaded debug support for gdbserver.
3556
3557 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * MAINTAINERS: Mention NEWS.
3560
3561 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3562
3563 * gdbserver/regcache.c: Add comment.
3564
3565 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3566
3567 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3568 (struct mips_objfile_private, compare_pdr_entries): New.
3569 (non_heuristic_proc_desc): Read the ".pdr" section if it
3570 is present.
3571
3572 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3573
3574 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3575 (arm_debug): New static variable.
3576 (_initialize_arm_tdep): Add ``set debug arm'' command.
3577
3578 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3579
3580 * Makefile.in (sim_arm_h): Define.
3581 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3582 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3583 (arm_register_sim_regno): New function, map an internal REGNUM
3584 onto a simulator register number.
3585 (arm_gdbarch_init): Set register_sim_regno.
3586
3587 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3588
3589 * MAINTAINERS: Add self.
3590
3591 2002-06-11 Jim Blandy <jimb@redhat.com>
3592
3593 * source.c (source_info): Mention whether the symtab has
3594 information about preprocessor macros.
3595
3596 Call the command `info macro', not `show macro'.
3597 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3598 Fix error message.
3599 (_initialize_macrocmd): Register `info_macro_command' in
3600 `infolist', not `showlist'.
3601
3602 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3603
3604 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3605 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3606 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3607 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3608 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3609 unconditionally.
3610 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3611 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3612 (_initialize_mips_tdep): Remove dead code.
3613 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3614 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3615 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3616 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3617 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3618 MIPS_LAST_FP_ARG_REGNUM): Remove.
3619
3620 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * gdbserver/thread-db.c: New file.
3623 * gdbserver/proc-service.c: New file.
3624 * gdbserver/acinclude.m4: New file.
3625 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3626 proc-service.o, and thread-db.o.
3627 (linux-low.o): Add USE_THREAD_DB.
3628 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3629 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3630 * gdbserver/aclocal.m4: Regenerated.
3631 * gdbserver/config.in: Regenerated.
3632 * gdbserver/configure: Regenerated.
3633 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3634 thread_db.h, and linux/elf.h headrs.
3635 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3636 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3637 Check for -lthread_db and thread support.
3638 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3639 PowerPC, and SuperH.
3640 * gdbserver/i387-fp.c: Constify arguments.
3641 * gdbserver/i387-fp.h: Likewise.
3642 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3643 `struct inferior_info'. Remove PID member. Use generic inferior
3644 list header. All uses updated.
3645 (inferiors, signal_pid): Removed.
3646 (all_threads): New variable.
3647 (get_thread): Define.
3648 (add_inferior_to_list): New function.
3649 (for_each_inferior): New function.
3650 (change_inferior_id): New function.
3651 (add_inferior): Removed.
3652 (remove_inferior): New function.
3653 (add_thread): New function.
3654 (free_one_thread): New function.
3655 (remove_thread): New function.
3656 (clear_inferiors): Use for_each_inferior and free_one_thread.
3657 (find_inferior): New function.
3658 (find_inferior_id): New function.
3659 (inferior_target_data): Update argument type.
3660 (set_inferior_target_data): Likewise.
3661 (inferior_regcache_data): Likewise.
3662 (set_inferior_regcache_data): Likewise.
3663 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3664 (all_processes, stopping_threads, using_thrads)
3665 (struct pending_signals, debug_threads, pid_of): New.
3666 (inferior_pid): Replace with macro.
3667 (struct inferior_linux_data): Remove.
3668 (get_stop_pc, add_process): New functions.
3669 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3670 Use add_process and add_thread.
3671 (linux_attach_lwp): New function, based on old linux_attach. Use
3672 add_process and add_thread. Set stop_expected for new threads.
3673 (linux_attach): New function.
3674 (linux_kill_one_process): New function.
3675 (linux_kill): Kill all LWPs.
3676 (linux_thread_alive): Use find_inferior_id.
3677 (check_removed_breakpoints, status_pending_p): New functions.
3678 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3679 Update. Use WNOHANG. Wait for cloned processes also. Update process
3680 struct for the found process.
3681 (linux_wait_for_event): New function.
3682 (linux_wait): Use it. Support LWPs.
3683 (send_sigstop, wait_for_sigstop, stop_all_processes)
3684 (linux_resume_one_process, linux_continue_one_process): New functions.
3685 (linux_resume): Support LWPs.
3686 (REGISTER_RAW_SIZE): Remove.
3687 (fetch_register): Use register_size instead. Call supply_register.
3688 (usr_store_inferior_registers): Likewise. Call collect_register.
3689 Fix recursive case.
3690 (regsets_fetch_inferior_registers): Improve error message.
3691 (regsets_store_inferior_registers): Add debugging.
3692 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3693 (unstopped_p, linux_signal_pid): New functions.
3694 (linux_target_ops): Add linux_signal_pid.
3695 (linux_init_signals): New function.
3696 (initialize_low): Call it. Initialize using_threads.
3697 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3698 flag.
3699 (get_regcache): Fetch registers lazily. Add fetch argument
3700 and update all callers.
3701 (regcache_invalidate_one, regcache_invalidate): New
3702 functions.
3703 (new_register_cache): Renamed from create_register_cache.
3704 Return the new regcache.
3705 (free_register_cache): Change argument to a void *.
3706 (registers_to_string, registers_from_string): Call get_regcache
3707 with fetch flag set.
3708 (register_data): Make static. Pass fetch flag to get_regcache.
3709 (supply_register): Call get_regcache with fetch flag clear.
3710 (collect_register): Call get_regcache with fetch flag set.
3711 (collect_register_as_string): New function.
3712 * gdbserver/regcache.h: Update.
3713 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3714 stderr.
3715 Handle input interrupts while waiting for an ACK.
3716 (input_interrupt): Use signal_pid method.
3717 (getpkt): Flush after debug output and use stderr.
3718 (outreg): Use collect_register_as_string.
3719 (new_thread_notify, dead_thread_notify): New functions.
3720 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3721 and general_thread.
3722 (look_up_one_symbol): Flush after debug output.
3723 * gdbserver/server.c (step_thread, server_waiting): New variables.
3724 (start_inferior): Don't use signal_pid. Update call to mywait.
3725 (attach_inferior): Update call to mywait.
3726 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3727 (main): Don't fetch/store registers explicitly. Use
3728 set_desired_inferior. Support proposed ``Hs'' packet. Update
3729 calls to mywait.
3730 * gdbserver/server.h: Update.
3731 (struct inferior_list, struct_inferior_list_entry): New.
3732 * gdbserver/target.c (set_desired_inferior): New.
3733 (write_inferior_memory): Constify.
3734 (mywait): New function.
3735 * gdbserver/target.h: Update.
3736 (struct target_ops): New signal_pid method.
3737 (mywait): Removed macro, added prototype.
3738
3739 * gdbserver/linux-low.h (regset_func): Removed.
3740 (regset_fill_func, regset_store_func): New.
3741 (enum regset_type): New.
3742 (struct regset_info): Add type field. Use new operation types.
3743 (struct linux_target_ops): stop_pc renamed to get_pc.
3744 Add decr_pc_after_break and breakpoint_at.
3745 (get_process, get_thread_proess, get_process_thread)
3746 (strut process_info, all_processes, linux_attach_lwp)
3747 (thread_db_init): New.
3748
3749 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3750 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3751 (the_low_target): Add new members.
3752 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3753 (i386_store_fpxregset): Constify.
3754 (target_regsets): Add new kind identifier.
3755 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3756 (i386_set_pc): Add debugging.
3757 (i386_breakpoint_at): New function.
3758 (the_low_target): Add new members.
3759 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3760 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3761 (mips_breakpoint_at): New.
3762 (the_low_target): Add new members.
3763 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3764 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3765 (the_low_target): Add new members.
3766 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3767 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3768 (the_low_target): Add new members.
3769 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3770 identifier.
3771
3772 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3773
3774 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3775 (unwind_tmp_obstack_free, parse_frame_info)
3776 (update_context, cfi_read_fp, cfi_write_fp)
3777 (cfi_frame_chain, cfi_init_extra_frame_info)
3778 (cfi_virtual_frame_pointer): Use the above function.
3779 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3780
3781 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3782
3783 * v850-tdep.c (v850_type_is_scalar): New function.
3784 (v850_use_struct_convention): Match current gcc implementation
3785 as close as possible.
3786 (v850_push_arguments): Fix stack_offset handling. Don't write
3787 struct_addr into register. This is done by v850_store_struct_return.
3788 (v850_extract_return_value): Care for structs.
3789 (v850_store_return_value): Ditto.
3790 (v850_store_struct_return): Actually write address.
3791
3792 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3793
3794 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3795 without debug information too.
3796
3797 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3798
3799 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3800 Make multi-arch pure.
3801 * gdbarch.h, gdbarch.c: Re-generate.
3802 * arm-tdep.c (arm_print_float_info): Update.
3803 * arch-utils.h (default_print_float_info): Update.
3804 * arch-utils.c (default_print_float_info): Update.
3805 * infcmd.c (float_info): Update call.
3806
3807 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3808
3809 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3810 the front of the initialize list.
3811
3812 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3813
3814 * infrun.c (struct inferior_status): Replace fields
3815 selected_frame_address and selected_level with field
3816 selected_frame_id.
3817 (save_inferior_status): Update. Use get_frame_id.
3818 (struct restore_selected_frame_args): Delete.
3819 (restore_selected_frame): Update. Use frame_find_by_id.
3820 (restore_inferior_status): Update.
3821
3822 * breakpoint.h (struct breakpoint): Change type of
3823 watchpoint_frame to frame_id.
3824 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3825 call to get_current_frame.
3826 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3827 get_current_frame.
3828 (watchpoint_check): Use frame_find_by_id.
3829
3830 * frame.h (record_selected_frame): Delete declaration.
3831 * stack.c (record_selected_frame): Delete function.
3832
3833 * frame.h (struct frame_id): Define.
3834 (get_frame_id): Declare.
3835 (frame_find_by_id): Declare.
3836 * frame.c (frame_find_by_id): New function.
3837 (get_frame_id): New function.
3838
3839 2002-06-10 Andrey Volkov <avolkov@transas.com>
3840
3841 * ser-e7kpc.c: Fix duplicated define and call of
3842 _initialize_ser_e7000pc
3843
3844 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * signals/signals.c (target_signal_from_host): Fix #ifdef
3847 SIGRTMIN case.
3848 (do_target_signal_to_host): Likewise.
3849
3850 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3851
3852 * mips-tdep.c (mips_find_abi_section): New function.
3853 (mips_gdbarch_init): Call it.
3854
3855 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3856
3857 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3858 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3859 after Andrew's 2002-06-08 gdbarch change.
3860
3861 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3862
3863 * i386-linux-nat.c (suppy_gregset): Don't supply
3864 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3865 register cache.
3866 (fill_gregset): Don't fetch it under the same circumstances.
3867
3868 2002-06-09 Andrew Cagney <cagney@redhat.com>
3869
3870 * Makefile.in (callback_h): Define.
3871 (remote_sim_h): Update path to remote-sim.h.
3872 (remote-rdp.o): Add $(callback_h).
3873 (remote-sim.o): Use $(callback_h).
3874 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3875 * remote-rdp.c: Include "gdb/callback.h".
3876
3877 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3878
3879 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3880 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3881
3882 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3883
3884 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3885 * rdi-share/serpardr.c: Ditto.
3886 * rdi-share/unixcomm.c: Ditto.
3887 * rdi-share/serdrv.c: Ditto.
3888 * rdi-share/hostchan.h: Ditto.
3889 * rdi-share/hostchan.c: Ditto.
3890 * rdi-share/host.h: Ditto.
3891 * rdi-share/devsw.c: Ditto.
3892
3893 * objfiles.h: Change type of obj_private to void pointer.
3894 * pa64solib.c: Update copyright. Don't include "assert.h", use
3895 strcmp instead of STREQ, use LONGEST, do not use PTR
3896 * somsolib.c: Ditto.
3897
3898 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3899 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3900 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3901
3902 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3903
3904 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3905 (default_get_saved_register): Delete function.
3906 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3907 generic_unwind_get_saved_register.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909
3910 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3911
3912 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3913 generic_func_frame_chain_valid.
3914 * gdbarch.h, gdbarch.c: Re-generate.
3915 * blockframe.c (generic_func_frame_chain_valid): Only check
3916 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3917 passing FP to PC_IN_CALL_DUMMY.
3918 Fix PR gdb/360.
3919
3920 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3921
3922 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3923 (register_gdbarch_data): Initialize init_p.
3924 (gdbarch_data): Initialize data pointer using the init function.
3925 (init_gdbarch_data): Delete function.
3926 (gdbarch_update_p): Update.
3927 (initialize_non_multiarch): Update.
3928 (struct gdbarch): Add field initialized_p.
3929 * gdbarch.h, gdbarch.c: Re-generate.
3930
3931 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3932
3933 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3934 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3935 better do the things actually here.
3936 * x86-64-tdep.c (x86_64_register_name2nr): New.
3937 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3938 (x86_64_gdbarch_init): Respect the above change.
3939 * x86-64-tdep.h (x86_64_register_name2nr)
3940 (x86_64_register_nr2name): Add prototypes.
3941 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3942
3943 2002-06-06 Michael Snyder <msnyder@redhat.com>
3944
3945 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3946 Delete extra braces and re-indent.
3947 (d10v_store_return_value): Char return values
3948 must be shifted over by one byte in R0.
3949 (d10v_extract_return_value): Delete extra braces, re-indent.
3950
3951 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3952
3953 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3954 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3955 (d10v_integer_to_address): Rewrite.
3956 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3957 the d10v specific functions which take care of converting to the
3958 correct space.
3959
3960 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3961
3962 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3963 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3964
3965 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3966
3967 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3968 includes.
3969 * config/tm-linux.h: Ditto.
3970 * config/alpha/tm-alphalinux.h: Ditto.
3971 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3972 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3973 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3974 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3975 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3976 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3977 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3978 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3979 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3980 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3981 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3982 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3983 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3984 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3985 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3986 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3987 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3988 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3989 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3990 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3991 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3992 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3993 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3994 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3995 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3996 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3997 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3998 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3999 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4000 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4001 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4002 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4003 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4004 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4005 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4006 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4007 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4008
4009 2002-05-04 Aidan Skinner <aidan@velvet.net>
4010
4011 * ada-exp.tab.c: New file
4012 * ada-exp.y: New file
4013 * ada-lang.c: New file
4014 * ada-lang.h: New file
4015 * ada-lex.c: New file
4016 * ada-lex.l: New file
4017 * ada-tasks.c: New file
4018 * ada-typeprint.c: New file
4019 * ada-valprint.c: New file
4020
4021 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4022
4023 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4024 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4025
4026 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4027
4028 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4029 insetead of ppc-linux-tdep.o.
4030 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4031 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4032
4033 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4034
4035 2002-05-07 Christian Groessler <chris@groessler.org>
4036 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4037 bit register contents for little endian hosts.
4038
4039 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4040
4041 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4042 any maintainer.
4043
4044 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4045
4046 * gdbarch.h: Regenerate.
4047
4048 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4049
4050 * MAINTAINERS: Add everyone to write-after-approval list.
4051
4052 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4053
4054 * stack.c (frame_info): Use frame_register_unwind instead of
4055 saved_regs. Mention when the SP is on the stack or in a register.
4056
4057 * frame.h (frame_register_unwind_ftype): Define. Document.
4058 (struct frame_info): Add field register_unwind and
4059 register_unwind_cache.
4060 (frame_register_unwind): Declare.
4061 (generic_unwind_get_saved_register): Declare.
4062
4063 * frame.c (frame_register_unwind): New function.
4064 (generic_unwind_get_saved_register): New function.
4065
4066 * blockframe.c (generic_call_dummy_register_unwind): New function.
4067 (frame_saved_regs_register_unwind): New function.
4068 (set_unwind_by_pc): New function.
4069 (create_new_frame): New function.
4070 (get_prev_frame): New function.
4071
4072 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4073
4074 * a29k-share/: Delete directory.
4075 * remote-vx29k.c: Delete file.
4076
4077 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4078
4079 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4080 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4081
4082 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4083
4084 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4085 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4086 (sparc64nbsd-nat.o)
4087 (sparcnbsd-nat.o)
4088 (sparcnbsd-tdep.o): New dependency lists.
4089 * NEWS: Note new UltraSPARC NetBSD native configuration.
4090 * configure.host (sparc64-*-netbsd*): New host.
4091 * configure.tgt (sparc-*-netbsdelf*)
4092 (sparc-*-netbsd*): Set gdb_target to nbsd.
4093 (sparc64-*-netbsd*): New target.
4094 * sparc64nbsd-nat.c: New file.
4095 * sparcnbsd-nat.c: New file.
4096 * sparcnbsd-tdep.c: New file.
4097 * sparcnbsd-tdep.h: New file.
4098 * config/sparc/nbsd.mt: New file.
4099 * config/sparc/nbsd64.mh: New file.
4100 * config/sparc/nbsd64.mt: New file.
4101 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4102 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4103 (HOST_IPC): Remove.
4104 * config/sparc/nbsdaout.mt: Remove.
4105 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4106 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4107 (HOST_IPC): Remove.
4108 * config/sparc/nbsdelf.mt: Remove.
4109 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4110 sparc-nat.c compatiblity defines.
4111 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4112 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4113 * config/sparc/tm-nbsd64.h: New file.
4114 * config/sparc/tm-nbsdaout.h: Remove.
4115 * config/sparc/xm-nbsd.h: Remove.
4116
4117 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4118
4119 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4120 * sparc-tdep.c: Include osabi.h.
4121 (gdbarch_tdep): Add osabi member.
4122 (_initialize_sparc_tdep): Use gdbarch_register.
4123 (sparc_gdbarch_init): Use generic OS ABI framework.
4124 (sparc_dump_tdep): New function.
4125
4126 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4127
4128 * corefile.c (do_captured_read_memory_integer): Return non-zero
4129 result.
4130 (safe_read_memory_integer): Copy result of memory read when
4131 status is non-zero. Also, add comments.
4132
4133 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4134
4135 * Makefile.in (ppc_tdep_h): Define.
4136 (ppc-linux-nat.o)
4137 (ppc-linux-tdep.o)
4138 (rs6000-tdep.o): Use $(ppc_tdep_h).
4139 (ppc-sysv-tdep.o)
4140 (ppcnbsd-nat.o)
4141 (ppcnbsd-tdep.o): New dependency lists.
4142 * ppc-tdep.h: Use generic OS ABI framework.
4143 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4144 (ppc_linux_init_abi): New functions.
4145 (ppc_sysv_abi_broken_use_struct_convention)
4146 (ppc_sysv_abi_use_struct_convention)
4147 (ppc_sysv_abi_push_arguments): Move to...
4148 * ppc-sysv-tdep.c: ...here.
4149 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4150 * rs6000-tdep.c (process_note_abi_tag_sections)
4151 (get_elfosabi): Remove.
4152 (rs6000_gdbarch_init): Use generic OS ABI framework.
4153 (rs6000_dump_tdep): New function.
4154 (_initialize_rs6000_tdep): Use gdbarch_register.
4155 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4156 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4157 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4158 of ppc-linux-tdep.o.
4159 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4160 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4161 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4162 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4163 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4164 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4165
4166 2002-05-29 Jim Blandy <jimb@redhat.com>
4167
4168 * macroscope.c (default_macro_scope): Put `void' in empty argument
4169 list.
4170
4171 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4172
4173 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4174 * arch-utils.c: Include "sim-regno.h".
4175 * gdbarch.sh: Don't include "sim-regno.h".
4176 * gdbarch.h, gdbarch.c: Regenerate.
4177 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4178 here.
4179 * arch-utils.h (legacy_register_sim_regno): To here.
4180 * remote-sim.c (legacy_register_sim_regno): Move function from
4181 here.
4182 * arch-utils.c (legacy_register_sim_regno): To here.
4183
4184 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4185
4186 * sim-regno.h: New file.
4187 * Makefile.in (sim_regno_h): Define.
4188 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4189 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4190 (legacy_register_sim_regno): New function.
4191 (one2one_register_sim_regno): New function.
4192 (gdbsim_fetch_register): Rewrite.
4193 (gdbsim_store_register): Only store a register when
4194 REGISTER_SIM_REGNO is valid.
4195 * d10v-tdep.c: Include "sim-regno.h".
4196 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4197 (d10v_ts3_register_sim_regno): Ditto.
4198 * gdbarch.sh: Include "sim-regno.h".
4199 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4200 * gdbarch.h, gdbarch.c: Regenerate.
4201 * arch-utils.h (default_register_sim_regno): Delete declaration.
4202 * arch-utils.c (default_register_sim_regno): Delete function.
4203
4204 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4205
4206 * ppcnbsd-nat.c: Rewrite.
4207 * ppcnbsd-tdep.c: New file.
4208 * ppcnbsd-tdep.h: New file.
4209 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4210 solib.o, and solib-svr4.o.
4211 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4212 nbsd-tdep.o, and corelow.o.
4213
4214 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4215
4216 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4217 `tr' and `sed'. Mention that `broken' targets are not expected to
4218 build.
4219
4220 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4221
4222 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4223 Let PC point right after the prologue before looking up symbols.
4224
4225 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4226
4227 * i386-tdep.c (i386_register_virtual_type): Return
4228 builtin_type_vec128i for SSE registers.
4229
4230 * gdbtypes.h (builtin_type_vec128i): Declare.
4231
4232 * gdbtypes.c (build_builtin_type_vec128i): New function.
4233 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4234 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4235 (build_gdbtypes): Initialize new builtin vector types.
4236 (_initialize_gdbtypes): Register new vector types with gdbarch.
4237
4238 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4239
4240 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4241 since it has been multi-arch'd.
4242 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4243 Move Alpha and VAX multi-arch news entries to same section
4244 as other multi-arch news.
4245
4246 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4247
4248 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4249 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4250 static. Rename some register numbers to put them in ns32k-tdep
4251 private namespace.
4252 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4253 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4254 functions.
4255 (_initialize_ns32k_tdep): Use gdbarch_register.
4256 * ns32k-tdep.h: New file.
4257 * ns32knbsd-tdep.c: New file.
4258 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4259 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4260 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4261 REGISTER_BYTES, REGISTER_BYTE): Remove.
4262 * config/ns32k/tm-ns32k.h: New file.
4263 * config/ns32k/tm-umax.h: Remove.
4264
4265 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4266
4267 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4268 ns32k_store_struct_return, ns32k_extract_return_value,
4269 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4270 functions.
4271 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4272 ns32k_saved_pc_after_call.
4273 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4274 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4275 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4276 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4277 ns32k_extract_struct_value_address.
4278
4279 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4280
4281 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4282 ns32k_fix_call_dummy): New.
4283 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4284 ns32k_call_dummy_words.
4285 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4286 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4287 CALL_DUMMY_NARGS): Remove.
4288 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4289
4290 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4291
4292 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4293 ns32k_frame_saved_pc, ns32k_frame_args_address,
4294 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4295 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4296 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4297 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4298 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4299 (BREAKPOINT): Remove..
4300 (FRAME_CHAIN): Define as ns32k_frame_chain.
4301 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4302 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4303 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4304 (FRAME_FIND_SAVED_REGS): Remove.
4305 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4306 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4307 (POP_FRAME): Define as ns32k_pop_frame.
4308
4309 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4310
4311 * ns32k-tdep.c (ns32k_register_byte_32082,
4312 ns32k_register_byte_32382, ns32k_register_raw_size,
4313 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4314 functions.
4315 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4316 ns32k_register_byte_32382.
4317 * config/ns32k/tm-umax.h: Update copyright years.
4318 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4319 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4320 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4321 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4322 (ns32k_get_enter_addr): Fix prototype.
4323
4324 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4325
4326 * ns32k-tdep.c: Update copyright years.
4327 (ns32k_register_name_32082): New function.
4328 (ns32k_register_name_32382): Ditto.
4329 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4330 (REGISTER_NAME): Define as ns32k_register_name_32382.
4331 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4332 (REGISTER_NAME): Define as ns32k_register_name_32082.
4333
4334 2002-05-24 Jim Blandy <jimb@redhat.com>
4335
4336 * dwarf2read.c (free_line_header): Use xfree, not free.
4337
4338 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4339
4340 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4341 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4342
4343 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4344
4345 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4346
4347 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4348
4349 From Ross Alexander at NEC Europe:
4350 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4351
4352 2002-05-23 Michael Snyder <msnyder@redhat.com>
4353
4354 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4355 for input, rather than parse_and_eval_address.
4356
4357 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4358
4359 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4360 * Makefile.in (sim_d10v_h): Update definition.
4361
4362 2002-05-24 Andrew Cagney <cagney@redhat.com>
4363
4364 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4365 change `2002-05-22 Michael Snyder' below.
4366 (d10v_push_arguments): Ditto.
4367 (d10v_extract_return_value): Ditto.
4368
4369 2002-05-23 Jim Blandy <jimb@redhat.com>
4370
4371 * macrotab.c (check_for_redefinition): Don't complain if the new
4372 definition is the same as the previous one. Take more arguments
4373 to allow the comparison.
4374 (macro_define_object, macro_define_function): Pass more arguments
4375 to check_for_redefinition.
4376
4377 2002-05-22 Michael Snyder <msnyder@redhat.com>
4378
4379 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4380 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4381 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4382 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4383 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4384 Add a temp variable to save a call (and a memory read).
4385 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4386 if possible (so that PC_IN_CALL_DUMMY will work).
4387
4388 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4389
4390 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4391
4392 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4393
4394 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4395 fde->cie_ptr.
4396 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4397 (dwarf2_build_frame_info): Add offset to fde->initial_location
4398 so that frames of shared libraries are mapped correctly.
4399 (execute_stack_op): Change type of 'result' from ULONGEST to
4400 CORE_ADDR.
4401
4402 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4403
4404 * config/alpha/tm-nbsd.h: Include solib.h.
4405
4406 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4407
4408 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4409 assumptions about the host's byte order.
4410
4411 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4412
4413 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4414 to dependency list.
4415 * alphanbsd-tdep.c: Include solib-svr4.h.
4416 * shnbsd-tdep.c: Ditto.
4417
4418 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4419
4420 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4421 nbsd-tdep.h to dependency list.
4422 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4423 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4424 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4425 nbsdaout.mh and nbsdelf.mh consistently.
4426 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4427 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4428 nbsdaout.mt and nbsdelf.mh consistently.
4429 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4430 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4431 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4432 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4433 a.out shared library stuff from here...
4434 * config/nm-nbsdaout.h: ...to here.
4435 * config/tm-nbsd.h: Remove.
4436 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4437 * config/arm/nbsd.mh: Remove.
4438 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4439 nbsd-tdep.o.
4440 * config/arm/nbsdaout.mh: New file.
4441 * config/arm/nbsdelf.mh: New file.
4442 * config/arm/nm-nbsdaout.h: New file.
4443 * config/i386/nbsd.mh: Remove.
4444 * config/i386/nbsd.mt: Remove.
4445 * config/i386/nbsdaout.mh: New file.
4446 * config/i386/nbsdaout.mt: New file.
4447 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4448 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4449 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4450 i386_register_u_addr): Remove.
4451 * config/i386/nm-nbsdaout.h: New file.
4452 * config/i386/nm-nbsdelf.h: Remove.
4453 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4454 (USE_STRUCT_CONVENTION): Remove.
4455 * config/i386/tm-nbsdaout.h: New file.
4456 * config/i386/tm-nbsdelf.h: Remove.
4457 * config/m68k/nbsd.mh: Remove.
4458 * config/m68k/nbsd.mt: Remove.
4459 * config/m68k/nbsdaout.mh: New file.
4460 * config/m68k/nbsdaout.mt: New file.
4461 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4462 * config/m68k/nm-nbsdaout.h: New file.
4463 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4464 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4465 * config/ns32k/nbsd.mh: Remove.
4466 * config/ns32k/nbsd.mt: Remove.
4467 * config/ns32k/nbsdaout.mh: New file.
4468 * config/ns32k/nbsdaout.mt: New file.
4469 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4470 * config/ns32k/nm-nbsdaout.h: New file.
4471 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4472 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4473 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4474 (SVR4_SHARED_LIBS): Remove.
4475 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4476 * config/sparc/nbsd.mh: Remove.
4477 * config/sparc/nbsd.mt: Remove.
4478 * config/sparc/nbsdaout.mh: New file.
4479 * config/sparc/nbsdaout.mt: New file.
4480 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4481 * config/sparc/nbsdelf.mt: New file.
4482 * config/sparc/nm-nbsdaout.h: New file.
4483 * config/sparc/nm-nbsdelf.h: Remove.
4484 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4485 * config/sparc/tm-nbsdaout.h: New file.
4486
4487 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4490 mipsnbsd-tdep.c
4491 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4492
4493 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4494
4495 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4496 shnbsd-nat.c.
4497 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4498
4499 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4500
4501 * NEWS: Note new MIPS NetBSD native configuration.
4502 * configure.host (mips*-*-netbsd*): New host.
4503 * configure.tgt (mips*-*-netbsd*): New target.
4504 * mipsnbsd-nat.c: New file.
4505 * mipsnbsd-tdep.c: New file.
4506 * mipsnbsd-tdep.h: New file.
4507 * config/mips/nbsd.mh: New file.
4508 * config/mips/nbsd.mt: New file.
4509 * config/mips/nm-nbsd.h: New file.
4510 * config/mips/tm-nbsd.h: New file.
4511
4512 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4513
4514 * Makefile.in (SFILES): Add osabi.c.
4515 (COMMON_OBS): Add osabi.o.
4516 (osabi.o): New dependency list.
4517 * osabi.c: New file.
4518 * osabi.h: New file.
4519 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4520
4521 * Makefile.in (alpha_tdep_h): Define and use instead of
4522 alpha-tdep.h.
4523 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4524 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4525 Remove.
4526 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4527 * alpha-tdep.h: Include osabi.h.
4528 (alpha_abi): Remove.
4529 (gdbarch_tdep): Use generic OS ABI framework.
4530 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4531 gdbarch_register_osabi.
4532 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4533 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4534 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4535
4536 * Makefile.in (sh_tdep_h): Add osabi.h.
4537 * sh-tdep.h (sh_osabi): Remove.
4538 (gdbarch_tdep): Use generic OS ABI framework.
4539 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4540 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4541 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4542 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4543
4544 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4545 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4546 gdbarch_register_osabi.
4547 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4548 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4549 (get_elfosabi): Rename to...
4550 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4551 ABI framework support routines.
4552 (arm_gdbarch_init): Use generic OS ABI framework.
4553 (arm_dump_tdep): Likewise.
4554 (_initialize_arm_tdep): Likewise.
4555 * arm-tdep.h: Include osabi.h.
4556 (arm_abi): Remove.
4557 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4558 osabi member.
4559 (arm_gdbarch_register_os_abi): Remove prototype.
4560 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4561 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4562
4563 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4564 * mips-tdep.c: Include osabi.h.
4565 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4566 OS ABI framework.
4567
4568 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4569
4570 * h8300-tdep.c: Fix formatting.
4571
4572 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4573
4574 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4575 printing vector registers.
4576
4577 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4578
4579 From Fernando Nasser:
4580 * remote.c (remote_async_open_1): Re-throw the exception when the
4581 connection fails.
4582 (remote_cisco_open): Ditto.
4583 (remote_open_1): Ditto.
4584
4585 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4586
4587 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4588 (remote_start_remote): Add uiout parameter. Pass through to
4589 remote_start_remote_dummy.
4590 (remote_open_1): Use catch_exception instead of catch_errors.
4591 (remote_async_open_1): Ditto.
4592 (remote_cisco_open): Ditto.
4593
4594 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4595
4596 * remote.c (remote_start_remote): Replace PTR with void pointer.
4597 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4598 static.
4599
4600 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4601
4602 * gdb_indent.sh: Allow the script to be run in the sim directory.
4603
4604 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4605
4606 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4607 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4608
4609 * corelow.c (core_open): Only call set_gdbarch_from_file if
4610 exec_bfd is NULL.
4611
4612 2002-05-17 Andrey Volkov <avolkov@transas.com>
4613
4614 * h8300-tdep.c: Add support of EXR register
4615 * config/h8300/tm-h8300.h: Ditto.
4616
4617 2002-05-17 Andrey Volkov <avolkov@transas.com>
4618
4619 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4620
4621 2002-05-17 Andrey Volkov <avolkov@transas.com>
4622
4623 * h8300-tdep.c: Change literal regnums to REGNO.
4624
4625 2002-05-17 Jim Blandy <jimb@redhat.com>
4626
4627 * NEWS: Note addition of macro support.
4628
4629 Expand preprocessor macros in C expressions.
4630 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4631 (scan_macro_expansion, scanning_macro_expansion,
4632 finished_macro_expansion): New function declarations.
4633 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4634 variable declarations.
4635 * parser-defs.h (expression_context_pc): New declaration.
4636 * parse.c (expression_context_pc): New variable.
4637 (parse_exp_1): Set expression_context_pc, as well as
4638 expression_context_block.
4639 * c-exp.y (yylex): If we're not already reading the result of a
4640 macro expansion, try to macro-expand the next token. When we're
4641 done scanning a macro expansion, switch back to the mainline text.
4642 Commas and `if's in a macro's expansion don't terminate the input.
4643 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4644 (macro_original_text, macro_expanded_text,
4645 expression_macro_lookup_func, expression_macro_lookup_baton): New
4646 variables.
4647 (scan_macro_expansion, scanning_macro_expansion,
4648 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4649 c_preprocess_and_parse): New functions.
4650 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4651 c_preprocess_and_parse, instead of c_parse.
4652 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4653 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4654
4655 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4656
4657 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4658 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4659 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4660
4661 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4662
4663 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4664
4665 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4666
4667 * Makefile.in (sh_tdep_h): Define and use.
4668 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4669 register enum): Move to...
4670 * * sh-tdep.h: ...here.
4671 * sh-tdep.c: Include sh-tdep.h.
4672 * sh3-rom.c: Likewise.
4673 * shnbsd-tdep.c: Likewise.
4674
4675 2002-05-16 Michael Snyder <msnyder@redhat.com>
4676
4677 * arm-tdep.c: Spelling fix in comment.
4678
4679 2002-05-16 Jim Blandy <jimb@redhat.com>
4680
4681 Add commands for manually expanding macros and showing their
4682 definitions.
4683 * macrocmd.c, macroscope.c, macroscope.h: New files.
4684 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4685 (macroscope_h): New variable.
4686 (HFILES_NO_SRCDIR): Add macroscope.h.
4687 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4688 (macroscope.o, macrocmd.o): New rules.
4689
4690 Teach the Dwarf 2 reader to read macro information.
4691 * dwarf2read.c: #include "macrotab.h".
4692 (dwarf_macinfo_buffer): New variable.
4693 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4694 dwarf_macinfo_size.
4695 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4696 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4697 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4698 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4699 dwarf2_macro_spaces_in_definition): New complaints.
4700 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4701 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4702 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4703 the partial symbol table.
4704 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4705 from what's recorded in the partial symbol table.
4706 (read_file_scope): If the compilation unit has a
4707 `DW_AT_macro_info' attribute, read its macro information.
4708 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4709
4710 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4711
4712 Fix PR gdb/546
4713 * ser-tcp.c: Don't include <netinet/udp.h>.
4714
4715 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4716
4717 * MAINTAINERS: Update my email address.
4718
4719 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4720
4721 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4722 include file of the same name.
4723
4724 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4725
4726 * configure.tgt: Mark v850 as multi-arched.
4727 * config/v850/tm-v850.h: Remove file.
4728 * config/v850/v850.mt: Eliminate TM_FILE.
4729
4730 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4731
4732 * v850-tdep.c: Full multi-arch.
4733 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4734 Define GDB_MULTI_ARCH to 2.
4735
4736 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4737
4738 * p-exp.y (current_type): New static variable.
4739 Carries the type of the expression at the position that is parsed.
4740 (push_current_type, pop_current_type): Two new functions. Used
4741 to store/restore current_type in expression on specific tokens.
4742 (search_field): New static variable. Set to one after parsing a point
4743 as at that point only a FIELDNAME token should be searched.
4744 (FIELDNAME): New token. After a point only a token belonging to
4745 current_type type definition is allowed.
4746 (all over token rules): reset and change current_type according
4747 to rules.
4748 (exp '[' rule): insert implicit array index field if
4749 exp is a pascal string type.
4750
4751 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4752
4753 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4754 frame info. Use frame_info's saved_regs instead of matching member
4755 in extra_frame_info throughout.
4756 (v850_frame_init_saved_regs): New function.
4757 (v850_init_extra_frame_info): Move most functionality into
4758 v850_frame_init_saved_regs().
4759 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4760 (v850_frame_find_saved_regs): Remove declaration.
4761 (FRAME_FIND_SAVED_REGS): Remove definition.
4762 (v850_frame_init_saved_regs): Add declaration.
4763 (FRAME_INIT_SAVED_REGS): Add definition.
4764
4765 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4766
4767 * v850-tdep.c: Begin multi-arch'ing v850.
4768 (v850_target_architecture_hook): Remove function.
4769 (v850_gdbarch_init): New function. Add code previously in
4770 v850_target_architecture_hook().
4771 (_initialize_v850_tdep): Don't set target_architecture_hook.
4772 Call register_gdbarch_init() instead.
4773
4774 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4775
4776 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4777 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4778 (fixup_class_method_type): Likewise.
4779
4780 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4781
4782 From Martin Pool <mbp@samba.org>:
4783 * gdbserver/server.c (gdbserver_usage): New function.
4784 (main): Call it.
4785
4786 2002-05-15 Jim Blandy <jimb@redhat.com>
4787
4788 Add macro structures to GDB's symbol tables. Nobody puts anything
4789 in them yet.
4790 * symtab.h (struct symtab): New member: `macro_table'.
4791 * buildsym.h (pending_macros): New global variable.
4792 * buildsym.c: #include "macrotab.h".
4793 (buildsym_init): Initialize `pending_macros'.
4794 (end_symtab): If we found macro information while reading a CU's
4795 debugging info, do build a symtab structure for it. Make the
4796 symtab point to the macro information, and clear the
4797 `pending_macros' pointer which held it while we were reading the
4798 debug info.
4799 (really_free_pendings): Free any pending macro table.
4800 * objfiles.h (struct objfile): New member: `macro_cache'.
4801 * objfiles.c (allocate_objfile): Set allocate and free functions
4802 for the macro cache's objstack.
4803 (free_objfile): Empty the macro cache's obstack.
4804 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4805 set new allocate and free functions for it.
4806 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4807 free functions for the macro cache's objstack. (Why is this
4808 function building its own objfile?)
4809 * symmisc.c (print_objfile_statistics): Print statistics on the
4810 macro bcache.
4811 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4812
4813 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4814
4815 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4816 (REGISTER_U_ADDR): Delete definition.
4817 (arm_register_u_addr): Delete declaration.
4818
4819 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4820
4821 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4822 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4823
4824 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4825
4826 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4827 stop_at -> stop_pc.
4828
4829 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4830
4831 * regcache.c (register_valid): Revise comments refering to "Not
4832 available" and "unavailable".
4833 * frame.c (frame_register_read): Ditto.
4834 * findvar.c (value_of_register): Ditto.
4835
4836 2002-05-15 Andrew Cagney <cagney@redhat.com>
4837
4838 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4839 (remote-sim.o): Update dependencies.
4840 (d10v-tdep.o): Specify dependencies.
4841 (sim_d10v_h): Define.
4842
4843 2002-05-14 Jim Blandy <jimb@redhat.com>
4844
4845 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4846 * macrotab.c (macro_lookup_inclusion, find_definition,
4847 new_macro_table): Same.
4848
4849 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4850 not `! strcmp ()'. This is a dubious improvement.
4851 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4852
4853 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4854 although it's not necessary, to avoid a warning.
4855
4856 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4857
4858 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4859 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4860 TYPE_INSTANCE_FLAGS.
4861 (struct main_type): New.
4862 (struct type): Move most members to struct main_type. Change
4863 cv_type and as_type to new type_chain member. Add instance_flags.
4864 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4865 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4866 (finish_cv_type): Remove prototype.
4867 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4868 Set TYPE_CHAIN.
4869 (alloc_type_instance): New function.
4870 (smash_type): New function.
4871 (make_pointer_type, make_reference_type, make_function_type)
4872 (smash_to_member_type, smash_to_method_type): Call smash_type.
4873 (make_qualified_type): New function.
4874 (make_type_with_address_space): Call make_qualified_type.
4875 (make_cv_type): Likewise.
4876 (finish_cv_type): Remove unnecessary function.
4877 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4878 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4879 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4880 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4881 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4882 * hpread.c (hpread_read_struct_type): Likewise.
4883 * stabsread.c (read_struct_type): Likewise.
4884
4885 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4886
4887 * configure.tgt: Add a catch all sh* target, for cases like
4888 sh[2,3,4]-elf and sh-hms.
4889
4890 2002-05-14 Keith Seitz <keiths@redhat.com>
4891
4892 * event-loop.c (create_file_handler): Don't do anything but
4893 update data when we are given a fd which we are already
4894 monitoring.
4895
4896 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4897
4898 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4899 (update_context): Use __func__ in warnings.
4900
4901 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4902
4903 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4904 and tcp_close to net_open and net_close.
4905 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4906 using UDP if requested. Don't try to disable Nagle on UDP
4907 sockets.
4908 * remote.c (remote_serial_open): New function. Warn about UDP.
4909 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4910
4911 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4912
4913 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4914
4915 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4916
4917 * configure.tgt: Remove sh-hms target.
4918 * MAINTAINERS: Don't list sh-hms as a separate target.
4919
4920 2002-05-13 Jim Blandy <jimb@redhat.com>
4921
4922 Add first preprocessor macro-expansion files.
4923 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4924 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4925 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4926 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4927 (COMMON_OBS): Add macrotab.o, macroexp.o.
4928 (macroexp.o, macrotab.o): New rules.
4929
4930 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4931
4932 * config/m88k/tm-m88k.h: Update copyright.
4933 (m88k_target_write_pc): Declare
4934 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4935 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4936 (SHIFT_INST_REGS): Update definition.
4937 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4938 using old definition of TARGET_WRITE_PC.
4939 * regcache.c (generic_target_write_pc): Delete code handling
4940 NNPC_REGNUM.
4941 * gdbarch.sh (NNPC_REGNUM): Delete.
4942 * gdbarch.h, gdbarch.c: Regenerate.
4943
4944 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4945
4946 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4947 builtin reg number.
4948
4949 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4950
4951 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4952 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4953 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4954 access macros.
4955 * c-typeprint.c (cp_type_print_method_args): Likewise.
4956 (c_type_print_args): Likewise.
4957 * d10v-tdep.c (d10v_push_arguments): Likewise.
4958 (d10v_extract_return_value): Likewise.
4959 * expprint.c (print_subexp): Likewise.
4960 * gdbtypes.c (lookup_primitive_typename): Likewise.
4961 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4962 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4963 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4964 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4965 (TYPE_VECTOR): Likewise.
4966 * hpread.c (hpread_read_struct_type)
4967 (fix_static_member_physnames, fixup_class_method_type)
4968 (hpread_type_lookup): Likewise.
4969 * mdebugread.c (parse_symbol, parse_type): Likewise.
4970 * p-lang.c (is_pascal_string_type): Likewise.
4971 * valops.c (hand_function_call): Likewise.
4972 * x86-64-tdep.c (classify_argument): Likewise.
4973
4974 * hpread.c (hpread_read_function_type)
4975 (hpread_read_doc_function_type): Call replace_type.
4976 * dstread.c (create_new_type): Delete.
4977 (decode_dst_structure, process_dst_function): Call alloc_type.
4978 Use type access macros.
4979
4980 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4981
4982 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4983 the're not supported by the current architecture.
4984 (i387_fill_fxsave): Likewise.
4985
4986 2002-05-12 Fred Fish <fnf@redhat.com>
4987
4988 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4989 sect_index_xxx members to index the first slot in section_offsets
4990 if all of the section_offsets are zero.
4991
4992 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4993
4994 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4995 checked in with last change.
4996
4997 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4998
4999 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5000 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5001 config.sub.
5002
5003 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5004
5005 * Makefile.in: Update dependencies.
5006
5007 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5008
5009 * language.c (local_hex_string_custom): Simplify. Do not depend
5010 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5011
5012 * memattr.c (mem_info_command): Replace calls to
5013 longest_local_hex_string and longest_local_hex_string_custom.
5014 * buildsym.c (make_blockvector): Ditto.
5015 * solib.c (info_sharedlibrary_command): Ditto.
5016 * tracepoint.c (tracepoints_info): Ditto.
5017 * symtab.c (print_msymbol_info): Ditto.
5018
5019 * language.c (local_hex_string): Delete.
5020 (local_hex_string_custom): Delete.
5021 (longest_local_hex_string): Rename to local_hex_string.
5022 (longest_local_hex_string_custom): Rename to
5023 local_hex_string_custom.
5024 * language.h (local_hex_string): Change parameter type to LONGEST.
5025 (local_hex_string_custom): Ditto.
5026 (longest_local_hex_string): Delete declaration.
5027 (longest_local_hex_string_custom): Ditto.
5028
5029 * solib.c: Update copyright.
5030 * memattr.c: Update copyright.
5031
5032 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5033
5034 * arch-utils.h (legacy_register_to_value): Declare.
5035 (legacy_value_to_register): Declare.
5036 (legacy_convert_register_p): Declare.
5037 * arch-utils.c (legacy_register_to_value): New function.
5038 (legacy_value_to_register): New function.
5039 (legacy_convert_register_p): New function.
5040
5041 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5042 (VALUE_TO_REGISTER): Define.
5043 (CONVERT_REGISTER_P): Define.
5044 * gdbarch.h, gdbarch.c: Regenerate.
5045
5046 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5047 VALUE_TO_REGISTER.
5048 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5049 CONVERT_REGISTER_P.
5050
5051 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5052 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5053
5054 * Makefile.in: Update dependencies for valops.c.
5055 * valops.c: Include "gdb_assert.h".
5056 (typecmp): Skip THIS parameter to methods.
5057 (find_method_list): Remove static_memfuncp argument,
5058 update callers. Check for stub methods.
5059 (find_value_oload_method_list): Don't set *static_memfuncp.
5060 (find_overload_match): Don't check for stub methods. Assert
5061 that methods are not stubbed. Handle static methods.
5062 (value_find_oload_method_list): Remove static_memfuncp argument.
5063 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5064 to the argument list for static stub methods.
5065 * value.h (value_find_oload_method_list): Update prototype.
5066
5067 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5068
5069 * arch-utils.h (generic_register_size): Declare.
5070 (generic_register_raw_size, generic_register_virtual_size): Delete
5071 declarations.
5072 * arch-utils.c (generic_register_raw_size): Delete.
5073 (generic_register_size): New function.
5074 (generic_register_virtual_size): Delete.
5075
5076 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5077 default generic_register_size.
5078 * gdbarch.h, gdbarch.c: Re-generate.
5079
5080 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5081 register_virtual_size.
5082 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5084
5085 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5086
5087 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5088 * gdbarch.h, gdbarch.c: Regenerate.
5089 * gnu-v3-abi.c: Update copyright.
5090 (vtable_address_point_offset): Update.
5091 (gnuv3_rtti_type): Update.
5092 (gnuv3_baseclass_offset): Update.
5093 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5094 (init_fetch_link_map_offsets): Update.
5095 * remote.c (get_remote_state): Update.
5096
5097 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5098
5099 * TODO: Remove value_headof/value_from_vtable_info comment.
5100 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5101 * values.c (value_headof, value_from_vtable_info): Delete.
5102 * value.h (value_from_vtable_info): Delete prototype.
5103
5104 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5105
5106 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5107 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5108 $(gdb_regex_h).
5109 (gdb_assert_h): Define.
5110 (gdb_wait_h): Define.
5111 (gdb_regex_h): Define.
5112
5113 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5114
5115 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5116 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5117
5118 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5119
5120 * nbsd-tdep.c: Fix comment.
5121
5122 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5123
5124 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5125 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5126 (nbsd-tdep.o): New dependency list.
5127 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5128 nbsd-tdep.h.
5129 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5130 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5131 * nbsd-tdep.c: New file.
5132 * nbsd-tdep.h: New file.
5133 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5134 nbsd-tdep.h.
5135 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5136 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5137 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5138 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5139
5140 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5141
5142 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5143 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5144 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5145 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5146 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5147 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5148
5149 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5150
5151 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5152 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5153 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5154 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5155 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5156 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5157 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5158
5159 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5162 fetch_elfcore_registers to...
5163 * i386nbsd-tdep.c: ...here.
5164 (i386nbsd_use_struct_convention): Rename to...
5165 (i386nbsd_aout_use_struct_convention): ...this.
5166 (i386nbsd_supply_reg): New function.
5167 (i386nbsd_fill_reg): New function.
5168 (fetch_core_registers): Use i386nbsd_supply_reg.
5169 (fetch_elfcore_registers): Likewise.
5170 (_initialize_i386nbsd_tdep): New function.
5171 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5172 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5173 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5174 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5175 (i386nbsd_aout_use_struct_convention): ...this.
5176
5177 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5178
5179 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5180 (store_inferior_registers): Use shnbsd_fill_reg.
5181 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5182 sh_nbsd_supply_register): Collapse into...
5183 (shnbsd_supply_reg): ...this.
5184 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5185 (shnbsd_fill_reg): ...this.
5186 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5187 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5188 (fetch_core_registers): Use shnbsd_supply_reg.
5189 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5190 (sh_nbsd_core_fns): Rename to...
5191 (shnbsd_core_fns): ...this.
5192 (sh_nbsd_elfcore_fns): Rename to...
5193 (shnbsd_elfcore_fns): ...this.
5194 (sh_nbsd_init_abi): Rename to...
5195 (shnbsd_init_abi): ...this.
5196 (_initialize_sh_nbsd_tdep): Rename to...
5197 (_initialize_shnbsd_tdep): ...this.
5198 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5199 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5200 sh_nbsd_fill_register): Remove prototypes.
5201 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5202
5203 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5204
5205 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5206 (i387-nat.o): Delete dependency list.
5207 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5208 (x86-64-linux-nat.o): Likewise.
5209 * i387-nat.c: Delete file, moving contents to...
5210 * i387-tdep.c: ...here.
5211 * i387-nat.h: Rename...
5212 * i387-tdep.h: ...to this.
5213 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5214 * i386-linux-nat.c: Likewise.
5215 * i386bsd-nat.c: Likewise.
5216 * i386gnu-nat.c: Likewise.
5217 * i386nbsd-nat.c: Likewise.
5218 * i386v4-nat.c: Likewise.
5219 * x86-64-linux-nat.c: Likewise.
5220 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5221 * config/i386/go32.mh (NATDEPFILES): Likewise.
5222 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5223 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5224 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5225 * config/i386/linux.mh (NATDEPFILES): Likewise.
5226 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5227 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5228 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5229 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5230
5231 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5232
5233 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5234 (alphanbsd-nat.o): Remove dependency list.
5235 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5236 * alphanbsd-nat.c: Delete. Contents moved to...
5237 * alphanbsd-tdep.c: ...here.
5238 (_initialize_alphanbsd_tdep): Register core functions.
5239 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5240
5241 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5242
5243 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5244 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5245 (alphanbsd-nat.o): Likewise.
5246 (alphabsd-tdep.o): New dependency list.
5247 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5248 (fill_gregset): Use alphabsd_fill_reg.
5249 (supply_fpregset): Use alphabsd_supply_fpreg.
5250 (fill_fpregset): Use alphabsd_fill_fpreg.
5251 (fetch_inferior_registers): Use struct reg and struct fpreg
5252 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5253 and alphabsd_supply_fpreg.
5254 (store_inferior_registers): Use struct reg and struct fpreg
5255 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5256 and alphabsd_fill_fpreg.
5257 * alphabsd-tdep.c: New file.
5258 * alphabsd-tdep.h: New file.
5259 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5260 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5261 alphabsd_supply_fpreg.
5262 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5263 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5264
5265 2002-05-11 Eric Christopher <echristo@redhat.com>
5266
5267 * mips-tdep.c (mips_double_register_type): Fix thinko.
5268 (mips_single_register_type): Ditto.
5269 * MAINTAINERS: Add self.
5270
5271 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5272
5273 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5274 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5275 right thing on architectures with different endianness and/or
5276 integer sizes.
5277
5278 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5279
5280 From Christian Limpach <chris@Pin.LU>
5281 * configure.in: Change sed expression which comments out
5282 NATDEPFILES to also comment out continuation lines.
5283 * configure: Regenerate.
5284
5285 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5286
5287 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5288 big patch.
5289
5290 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5291
5292 * sh-tdep.c: Include correct file.
5293
5294 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5295
5296 New support for sh64-elf (sh5) target.
5297
5298 * configure.tgt: For sh64-elf target, default to sh-elf.
5299
5300 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5301 (struct gdbarch_tdep): Add new fields for new registers and ABI
5302 info.
5303
5304 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5305 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5306 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5307 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5308 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5309 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5310 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5311 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5312 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5313 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5314 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5315 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5316 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5317 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5318 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5319 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5320 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5321 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5322 sign_extend, sh64_nofp_frame_init_saved_regs,
5323 sh64_init_extra_frame_info, sh64_get_saved_register,
5324 sh64_extract_struct_value_address, sh64_pop_frame,
5325 sh64_push_arguments, sh64_extract_return_value,
5326 sh64_store_return_value, sh64_show_media_regs,
5327 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5328 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5329 sh_sh64_register_virtual_type,
5330 sh_sh64_register_convert_to_virtual,
5331 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5332 sh64_register_read, sh64_pseudo_register_write,
5333 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5334 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5335 sh64_do_pseudo_register, sh_compact_do_registers_info,
5336 sh64_do_registers_info, sh_gdbarch_init): New functions.
5337
5338 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5339
5340 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5341
5342 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5343
5344 * linespec.c (decode_line_1): Check for a double quote after
5345 a filename correctly.
5346
5347 2002-05-10 Jim Blandy <jimb@redhat.com>
5348
5349 Properly track the size of the current objfile's .debug_line section.
5350 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5351 (DWARF_LINE_SIZE): New macro.
5352 (dwarf2_build_psymtabs_hard): Record the line section's size in
5353 the partial symbol table.
5354 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5355 symbol table.
5356
5357 2002-05-10 Petr Sorfa <petrs@caldera.com>
5358
5359 * ia64-tdep.c: Handle breakpoints on L instruction type
5360 in MLX instruction bundle by moving the breakpoint to
5361 the third slot (X instruction type) as L holds only data.
5362
5363 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5364
5365 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5366 (process_one_symbol): Complain about discarding local symbols
5367 due to a misplaced N_LBRAC entry.
5368
5369 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5370
5371 From Daniel Berlin <dan@cgsoftware.com>
5372 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5373 decrease the depth we are at, in the case of templates.
5374
5375 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5376
5377 * mips-tdep.c (mips_float_register_type): New function.
5378 (mips_double_register_type): New function.
5379 (mips_print_register): Use them.
5380 (do_fp_register_row): Likewise.
5381
5382 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5383
5384 * signals/signals.c (signals): Remove conditional compilation around
5385 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5386 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5387
5388 2002-05-09 Michael Snyder <msnyder@redhat.com>
5389
5390 * remote-rdp.c (remote_rdp_can_run): Remove.
5391
5392 2002-05-09 Tom Tromey <tromey@redhat.com>
5393
5394 * jv-valprint.c (java_val_print): Handle `char' as a special case
5395 of TYPE_CODE_INT.
5396
5397 2002-05-09 Michael Snyder <msnyder@redhat.com>
5398
5399 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5400 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5401 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5402 str r(0123),[sp,#nn].
5403 (arm_skip_prologue): Ditto. Also make disassembly
5404 order-independent by placing it in a loop.
5405
5406 2002-05-06 Michael Snyder <msnyder@redhat.com>
5407
5408 * stabsread.c (read_type): Add recognition for new attribute:
5409 "@V;" means that an array type is actually a vector.
5410 This is analogous to the vector flag that's been added to dwarf2.
5411
5412 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5413
5414 * i386-tdep.h (i386_abi): New enum.
5415 (struct gdbarch_tdep): Replace os_ident member with abi.
5416 (i386_gdbarch_register_os_abi): New prototype.
5417 * i386-tdep.c (i386_abi_names): New array.
5418 (process_note_abi_tag_sections): Removed.
5419 (process_note_sections): New function.
5420 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5421 (struct i386_abi_handler): New struct.
5422 (i386_abi_handler_list): New variable.
5423 (i386_gdbarch_register_os_abi): New function.
5424 (i386_gdbarch_init): Adapt for the changes given above.
5425
5426 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5427
5428 * gregset.h: Say "GNU/Linux".
5429
5430 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5431
5432 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5433 (build_gdbtypes): Build builtin_type_v2_float.
5434 (_initialize_gdbtypes): Register new builtin type.
5435
5436 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5437
5438 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5439 (clear_gdbarch_swap): New function.
5440 (initialize_non_multiarch): Call.
5441 (gdbarch_update_p): Before calling init(), swap out and clear the
5442 existing architecture.
5443 * gdbarch.c: Regenerate.
5444
5445 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5446
5447 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5448 alphanbsd-tdep.c.
5449
5450 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5451
5452 * sh-nbsd-nat.c: Rename to...
5453 * shnbsd-nat.c: ...this.
5454 * sh-nbsd-tdep.c: Rename to...
5455 * shnbsd-tdep.c: ...this.
5456 * sh-nbsd-tdep.h: Rename to...
5457 * shnbsd-tdep.h: ...this.
5458 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5459 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5460
5461 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5462
5463 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5464 concatenation for command help messages.
5465
5466 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5467
5468 * NEWS: Note new sh*-*-netbsdelf* configuration.
5469 * configure.host: Set gdb_host_cpu to sh for all sh*.
5470 (sh*-*-netbsdelf*): New host.
5471 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5472 (sh*-*-netbsdelf*): New target.
5473 * sh-nbsd-nat.c: New file.
5474 * sh-nbsd-tdep.c: New file.
5475 * sh-nbsd-tdep.h: New file.
5476 * config/sh/nbsd.mh: New file.
5477 * config/sh/nbsd.mt: New file.
5478 * config/sh/nm-nbsd.h: New file.
5479 * config/sh/tm-nbsd.h: New file.
5480
5481 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5482
5483 * sh-tdep.c (sh_osabi_names): Declare.
5484 (process_note_abi_tag_sections): New function.
5485 (get_elfosabi): Ditto.
5486 (sh_gdbarch_register_os_abi): Ditto.
5487 (sh_dump_tdep): Ditto.
5488 _initialize_sh_tdep): Use gdbarch_register to register
5489 sh_gdbarch_init and sh_dump_tdep.
5490 * config/sh/tm-sh.h (sh_osabi): Declare.
5491 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5492
5493 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5494
5495 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5496 (thumb_scan_prologue): Ditto.
5497 (arm_find_callers_reg): Ditto.
5498 (arm_frame_chain): Ditto.
5499 (arm_init_extra_frame_info): Ditto.
5500 (arm_frame_saved_pc): Ditto.
5501 (arm_pop_frame): Ditto.
5502 (arm_push_return_address): New function.
5503 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5504 call_dummy_location, call_dummy_breakpoint_offset_p,
5505 call_dummy_breakpoint_offset, call_dummy_p,
5506 call_dummy_stack_adjust_p, call_dummy_words,
5507 sizeof_call_dummy_words, call_dummy_start_offset,
5508 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5509 call_dummy_address, push_return_address and push_dummy_frame for
5510 generic dummy frames.
5511
5512 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5515 size computation for alloca.
5516 (sh_fp_frame_init_saved_regs): Likewise.
5517
5518 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5519
5520 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5521 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5522 * arm-tdep.c (arm_store_return_value): Use them.
5523 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5524 * remote-rdp.c (remote_rdp_fetch_register): Use
5525 ARM_MAX_REGISTER_RAW_SIZE.
5526 (remote_rdp_store_register): Likewise.
5527
5528 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5529
5530 * dwarf2cfi.c: Code cleanup, removed unused variables,
5531 added default labels to switch {} statements.
5532 * x86-64-tdep.c: Ditto.
5533 * x86-64-linux-nat.c: Ditto.
5534
5535 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5536
5537 * solib.h: Protect against multiple inclusion.
5538
5539 2002-05-06 Jim Blandy <jimb@redhat.com>
5540
5541 Add first preprocessor macro-expansion files.
5542 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5543 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5544 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5545 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5546 (COMMON_OBS): Add macrotab.o, macroexp.o.
5547 (macroexp.o, macrotab.o): New rules.
5548
5549 Separate the job of reading the line number info statement program
5550 header (...expialidocious) out into its own function.
5551 * dwarf2read.c (struct line_head, struct filenames, struct
5552 directories): Replace with...
5553 (struct line_header): New structure, containing the full
5554 contents of the statement program header, including the
5555 include directory and file name tables.
5556 (read_file_scope): If we have line number info, instead of just
5557 calling dwarf_decode_lines to do all the work, call
5558 dwarf_decode_line_header first to get a `struct line_header'
5559 containing the data in the statement program header, and then
5560 pass that to dwarf_decode_lines, which will pick up where that
5561 left off. Be sure to clean up the `struct line_header' object.
5562 (dwarf_decode_line_header, free_line_header, add_include_dir,
5563 add_file_name): New functions.
5564 (dwarf_decode_lines): Move all the code to read the statement
5565 program header into dwarf_decode_line_header. Take the line
5566 header it built as the first argument, instead of the offset to
5567 the compilation unit's line number info. Use the new `struct
5568 line_header' type instead of the old structures. No need to do
5569 cleanups here now, since we don't allocate anything.
5570 (dwarf2_statement_list_fits_in_line_number_section,
5571 dwarf2_line_header_too_long): New complaints.
5572
5573 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5574
5575 * gdbtypes.c (init_vector_type): New function.
5576 (build_builtin_type_vec128): Simplify the representation of SIMD
5577 registers.
5578 (build_gdbtypes): Initialize new builtin vector types.
5579 (_initialize_gdbtypes): Register new vector types with gdbarch.
5580 (builtin_type_v4_float, builtin_type_v4_int32,
5581 builtin_type_v8_int16, builtin_type_v16_int8,
5582 builtin_type_v2_int32, builtin_type_v4_int16,
5583 builtin_type_v8_int8): New (renamed) SIMD types.
5584
5585 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5586
5587 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5588 (i387_fill_fxsave): Likewise.
5589
5590 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5591
5592 * alpha-tdep.c (alpha_extract_return_value): Don't use
5593 non-constant array size in prototype.
5594
5595 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5596
5597 From Brian Taylor <briant at model dot com>:
5598 * ui-out.c (ui_out_field_core_addr): Use the function
5599 longest_local_hex_string_custom'to format addresses > 32 bits
5600 wide.
5601
5602 * ui-out.c (ui_out_field_core_addr): Update comment.
5603
5604 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5605
5606 * stack.c (select_and_print_frame): Make static. Delete the
5607 parameter `level'.
5608 (func_command): Update call.
5609 (select_frame_command): Delete code computing the frame level.
5610 * frame.h (select_and_print_frame): Delete declaration.
5611
5612 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5613
5614 * sparc-tdep.c (sparc_get_saved_register): Comment why
5615 get_prev_frame call is safe.
5616
5617 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5618
5619 * frame.h (select_frame): Delete level parameter.
5620 * stack.c (select_frame): Update. Use frame_relative_level to
5621 obtain the frame's level.
5622 (select_and_print_frame): Update call.
5623 (select_frame_command): Ditto.
5624 (up_silently_base): Ditto.
5625 (down_silently_base): Ditto.
5626 * ocd.c (ocd_start_remote): Ditto.
5627 * remote-rdp.c (remote_rdp_open): Ditto.
5628 * remote-mips.c (mips_initialize): Ditto.
5629 (common_open): Ditto.
5630 * remote-e7000.c (e7000_start_remote): Ditto.
5631 * m3-nat.c (select_thread): Ditto.
5632 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5633 (child_get_current_exception_event): Ditto.
5634 * varobj.c (varobj_create): Ditto.
5635 (varobj_update): Ditto.
5636 (c_value_of_root): Ditto.
5637 * tracepoint.c (finish_tfind_command): Ditto.
5638 * corelow.c (core_open): Ditto.
5639 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5640 * thread.c (info_threads_command): Ditto.
5641 (switch_to_thread): Ditto.
5642 * infrun.c (normal_stop): Ditto.
5643 (restore_selected_frame): Ditto.
5644 (restore_inferior_status): Ditto.
5645 * breakpoint.c (insert_breakpoints): Ditto.
5646 (watchpoint_check): Ditto.
5647 (bpstat_stop_status): Ditto.
5648 (do_enable_breakpoint): Ditto.
5649 * blockframe.c (flush_cached_frames): Ditto.
5650 (reinit_frame_cache): Ditto.
5651
5652 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5653
5654 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5655 maintainer.
5656
5657 2002-05-04 Jim Blandy <jimb@redhat.com>
5658
5659 * gdbtypes.c (replace_type): Doc fix.
5660
5661 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5662
5663 * valprint.c (strcat_longest): Delete commented out function.
5664 Update copyright.
5665
5666 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5667
5668 * MAINTAINERS: Mark a29k as deleted.
5669 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5670 Move new configurations to the top.
5671 * configure.tgt: Remove a29k.
5672 * config/a29k/tm-vx29k.h: Delete.
5673 * config/a29k/vx29k.mt: Delete.
5674 * config/a29k/tm-a29k.h: Delete.
5675 * config/a29k/a29k-udi.mt: Delete.
5676 * config/a29k/a29k.mt: Delete.
5677 * a29k-tdep.c: Delete.
5678 * remote-udi.c: Delete.
5679 * remote-mm.c: Delete.
5680 * remote-eb.c: Delete.
5681 * remote-adapt.c: Delete.
5682 * Makefile.in: Remove obsolete code.
5683 * gdbserver/Makefile.in: Ditto.
5684 * config/s390/s390x.mt: Ditto.
5685 * config/s390/s390.mt: Ditto.
5686 * config/sparc/sparclynx.mh: Ditto.
5687 * config/sparc/linux.mh: Ditto.
5688 * config/pa/hppaosf.mh: Ditto.
5689 * config/pa/hppabsd.mh: Ditto.
5690 * config/ns32k/nbsd.mt: Ditto.
5691 * config/mips/vr5000.mt: Ditto.
5692 * config/m68k/sun3os4.mh: Ditto.
5693 * config/m68k/nbsd.mt: Ditto.
5694 * config/m68k/m68klynx.mh: Ditto.
5695 * config/m32r/m32r.mt: Ditto.
5696 * config/i386/x86-64linux.mt: Ditto.
5697 * config/i386/nbsdelf.mt: Ditto.
5698 * config/i386/nbsd.mt: Ditto.
5699 * config/i386/i386lynx.mh: Ditto.
5700
5701 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5702
5703 * target.c (debug_print_register): New function. Handle oversize
5704 registers.
5705 (debug_to_fetch_registers): Call.
5706 (debug_to_store_registers): Call.
5707
5708 2002-05-03 Jim Blandy <jimb@redhat.com>
5709
5710 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5711 (read_type): Doc fix.
5712 * gdbtypes.c (replace_type): Doc fix.
5713
5714 * stabsread.c (multiply_defined_struct): New complaint.
5715 (read_struct_type): If the type we were passed isn't empty, or
5716 incomplete, don't read the new struct type into it; complain,
5717 and return the original type unchanged. Take a new `type_code'
5718 argument, which is the type code for the new type.
5719 (read_type): Rather than storing the type's type code here, pass
5720 it as an argument to read_struct_type, and let that take care of
5721 storing it. That way, we don't overwrite the original type code,
5722 so read_struct_type can use it to decide whether we're overwriting
5723 something we shouldn't.
5724 (complain_about_struct_wipeout): New function.
5725
5726 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5727
5728 * gdbarch.sh: Assert that gdbarch is non-NULL.
5729 * gdbarch.c: Regenerate.
5730
5731 2002-05-03 Jason Merrill <jason@redhat.com>
5732
5733 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5734 and return NULL.
5735
5736 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5737
5738 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5739 (x86_64_dwarf2gdb_regno_map_length),
5740 (x86_64_dwarf2_reg_to_regnum): Added.
5741 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5742 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5743 (_initialize_x86_64_tdep): Synced with the change above.
5744 (x86_64_skip_prologue): Reformulated message.
5745
5746 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5747
5748 * f-exp.y: Also use new prev_lexptr variable
5749 to improve error reporting. Based on Michael Snyder
5750 2002-04-24 dated patch to c-exp.y.
5751 * jv-exp.y: Likewise.
5752 * m2-exp.y: Likewise.
5753
5754 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5755
5756 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5757 we are dealing with vectors.
5758
5759 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5760
5761 * config/m68k/tm-nbsd.h: Obvious fix,
5762 correct machine name.
5763
5764 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5765
5766 * p-typeprint.c (pascal_type_print_base): Add support
5767 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5768
5769 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5770
5771 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5772 for fondamental pascal 'char' type.
5773
5774 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5775
5776 * p-lang.h (is_pascal_string_type): Declaration changed,
5777 new sixth argument of type char ** added.
5778 * p-lang.c (is_pascal_string_type): Implementation
5779 changed. Args length_pos, length_size, string_pos, char_size
5780 can now be NULL. New argument arrayname set to the field
5781 name of the char array. Return value set to char array
5782 field index plus one.
5783 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5784 is_pascal_string_type function.
5785
5786 2002-05-02 Andrew Cagney <cagney@redhat.com>
5787
5788 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5789 <cagney@redhat.com> change.
5790 * gdbarch.c: Regenerate.
5791
5792 2002-05-02 Andrew Cagney <cagney@redhat.com>
5793
5794 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5795 before probing for a new one. Detect errorenous gdbarch_init
5796 functions.
5797 * gdbarch.c: Regenerate.
5798
5799 2002-05-01 Andrew Cagney <cagney@redhat.com>
5800
5801 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5802 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5803 * config/v850/tm-v850.h: Ditto. Update copyright.
5804
5805 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5806
5807 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5808 current_gdbarch.
5809
5810 2002-04-30 Michael Snyder <msnyder@redhat.com>
5811
5812 * arm-tdep.c: Whitespace clean-ups.
5813 (arm_skip_prologue): Fix thinko; two lines
5814 should have been removed as part of 4/24 change.
5815
5816 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5817
5818 * rs6000-tdep.c: Added comment describing how fpscr register
5819 numbers were chosen.
5820
5821 2002-04-30 Michael Snyder <msnyder@redhat.com>
5822
5823 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5824
5825 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5826
5827 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5828 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5829 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5830
5831 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5832
5833 From Louis Hamilton <hamilton@redhat.com>:
5834 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5835 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5836 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5837 not bfd-private xcoff data, to determine wordsize.
5838 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5839
5840 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5841
5842 GDB 5.2 released from 5.2 branch.
5843
5844 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5845
5846 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5847 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5848 (x86_64_register_info_table): Added comments with register numbers.
5849
5850 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5851
5852 * rs6000-tdep.c (rs6000_extract_return_value,
5853 rs6000_store_return_value): Handle returning vectors.
5854 (rs6000_gdbarch_init): Use
5855 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5856 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5857 New function.
5858 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5859 vectors.
5860 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5861 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5862
5863 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5864
5865 * hpread.c (hpread_psymtab_to_symtab_1,
5866 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5867 with fprintf_unfiltered (gdb_stderr,...).
5868
5869 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5870
5871 * remote-array.c (printf_monitor, write_monitor,
5872 array_insert_breakpoint, array_remove_breakpoint ):
5873 Replace fprintf (stderr,...
5874 with fprintf_unfiltered (gdb_stderr,....
5875 * remote-es.c: Likewise.
5876 * remote-os9k.c: Likewise.
5877 * remote-st.c: Likewise.
5878
5879 2002-04-28 Andreas Schwab <schwab@suse.de>
5880
5881 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5882 linux-proc.o and gcore.o.
5883
5884 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5885
5886 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5887 code without frame pointers.
5888
5889 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5890
5891 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5892 ON_STACK is needed.
5893
5894 2002-04-26 Ben Elliston <bje@redhat.com>
5895
5896 * target.c (do_xfer_memory): Correct reference to the new option
5897 "trust-readonly-sections".
5898
5899 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5900
5901 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5902 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5903 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5904 vectors.
5905 (read_array_type): Record the fact that this array type is really a
5906 vector (i.e. are passed in by value).
5907
5908 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5909
5910 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5911 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5912 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5913 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5914 * alpha-linux-tdep.c: Include frame.h.
5915 (alpha_linux_sigcontext_addr): New function.
5916 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5917 alpha_linux_sigcontext_addr.
5918 * alpha-osf1-tdep.c: Include gdbcore.h.
5919 (alpha_osf1_sigcontext_addr): New function.
5920 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5921 alpha_osf1_sigcontext_addr.
5922 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5923 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5924
5925 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5926
5927 * stack.c (selected_frame_level):
5928 (select_frame): Do not set selected_frame_level.
5929 * frame.h (selected_frame_level): Delete declaration.
5930
5931 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5932
5933 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5934 convert_from_func_ptr-addr when AIX / PowerOpen.
5935
5936 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5937
5938 * valops.c (hand_function_call): Call
5939 generic_save_call_dummy_addr.
5940 * frame.h (generic_save_call_dummy_addr): Declare.
5941 * blockframe.c (struct dummy_frame): Add fields call_lo and
5942 call_hi.
5943 (generic_find_dummy_frame): Check for PC in range call_lo to
5944 call_hi instead of entry_point_address.
5945 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5946 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5947 (generic_save_call_dummy_addr): New function.
5948
5949 2002-04-24 David S. Miller <davem@redhat.com>
5950
5951 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5952 sparc_skip_prologue.
5953 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5954 information to find prologue when possible.
5955 (sparc_prologue_frameless_p): Call examine_prologue directly.
5956 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5957 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5958 second argument.
5959 (SKIP_PROLOGUE): Likewise.
5960
5961 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5962
5963 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5964 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5965 indicate that the condition it was testing is always true.
5966 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5967 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5968 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5969
5970 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5973 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5974 tdep->jb_pc and tdep->jb_elt_size.
5975 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5976 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5977 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5978 * alpha-nat.c (get_longjmp_target): Remove.
5979 (JB_ELEMENT_SIZE): Ditto.
5980 (JB_PC): Ditto.
5981 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5982 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5983 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5984 to alpha_get_longjmp_target.
5985 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5986 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5987 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5988
5989 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5990
5991 * README: Update to GDB 5.2.
5992
5993 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5994
5995 * gdbarch.sh (LC_ALL): Set to `c'.
5996
5997 2002-04-25 Theodore A. Roth <troth@verinet.com>
5998
5999 * avr-tdep.c: Ran through gdb_indent.sh.
6000
6001 2002-04-25 Theodore A. Roth <troth@verinet.com>
6002
6003 * MAINTAINERS: Add myself as AVR maintainer.
6004 * NEWS: Note new target avr.
6005
6006 2002-04-25 Theodore A. Roth <troth@verinet.com>
6007
6008 * Makefile.in: Add support for AVR target.
6009 * configure.tgt: Add support for AVR target.
6010 * avr-tdep.c: New file
6011 * config/avr/avr.mt: New file.
6012
6013 2002-04-25 Theodore A. Roth <troth@verinet.com>
6014
6015 * MAINTAINERS: Add myself to write-after-approval.
6016
6017 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6018
6019 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6020 with fprintf_unfiltered (gdb_stderr,....
6021
6022 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6023
6024 Fix PR gdb/508.
6025 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6026
6027 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6028
6029 * p-exp.y: Also use new prev_lexptr variable
6030 to improve error reporting. Based on Michael Snyder
6031 2002-04-24 dated patch to c-exp.y.
6032
6033 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6036 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6037 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6038 to 0.
6039 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6040 and struct value.
6041 (FUNCTION_START_OFFSET): Remove.
6042 (BREAKPOINT): Ditto.
6043
6044 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6045
6046 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6047 * NEWS: Ditto.
6048
6049 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6050
6051 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6052 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6053 alpha_linux_pc_in_sigtramp.
6054 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6055 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6056 alpha_osf1_pc_in_sigtramp.
6057 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6058 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6059 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6060 alphafbsd_pc_in_sigtramp.
6061 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6062 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6063 alphanbsd_pc_in_sigtramp.
6064 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6065 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6066
6067 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6070
6071 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6072
6073 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6074 alphanbsd-tdep.c.
6075 (alphanbsd-nat.o): New dependency list.
6076 (alphanbsd-tdep.o): Ditto.
6077 * NEWS: Note new native NetBSD/alpha configuration.
6078 * alphanbsd-nat.c: New file.
6079 * alphanbsd-tdep.c: Ditto.
6080 * configure.host (alpha*-*-netbsd*): New host.
6081 * configure.tgt (alpha*-*-netbsd*): New target.
6082 * config/alpha/nbsd.mh: New file.
6083 * config/alpha/nbsd.mt: Ditto.
6084 * config/alpha/nm-nbsd.h: Ditto.
6085 * config/alpha/tm-nbsd.h: Ditto.
6086
6087 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6090 (alpha-osf1-tdep.o): New dependency list.
6091 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6092 and skip_sigtramp_frame members.
6093 * alpha-linux-tdep.c: Include gdbcore.h.
6094 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6095 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6096 * alpha-osf1-tdep.c: New file.
6097 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6098 alpha-osf1-dep.c.
6099 (alpha_frame_past_sigtramp_frame): New function.
6100 (alpha_dynamic_sigtramp_offset): Ditto.
6101 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6102 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6103 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6104 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6105 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6106 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6107 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6108 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6109 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6110 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6111 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6112 to find_solib_trampoline_target.
6113 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6114 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6115 (SKIP_TRAMPOLINE_CODE): Remove.
6116 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6117 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6118 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6119 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6120 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6121 (PROC_SIGTRAMP_MAGIC): Ditto.
6122 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6123 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6124 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6125 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6126 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6127
6128 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6129
6130 * NEWS: Note that Alpha targets are now multi-arch.
6131
6132 2002-04-24 Michael Snyder <msnyder@redhat.com>
6133
6134 * parser-defs.h (prev_lexptr): New external variable.
6135 * parse.c (parse_exp_1): Set prev_lexptr to null before
6136 calling the language-specific parser.
6137 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6138 (yyerror): Use prev_lexptr in error reporting.
6139
6140 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6143 * gregset.h: If FILL_FPXREGSET is defined, provide
6144 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6145 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6146 is defined, call fill_fpxregset.
6147
6148 2002-04-24 Roland McGrath <roland@frob.com>
6149
6150 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6151 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6152 (supply_gregset, supply_fpregset): New functions.
6153
6154 * gnu-nat.c (gnu_find_memory_regions): New function.
6155 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6156 (gnu_xfer_memory): Add a cast.
6157
6158 2002-04-24 Michael Snyder <msnyder@redhat.com>
6159
6160 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6161 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6162 of argument regs ("str r(0123), [r11, #-nn"]).
6163 (arm_skip_prologue): Better handling for frameless functions.
6164 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6165 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6166
6167 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6168
6169 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6170 NUM_PSEUDO_REGS can be used.
6171
6172 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6173
6174 * arch-utils.h: Update copyright.
6175
6176 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6177 * gdbarch.h, gdbarch.c: Re-generate.
6178
6179 * inferior.h (IN_SIGTRAMP): Delete definition.
6180 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6181 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6182
6183 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6184 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6185 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6186 (find_proc_framesize): Ditto.
6187 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6188 (alpha_init_extra_frame_info): Ditto.
6189 * infrun.c (handle_inferior_event): Ditto.
6190 (handle_inferior_event): Ditto.
6191 (check_sigtramp2): Ditto.
6192 * blockframe.c (create_new_frame): Ditto.
6193 (get_prev_frame): Ditto.
6194 * ppc-linux-tdep.c: Update comments.
6195 * i386-linux-tdep.c: Update comments.
6196 * breakpoint.c (bpstat_what): Update comment.
6197
6198 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6199
6200 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6201 (regsets_store_inferior_registers): Removed cast to int from
6202 ptrace() calls.
6203 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6204
6205 2002-04-24 David S. Miller <davem@redhat.com>
6206
6207 * i960-tdep.c (register_in_window_p): New function.
6208 (i960_find_saved_register): Use it instead of
6209 REGISTER_IN_WINDOW_P.
6210 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6211
6212 * symtab.h (find_stab_function_addr): Kill extern.
6213 * minsyms.c (find_stab_function_addr): Remove from here...
6214 * dbxread.c: ... to here, and mark it static.
6215
6216 2002-04-20 David S. Miller <davem@redhat.com>
6217
6218 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6219 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6220
6221 2002-04-21 David S. Miller <davem@redhat.com>
6222
6223 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6224 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6225 (vx_write_register): Likewise.
6226
6227 2002-04-23 J. Brobecker <brobecker@gnat.com>
6228
6229 * source.c (is_regular_file): New function.
6230 (openp): Check wether file to open is a regular file
6231 to avoid opening directories.
6232
6233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6234
6235 * findvar.c (extract_signed_integer): Cast printf argument
6236 to suppress format warning.
6237 (extract_unsigned_integer): Likewise.
6238 * infcmd.c (registers_info): Likewise.
6239 * top.c (get_prompt_1): Likewise.
6240 * valops.c (value_assign): Likewise.
6241 * valprint.c (print_decimal): Likewise.
6242
6243 2002-04-22 H.J. Lu (hjl@gnu.org)
6244
6245 * c-exp.y (typebase): Support
6246
6247 [long|long long|short] [signed|unsigned] [int|]
6248
6249 and
6250
6251 signed [long|long long|short] int
6252
6253 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6256 and vax-tdep.h.
6257 * vax-tdep.h: New file.
6258 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6259 Make several routines static.
6260 (vax_get_saved_register): New function.
6261 (vax_gdbarch_init): New function.
6262 (_initialize_vax_tdep): Register vax_gdbarch_init.
6263 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6264 Remove macros now under the control of gdbarch.
6265
6266 2002-04-22 Michael Snyder <msnyder@redhat.com>
6267
6268 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6269 Some whitespace and coding standards tweaks.
6270
6271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6272
6273 * vax-tdep.c: Include regcache.h.
6274 (vax_call_dummy_words): New.
6275 (sizeof_vax_call_dummy_words): New.
6276 (vax_fix_call_dummy): New function.
6277 (vax_saved_pc_after_call): Ditto.
6278 * config/vax/tm-vax.h: Don't include regcache.h.
6279 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6280 (CALL_DUMMY): Remove.
6281 (CALL_DUMMY_WORDS): Define.
6282 (SIZEOF_CALL_DUMMY_WORDS): Define.
6283 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6284
6285 2002-04-18 Michael Snyder <msnyder@redhat.com>
6286
6287 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6288
6289 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6290
6291 * vax-tdep.c (vax_frame_chain): New function.
6292 (vax_push_dummy_frame): Ditto.
6293 (vax_pop_frame): Ditto.
6294 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6295 (FRAMELESS_FUNCTION_INVOCATION): Use
6296 generic_frameless_function_invocation_not.
6297 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6298 (POP_FRAME): Use vax_pop_frame.
6299
6300 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6301
6302 * vax-tdep.c (vax_store_struct_return): New function.
6303 (vax_extract_return_value): Ditto.
6304 (vax_store_return_value): Ditto.
6305 (vax_extract_struct_value_address): Ditto.
6306 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6307 vax_store_struct_return.
6308 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6309 (STORE_RETURN_VALUE): Use vax_store_return_value.
6310 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6311
6312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6313
6314 * vax-tdep.c (vax_frame_saved_pc): New function.
6315 (vax_frame_args_address_correct): Ditto.
6316 (vax_frame_args_address): Ditto.
6317 (vax_frame_locals_address): Ditto.
6318 (vax_frame_num_args): Move code to be in proximity to
6319 other frame-related functions.
6320 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6321 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6322 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6323 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6324 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6325
6326 2002-04-22 H.J. Lu (hjl@gnu.org)
6327
6328 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6329 includedir.
6330
6331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6332
6333 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6334 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6335 (FRAME_INIT_SAVED_REGS): New macro.
6336
6337 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6338
6339 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6340
6341 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6342
6343 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6344 where needed.
6345 (fetch_osf_core_registers): Likewise.
6346 (supply_gregset): Likewise.
6347
6348 2002-04-22 J. Brobecker <brobecker@gnat.com>
6349
6350 * symfile.h (get_section_index): Define.
6351 * symfile.c (get_section_index): New function.
6352 * mdebugread.c (SC_IS_SBSS): New macro.
6353 (SC_IS_BSS): Return true for the scBss storage class only, as
6354 the scSBss storage class refers to the .sbss section.
6355 (parse_partial_symbols): Discard the symbols which associated
6356 section does not exist.
6357 Make sure to use the .sbss section index for symbols which
6358 storage class is scBss, rather than using the .bss section index.
6359
6360 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * vax-tdep.c: Update copyright years.
6363 (vax_register_name): New function.
6364 (vax_register_byte): Ditto.
6365 (vax_register_raw_size): Ditto.
6366 (vax_register_virtual_size): Ditto.
6367 (vax_register_virtual_type): Ditto.
6368 * config/vax/tm-vax.h: Update copyright years.
6369 (REGISTER_NAMES): Remove.
6370 (REGISTER_NAME): Define.
6371 (REGISTER_BYTE): Use vax_register_byte.
6372 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6373 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6374 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6375
6376 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6377
6378 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6379 declaration
6380 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6381
6382 2002-04-21 David S. Miller <davem@redhat.com>
6383
6384 * arch-utils.c (generic_prologue_frameless_p): Kill
6385 SKIP_PROLOGUE_FRAMELESS_P code.
6386 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6387 references.
6388 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6389 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6390 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6391 references.
6392 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6393 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6394 (sparc_gdbarch_init): Pass it to
6395 set_gdbarch_prologue_frameless_p.
6396
6397 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6398
6399 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6400 (alphabsd-nat.o): New dependency list.
6401
6402 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6403
6404 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6405 alphafbsd-tdep.c.
6406 (alpha-linux-tdep.o): New dependency list.
6407 (alphafbsd-tdep.o): Likewise.
6408
6409 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6412 to here...
6413 * alpha-tdep.c: ...from here.
6414 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6415
6416 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6417
6418 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6419 prototype from here...
6420 * alpha-tdep.h: ...to here.
6421
6422 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6423
6424 * frame.h (selected_frame_level): Document as deprecated.
6425 (frame_relative_level): Declare.
6426 * stack.c (frame_relative_level): New function.
6427 (selected_frame_level): Document as deprecated.
6428 (select_frame): Do not set the selected_frame_level.
6429
6430 * stack.c (frame_info, record_selected_frame): Update.
6431 (frame_command, current_frame_command): Update.
6432 (up_silently_base, up_command, down_silently_base): Update.
6433 (down_command): Update.
6434 * inflow.c (kill_command): Update.
6435 * tracepoint.c (finish_tfind_command): Update.
6436 * corelow.c (core_open): Update.
6437 * thread.c (info_threads_command): Update.
6438 (do_captured_thread_select): Update.
6439 * infcmd.c (finish_command): Update.
6440 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6441
6442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6445
6446 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6447
6448 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6449 type const.
6450
6451 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6452
6453 * alphafbsd-tdep.c: Update copyright years. Include
6454 alpha-tdep.h.
6455 (alphafbsd_use_struct_convention): Make static.
6456 (alphafbsd_init_abi): New function.
6457 (_initialize_alphafbsd_tdep): New function.
6458 * config/alpha/tm-fbsd.h: Update copyright years.
6459 (USE_STRUCT_CONVENTION): Remove.
6460
6461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6462
6463 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6464 an Alpha ABI variant.
6465 (alpha_abi_handler_list): Declare.
6466 (alpha_gdbarch_register_os_abi): New function.
6467 (alpha_gdbarch_init): Give registered ABI variant handlers a
6468 chance to tweak the gdbarch once we have set up defaults.
6469 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6470
6471 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6472
6473 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6474 to standard_coerce_float_to_double.
6475 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6476
6477 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6478
6479 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6480 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6481 from gdbarch_tdep rather than a constant.
6482 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6483 the default text address for all Alpha Unix ABIs.
6484 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6485 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6486
6487 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6488
6489 * alpha-tdep.h: New file. Includes several Alpha target constants
6490 taken from...
6491 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6492 let gdbarch deal with.
6493 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6494 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6495 to dependency list.
6496 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6497 Alpha target register names.
6498 * alphabsd-nat.c: Likewise.
6499 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6500 Alpha target register names. Make serveral routines static.
6501 (alpha_get_saved_register): New function.
6502 (alpha_abi_names): New.
6503 (process_note_abi_tag_sections): New function.
6504 (get_elfosabi): New function.
6505 (alpha_gdbarch_init): New function.
6506 (alpha_dump_tdep): New function.
6507 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6508
6509 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6510
6511 * frame.c (find_saved_register): Delete #ifdef
6512 HAVE_REGISTER_WINDOWS code.
6513 * config/sparc/tm-sparc.h: Update comments.
6514 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6515
6516 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6517
6518 * i960-tdep.c (i960_find_saved_register): New function.
6519 (i960_get_saved_register): New function.
6520 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6521 (i960_get_saved_register): Declare.
6522 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6523
6524 2002-04-20 David S. Miller <davem@redhat.com>
6525
6526 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6527
6528 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6529
6530 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6531 instead of NUM_PSEUDO_REGS.
6532
6533 2002-04-20 David S. Miller <davem@redhat.com>
6534
6535 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6536 GDB_MULTI_ARCH_PARTIAL
6537 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6538 define, let tm-sp64.h do it.
6539
6540 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6541
6542 * frame.c (find_saved_register): Avoid a NULL pointer
6543 dereference and actually walk the frame list.
6544
6545 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6546
6547 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6548 sorted in most most-recent-used order. Document.
6549 * gdbarch.h, gdbarch.c: Regenerate.
6550
6551 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6552
6553 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6554 (add_inferior): Call create_register_cache.
6555 (clear_inferiors): Call free_register_cache.
6556 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6557 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6558 (registers): Remove.
6559 (get_regcache): New function.
6560 (create_register_cache, free_register_cache): New functions.
6561 (set_register_cache): Don't initialize the register cache here.
6562 (registers_to_string, registers_from_string, register_data): Call
6563 get_regcache.
6564 * gdbserver/regcache.h: Add prototypes.
6565 * gdbserver/server.h: Likewise.
6566
6567 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6568
6569 * gdbserver/mem-break.c: New file.
6570 * gdbserver/mem-break.h: New file.
6571 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6572 dependencies.
6573 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6574 member.
6575 (clear_inferiors): Free target_data member if set.
6576 (inferior_target_data, set_inferior_target_data): New functions.
6577 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6578 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6579 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6580 (struct inferior_linux_data): New.
6581 (linux_create_inferior): Use set_inferior_target_data.
6582 (linux_attach): Likewise. Call add_inferior.
6583 (linux_wait_for_one_inferior): New function.
6584 (linux_wait): Call it.
6585 (linux_write_memory): Add const.
6586 (initialize_low): Call set_breakpoint_data.
6587 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6588 handling members.
6589 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6590 call.
6591 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6592 prototypes.
6593 * gdbserver/target.c (read_inferior_memory)
6594 (write_inferior_memory): New functions.
6595 * gdbserver/target.h (read_inferior_memory)
6596 (write_inferior_memory): Change macros to prototypes.
6597 (struct target_ops): Update comments. Add const to write_memory
6598 definition.
6599
6600 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6601
6602 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6603 instead of ->prev.
6604 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6605 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6606 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6607 instead of ->prev.
6608
6609 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6610
6611 Fix PR gdb/471.
6612 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6613 (build_builtin_type_vec128): Ditto.
6614 (append_composite_type_field): Fix calculation of type length in
6615 union case.
6616
6617 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6618
6619 * config/djgpp/README: Update.
6620
6621 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6622 compiler warnings.
6623
6624 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6625
6626 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6627 (alpha_setup_arbitrary_frame): ...to this.
6628 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6629 for alpha_setup_arbitrary_frame.
6630
6631 2002-04-18 Andrew Cagney <cagney@redhat.com>
6632
6633 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6634 * gdbarch.h, gdbarch.c: Regenerate.
6635
6636 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6637 * target.h (memory_breakpoint_from_pc): Update declaration.
6638 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6639
6640 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6641 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6642 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6643 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6644 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6645 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6646 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6647 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6648 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6649 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6650 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6651 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6652
6653 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6654 const pointer.
6655 * monitor.c (monitor_insert_breakpoint): Ditto.
6656 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6657
6658 * config/mcore/tm-mcore.h: Update copyright.
6659 * mem-break.c: Ditto.
6660 * xstormy16-tdep.c: Ditto.
6661
6662 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6663
6664 * p-exp.y: Add precedence rule for '^' token.
6665 This removes the shift/reduce conflicts.
6666 Remove the comment concerning these shift/reduce conflicts.
6667
6668 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6669
6670 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6671 (registers_powerpc_nofp): New register set for processors
6672 without floating point unit.
6673
6674 2002-04-18 David S. Miller <davem@redhat.com>
6675
6676 * MAINTAINERS: Add myself to write-after-approval.
6677
6678 2002-04-17 Michael Snyder <msnyder@redhat.com>
6679
6680 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6681
6682 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6683
6684 * rs6000-tdep.c (frame_initial_stack_address): Use
6685 frame_register_read to read the alloca_reg.
6686
6687 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6688
6689 * frame.c (find_saved_register): Find saved registers in the next
6690 not prev frame.
6691 Fix PR gdb/365.
6692
6693 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6694
6695 * gdbarch.sh (LANG): Set to ``c''.
6696
6697 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6698
6699 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6700
6701 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6702
6703 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6704 Update copyright.
6705
6706 * hpread.c (hpread_get_lntt): Add declaration.
6707 Also fix PR gdb/391.
6708
6709 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6710
6711 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6712 * aclocal.m4, configure: Re-generate.
6713 Fix PR gdb/391.
6714
6715 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6716
6717 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6718 instead of tm_print_insn.
6719
6720 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6721
6722 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6723
6724 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6725
6726 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6727 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6728 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6729
6730 2002-04-12 Don Howard <dhoward@redhat.com>
6731
6732 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6733 max_user_call_depth.
6734 (init_cmd_lists): Initialize the new value;
6735 * cli/cli-script.c (execute_user_command): Limit the call depth of
6736 user defined commands. This avoids a core-dump when user commands
6737 are infinitly recursive.
6738
6739 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6740
6741 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6742 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6743 from tdep struct instead of DEFAULT_LR_SAVE.
6744 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6745 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6746 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6747
6748 2002-04-12 Michael Snyder <msnyder@redhat.com>
6749
6750 * Remote.c: Spelling fix.
6751 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6752 If no symbol found for "sbrk", try "_sbrk".
6753 (make_output_phdrs): Use bfd_section_name.
6754 (gcore_copy_callback): Use bfd_section_name.
6755 * eval.c: Indentation fix-ups.
6756 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6757 in case it gets applied to an address that is already
6758 in the instruction space.
6759 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6760 * symfile.c: Fix indentation, long lines.
6761 * source.c: White space fix-up.
6762
6763 2002-04-12 Andrew Cagney <cagney@redhat.com>
6764
6765 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6766 * frame.c (frame_register_read): New function. Return non-zero on
6767 success.
6768 (read_relative_register_raw_bytes_for_frame): Delete.
6769 (read_relative_register_raw_bytes): Delete.
6770 * frame.h (frame_register_read): Declare.
6771 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6772 * sh-tdep.c: Ditto.
6773 * infcmd.c (do_registers_info): Ditto.
6774 * hppa-tdep.c: Ditto.
6775 * rs6000-tdep.c: Ditto.
6776 * h8500-tdep.c: Ditto.
6777 * mips-tdep.c: Ditto.
6778 * h8300-tdep.c: Ditto.
6779 * z8k-tdep.c: Ditto.
6780
6781 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6782
6783 From Jimi X <jimix@watson.ibm.com>:
6784 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6785 64-bit SysV ABI.
6786
6787 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6788
6789 From Jimi X <jimix@watson.ibm.com>:
6790 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6791 bfd info.
6792
6793 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6794
6795 From Jimi X <jimix@watson.ibm.com>:
6796 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6797 register sets for these processor variants.
6798
6799 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6800
6801 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6802 registers which are allowed to fail to store.
6803 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6804 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6805 (ppc_cannot_store_register): FPSCR may not be storable.
6806 * regformats/reg-ppc.dat: Support FPSCR.
6807
6808 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6809
6810 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6811 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6812 Add fpscr as an invalid/unfetchable register.
6813 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6814 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6815 (fill_fpregset): Add support for register fpscr.
6816 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6817 (fill_gregset): Account for the fact that register ``mq'' might
6818 not exist.
6819 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6820 (registers_power): Add fpscr to register set at slot 71.
6821 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6822 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6823
6824 2002-04-11 Michael Snyder <msnyder@redhat.com>
6825
6826 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6827 * configure: Regenerate.
6828 * config.in: Regenerate.
6829 * acconfig.h: Add define for _SYSCALL32.
6830 * core-sol2.c: Remove #define _SYSCALL32.
6831 * solib-legacy.c: Remove #define _SYSCALL32.
6832
6833 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6834
6835 * stack.c (select_frame): Cleanup internal error message, do not
6836 use %p.
6837
6838 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6839
6840 * stack.c (select_frame): Check that selected_frame and the
6841 specified level are as expected.
6842 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6843 Update copyright.
6844 * frame.h (struct frame_info): Add field `level'. Update
6845 copyright.
6846 Work-in-progress PR gdb/464.
6847
6848 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6849
6850 * maint.c (maint_print_section_info): Rename print_section_info.
6851 (print_bfd_section_info, print_objfile_section_info): Update.
6852 * inferior.h (struct gdbarch): Add opaque declaration.
6853 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6854 * gdbarch.h: Regenerate.
6855
6856 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6857
6858 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6859 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6860 (kernel_u_size): Added.
6861 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6862 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6863
6864 2002-04-04 Jim Ingham <jingham@apple.com>
6865
6866 * valarith.c (find_size_for_pointer_math): New function, either returns
6867 the size for a pointer's target, returns 1 for void *, or errors for
6868 incomplete types.
6869 (value_add, value_sub): use find_size_for_pointer_math.
6870
6871 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6872
6873 * linux-low.c (linux_look_up_symbols): New hook.
6874 (linux_target_ops): Add linux_look_up_symbols.
6875 * remote-utils.c (decode_address): New function.
6876 (look_up_one_symbol): New function.
6877 * server.c (handle_query): Call target look_up_symbols hook.
6878 * server.h (look_up_one_symbol): Add prototype.
6879 * target.h (struct target_ops): Add look_up_symbols hook.
6880
6881 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6882
6883 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6884 * ChangeLog: Correct paths in last ChangeLog entry.
6885
6886 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6887
6888 * gdbserver/linux-low.h: Remove obsolete prototypes.
6889 (struct linux_target_ops): New.
6890 (extern the_low_target): New.
6891 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6892 (register_addr): Use the_low_target explicitly.
6893 (fetch_register): Likewise.
6894 (usr_fetch_inferior_registers): Likewise.
6895 (usr_store_inferior_registers): Likewise.
6896 * gdbserver/linux-arm-low.c (num_regs): Remove.
6897 (arm_num_regs): Define.
6898 (arm_regmap): Renamed from regmap, made static.
6899 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6900 made static.
6901 (arm_cannot_store_register): Renamed from cannot_store_register,
6902 made static.
6903 (the_low_target): New.
6904 * gdbserver/linux-i386-low.c (num_regs): Remove.
6905 (i386_num_regs): Define.
6906 (i386_regmap): Renamed from regmap, made static.
6907 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6908 made static.
6909 (i386_cannot_store_register): Renamed from cannot_store_register,
6910 made static.
6911 (the_low_target): New.
6912 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6913 (ia64_num_regs): Define.
6914 (ia64_regmap): Renamed from regmap, made static.
6915 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6916 made static.
6917 (ia64_cannot_store_register): Renamed from cannot_store_register,
6918 made static.
6919 (the_low_target): New.
6920 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6921 (m68k_num_regs): Define.
6922 (m68k_regmap): Renamed from regmap, made static.
6923 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6924 made static.
6925 (m68k_cannot_store_register): Renamed from cannot_store_register,
6926 made static.
6927 (the_low_target): New.
6928 * gdbserver/linux-mips-low.c (num_regs): Remove.
6929 (mips_num_regs): Define.
6930 (mips_regmap): Renamed from regmap, made static.
6931 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6932 made static.
6933 (mips_cannot_store_register): Renamed from cannot_store_register,
6934 made static.
6935 (the_low_target): New.
6936 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6937 (ppc_num_regs): Define.
6938 (ppc_regmap): Renamed from regmap, made static.
6939 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6940 made static.
6941 (ppc_cannot_store_register): Renamed from cannot_store_register,
6942 made static.
6943 (the_low_target): New.
6944 * gdbserver/linux-s390-low.c (num_regs): Remove.
6945 (s390_num_regs): Define.
6946 (s390_regmap): Renamed from regmap, made static.
6947 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6948 made static.
6949 (s390_cannot_store_register): Renamed from cannot_store_register,
6950 made static.
6951 (the_low_target): New.
6952 * gdbserver/linux-sh-low.c (num_regs): Remove.
6953 (sh_num_regs): Define.
6954 (sh_regmap): Renamed from regmap, made static.
6955 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6956 made static.
6957 (sh_cannot_store_register): Renamed from cannot_store_register,
6958 made static.
6959 (the_low_target): New.
6960 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6961 (the_low_target): New.
6962
6963 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6964
6965 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6966 override FP_REGNUM with frame->fp. Update copyright.
6967 * parse.c (num_std_regs, std_regs): Delete.
6968 (target_map_name_to_register): Do not search std_regs. Update
6969 function description.
6970 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6971 declarations. Update copyright.
6972 Fix PR gdb/251.
6973
6974 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * gdbserver/Makefile.in: Add stamp-h target.
6977 * gdbserver/configure.in: Create stamp-h.
6978 * gdbserver/configure: Regenerated.
6979
6980 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6981
6982 * gdbserver/inferiors.c: New file.
6983 * gdbserver/target.c: New file.
6984 * gdbserver/target.h: New file.
6985 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6986 dependencies.
6987 * gdbserver/linux-low.c (inferior_pid): New static variable,
6988 moved from server.c.
6989 (linux_create_inferior): Renamed from create_inferior.
6990 Call add_inferior. Return 0 on success instead of a PID.
6991 (linux_attach): Renamed from myattach.
6992 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6993 (linux_thread_alive): Renamed from mythread_alive.
6994 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6995 child dies.
6996 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6997 (regsets_store_inferior_registers): Correct error message.
6998 Add missing ``return 0''.
6999 (linux_fetch_registers): Renamed from fetch_inferior_registers.
7000 (linux_store_registers): Renamed from store_inferior_registers.
7001 (linux_read_memory): Renamed from read_inferior_memory.
7002 (linux_write_memory): Renamed from write_inferior_memory.
7003 (linux_target_ops): New structure.
7004 (initialize_low): Call set_target_ops ().
7005 * gdbserver/remote-utils.c (unhexify): New function.
7006 (hexify): New function.
7007 (input_interrupt): Send signals to ``signal_pid''.
7008 * gdbserver/server.c (inferior_pid): Remove.
7009 (start_inferior): Update create_inferior call.
7010 (attach_inferior): Call add_inferior.
7011 (handle_query): New function.
7012 (main): Call handle_query for `q' packets.
7013 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
7014 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
7015
7016 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7017
7018 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
7019 dependencies.
7020 * gdbserver/configure.in: Check for <string.h>
7021 * gdbserver/configure: Regenerate.
7022 * gdbserver/config.in: Regenerate.
7023 * gdbserver/gdbreplay.c: Include needed system headers.
7024 (remote_open): Remove strchr prototype.
7025 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
7026 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
7027 (supply_register_by_name): Likewise.
7028 (collect_register): Change buf argument to void *.
7029 (collect_register_by_name): Likewise.
7030 * gdbserver/regcache.h: Add missing prototypes.
7031 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
7032 * gdbserver/server.c (handle_query): New function.
7033 (attached): New static variable, moved out of main.
7034 (main): Quiet longjmp clobber warnings.
7035 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
7036 * gdbserver/utils.c (error): Remove NORETURN.
7037 (fatal): Likewise.
7038
7039 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7040
7041 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7042 after the last symbol in a block.
7043
7044 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7045
7046 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7047 is non zero as a found symbol.
7048
7049 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7050
7051 * findvar.c: Include "builtin-regs.h".
7052 (value_of_register): Call value_of_builtin_reg when applicable.
7053 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7054 (target_map_name_to_register): Call
7055 builtin_reg_map_name_to_regnum.
7056 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7057 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7058 (builtin_regs_h): Define.
7059 (builtin-regs.o): New target.
7060 (findvar.o): Add $(builtin_regs_h).
7061 * builtin-regs.c, builtin-regs.h: New files.
7062 * std-regs.c: New file.
7063 Partial fix for PR gdb/251.
7064
7065 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7066
7067 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7068 it's no longer required.
7069
7070 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7071
7072 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7073
7074 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7075
7076 From Jimi X <jimix@watson.ibm.com>:
7077 * rs6000-tdep.c (rs6000_software_single_step): Use
7078 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7079 and size. Use target_insert_breakpoint() and
7080 target_remove_breakpoint() to insert and remove breakpoints
7081 instead of explicit memory reads and writes.
7082
7083 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7084
7085 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7086 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7087 ELF_OBJECT_FORMAT ifdef.
7088
7089 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7090
7091 From Jimi X <jimix@watson.ibm.com>:
7092 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7093
7094 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7095
7096 From Jimi X <jimix@watson.ibm.com>:
7097 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7098 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7099
7100 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7101
7102 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7103 s/asprintf/xasprintf/.
7104 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7105
7106 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7107
7108 I believe Jeff Law denies responsability for this one:
7109 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7110 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7111 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7112 Work-around for PR gdb/366.
7113
7114 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7115
7116 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7117 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7118 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7119
7120 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7121
7122 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7123 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7124 information.
7125
7126 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7127
7128 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7129 maintainer.
7130
7131 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7132
7133 * README (Reporting Bugs in GDB): Document the bug web page as the
7134 prefered way of submitting bugs.
7135 Fix PR gdb/402.
7136
7137 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7138
7139 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7140 -1. Update comment.
7141 * gdbarch.h, gdbarch.c: Re-generate.
7142
7143 2002-04-07 Andreas Schwab <schwab@suse.de>
7144
7145 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7146 buffer to regcache_collect.
7147
7148 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7149
7150 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7151 * gdbarch.c, gdbarch.h: Re-generate.
7152
7153 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7154
7155 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7156 declaration. Fix -Werror.
7157
7158 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7159
7160 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7161 * gdbarch.c: Regenerate.
7162
7163 2002-04-05 Michael Snyder <msnyder@redhat.com>
7164
7165 * breakpoint.c (clear_command): Rewrite middle section to
7166 combine two loops with identical control conditions.
7167 Add a cleanup to eliminate a memory leak.
7168 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7169
7170 2002-04-05 H.J. Lu (hjl@gnu.org)
7171
7172 * solib-svr4.c (bkpt_names): Add "__start".
7173
7174 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7175
7176 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7177 as test for 64 bit target.
7178
7179 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7180
7181 * h8500-tdep.c (h8500_write_fp): Delete function.
7182 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7183 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7184 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7186 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7187 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7188 (s390_write_fp):
7189 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7190 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7191 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7192 (d10v_write_fp): Delete function.
7193 * inferior.h (write_fp, generic_target_write_fp): Delete
7194 declarations.
7195 * regcache.c (generic_target_write_fp): Delete function.
7196 (write_fp): Delete function.
7197 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7198 * gdbarch.h, gdbarch.c: Regenerate.
7199 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7200 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7201 (sparc64_write_fp): Delete declaration.
7202 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7203 (h8500_write_fp): Delete declaration.
7204
7205 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7206
7207 * sparc-tdep.c (sparc64_write_fp): Delete.
7208 (sparc_push_dummy_frame): Replace write_fp call with code to store
7209 the FP directly.
7210 (sparc_gdbarch_init): Do not initialize write_fp.
7211
7212 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7213
7214 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7215 clause.
7216
7217 2002-03-29 Jim Blandy <jimb@redhat.com>
7218
7219 * stack.c (get_selected_block): Add new argument `addr_in_block',
7220 used to return the exact code address we used to select the block,
7221 not just the block.
7222 * blockframe.c (get_frame_block, get_current_block): Same.
7223 * frame.h (get_frame_block, get_current_block,
7224 get_selected_block): Update declarations.
7225 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7226 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7227
7228 2002-04-05 Michael Snyder <msnyder@redhat.com>
7229
7230 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7231 warning message.
7232
7233 2002-04-05 J. Brobecker <brobecker@gnat.com>
7234
7235 * utils.c (xfullpath): New function.
7236 * defs.h (xfullpath): Add declaration.
7237 * source.c (openp): Use xfullpath in place of gdb_realpath to
7238 avoid resolving the basename part of filenames when the
7239 associated file is a symbolic link. This fixes a potential
7240 inconsistency between the filenames known to GDB and the
7241 filenames it prints in the annotations.
7242 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7243 to be able to match a filename with either the real filename, or
7244 the name of any symbolic link to this file.
7245 (lookup_partial_symtab): Ditto.
7246
7247 2002-04-04 Michael Snyder <msnyder@redhat.com>
7248
7249 * breakpoint.c: Add support for hardware breakpoints in overlays.
7250 (overlay_events_enabled): New state variable.
7251 (insert_breakpoints): Use overlay_events_enabled to decide
7252 whether to attempt to set a breakpoint at the overlay load addr.
7253 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7254 (remove_breakpoint): Use overlay_events_enabled to decide
7255 whether breakpoints need to be removed from overlay load addr.
7256 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7257 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7258 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7259 disable_overlay_breakpoints): Update overlay_events_enabled.
7260
7261 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * dwarf2read.c (struct function_range): New.
7264 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7265 (check_cu_functions): New.
7266 (read_file_scope): Initialize global function lists.
7267 Call dwarf_decode_line after processing children.
7268 (read_func_scope): Add to global function list.
7269 (dwarf_decode_lines): Call check_cu_functions everywhere
7270 record_line is called. Call record_line with a linenumber
7271 of 0 to mark sequence ends.
7272
7273 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7274
7275 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7276 change sync with glibc.
7277
7278 2002-04-03 Jim Blandy <jimb@redhat.com>
7279
7280 * configure.in: Call AC_C_INLINE.
7281 * configure: Regenerated.
7282
7283 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7284
7285 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7286 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7287
7288 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7289
7290 * NEWS: Mention gcore support on FreeBSD/i386.
7291
7292 * fbsd-proc.c: New file.
7293 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7294 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7295
7296 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7297 while statement.
7298
7299 2002-03-29 Jim Blandy <jimb@redhat.com>
7300
7301 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7302 unescaped newlines in string literals, but newer ones don't. So
7303 escape them.
7304
7305 2002-03-26 Michael Snyder <msnyder@redhat.com>
7306 Andrew Cagney <cagney@redhat.com>
7307
7308 * cli/cli-dump.c: New file. Dump memory to file,
7309 restore file to memory.
7310 * cli/cli-dump.h: New file.
7311 * Makefile.in: Add rules, dependencies for cli-dump.o.
7312 * NEWS: Mention new commands.
7313
7314 2002-03-28 Michael Snyder <msnyder@redhat.com>
7315
7316 * symfile.c (symbol_file_add): Move test for null symbols to later.
7317
7318 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7319
7320 From veksler at il.ibm.com:
7321 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7322 the xstrduped original path.
7323 Fix PR gdb/417.
7324
7325 2002-03-27 Michael Snyder <msnyder@redhat.com>
7326
7327 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7328 * infcmd.c (_initialize_infcmd): Ditto.
7329 * language.c (_initialize_language): Ditto.
7330 * symfile.c (_initialize_symfile): Ditto.
7331 * top.c (_init_main): Ditto.
7332 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7333
7334 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7335
7336 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7337 vector registers handling.
7338 (skip_prologue): Handle new AltiVec instructions. Fill in new
7339 fields of frame data.
7340 (frame_get_saved_regs): Fill in information for AltiVec registers.
7341
7342 2002-03-27 Jim Blandy <jimb@redhat.com>
7343
7344 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7345 a function; leave this macro here to invoke that function.
7346 (symbol_init_mangled_name): Declaration for that function.
7347 * symtab.c (symbol_init_mangled_name): New function.
7348
7349 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7350
7351 * valarith.c: Replace strerror with safe_strerror.
7352 * tracepoint.c: Ditto.
7353 * lin-lwp.c: Ditto.
7354 * go32-nat.c: Ditto.
7355 * inflow.c: Ditto.
7356 * gnu-nat.c: Ditto.
7357
7358 2002-03-27 Andreas Schwab <schwab@suse.de>
7359
7360 * event-top.c (command_line_handler): Remove useless if.
7361
7362 2002-03-27 Andreas Jaeger <aj@suse.de>
7363
7364 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7365 comment.
7366
7367 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7368
7369 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7370 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7371 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7372 (x86_64_linux_dr_get_status, supply_gregset),
7373 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7374 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7375 (x86_64_register_info_table): Add.
7376 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7377 (x86_64_register_raw_size, x86_64_register_virtual_type),
7378 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7379 general x86_64_register_info_table.
7380 (i386_gdbarch_init): gdbarch_register_bytes is now set
7381 dynamicaly during initialization.
7382 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7383 * gdbserver/linux-x86-64-low.c: Ditto.
7384
7385 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7386
7387 * gdbserver/server.c (main): Call target_signal_to_host_p
7388 and target_signal_to_host on signals received from the remote.
7389 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7390 target_signal_from_host on signals sent to the remote.
7391 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7392 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7393
7394 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7395
7396 * signals/signals.c: Include "server.h" in gdbserver build.
7397 (target_signal_from_name): Don't use STREQ.
7398 (_initialize_signals): Likewise. Don't include function in
7399 gdbserver build.
7400
7401 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7402
7403 * signals.c: Moved to...
7404 * signals/signals.c: Here.
7405 * Makefile (signals.o): Update.
7406
7407 2002-03-26 Jeff Law (law@redhat.com)
7408
7409 * somread.c (som_symtab_read): Remove some commented out code and
7410 updated related comments. Do not set the minimal symbol table to
7411 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7412 in a dynamic executable.
7413 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7414 where we are unable to find the minimal symbol for the given
7415 PC value.
7416
7417 2002-03-25 Jeff Law (law@redhat.com)
7418
7419 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7420
7421 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7422
7423 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7424
7425 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7426
7427 * command.h: Update copyright.
7428 (struct cmd_list_element): Replace definition with opaque
7429 declaration.
7430 (enum cmd_types): Document that it will eventually be moved to
7431 cli/cli-decode.h
7432 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7433 (MALLOCED_REPLACEMENT): Delete macro.
7434 * Makefile.in (cli_decode_h): Add $(command_h).
7435 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7436 * top.c: Include "cli/cli-decode.h".
7437 * completer.c: Include "cli/cli-decode.h".
7438 * maint.c: Include "cli/cli-decode.h".
7439 * cli/cli-decode.h: Include "command.h".
7440 (enum command_class): Delete.
7441 (enum cmd_types): Comment out.
7442 (enum cmd_auto_boolean): Delete.
7443 (enum var_types): Delete.
7444
7445 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7446
7447 * cli/cli-decode.c: Include "gdb_assert.h".
7448 (add_set_or_show_cmd): New static function.
7449 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7450 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7451 all fields, such as func, from the set command.
7452
7453 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7454
7455 * MAINTAINERS (sh-elf): Change warning flag to -w.
7456
7457 2002-03-23 Andrew Cagney <cagney@redhat.com>
7458
7459 * defs.h (error): Add printf format attribute.
7460 * thread-db.c (thread_from_lwp): Fix error format string.
7461 * stack.c (parse_frame_specification): Ditto.
7462 * cli/cli-decode.c (undef_cmd_error): Ditto.
7463 * scm-lang.c (scm_lookup_name): Ditto.
7464 * tracepoint.c (trace_error): Ditto.
7465 * remote-utils.c (usage): Ditto.
7466 * remote.c (compare_sections_command): Ditto.
7467 Fix PR gdb/328.
7468
7469 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7470
7471 * gdbtypes.c (append_composite_type_field): New function.
7472 (init_composite_type): New function.
7473 * gdbtypes.h (append_composite_type_field): Declare.
7474 (init_composite_type): Ditto.
7475
7476 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7477
7478 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7479 function.
7480 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7481 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7482 structure returning convention for SYSV ABI case, but not
7483 for GNU/Linux, FreeBSD, or NetBSD.
7484
7485 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * symtab.h (lookup_block_symbol): Add mangled_name argument
7488 to prototype.
7489
7490 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7491 with new mangled_name argument.
7492 * linespec.c (decode_line_1): Likewise.
7493 * valops (value_of_this): Likewise.
7494 * symtab.c (lookup_transparent_type): Likewise.
7495 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7496 (lookup_symbol): If we are given a mangled name, pass it down
7497 to lookup_symbol_aux.
7498 (lookup_block_symbol): If we are given a mangled name to check
7499 against, only return symbols which match it.
7500
7501 2002-03-22 Christopher Faylor <cgf@redhat.com>
7502
7503 * win32-nat.c (child_create_inferior): Check for proper shell to use
7504 here, in case the user changes it on the fly.
7505 (_initialize_inftarg): Remove shell path considerations.
7506
7507 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7508
7509 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7510 for gdbarch_max_register_raw_size and max_register_virtual_size.
7511 Adjust copyright year.
7512
7513 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7514
7515 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7516 in a function to cover the entire beginning of the function
7517 as well if it does not already.
7518
7519 2002-03-21 Tom Rix <trix@redhat.com>
7520
7521 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7522 (rs6000_ptrace64): Renamed from ptrace64.
7523
7524 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7525
7526 * gdbserver/remote-utils.c (remote_open): Don't call
7527 getprotobyname, we're all using TCP here so just use
7528 IPPROTO_TCP.
7529 * gdbserver/gdbreplay.c (remote_open): Ditto.
7530
7531 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7532
7533 * regcache.c (_initialize_regcache): No need to call
7534 build_regcache() at this time; it gets called whenever
7535 the gdbarch changes.
7536
7537 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7538
7539 * sparc-nat.c: Include sys/param.h where possible.
7540
7541 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7542
7543 Fix PR gdb/422.
7544 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7545 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7546 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7547 complex types.
7548 * stabsread.c (rs6000_builtin_type): Likewise.
7549 (read_sun_floating_type): Likewise.
7550
7551 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7552
7553 * stabsread.c (read_member_functions): Remove skip code for duplicate
7554 constructor/destructor methods. Use standard parsing for these
7555 methods and just do not chain them to the list of methods after
7556 parsing.
7557
7558 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7559
7560 * coffread.c: Remove redundant static declarations. Replace
7561 occurrences of `PTR' with `void *'.
7562 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7563 * top.h (quit_cover): Likewise.
7564 * defs.h (catch_errors): Likewise.
7565
7566 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7567
7568 * defs.h (XMALLOC): Define.
7569 * gdb-events.sh (XMALLOC): Delete macro.
7570 * gdb-events.c, gdb-events.h: Regenerate.
7571 * gdbarch.sh (XMALLOC): Delete macro.
7572 * gdbarch.c: Regenerate.
7573 * serial.c (XMALLOC): Delete macro.
7574 * ui-file.c (XMALLOC): Ditto.
7575 * ser-unix.h (XMALLOC): Ditto.
7576 * sh-tdep.c (XMALLOC): Ditto.
7577 * ui-out.c (XMALLOC): Ditto.
7578 * utils.c (XMALLOC): Ditto.
7579 * i386-tdep.c (XMALLOC): Ditto.
7580 * gdb-events.c (XMALLOC): Ditto.
7581 * d10v-tdep.c (XMALLOC): Ditto.
7582 * cli-out.c (XMALLOC): Ditto.
7583
7584 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7585 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7586 * ui-file.c, ui-out.c: Ditto.
7587
7588 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7589
7590 * command.h (struct cmd_list_element): Add field context.
7591 (set_cmd_context, get_cmd_context): Declare.
7592 * cli/cli-decode.h: Ditto.
7593 * cli/cli-decode.c (get_cmd_context): New function.
7594 (set_cmd_context): New function.
7595 (add_cmd): Initialize context.
7596 Part of fixing PR gdb/145 and PR gdb/146.
7597
7598 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7599
7600 * cli/cli-decode.c (cmd_type): New function.
7601 * command.h (cmd_type): Declare.
7602 * infrun.c (set_schedlock_func): Call function cmd_type.
7603 * kod.c (kod_set_os): Call cmd_type.
7604 * cris-tdep.c (cris_version_update): Use function cmd_type.
7605 (cris_mode_update, cris_abi_update): Ditto.
7606
7607 * command.h: (execute_cmd_post_hook): Declare.
7608 (execute_cmd_pre_hook): Declare.
7609 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7610 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7611 functions. Execute pre/post hook while ensuring that afterwords
7612 hook_in is cleared.
7613 * top.c (execute_command): Use execute_cmd_post_hook, and
7614 execute_cmd_pre_hook to execute pre/post commands.
7615 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7616 hook_stop_stub.
7617 (hook_stop_stub): Call execute_cmd_pre_hook.
7618
7619 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7620
7621 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7622 set'' and this leads to a core dump. Move xstrdup of
7623 operating_system to after check that it is not NULL.
7624
7625 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7626
7627 * kod.c (kod_set_os): Remove unnecessary check that
7628 ``command->type'' is set_cmd.
7629
7630 * valprint.c (set_input_radix): Use input_radix.
7631 (set_output_radix): Use output_radix.
7632 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7633 isn't reverted.
7634
7635 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7636
7637 * value.h (struct value): Delete field ``substring_addr''. Change
7638 aligner fields to force_doublest_align, force_longest_align,
7639 force_core_addr_align and force_pointer_aligh.
7640
7641 * value.h (struct value): Fix typo in above change.
7642
7643 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7644
7645 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7646 to fix internal_error from ``maintenance print architecture''.
7647
7648 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7649
7650 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7651 for gcc versions after gcc-2.8.1.
7652
7653 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7654
7655 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7656 for method resolution. Restore adjustment of ``this'' pointer after
7657 calling value_struct_elt, which was accidentally removed during the
7658 HP merge.
7659
7660 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7661
7662 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7663 value_of_register.
7664 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7665 get_saved_register.
7666 * value.h (value_of_register): Update.
7667
7668 2002-03-14 Richard Henderson <rth@redhat.com>
7669
7670 * configure.in: Detect declaration for canonicalize_file_name.
7671 * utils.c (canonicalize_file_name): Declare, if needed.
7672 (gdb_realpath): Prefer realpath if available and usable.
7673 * config.in, configure: Rebuild.
7674
7675 2002-03-14 Richard Henderson <rth@redhat.com>
7676
7677 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7678 a constant array bound.
7679
7680 * MAINTAINERS: Add myself to write-after-approval.
7681
7682 2002-03-14 Michael Snyder <msnyder@redhat.com>
7683
7684 * symfile.c (syms_from_objfile): Return immediately if no syms.
7685 (symbol_file_add): Return immediately if no syms.
7686 (find_sym_fns): Return immediately if no syms.
7687
7688 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7689
7690 * gdbserver/remote-util.c (remote_open): Print remote-side's
7691 IP address when remote debugging over the network.
7692
7693 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7694
7695 * config/sparc/fbsd.mh: Fix copyright.
7696 * config/sparc/fbsd.mt: Likewise.
7697
7698 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7699
7700 * MAINTAINERS: Fix typo in name of gdb warnings option.
7701 (x86-64): Fix formating so that this can be parsed by awk.
7702
7703 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7704
7705 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7706 * defs.h: Include "gdb/signals.h".
7707 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7708
7709 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7710
7711 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7712 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7713 from x86-64-tdep.h
7714
7715 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7716 Don Howard <dhoward@redhat.com>
7717
7718 * mips-tdep.c (ST0_FR): Define.
7719 (mips2_fp_compat): New function, temporarily disabled.
7720 (mips_read_fp_register_single): New function.
7721 (mips_read_fp_register_double): New function.
7722 (mips_print_register): Use them.
7723 (do_fp_register_row): Likewise.
7724
7725 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7726
7727 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7728 approval''.
7729
7730 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7731
7732 * stabsread.c (read_member_functions): Fix is_stub test for
7733 static member functions, improve comment.
7734
7735 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7736
7737 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7738 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7739 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7740 commands that set boolean values.
7741 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7742 (arm_rdi_resume): Always initialize PC.
7743 (arm_rdi_open): Don't use rslt as a boolean.
7744 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7745 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7746 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7747 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7748
7749 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7750
7751 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7752 * configure: Rebuilt.
7753
7754 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7755
7756 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7757 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7758
7759 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7760
7761 * cli/cli-decode.c (set_cmd_completer): New function.
7762 * command.h (set_cmd_completer): Declare.
7763 * cli/cli-decode.h (set_cmd_completer): Ditto.
7764
7765 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7766 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7767 * win32-nat.c (_initialize_inftarg): Ditto.
7768 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7769 * proc-api.c (_initialize_proc_api): Ditto.
7770 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7771 * source.c (_initialize_source): Ditto.
7772 * exec.c (_initialize_exec): Ditto.
7773 * solib.c (_initialize_solib): Ditto.
7774 * top.c (init_main): Ditto.
7775 * tracepoint.c (_initialize_tracepoint): Ditto.
7776 * symfile.c (_initialize_symfile): Ditto.
7777 * printcmd.c (_initialize_printcmd): Ditto.
7778 * infcmd.c (_initialize_infcmd): Ditto.
7779 * corefile.c (_initialize_core): Ditto.
7780
7781 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7782
7783 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7784
7785 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7786
7787 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7788
7789 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7790
7791 * NEWS: Update headings, 5.2 has branched.
7792
7793 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7794
7795 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7796 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7797 (register_addr, REGISTER_RAW_SIZE): Likewise.
7798 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7799 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7800
7801 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7802
7803 * MAINTAINERS (x86-64): Add myself.
7804 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7805 changed value_ptr -> struct value *
7806
7807 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7808
7809 * configure.host (sparc64-*-freebsd): Add.
7810 * configure.tgt: Likewise.
7811 * config/sparc/fbsd.mh: New file.
7812 * config/sparc/fbsd.mt: Likewise.
7813 * config/sparc/nm-fbsd.h: Likewise.
7814 * config/sparc/tm-fbsd.h: Likewise.
7815
7816 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7817
7818 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7819 regformats/reg-s390x.dat.
7820
7821 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7822
7823 * utils.c: Add FIXME explaining true/false problem.
7824
7825 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7826
7827 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7828
7829 2002-02-28 Michael Chastain <mec@shout.net>
7830
7831 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7832
7833 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7834
7835 * gdbserver/linux-s390-low.c: New file.
7836 * regformats/reg-s390.dat: New file.
7837 * regformats/reg-s390x.dat: New file.
7838 * gdbserver/configure.srv: Add S/390.
7839 * gdbserver/Makefile.in: Add S/390.
7840 * configure.tgt: Enable gdbserver for S/390.
7841
7842 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7843
7844 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7845 first line of the doc string for "info dos", except at the end of
7846 the sentence, since the short help stops at the first period.
7847
7848 2002-02-28 Jason Merrill <jason@redhat.com>
7849
7850 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7851
7852 2002-02-27 Fred Fish <fnf@redhat.com>
7853
7854 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7855 comment (dumy -> dummy).
7856
7857 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7858
7859 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7860
7861 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7862
7863 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7864
7865 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7866
7867 * gdbserver/acconfig.h: New file.
7868 * gdbserver/i387-fp.c: New file.
7869 * gdbserver/i387-fp.h: New file.
7870 * gdbserver/linux-x86-64.c: New file.
7871 * regformats/reg-x86-64.dat: New file.
7872 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7873 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7874 * gdbserver/configure.in: Add support for regsets.
7875 * gdbserver/config.in: Regenerate.
7876 * gdbserver/configure: Regenerate.
7877 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7878 * gdbserver/linux-low.h: New file.
7879 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7880 for regsets.
7881 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7882 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7883 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7884 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7885 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7886 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7887 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7888 "i387-fp.h". Add PTRACE_GETREGS and friends.
7889 * gdbserver/regcache.c (supply_register): New function.
7890 (supply_register_by_name): New function.
7891 (collect_register): New function.
7892 (collect_register_by_name): New function.
7893
7894 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7895
7896 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7897 (config.status): Add configure.srv dependency.
7898 (server_h): Add config.h dependency.
7899
7900 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7901
7902 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7903 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7904 * gdbserver/configure.srv: Change i386-*-linux* to use
7905 reg-i386-linux.o.
7906
7907 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7908
7909 * x86-64-tdep.c: Re-indent. Update copyright date.
7910
7911 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7912
7913 From Michal Ludvig <mludvig@suse.cz>:
7914 * x86-64-tdep.c (value.h): Delete.
7915 (gdb_assert.h): Include.
7916 (x86_64_register_convert_to_virtual,
7917 x86_64_register_convert_to_raw ): Add check which lets only
7918 floating-point values to be converted.
7919 (value_push): Delete.
7920 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7921 (i386_gdbarch_init): Number of register_bytes fixed.
7922
7923 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7924
7925 * MAINTAINERS: Add x86-64 target.
7926
7927 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7928
7929 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7930 * osfsolib.c (solib_map_sections): Ditto.
7931 * irix5-nat.c (solib_map_sections): Ditto.
7932 * corelow.c (gdb_check_format): Ditto.
7933 * symfile.c (symfile_bfd_open): Ditto.
7934 * solib.c (solib_map_sections): Ditto.
7935 Fix PR gdb/354.
7936
7937 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7938
7939 * remote.c (_initialize_remote): By default, disable ``e'' and
7940 ``E'' step out-of-range packets.
7941
7942 2002-02-26 Andreas Schwab <schwab@suse.de>
7943
7944 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7945 m68k_linux_frame_saved_pc.
7946 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7947 in_sigtramp.
7948 (SIGCONTEXT_PC_OFFSET): Remove.
7949 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7950 m68k_linux_sigtramp_saved_pc): New functions.
7951 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7952 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7953 (UCONTEXT_PC_OFFSET): Define.
7954 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7955 non-RT and RT signal trampolines.
7956
7957 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7958
7959 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7960 (TARGET_NBPG, STACK_END_ADDR): Delete
7961 (VARIABLES_INSIDE_BLOCK): Delete.
7962
7963 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7964
7965 * utils.c (perror_with_name): Make string parameter constant.
7966 (print_sys_errmsg): Ditto.
7967 (query): Ditto.
7968 * defs.h (perror_with_name): Update.
7969 (print_sys_errmsg): Update.
7970 (query): Update.
7971
7972 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7973
7974 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7975 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7976
7977 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7978
7979 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7980 if it already matches the current architecture from the exec file.
7981 Include arch-utils.h for gdbarch_info_init prototype.
7982 * Makefile.in (rs6000-nat.o): Update dependencies.
7983
7984 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7985
7986 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7987 list of exported variables.
7988
7989 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7990
7991 * gdbserver/configure.srv: New file.
7992 * gdbserver/configure.in: Use configure.srv instead
7993 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7994 from it.
7995 * gdbserver/configure: Regenerated.
7996 * gdbserver/terminal.h: New file.
7997 * gdbserver/Makefile.in: Update for configure changes. Remove
7998 more unneeded include paths.
7999
8000 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8001
8002 From wiz at danbala:
8003 * config/sparc/tm-sp64.h: Fix grammar and typos.
8004 Fix PR gdb/287.
8005
8006 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8007
8008 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8009 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8010 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8011 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8012 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8013 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8014 * s390-tdep.c: Ditto.
8015 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8016 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8017 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8018 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8019 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8020 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8021 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8022 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8023 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8024 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8025 Fix PR gdb/378.
8026
8027 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8028
8029 * lin-thread.c: Delete file.
8030 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8031 to gdb_proc_service.h.
8032 * configure: Re-generate.
8033
8034 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8035 * serial.c (serial_open): Delete check for "ocd".
8036 Fix PR gdb/349.
8037
8038 * Makefile.in (linux-thread.o): Delete target.
8039 * linux-thread.c: Delete file.
8040
8041 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8042 renamed SH files to be consistent.
8043
8044 * symtab.c (sort_search_symbols): Use xfree.
8045
8046 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8047
8048 * arm-linux-tdep.c (arm_linux_init_abi): Register
8049 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8050 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8051 definition with undef, since we don't want the sysvr4 definition.
8052 (SKIP_TRAMPOLINE_CODE): Likewise.
8053
8054 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8055
8056 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8057
8058 * configure.in: (AC_CHECK_FUNCS) Added test for
8059 canonicalize_file_name Regenerated.
8060 * config.in, configure: Regenerated.
8061 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8062 defined use canonicalize_file_name.
8063
8064 2002-02-23 Michael Chastain <mec@shout.net>
8065
8066 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8067
8068 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8069
8070 * README: Remove references to cygnus.com.
8071 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8072 dot com'' form. Remove references to cygnus.com and sourceware.
8073
8074 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8075
8076 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8077 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8078 1003.1-2001 no longer allows "head -1".
8079 * gdb/Makefile.in (version.c): Likewise.
8080 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8081 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8082 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8083
8084 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8085
8086 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8087 * command.h (cmd_cfunc_eq): Declare.
8088 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8089
8090 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8091 ``struct cmd_list_element *''.
8092 * cli/cli-cmds.c (is_complete_command): Update. Use
8093 cmd_cfunc_eq.
8094 * top.c (execute_command): Pass the command to
8095 is_complete_command.
8096 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8097
8098 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8099
8100 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8101 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8102 architecture defines.
8103 * s390-tdep.c (s390_gdbarch_init): Likewise.
8104
8105 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8106
8107 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8108 (arm_linux_push_arguments): Likewise.
8109 (arm_linux_init_abi): Register them. Also register linux-specific
8110 call_dummy_words.
8111 (find_minsym_and_objfile): Use strcmp, not STREQ.
8112 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8113 (arm_linux_call_dummy_words): Delete declaration.
8114 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8115 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8116 declarations.
8117 (LOWEST_PC): Delete.
8118
8119 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8120
8121 * maint.c (print_section_info): Do not prepend `0x' to filepos
8122 output, it will be handled by local_hex_string_custom.
8123
8124 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8125
8126 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8127 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8128 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8129
8130 2002-02-22 Jim Blandy <jimb@redhat.com>
8131
8132 Indicate that the bcache functions don't change the strings
8133 they're passed.
8134 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8135 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8136
8137 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8138
8139 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8140
8141 2002-02-21 Christopher Faylor <cgf@redhat.com>
8142
8143 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8144 find the complete path to a loaded DLL.
8145
8146 2002-02-21 Fred Fish <fnf@redhat.com>
8147
8148 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8149 that marks the end of the range of a function, enter a line number
8150 entry that has a line number of zero and a PC offset that matches
8151 the end of the function. This starts a range of PC's for which no
8152 line number information is known.
8153 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8154 PC's for which no line number info is found (line number is zero)
8155 then we didn't find any valid line information.
8156 * symtab.h: Document use of zero line number entry.
8157
8158 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8159
8160 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8161 (have_ptrace_getvrregs): Define for run time checks.
8162 (gdb_vrregset_t): New type for Altivec register handling.
8163 (fetch_register, store_register): Fetch/store altivec register
8164 when needed.
8165 (fetch_altivec_register, store_altivec_register): New functions.
8166 (supply_vrregset, fill_vrregset): New functions.
8167 (fetch_altivec_registers, store_altivec_registers): New functions.
8168 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8169 registers as well.
8170
8171 2002-02-21 Jiri Smid <smid@suse.cz>
8172
8173 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8174
8175 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8176
8177 * Makefile.in (armnbsd-nat.o): Update dependencies.
8178 * armnbsd-nat.c (supply_gregset): New function. Common code to
8179 supply the integer register set.
8180 (supply_fparegset): New function. Similar for FPA registers.
8181 (fetch_regs, fetch_fp_regs): Use them.
8182 (fetch_core_registers): Likewise.
8183 (fetch_elfcore_registers): New function.
8184 (arm_netbsd_elfcore_fns): New core-file type specification.
8185 (_initialize_arm_netbsd_nat): Register it.
8186
8187 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8188
8189 * armnbsd-nat.c: Include gdbcore.h.
8190 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8191 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8192 'void' to declaration, to shut up ARI.
8193 (fetch_core_registers): Make static. Rewrite using supply_register.
8194 (arm_netbsd_core_fns): New core-file type specification.
8195 (_initialize_arm_netbsd_nat): New function.
8196
8197 2002-02-21 Christopher Faylor <cgf@redhat.com>
8198
8199 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8200 value.
8201
8202 2002-02-20 Christopher Faylor <cgf@redhat.com>
8203
8204 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8205 fails.
8206
8207 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * jv-exp.y (parse_number): Change type of implicit longs
8210 to builtin_type_uint64.
8211
8212 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8215 to be an integer instead of a `union wait'.
8216
8217 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8218
8219 * mips-linux-nat.c: Call the operating system GNU/Linux.
8220 * mips-linux-tdep.c: Likewise.
8221 * mips-tdep.c: Likewise.
8222
8223 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8224
8225 Fix PR gdb/265.
8226 * jv-exp.y (parse_number): Handle 64-bit integers.
8227
8228 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8229
8230 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8231 AC_STDC_HEADERS to AC_HEADER_STDC.
8232 * gdbserver/configure: Regenerated.
8233
8234 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8235
8236 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8237 is defined.
8238 * sparc-tdep.c (get_longjmp_target): Likewise.
8239
8240 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * News: Add news about ARM and Multi-arch. Mention the new target
8243 arm*-*-netbsd*.
8244
8245 2002-02-19 Jim Blandy <jimb@redhat.com>
8246
8247 * stabsread.c (error_type_complaint): Improve error message.
8248
8249 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * gdbserver/README: Update documentation.
8252 * gdbserver/configure.in: Update configury to match documentation.
8253 * gdbserver/Makefile.in: Likewise.
8254 * gdbserver/configure: Regenerated.
8255 * gdbserver/aclocal.m4: New file, generated by aclocal.
8256 * gdbserver/config.in: New file, generated by autoheader.
8257
8258 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8259
8260 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8261 armnbsd-nat.c.
8262
8263 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8264
8265 * arm-tdep.h (enum arm_float_model): New enum.
8266 (struct gdbarch_tdep): Add fp_model.
8267 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8268 up floating-point conversions until we know the floating-point model
8269 in use by the inferior. Don't complain about being unable to
8270 determine the ABI of the inferior when we don't have one.
8271 (arm_extract_return_value): Support different floating-point models.
8272 (arm_store_return_value): Likewise.
8273 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8274 ARM_FLOAT_SOFT.
8275 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8276
8277 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8278
8279 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8280 of ``current_gdbarch''.
8281
8282 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8283
8284 * armnbsd-nat.c : ANSIfy all function declarations.
8285 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8286 (fetch_inferior_registers): Re-implement in terms of above.
8287 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8288 (store_inferior_registers): Re-implement in terms of above.
8289
8290 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8291
8292 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8293 kernel.
8294 * arm-linux-tdep.c: Likewise.
8295 * config/arm/tm-linux.h: Likewise.
8296
8297 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8298
8299 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8300 * config/arm/nbsd.mt (TM_FILE): Delete.
8301 * config/arm/tm-nbsd.h: Delete.
8302
8303 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8304
8305 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8306 Initialize CALL_DUMMY_LENGTH.
8307
8308 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8309
8310 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8311 function.
8312 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8313 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8314 defines one thing and that is incorrect for this port.
8315 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8316
8317 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8318
8319 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8320
8321 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8322
8323 * win32-nat.c (display_selector): New function. Displays information
8324 about the information returned by GetThreadSelectorEntry API function.
8325 (display_selectors): New function. Displays the infomation of
8326 the selector given as argument, or of CS, DS ans FS selectors
8327 if no argument is given.
8328 ( _initialize_inftarg): Add "w32" as info prefix command.
8329 Add "info w32 selector" as command calling display_selectors.
8330
8331 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8332
8333 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8334 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8335 if not defined.
8336
8337 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8338
8339 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8340
8341 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8342
8343 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8344 (arm_fix_call_dummy): Call it.
8345 (arm_call_dummy_breakpoint_offset): Delete.
8346 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8347 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8348
8349 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8350
8351 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8352 Default to func_frame_chain_valid.
8353 * gdbarch.h, gdbarch.c: Re-generate.
8354 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8355
8356 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8357
8358 * ppc-linux-nat.c: Update copyright.
8359 (fetch_register, store_register): Add tid parameter, don't compute
8360 tid here.
8361 (fetch_ppc_registers, store_ppc_registers): Add tid
8362 parameter. Pass it along to callees.
8363 (fetch_inferior_registers, store_inferior_registers): Compute tid
8364 here, and pass it to calleed functions.
8365 (fill_gregset, supply_fpregset): Clean up formatting.
8366
8367 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8368
8369 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8370 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8371
8372 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8373
8374 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8375 * gdbarch.c gdbarch.h: Regenerate.
8376 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8377 function.
8378 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8379 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8380 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8381
8382 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8383 * arm-tdep.c (arm_get_longjmp_target): New function.
8384 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8385 this to a positive value register arm_get_longjmp_target as the
8386 longjmp handler.
8387 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8388 (arm_linux_init_abi): Set up longjmp description in tdep.
8389 * armnbsd-nat.c (get_longjmp_target): Delete.
8390 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8391 description in tdep.
8392 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8393 (get_longjmp_target): Delete declaration.
8394 (GET_LONGJMP_TARGET): Delete.
8395 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8396 (GET_LONGJMP_TARGET): Delete.
8397
8398 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8399
8400 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8401 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8402 of ``current_gdbarch''.
8403
8404 2002-02-17 Tom Tromey <tromey@redhat.com>
8405
8406 * cli/cli-cmds.c (compare_strings): New function.
8407 (complete_command): Only print each unique item once.
8408 * completer.h (complete_line): Declare.
8409 * completer.c (complete_line): New function.
8410 (line_completion_function): Use it.
8411
8412 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8413
8414 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8415 * gdbarch.h, gdbarch.c: Re-generate.
8416
8417 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8418
8419 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8420
8421 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8422
8423 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8424 * valops.c (value_arg_coerce): Don't take the address of a reference
8425 to convert an argument to a reference.
8426
8427 2002-02-15 Christopher Faylor <cgf@redhat.com>
8428
8429 * win32-nat.c (get_image_name): New function.
8430 (handle_load_dll): Use get_image_name function.
8431 (get_child_debug_event): Avoid registering debug events until possibly
8432 execed process is started.
8433 (child_create_inferior): Allow invocation via shell so that command
8434 line redirection, etc. works ok.
8435 (_initialize_inftarg): Add new command: "set shell" to control whether
8436 a shell is used to start a process.
8437
8438 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8439
8440 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8441 instead of find_register_by_number.
8442 (cannot_store_register): Likewise.
8443
8444 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8445
8446 * dwarf2read.c: Replace fprintf (stderr, ...) by
8447 fprintf_unfiltered (gdb_stderr, ...).
8448
8449 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * gdbserver/gdbserver.1: Document --attach.
8452
8453 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8454
8455 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8456 descriptions.
8457 * arm-tdep.c (arm_default_arm_le_breakpoint)
8458 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8459 (arm_default_thumb_be_breakpoint): New. Initialize them from
8460 traditional breakpoint defines.
8461 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8462 (arm_gdbarch_init): Initialize new breakpoint variables.
8463 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8464 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8465 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8466 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8467 code out to ...
8468 (arm_netbsd_init_abi_common): ... here; new function.
8469 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8470 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8471 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8472 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8473
8474 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8475
8476 * arm-tdep.h (enum arm_abi): New enum.
8477 (struct gdbarch_tdep): New structure.
8478 (LOWEST_PC): Provide a default.
8479 (arm_gdbarch_register_os_abi): Declare new function.
8480 * arm-tdep.c (arm_abi_names): New array.
8481 (process_note_abi_tag_sections): New function.
8482 (get_elfosabi): New function.
8483 (arm_gdbarch_register_os_abi): New function.
8484 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8485 support for that ABI has been built in, then call the appropriate
8486 configuration routine. Use gdbarch_num_regs() to get the number
8487 of registers.
8488 (arm_dump_tdep): New function.
8489 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8490 place-holder functions.
8491 (_initialize_arm_tdep): Register them.
8492 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8493
8494 * armnbsd-tdep.c: New file.
8495 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8496 * config/arm/nbsd.mt (TDEPFILES): Add it.
8497 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8498
8499 * armnbsd-nat.c: Include regcache.h.
8500 * Makefile.in (armnbsd-nat.o): Update dependency list.
8501
8502 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8503
8504 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8505
8506 * gdbserver/Makefile.in: Fix typos in target rules.
8507
8508 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8509
8510 Fix part of PR gdb/267.
8511 * linespec.c (find_methods): Handle constructors specially for now.
8512
8513 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8514
8515 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8516 handling.
8517 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8518 standard_coerce_float_to_double().
8519
8520 2002-02-14 Christopher Faylor <cgf@redhat.com>
8521
8522 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8523 GDBINIT_FILENAME.
8524
8525 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8526
8527 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8528 find_variant_by_name, because it confuses the multiarch
8529 framework. Return NULL if there isn't an architecture with the
8530 user supplied name, instead of forcing a different one without
8531 recording the change with the multiarch machinery.
8532 (find_variant_by_name): Delete.
8533
8534 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8535
8536 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8537 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8538
8539 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8540
8541 * stack.c (print_frame_info_base): When calling
8542 print_frame_info_listing_hook, set current_source_symtab.
8543
8544 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8545
8546 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8547 and remove unused $(INCLUDE_DIR).
8548 Add regcache.c to OBS.
8549 Add generated register protocol files to clean target.
8550 Update dependencies for new objects, obsolete old target code.
8551
8552 * gdbserver/linux-low.c: Remove all platform-specific code to
8553 new files. Remove various dead code. Update to use regcache
8554 functionality.
8555 * gdbserver/remote-utils.c (fromhex): Add return statement
8556 to quiet warning.
8557 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8558 constant.
8559 (input_interrupt): Add integer parameter to match prototype
8560 of a signal handler.
8561 (outreg): Use register_data ().
8562 (prepare_resume_reply): Use gdbserver_expedite_regs.
8563 * gdbserver/server.c (main): Dynamically allocate own_buf because
8564 PBUFSIZ is no longer constant. Use registers_to_string () and
8565 registers_from_string ().
8566 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8567 for error (), fatal (), and warning (). Update definition of
8568 PBUFSIZ to use regcache functionality. Add include guard.
8569 * gdbserver/utils.c (fatal): Add missing ``const''.
8570 (warning): New function.
8571
8572 * regformats/regdat.sh: Include "regcache.h" in generated files.
8573 Provide init_registers () function.
8574 * regformats/regdef.h: Add prototype for set_register_cache ().
8575 Add include guard.
8576
8577 * gdbserver/linux-arm-low.c: New file.
8578 * gdbserver/linux-i386-low.c: New file.
8579 * gdbserver/linux-ia64-low.c: New file.
8580 * gdbserver/linux-m68k-low.c: New file.
8581 * gdbserver/linux-mips-low.c: New file.
8582 * gdbserver/linux-ppc-low.c: New file.
8583 * gdbserver/linux-sh-low.c: New file.
8584
8585 * gdbserver/regcache.c: New file.
8586 * gdbserver/regcache.h: New file.
8587
8588 * gdbserver/low-linux.c: Removed obsolete file.
8589
8590 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8591
8592 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8593 * config/i386/linux.mt: Likewise.
8594 * config/ia64/linux.mt: Likewise.
8595 * config/m68k/linux.mh: Likewise.
8596 * config/powerpc/linux.mh: Likewise.
8597 * config/mips/linux.mt: Likewise.
8598
8599 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8600
8601 * config/i386/i386lynx.mh: Mark gdbserver variables
8602 as (currently) obsolete for this target.
8603 * config/i386/nbsd.mt: Likewise.
8604 * config/i386/nbsdelf.mt: Likewise.
8605 * config/m32r/m32r.mt: Likewise.
8606 * config/m68k/m68klynx.mh: Likewise.
8607 * config/m68k/nbsd.mt: Likewise.
8608 * config/m68k/sun3os4.mh: Likewise.
8609 * config/mips/vr5000.mt: Likewise.
8610 * config/ns32k/nbsd.mt: Likewise.
8611 * config/pa/hppabsd.mh: Likewise.
8612 * config/pa/hppaosf.mh: Likewise.
8613 * config/powerpc/nbsd.mt: Likewise.
8614 * config/rs6000/rs6000lynx.mh: Likewise.
8615 * config/s390/s390.mt: Likewise.
8616 * config/s390/s390x.mt: Likewise.
8617 * config/sparc/sparclynx.mh: Likewise.
8618 * config/sparc/sun4os4.mh: Likewise.
8619 * config/i386/x86-64linux.mt: Likewise.
8620 * config/sparc/linux.mh: Likewise.
8621
8622 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8623
8624 * configure.tgt: Configure gdbserver only for known working
8625 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8626 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8627 SUBDIRS if it is configured. Update comment for ${nativefile}.
8628 * configure: Regenerated.
8629
8630 2002-02-13 Michael Snyder <msnyder@redhat.com>
8631
8632 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8633
8634 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8635 (default_gcore_mach): Just return 0, work around a problem in bfd.
8636 (default_gcore_target): OK to return NULL if exec_bfd is null.
8637 (make_mem_sec): Use a cast, avoid a warning.
8638
8639 * procfs.c (find_memory_regions_callback): Use a cast instead of
8640 calling host_pointer_to_address (which complains if
8641 sizeof (host pointer) != sizeof (target pointer)).
8642 (procfs_make_note_section): Avoid overflow in psargs string.
8643
8644 * procfs.c (procfs_make_note_section): Make the default
8645 implementation return an error.
8646
8647 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8648
8649 * procfs.c (procfs_make_note_section): Provide a default definition
8650 (for alpha-dec-osf4.0f). Fix typos.
8651
8652 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8653
8654 * linux-proc.c: Add include of regcache.h.
8655 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8656
8657 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8658
8659 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8660 * memattr.c (create_mem_region): Disallow useless empty region.
8661 Regions are half-open intervals, so allow [A..B) [B..C) as
8662 non-overlapping.
8663
8664 2002-02-13 Michael Chastain <mec@shout.net>
8665
8666 * defs.h: Kill CONST_PTR.
8667 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8668 * c-lang.c (c_builtin_types): Likewise.
8669 * ch-lang.c (ch_builtin_types): Likewise.
8670 * f-lang.c (f_builtin_types): Likewise.
8671 * language.c (unknown_builtin_types): Likewise.
8672 * m2-lang.c (m2_builtin_types): Likewise.
8673 * p-lang.c (pascal_builtin_types): Likewise.
8674 * scm-lang.c (c_builtin_types): Likewise.
8675
8676 2002-02-13 Keith Seitz <keiths@redhat.com>
8677
8678 * arm-tdep.h (arm_get_next_pc): Add declaration.
8679
8680 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8681
8682 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8683 with other related struct-returning functions.
8684 (arm_extract_struct_value_address): New function.
8685 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8686 initialize float_format, double_format and long_double_format as
8687 appropriate to the endianness of the target.
8688 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8689 (arm_use_struct_convention): Delete declaration.
8690 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8691
8692 2002-02-13 Keith Seitz <keiths@redhat.com>
8693
8694 * defs.h (core_addr_to_string_nz): New function.
8695
8696 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8697
8698 Apply missing bits of 2002-01-15 patch.
8699 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8700 (fill_fpregset): Use i387_fill_fsave.
8701
8702 2002-02-12 Keith Seitz <keiths@redhat.com>
8703
8704 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8705 (core_addr_to_string_nz): New function.
8706
8707 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8708
8709 * arm-linux-nat.c: Really include arm-tdep.h.
8710 * config/arm/tm-linux.h (struct type, struct value): Declare.
8711
8712 2002-02-11 Michael Snyder <msnyder@redhat.com>
8713
8714 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8715 (gcore section): Ifdef for Solaris and Unixware only.
8716 (procfs_do_thread_registers): Unixware needs one lwpstatus
8717 per thread (not one prstatus or pstatus).
8718 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8719 not over all gdb threads. For unixware, call elfcore_write_pstatus
8720 once before iterating over threads.
8721
8722 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8723
8724 * arm-tdep.h: New file.
8725 * arm-tdep.c: Include arm-tdep.h.
8726 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8727 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8728 (arm_print_float_info, arm_register_type, convert_to_extended)
8729 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8730 (arm_extract_return_value, arm_register_name): Make static.
8731 (arm_software_single_step): Similarly. Fix types in declaration.
8732 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8733 (arm_store_return_value, arm_store_struct_return): New functions.
8734 (arm_gdbarch_init): Register the above functions. Also register
8735 call_dummy_start_offset, sizeof_call_dummy_words,
8736 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8737 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8738 max_register_virtual_size, register_size. Set up
8739 prologue_cache.saved_regs here, rather than ...
8740 (_initialize_arm_tdep): ... here.
8741 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8742 declarations.
8743 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8744 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8745 (arm_print_float_info, arm_register_type, convert_to_extended)
8746 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8747 (arm_extract_return_value, arm_register_name): Delete declarations.
8748 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8749 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8750 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8751 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8752 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8753 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8754 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8755 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8756 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8757 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8758 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8759 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8760 interface.
8761 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8762 * remote-rdi.c remote-rdp.c: Likewise.
8763 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8764 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8765 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8766 definition.
8767
8768 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8769 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8770 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8771 from non-ARM_ prefixed definitions.
8772 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8773 all uses of above.
8774 * remote-rdi.c remote-rdp.c: Likewise.
8775 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8776
8777 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8778
8779 * arm-tdep.c (arm_frameless_function_invocation)
8780 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8781 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8782 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8783 (arm_pop_frame, arm_get_next_pc): Make static.
8784 (arm_gdbarch_init): Register above in gdbarch structure.
8785 (arm_read_fp): Renamed from arm_target_read_fp.
8786 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8787 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8788 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8789 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8790 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8791 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8792 (arm_pc_is_thumb_dummy): Delete declarations.
8793 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8794 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8795 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8796 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8797
8798 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8799
8800 * symtab.c (compare_search_syms): New function.
8801 (sort_search_symbols): New function.
8802 (search_symbols): Sort symbols after searching rather than
8803 before.
8804
8805 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8806
8807 * NEWS: Linux -> GNU/Linux.
8808
8809 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8810
8811 * gdbarch.sh: For for level one methods, disallow a definition
8812 when partially multi-arched. Add comments explaining rationale.
8813 * gdbarch.h: Re-generate.
8814
8815 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8816
8817 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8818 multi-arch partial.
8819
8820 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8821
8822 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8823 field. Use diff -u.
8824 * gdbarch.c: Re-generate.
8825
8826 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8827
8828 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8829 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8830 partial.
8831
8832 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8833
8834 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8835 multi-arch partial.
8836 (PUSH_ARGUMENTS): Switch to using predefault.
8837 * gdbarch.c: Regenerate.
8838
8839 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8840
8841 * valops.c (PUSH_ARGUMENTS): Delete definition.
8842 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8843 partial. Default to default_push_arguments.
8844 * gdbarch.h, gdbarch.c: Regenerate.
8845
8846 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8847
8848 * defs.h (throw_exception): Rename return_to_top_level. Update
8849 comments.
8850 * utils.c (error_stream, internal_verror, quit): Ditto.
8851 * top.c (throw_exception, catcher): Ditto.
8852 * sparclet-rom.c (sparclet_load): Ditto.
8853 * remote.c (interrupt_query, minitelnet): Ditto.
8854 * remote-sds.c (interrupt_query): Ditto.
8855 * remote-mips.c (mips_error, mips_kill): Ditto.
8856 * ocd.c (interrupt_query): Ditto.
8857 * monitor.c (monitor_interrupt_query): Ditto.
8858 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8859 * target.h: Update comment.
8860
8861 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8862
8863 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8864
8865 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8866 default_double_format.
8867 * gdbarch.h, gdbarch.c: Re-generate.
8868 * findvar.c (floatformat_unknown): Delete variable definition.
8869 * doublest.h (floatformat_unknown): Delete variable declaration.
8870
8871 2002-02-09 Jim Blandy <jimb@redhat.com>
8872
8873 * stabsread.c (read_type): Add code to parse Sun's syntax for
8874 prototyped function types.
8875
8876 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8877
8878 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8879 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8880
8881 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8882
8883 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8884 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8885 now _initialize_xcoffsolib gets called again and overrides the
8886 commands from solib.c in a native configuration.
8887
8888 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8889
8890 * doublest.c (store_typed_floating): Don't try to return a value.
8891 Fixes PR gdb/290.
8892
8893 2002-02-08 Jim Blandy <jimb@redhat.com>
8894
8895 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8896 is prototyped and has no arguments, print its argument list as
8897 `(void)'.
8898
8899 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8900
8901 * MAINTAINERS (write-after-approval): Add myself.
8902 (paper-trail): I've escaped!
8903
8904 2002-02-08 Christopher Faylor <cgf@redhat.com>
8905
8906 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8907 changes.
8908 (_initialize_check_for_gdb_ini): Ditto.
8909
8910 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8911
8912 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8913 xaprintf -> xasprintf.
8914
8915 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8916
8917 * win32-nat.c: Remove use of printf and sprintf functions.
8918
8919 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8920
8921 * arm-tdep.c (arm_frame_chain_valid): Make static.
8922 (arm_push_arguments): Likewise.
8923 (arm_gdbarch_init): New function.
8924 (_initialize_arm_tdep): Call it.
8925 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8926 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8927 (FRAME_CHAIN_VALID): Delete.
8928 (arm_frame_chain_valid): Delete declaration.
8929 (PUSH_ARGUMENTS): Delete.
8930 (arm_push_arguments): Delete declaration.
8931 (CALL_DUMMY_P): Delete.
8932
8933 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8934 Corinna Vinschen <vinschen@redhat.com>
8935
8936 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8937 on builtin float types.
8938
8939 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8940
8941 * utils.c: Include <curses.h> before "bfd.h".
8942 * tui/tui-hooks.c: Likewise.
8943 * tui/tui.c: Likewise.
8944 * tui/tuiCommand.c: Likewise.
8945 * tui/tuiData.c: Likewise.
8946 * tui/tuiDataWin.c: Likewise.
8947 * tui/tuiDisassem.c: Likewise.
8948 * tui/tuiGeneralWin.c: Likewise.
8949 * tui/tuiIO.c: Likewise.
8950 * tui/tuiLayout.c: Likewise.
8951 * tui/tuiRegs.c: Likewise.
8952 * tui/tuiSource.c: Likewise.
8953 * tui/tuiSourceWin.c: Likewise.
8954 * tui/tuiStack.c: Likewise.
8955 * tui/tuiWin.c: Likewise.
8956
8957 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8958
8959 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8960 to include space for pseudoregs as well. Update loops accordingly.
8961 (sh_fp_frame_init_saved_regs): Ditto.
8962 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8963
8964 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8965
8966 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8967 Add Richard Earnshaw to Arm maintainers.
8968
8969 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8970
8971 * defs.h (warning_begin): Delete declaration.
8972
8973 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8974 Delete macro.
8975
8976 2002-02-07 Michael Snyder <msnyder@redhat.com>
8977
8978 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8979 Logic bug, remove misplaced else.
8980
8981 2002-02-07 Klee Dienes <klee@apple.com>
8982
8983 * fork-inferior.c (fork_inferior): Add '!' to the list of
8984 characters that need to be quoted when building a string for the
8985 shell. Quote '!' specifically with a backslash, since CSH chokes
8986 when trying to evaluate "str!str".
8987
8988 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8989
8990 * rdi-share/host.h: Only provide a typedef for bool if it is not
8991 defined.
8992
8993 2002-02-04 Michael Snyder <msnyder@redhat.com>
8994
8995 * breakpoint.h (enum bptype): Add new overlay event bp type.
8996 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8997
8998 * breakpoint.c (create_internal_breakpoint): New function.
8999 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9000 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9001 (create_thread_event_breakpoint): Ditto.
9002 (create_solib_event_breakpoint): Ditto.
9003 (create_overlay_event_breakpoint): New function.
9004 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9005 (update_breakpoints_after_exec): Delete and re-initialize
9006 overlay event breakpoints after an exec. Add FIXME comment
9007 about longjmp breakpoint.
9008 (print_it_typical): Ignore overlay event breakpoints.
9009 (print_one_breakpoint): Ditto.
9010 (mention): Ditto.
9011 (bpstat_what): Do not stop for overlay event breakpoints.
9012 (delete_breakpoint): Don't delete overlay event breakpoints.
9013 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9014 (breakpoint_re_set): Re-create overlay event breakpoint.
9015
9016 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9017 (overlay_manual_command): Disable overlay breakpoints.
9018 (overlay_off_command): Disable overlay breakpoints.
9019
9020 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9021
9022 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9023 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9024 to here from config/tm-arm.h.
9025 (coff_sym_is_thumb): Make static.
9026 (arm_elf_make_msymbol_special): New function.
9027 (arm_coff_make_msymbol_special): New function.
9028 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9029 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9030 (coff_sym_is_thumb): Delete declaration.
9031 (arm_elf_make_msymbol_special): Declare.
9032 (arm_coff_make_msymbol_special): Declare.
9033 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9034 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9035
9036 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9037
9038 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9039
9040 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9041
9042 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9043 * gdbarch.c gdbarch.h: Regenerate.
9044 * arch-utils.c (default_print_float_info): New function.
9045 * arch-utils.h (default_print_float_info): Prototype it.
9046 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9047 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9048 (PRINT_FLOAT_INFO): Document it.
9049
9050 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9051 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9052 (PRINT_FLOAT_INFO): Define.
9053
9054 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9055
9056 * win32-nat.c (_initialize_check_for_gdb_ini):
9057 Add typecast to sprintf argument to suppress a warning.
9058
9059 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9060
9061 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9062 to allow easier handling of pass state.
9063 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9064 that gives exception name and address.
9065 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9066 and set last_sig value to ourstatus->value.sig. Some missing
9067 exceptions added.
9068 (child_continue): Correctly report continue_status.
9069 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9070 TARGET_SIGNAL_0 (new default value).
9071 (child_resume): consider sig argument passed to decide if
9072 the exception should be passed to debuggee or not.
9073
9074 2002-02-05 Michael Snyder <msnyder@redhat.com>
9075
9076 * regcache.c (fetch_register): Call target_fetch_register
9077 only if we don't call FETCH_PSEUDO_REGISTER.
9078 (store_register): Call target_store_register only if we
9079 don't call STORE_PSEUDO_REGISTER.
9080
9081 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9082
9083 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9084 ELF_MAKE_MSYMBOL_SPECIAL.
9085 * gdbarch.c, gdbarch.h: Regenerate.
9086 * arch-utils.c (default_make_msymbol_special): New function.
9087 * arch-utils.h (default_make_msymbol_special): Export.
9088 * elfread.c (elf_symtab_read): Compile use of
9089 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9090 multiarched.
9091 * coffread.c (coff_symtab_read): Ditto, for
9092 COFF_MAKE_MSYMBOL_SPECIAL.
9093
9094 2002-02-05 Jim Blandy <jimb@redhat.com>
9095
9096 * solib-svr4.c (svr4_truncate_ptr): New function.
9097 (svr4_relocate_section_addresses): Do the address arithmetic with
9098 the appropriate truncation for target addresses, even when
9099 CORE_ADDR is larger than a target address.
9100
9101 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9104 to (int *).
9105
9106 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9107
9108 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9109 code.
9110
9111 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9112
9113 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9114
9115 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9116
9117 * gdbserver/linux-low.c: Remove unused include files.
9118
9119 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9120
9121 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9122 (read_inferior_memory): Use it.
9123 (write_inferior_memory): Likewise.
9124
9125 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9126
9127 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9128 grubbing through sys_errlist.
9129
9130 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9131
9132 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9133
9134 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9135 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9136
9137 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9138
9139 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9140 (do_sfunc, set_cmd_sfunc): New functions.
9141
9142 * command.h (struct cmd_list_element): Add field func.
9143 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9144 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9145 * cli/cli-decode.h: Ditto.
9146
9147 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9148 (help_all, help_cmd_list): Ditto.
9149 (find_cmd, complete_on_cmdlist): Ditto.
9150 * top.c (execute_command): Ditto.
9151
9152 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9153 function.sfunc.
9154
9155 * infcmd.c (notice_args_read): Fix function signature.
9156
9157 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9158 * cli/cli-decode.c (add_set_cmd): Ditto.
9159 * utils.c (initialize_utils): Ditto.
9160 * maint.c (_initialize_maint_cmds): Ditto.
9161 * infrun.c (_initialize_infrun): Ditto.
9162 * demangle.c (_initialize_demangler): Ditto.
9163 * remote.c (add_packet_config_cmd): Ditto.
9164 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9165 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9166 * proc-api.c (_initialize_proc_api): Ditto.
9167 * kod.c (_initialize_kod): Ditto.
9168 * valprint.c (_initialize_valprint): Ditto.
9169 * top.c (init_main): Ditto.
9170 * infcmd.c (_initialize_infcmd): Ditto.
9171 * corefile.c (_initialize_core): Ditto.
9172 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9173 * arch-utils.c (initialize_current_architecture): Ditto.
9174 (_initialize_gdbarch_utils): Ditto.
9175 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9176
9177 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9178 * wince.c (_initialize_inftarg): Ditto.
9179 * symfile.c (_initialize_symfile): Ditto.
9180 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9181 * language.c (_initialize_language): Ditto.
9182 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9183
9184 2002-02-04 Michael Snyder <msnyder@redhat.com>
9185
9186 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9187
9188 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9191 Add rules for building the register data files.
9192
9193 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * regformats/regdat.sh: Add braces to the definition of
9196 expedite_regs_${arch}.
9197
9198 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9199
9200 * regformats/regdef.h (struct reg): Add comment describing the
9201 requirements for offset and size fields.
9202
9203 2002-02-04 Andreas Schwab <schwab@suse.de>
9204
9205 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9206 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9207
9208 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9209
9210 * gdbarch.sh (copyright): Update years in generated header.
9211 (SMASH_TEXT_ADDRESS): Add rule.
9212 * gdbarch.h, gdbarch.c: Re-generate.
9213 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9214 * dbxread.c: Likewise.
9215 * dwarfread.c: Likewise.
9216 * elfread.c: Likewise.
9217 * somread.c: Likewise.
9218
9219 * arm-tdep.c (arm_smash_text_address): New function.
9220 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9221
9222 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9223
9224 Add support for hardware watchpoints on win32 native.
9225 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9226 CONTEXT_DEBUG_REGISTERS.
9227 (dr variable): New variable. Static array containing a local copy
9228 of debug registers.
9229 (debug_registers_changed): New variable. Reflects when debug registers
9230 are changed and need to be written to inferior.
9231 (debug_registers_used): New variable. Reflects when any debug register
9232 was set, used when new threads are created.
9233 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9234 i386-nat code.
9235 (thread_rec): Set dr array if id is the thread of current_event .
9236 (child_continue, child_resume): Change the debug registers for all
9237 threads if debug_registers_changed.
9238 (child_add_thread): Change the debug registers if debug_registers_used.
9239 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9240 Link nm.h to new nm-cygwin.h file.
9241 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9242 of hardware registers.
9243
9244 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9245
9246 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9247 Restore behavour broken by 2002-01-20 Andrew Cagney
9248 <ac131313@redhat.com> IEEE_FLOAT removal.
9249
9250 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9251
9252 * c-valprint.c (c_val_print): Pass a proper valaddr to
9253 cp_print_class_method.
9254 * valops.c (search_struct_method): If there is only one method
9255 and args is NULL, return that method.
9256
9257 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9258
9259 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9260 accessing tag_name directly.
9261
9262 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9265 of accessing tag_name directly.
9266
9267 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9268
9269 PR gdb/280
9270 * gdbtypes.c (replace_type): New function.
9271 * gdbtypes.h (replace_type): Add prototype.
9272 * stabsread.c (read_type): Use replace_type.
9273
9274 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9275
9276 * Makefile.in (memattr.o): Add missing dependencies rule.
9277
9278 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9279
9280 * breakpoint.c (break_at_finish_command): Really export.
9281 (break_at_finish_at_depth_command): Ditto.
9282 (tbreak_at_finish_command): Ditto.
9283 * hppa-tdep.c: Include completer.h.
9284 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9285 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9286
9287 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9288
9289 * utils.c (do_write): New function.
9290 (error_stream): Rewrite combining the code from error_begin and
9291 verror.
9292 (verror): Rewrite using error_stream.
9293 (error_begin): Delete function.
9294
9295 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9296
9297 * utils.c (error_begin): Make static.
9298 * defs.h (error_begin): Delete declaration.
9299
9300 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9301 (decode_line_1): Use cplusplus_error instead of error_begin,
9302 cplusplus_hint and return_to_top_level.
9303 * coffread.c (coff_symfile_read): Use error instead of error_begin
9304 and return_to_top_level.
9305 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9306
9307 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9308
9309 * language.h (type_error, range_error): Make string parameter
9310 constant.
9311 * language.c (warning_pre_print): Delete extern declaration.
9312 * dwarfread.c (warning_pre_print): Ditto.
9313 * language.c (type_error, range_error): Rewrite to use verror and
9314 vwarning instead of warning_begin.
9315
9316 2002-02-01 Michael Snyder <msnyder@redhat.com>
9317
9318 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9319 (set_ignore_count): Move misplaced comment back where it belongs.
9320
9321 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9322
9323 * command.h (NO_FUNCTION): Delete macro.
9324 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9325 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9326 * tracepoint.c (_initialize_tracepoint): Ditto.
9327 * cli/cli-decode.c (add_set_cmd): Ditto.
9328 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9329
9330 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9331
9332 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9333 Update ``this'' pointer when calling virtual functions.
9334
9335 2002-02-01 Michael Snyder <msnyder@redhat.com>
9336
9337 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9338 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9339
9340 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * regformats/reg-arm.dat: New file.
9343 * regformats/reg-i386.dat: New file.
9344 * regformats/reg-ia64.dat: New file.
9345 * regformats/reg-m68k.dat: New file.
9346 * regformats/reg-mips.dat: New file.
9347 * regformats/reg-ppc.dat: New file.
9348 * regformats/reg-sh.dat: New file.
9349 * regformats/regdef.h: New file.
9350 * regformats/regdat.sh: New file.
9351
9352 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9353
9354 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9355 (arm_frame_args_address, arm_frame_locals_address): New functions.
9356 (arm_frame_num_args): New function.
9357 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9358 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9359 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9360
9361 2002-01-31 Michael Snyder <msnyder@redhat.com>
9362
9363 * breakpoint.c (break_at_finish_command): Export.
9364 (break_at_finish_at_depth_command): Export.
9365 (tbreak_at_finish_command): Export.
9366 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9367 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9368 "tbreak" commands, which are HPPA specific.
9369
9370 * printcmd.c (disassemble_command): Remove an ancient
9371 artifact of an old merge.
9372
9373 * symfile.h (enum overlay_debugging_state):
9374 Define enum constant values for overlay mode.
9375 * symfile.c (overlay_debugging): Use enums instead of literals.
9376 (overlay_is_mapped, overlay_auto_command,
9377 overlay_manual_command): Ditto.
9378
9379 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9380 breakpoint_here_p, breakpoint_inserted_here_p,
9381 breakpoint_thread_match, bpstat_stop_status,
9382 describe_other_breakpoints, check_duplicates, clear_command):
9383 Coding standard fixes.
9384
9385 * target.c (target_xfer_memory): Add spaces, coding standard.
9386 (do_xfer_memory): Add missing line to trust-readonly
9387 code: check bfd SEC_READONLY flag for section.
9388
9389 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9390
9391 * PROBLEMS: Fix typo, 5.1->5.1.1.
9392
9393 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9396 data symbols, since we search based on textlow and texthigh.
9397 (find_pc_sect_symtab): Likewise.
9398
9399 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9400
9401 * defs.h (vwarning): Declare.
9402 * utils.c (vwarning): New function.
9403 (warning): Call vwarning.
9404 (warning_begin): Delete function.
9405
9406 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9407 the warning message.
9408 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9409 warning_begin.
9410
9411 2002-01-30 Michael Snyder <msnyder@redhat.com>
9412
9413 * NEWS: Mention "set trust-readonly-sections" command.
9414 Mention generate-core-file command.
9415
9416 2002-01-15 Michael Snyder <msnyder@redhat.com>
9417
9418 * target.c: New command, "set trust-readonly-sections on".
9419 (do_xfer_memory): Honor the suggestion to trust readonly sections
9420 by reading them from the object file instead of from the target.
9421 (initialize_targets): Register command "set trust-readonly-sections".
9422
9423 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9424
9425 * parse.c (target_map_name_to_register): Simplify, search regs and
9426 pseudo-regs using a single loop.
9427
9428 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9429
9430 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9431
9432 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9433
9434 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9435 * config/i386/i386v42mp.mh: Add i387-nat.o .
9436 * i386v4-nat.c: Include i387-nat.h.
9437 (supply_fpregset): Use i387_supply_fsave.
9438 (fill_fpregset): Use i387_fill_fsave.
9439
9440 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9441
9442 * arm-tdep.c (arm_call_dummy_words): Define.
9443 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9444 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9445 (CALL_DUMMY_WORDS): Define.
9446 (arm_call_dummy_words): Declare.
9447 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9448 (arm_linux_call_dummy_words): Declare.
9449
9450 2002-01-30 Andreas Schwab <schwab@suse.de>
9451
9452 * m68klinux-nat.c: Fix last change to use regcache_collect
9453 instead of referencing registers[] directly.
9454
9455 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9456
9457 * parse.c (target_map_name_to_register): Delete code wrapped in
9458 #ifdef REGISTER_NAME_ALIAS_HOOK.
9459
9460 2002-01-28 Michael Snyder <msnyder@redhat.com>
9461
9462 * regcache.c (legacy_read_register_gen): Need to be able to
9463 read pseudo-register as well as real register.
9464 (legacy_write_register_gen): Ditto.
9465
9466 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9467
9468 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9469 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9470 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9471 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9472 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9473 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9474 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9475 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9476 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9477 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9478 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9479 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9480 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9481 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9482 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9483 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9484 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9485 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9486 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9487 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9488
9489 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9490
9491 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9492 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9493 (initialize_current_architecture): Update target_byte_order using
9494 information from BFD.
9495 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9496 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9497
9498 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9499
9500 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9501 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9502
9503 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9504 #ifdef INVALID_FLOAT.
9505 * infcmd.c (do_registers_info): Ditto.
9506 * values.c (unpack_double): Ditto. Add comment.
9507
9508 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9509 already commented out.
9510
9511 2002-01-26 Andreas Schwab <schwab@suse.de>
9512
9513 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9514 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9515 registers and add support for PTRACE_GETREGS.
9516
9517 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9518
9519 GDB 5.1.1 released from 5.1 branch.
9520 * NEWS: Add 5.1.1 news.
9521 * README: Sync with 5.1 branch.
9522
9523 2002-01-23 Fred Fish <fnf@redhat.com>
9524
9525 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9526 stabstring on initial malloc. Reallocing will copy it for us,
9527 if necessary.
9528
9529 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9530
9531 * Makefile.in (hpread_h): Delete.
9532 (HFILES_NO_SRCDIR): Remove hpread.h.
9533 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9534 (hpread.o): Update dependencies.
9535 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9536
9537 * hp-psymtab-read.c: Remove file.
9538 * hp-symtab-read.c: Remove file.
9539 * hpread.h: Remove file.
9540
9541 * hpread.c: Merge all contents of hp-psymtab-read.c,
9542 hp-symtab-read.c and hpread.h into this file, as it was prior to
9543 January 1999.
9544
9545 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9546 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9547 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9548 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9549
9550 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9551
9552 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9553 fill_gregset): Call gdbarch_tdep() just once, assign result to
9554 variable and use that, instead of calling the function several
9555 times.
9556
9557 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9558
9559 * configure.host: Accept sparcv9 as alias for sparc64.
9560 * configure.tgt: Likewise.
9561
9562 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9563
9564 * solib-aix5.c (build_so_list_from_mapfile)
9565 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9566 arguments is not reversed.
9567 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9568 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9569
9570 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9571
9572 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9573 modified version of obsolete sh_fetch_pseudo_register.
9574 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9575 (sh4_register_read): New function.
9576 (sh_pseudo_register_write): New function. Renamed and modified
9577 version of obsolete sh_store_pseudo_register.
9578 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9579 (sh4_register_write): New function.
9580 (sh_gdbarch_init): Remove setting of gdbarch function
9581 fetch_pseudo_register and store_pseudo_register. Remove setting of
9582 register_convert_to_raw, register_convert_to_virtual,
9583 register_convertible.
9584 (sh_sh4_register_convertible): Delete. No longer needed. All is
9585 taken care by architecture specific functions
9586 register_read/register_write.
9587 (sh_sh4_register_convert_to_virtual): Make static.
9588 (sh_sh4_register_convert_to_raw): Ditto.
9589
9590 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9591
9592 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9593 (floatformat_is_nan, floatformat_mantissa): Ditto.
9594
9595 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9596 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9597 builtin_type_ieee_double_little,
9598 builtin_type_ieee_double_littlebyte_bigword,
9599 builtin_type_m68881_ext, builtin_type_i960_ext,
9600 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9601 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9602 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9603 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9604
9605 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9606
9607 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9608 parameter. Set frameless flag if it exists and depended of
9609 whether the scanned function is frameless or not.
9610 (xstormy16_skip_prologue): If function is frameless, return
9611 result of xstormy16_scan_prologue().
9612 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9613 call.
9614
9615 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9616
9617 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9618 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9619 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9620 sh_sh4_register_byte, sh_sh4_register_raw_size,
9621 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9622 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9623 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9624 sh_store_pseudo_register, sh_do_pseudo_register): Call
9625 gdbarch_tdep() just once, assign result to variable and use that,
9626 instead of calling the function several times.
9627
9628 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9629
9630 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9631 macros instead of LAST_FPU_CTRL_REGNUM.
9632 (store_register): Likewise.
9633
9634 2002-01-21 Jim Blandy <jimb@redhat.com>
9635
9636 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9637 is up-to-date before running the program, not just when a program
9638 exits.
9639
9640 2002-01-21 Fred Fish <fnf@redhat.com>
9641
9642 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9643 when we have found all instructions we are looking for.
9644
9645 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9646
9647 * arm-tdep.c (arm_register_name): New function.
9648 (arm_registers_names): Make static.
9649 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9650 (arm_register_name): Declare.
9651 (REGISTER_NAME): Use it.
9652
9653 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9654 Kevin Buettner <kevinb@redhat.com>
9655
9656 Convert arm targets to new FRAME interface.
9657 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9658 (arm_frame_find_save_regs): Delete.
9659 (arm_frame_init_saved_regs): New.
9660 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9661 Allocate extra_info as required. Convert all uses of fsr.regs
9662 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9663 to use extra_info.
9664 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9665 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9666 (check_prologue_cache, save_prologue_cache): Likewise.
9667 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9668 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9669 (FRAME_FIND_SAVED_REGS): Delete.
9670 (arm_frame_find_saved_regs): Delete prototype.
9671 (arm_frame_init_saved_regs): New prototype.
9672 (FRAME_INIT_SAVED_REGS): Define.
9673
9674 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9675
9676 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9677
9678 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9679
9680 From Jeff Law <law@redhat.com>:
9681 * infttrace.c: Include <sys/pstat.h>.
9682 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9683 exec file if the ttrace equivalent fails.
9684
9685 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9686
9687 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9688 (closeLogFile): Ditto.
9689
9690 2002-01-20 Michael Chastain <mec@shout.net>
9691
9692 * top.c (print_gdb_version): Bump copyright year to 2002.
9693
9694 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9695
9696 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9697 Zannoni and Eli Zaretskii.
9698
9699 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9700
9701 * buildsym.c: Update copyright years.
9702 * c-typeprint.c: Likewise.
9703 * dwarf2read.c: Likewise.
9704 * f-typeprint.c: Likewise.
9705 * gdbtypes.c: Likewise.
9706 * gdbtypes.h: Likewise.
9707 * hp-symtab-read.c: Likewise.
9708 * hpread.c: Likewise.
9709 * mdebugread.c: Likewise.
9710 * p-typeprint.c: Likewise.
9711
9712 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9713
9714 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9715 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9716 byte-order selectable.
9717 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9718 * arch-utils.c: Ditto.
9719 (set_endian): Ditto.
9720 (set_endian_from_file): Ditto.
9721 * gdbserver/low-sim.c (create_inferior): Ditto.
9722 * gdbarch.sh: Ditto.
9723 * gdbarch.h: Re-generate.
9724 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9725 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9726 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9727 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9728 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9729 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9730 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9731 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9732 macro definition.
9733 * config/mips/tm-wince.h: Remove #undef of macro
9734 TARGET_BYTE_ORDER_SELECTABLE.
9735 * config/sh/tm-wince.h: Ditto.
9736
9737 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9740 member function fields. Add accessor macro
9741 TYPE_FN_FIELD_ARTIFICIAL.
9742 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9743 * c-typeprint.c (c_type_print_base): Skip artificial member
9744 functions.
9745
9746 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * f-typeprint.c: Delete unused function f_type_print_args.
9749 * p-typeprint.c: Delete unused function pascal_type_print_args.
9750
9751 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9754 comment. Add ``artificial'' to ``union field_location''.
9755
9756 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9757
9758 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9759 * mdebugread.c (parse_symbol): Likewise.
9760 * stabsread.c (define_symbol): Likewise.
9761 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9762 initializing TYPE_FIELD_BITPOS to n (obsolete).
9763 (hpread_doc_function_type): Likewise.
9764 * hpread.c (hpread_function_type): Likewise.
9765
9766 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9767
9768 * configure.in (host_makefile_frag): Only require a host makefile
9769 fragment when a native build.
9770 * configure: Re-generate.
9771
9772 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9773
9774 * doublest.h (floatformat_from_type): Declare.
9775 * doublest.c (floatformat_from_type): New function.
9776 (convert_typed_floating): Use.
9777
9778 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9779 call to function floatformat_from_type.
9780
9781 * gdbarch.sh (IEEE_FLOAT): Delete.
9782 * gdbarch.h, gdbarch.c: Re-generate.
9783 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9784 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9785 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9786 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9787 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9788 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9789 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9790 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9791 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9792 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9793 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9794 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9795
9796 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9797 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9798 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9799 * sh-tdep.c (sh_gdbarch_init): Ditto.
9800 * mips-tdep.c (mips_gdbarch_init): Ditto.
9801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9802 * cris-tdep.c (cris_gdbarch_init): Ditto.
9803
9804 2002-01-20 Jiri Smid <smid@suse.cz>
9805
9806 * configure.host, configure.tgt: Support x86-64.
9807 * NEWS: Note new target x86-64.
9808
9809 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9810 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9811 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9812 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9813 x86-64-linux-nat.o): Fix dependencies.
9814
9815 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9816
9817 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9818 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9819 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9820 * config/sparc/xm-sun4os4.h: Delete file.
9821 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9822
9823 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9824
9825 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9826 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9827 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9828 * config/i386/i386lynx.mh (XM_FILE): Delete.
9829 * config/rs6000/xm-rs6000ly.h: Delete file.
9830 * config/sparc/xm-sparclynx.h: Delete file.
9831 * config/m68k/xm-m68klynx.h: Delete file.
9832 * config/i386/xm-i386lynx.h: Delete file.
9833 * config/xm-lynx.h: Delete file.
9834 * config/djgpp/fnchange.lst: Update.
9835
9836 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9837
9838 * alpha-tdep.c (alpha_register_byte): New function.
9839 (alpha_register_raw_size): Ditto.
9840 (alpha_register_virtual_size): Ditto.
9841 (alpha_skip_prologue_internal): Renamed from
9842 alpha_skip_prologue.
9843 (alpha_skip_prologue): New version that calls
9844 alpha_skip_prologue_internal.
9845 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9846 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9847 second argument from alpha_skip_prologue.
9848 (REGISTER_BYTE): Use alpha_register_byte.
9849 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9850 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9851 (FRAMELESS_FUNCTION_INVOCATION): Use
9852 generic_frameless_function_invocation_not.
9853 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9854 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9855
9856 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9857
9858 * config/mips/xm-news-mips.h: Delete file.
9859 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9860
9861 * config/m88k/xm-m88k.h: Delete file.
9862 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9863 * config/m88k/xm-delta88v4.h: Ditto.
9864 * config/m88k/xm-delta88.h: Ditto.
9865
9866 * config/alpha/xm-fbsd.h: Delete file.
9867 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9868
9869 * config/sparc/xm-sparc.h: Delete file.
9870 * Makefile.in (xm-sun4os4.h): Delete dependency.
9871 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9872 * config/sparc/xm-sun4os4.h: Ditto.
9873 * config/sparc/xm-linux.h: Ditto.
9874
9875 * config/i386/xm-windows.h: Delete file.
9876
9877 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9878
9879 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9880 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9881
9882 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9883
9884 * alpha-tdep.c (alpha_call_dummy_words): New.
9885 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9886 (CALL_DUMMY_P): Define.
9887 (CALL_DUMMY_WORDS): Define.
9888 (SIZEOF_CALL_DUMMY_WORDS): Define.
9889
9890 2002-01-19 Per Bothner <per@bothner.com>
9891
9892 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9893 isn't NULL, which can happen with some gcj-3.x-produced code.
9894
9895 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9896
9897 * alpha-tdep.c (alpha_register_virtual_type): New function.
9898 (alpha_init_frame_pc_first): Ditto.
9899 (alpha_fix_call_dummy): Ditto.
9900 (alpha_store_struct_return): Ditto.
9901 (alpha_extract_struct_value_address): Ditto.
9902 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9903 alpha_register_virtual_type.
9904 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9905 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9906 alpha_extract_struct_value_address.
9907 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9908 (INIT_FRAME_PC): Use init_frame_pc_noop.
9909 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9910
9911 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9912
9913 * i386gnu-nat.c: Include "i386-tdep.h".
9914 (fetch_fpregs): Simplify code dealing with uninitialized floating
9915 point states such that it doesn't require FP7_REGNUM.
9916
9917 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9918
9919 * alpha-tdep.c (frame_extra_info): New.
9920 (alpha_find_saved_regs): Make static. Use
9921 frame->extra_info.
9922 (alpha_frame_init_saved_regs): New function.
9923 (alpha_frame_saved_pc): Use frame->extra_info.
9924 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9925 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9926 (init_extra_frame_info): Rename to...
9927 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9928 (alpha_print_extra_frame_info): New function.
9929 (alpha_frame_locals_address): Ditto.
9930 (alpha_frame_args_address): Ditto.
9931 (alpha_pop_frame): Use frame->extra_info.
9932 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9933 alpha_frame_args_address.
9934 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9935 (alpha_find_saved_regs): Remove prototype.
9936 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9937 (EXTRA_FRAME_INFO): Remove.
9938 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9939 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9940
9941 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9942
9943 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9944 (alpha_cannot_fetch_register): Ditto.
9945 (alpha_cannot_store_register): Ditto.
9946 (alpha_register_convertible): Ditto.
9947 (alpha_use_struct_convention): Ditto.
9948 * config/alpha/tm-alpha.h: Update copyright years.
9949 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9950 (INNER_THAN): Use core_addr_lessthan.
9951 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9952 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9953 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9954 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9955 (FRAME_CHAIN): Remove unnecessary cast.
9956
9957 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9958
9959 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9960 obsolete.
9961
9962 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9963
9964 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9965 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9966 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9967 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9968 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9969 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9970 * x86-64-linux-nat.c: Ditto.
9971
9972 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9973
9974 * alpha-tdep.c (alpha_register_name): New function.
9975 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9976 (REGISTER_NAME): Define.
9977
9978 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9979
9980 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9981
9982 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9983
9984 * alpha-tdep.c: Update copyright years.
9985 (alpha_next_pc): New function.
9986 (alpha_software_single_step): Ditto.
9987 * config/alpha/tm-alpha.h: Add prototype for
9988 alpha_software_single_step.
9989
9990 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * alphabsd-nat.c: Update copyright years.
9993 (fill_gregset): Use regcache_collect.
9994 (fill_fpregset): Likewise.
9995 (fetch_inferior_registers): Only fetch integer registers
9996 if requested to do so.
9997 (store_inferior_registers): Only store integer registers
9998 if requested to do so.
9999
10000 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10001
10002 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10003 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10004 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10005 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10006 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10007 * config/arm/linux.mh (XDEPFILES): Delete.
10008 * config/arm/nbsd.mh (XDEPFILES): Delete.
10009 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10010 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10011 * config/i386/i386m3.mh (XDEPFILES): Delete.
10012 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10013 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10014 * config/i386/fbsd.mh (XDEPFILES): Delete.
10015 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10016 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10017 * config/i386/i386v4.mh (XDEPFILES): Delete.
10018 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10019 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10020 * config/i386/i386aix.mh (XDEPFILES): Delete.
10021 * config/i386/go32.mh (XDEPFILES): Delete.
10022 * config/i386/cygwin.mh (XDEPFILES): Delete.
10023 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10024 * config/i386/i386mach.mh (XDEPFILES): Delete.
10025 * config/i386/i386v32.mh (XDEPFILES): Delete.
10026 * config/i386/linux.mh (XDEPFILES): Delete.
10027 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10028 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10029 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10030 * config/i386/i386sco.mh (XDEPFILES): Delete.
10031 * config/i386/i386v.mh (XDEPFILES): Delete.
10032 * config/i386/nbsd.mh (XDEPFILES): Delete.
10033 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10034 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10035 * config/i386/symmetry.mh (XDEPFILES): Delete.
10036 * config/i386/obsd.mh (XDEPFILES): Delete.
10037 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10038 * config/ia64/linux.mh (XDEPFILES): Delete.
10039 * config/ia64/aix.mh (XDEPFILES): Delete.
10040 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10041 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10042 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10043 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10044 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10045 * config/m68k/linux.mh (XDEPFILES): Delete.
10046 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10047 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10048 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10049 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10050 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10051 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10052 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10053 * config/m88k/delta88.mh (XDEPFILES): Delete.
10054 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10055 * config/m88k/m88k.mh (XDEPFILES): Delete.
10056 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10057 * config/mips/linux.mh (XDEPFILES): Delete.
10058 * config/mips/irix6.mh (XDEPFILES): Delete.
10059 * config/mips/irix5.mh (XDEPFILES): Delete.
10060 * config/mips/irix4.mh (XDEPFILES): Delete.
10061 * config/mips/irix3.mh (XDEPFILES): Delete.
10062 * config/mips/decstation.mh (XDEPFILES): Delete.
10063 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10064 (NATDEPFILES): Move core-aout.o to here.
10065 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10066 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10067 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10068 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10069 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10070 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10071 * config/pa/hpux11.mh (XDEPFILES): Delete.
10072 * config/powerpc/aix.mh (XDEPFILES): Delete.
10073 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10074 * config/powerpc/linux.mh (XDEPFILES): Delete.
10075 * config/romp/rtbsd.mh: Rename XDEPFILES.
10076 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10077 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10078 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10079 * config/s390/s390.mh (XDEPFILES): Delete.
10080 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10081 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10082 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10083 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10084 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10085 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10086 * config/sparc/linux.mh (XDEPFILES): Delete.
10087 * config/vax/vaxult.mh (XDEPFILES): Delete.
10088 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10089 * Makefile.in (DEPFILES): Remove XDEPFILES.
10090
10091 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10092
10093 * utils.c (internal_verror): Fix comments, default is yes not no.
10094 Update queries to match. Default to quit and dump core.
10095
10096 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10097
10098 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10099 copyright.
10100 * defs.h, event-top.c, gdbcmd.h: Ditto.
10101 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10102 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10103 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10104 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10105 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10106 * mi/mi-main.c:Ditto.
10107
10108 * stack.c, symfile.c: Update copyright.
10109
10110 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10111
10112 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10113 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10114 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10115 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10116
10117 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10120 * gdbserver/low-lynx.c (myattach): Likewise.
10121 * gdbserver/low-nbsd.c (myattach): Likewise.
10122 * gdbserver/low-sim.c (myattach): Likewise.
10123 * gdbserver/low-sparc.c (myattach): Likewise.
10124 * gdbserver/low-sun3.c (myattach): Likewise.
10125
10126 * gdbserver/low-linux.c (myattach): New function.
10127
10128 * gdbserver/server.c (attach_inferior): New function.
10129 (main): Handle "--attach".
10130
10131 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10132
10133 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10134 maintainer.
10135
10136 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * c-typeprint.c (is_type_conversion_operator): Add additional
10139 check for non-conversion operators.
10140
10141 2002-01-15 Michael Snyder <msnyder@redhat.com>
10142
10143 * linux-proc.c: Add "info proc" command, a la procfs.c.
10144 (read_mapping): New function, abstract and re-use code.
10145 (linux_find_memory_regions): Use new func read_mapping.
10146 (linux_info_proc_cmd): New function, implement "info proc".
10147 (_initialize_linux_proc): Add new command "info proc".
10148
10149 2002-01-15 Michael Snyder <msnyder@redhat.com>
10150
10151 * symfile.c (generic_load): Use bfd_map_over_sections method
10152 instead of manipulating bfd structure members directly.
10153 (add_section_size_callback): New function, bfd sections callback
10154 used by generic_load.
10155 (load_sections_callback): New function, bfd sections callback
10156 used by generic_load.
10157
10158 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10159
10160 [Based on work by Jim Blandy]
10161 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10162 (builtin_type_vec128): Export.
10163 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10164 types.
10165 (builtin_type_vec128): New builtin type for 128 bit vector
10166 registers.
10167 (build_gdbtypes): Initialize builtin_type_v16qi and
10168 builtin_type_v8hi. Create the vec128 register builtin type
10169 structure.
10170 (build_builtin_type_vec128): New function.
10171 (_initialize_gdbtypes): Register builtin_type_v16qi and
10172 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10173 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10174 AltiVec register to new builtin type.
10175
10176 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10179 to make_cv_type.
10180
10181 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10182
10183 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10184 CLEAN_UP_REGISTER_VALUE.
10185 * regcache.c (supply_register): Update only call.
10186
10187 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10188
10189 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10190 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10191 a29k-*-vxworks* targets as obsolete.
10192
10193 2002-01-14 Michael Snyder <msnyder@redhat.com>
10194
10195 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10196 until we can resolve portability issues.
10197 * gregset.h: Remove references to fpxregs.
10198 * gcore.c (gcore_command): Initialize note_sec to NULL.
10199
10200 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10201
10202 * signals.c (target_signal_to_name): Rewrite. Only use
10203 signals[].name when in bounds and non-NULL.
10204
10205 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10206
10207 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10208 * signals.c (target_signal_to_name): Verify that SIG is within the
10209 bounds of the signals array.
10210
10211 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10212
10213 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10214
10215 2002-01-13 Keith Seitz <keiths@redhat.com>
10216
10217 * stack.c (print_frame_info_base): Print the frame's pc
10218 only if when print_frame_info_listing_hook is not defined.
10219
10220 2002-01-13 Keith Seitz <keiths@redhat.com>
10221
10222 * varobj.c (varobj_set_value): Make sure that there were no
10223 errors evaluating the object before attempting to set its
10224 value.
10225 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10226 so this offset adjustment is no longer necessary.
10227 (create_child): Don't set the error flag if the child is
10228 a CPLUS_FAKE_CHILD.
10229 (value_of_child): If value_fetch_lazy fails, return NULL
10230 so that callers will be notified that an error occurred.
10231 (c_value_of_variable): Delay check of variable's validity
10232 until later. We actually want all structs and unions to have
10233 the value "{...}".
10234 Do not return "???" for variables which could not be evaluated.
10235 This error condition must be returned to the caller so that it
10236 can get the error condition from gdb.
10237 (cplus_name_of_child): Adjust index for vptr before figuring
10238 out the name of the child.
10239 (cplus_value_of_child): If a child's (real) parent is not valid,
10240 don't even bother trying to give a value for it. Just return
10241 an error. Change all instances in this function.
10242 (cplus_type_of_child): If our parent is one of the "fake"
10243 parents, we need to get at the type of the real parent, and
10244 derive the child's true type using this information.
10245
10246 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10247
10248 From 2002-01-09 John Marshall <johnm@falch.net>:
10249 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10250 sources.redhat.com, and tweak some related URLs which had
10251 suffered from linkrot.
10252
10253 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10254
10255 From Jeff law:
10256 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10257 structures passed in registers.
10258
10259 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10260
10261 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10262 white space which prevented compilation. Reported by DSK
10263 <dsk@student.unsw.edu.au>.
10264
10265 2002-01-11 Michael Snyder <msnyder@redhat.com>
10266
10267 * symfile.c (build_section_addr_info_from_section_tab):
10268 Use bfd access method instead of manipulating bfd directly.
10269 (syms_from_objfile): Ditto.
10270 (simple_overlay_update_1): Ditto.
10271 (simple_overlay_update): Ditto.
10272 (generic_load): Ditto.
10273 (overlay_unmapped_address): FIXME comment, bfd access methods.
10274 (sections_overlap): FIXME comment, bfd access methods.
10275 (pc_in_mapped_range): FIXME comment, bfd access methods.
10276 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10277 (section_is_mapped): FIXME comment, bfd access methods.
10278 (section_is_overlay): FIXME comment, bfd access methods.
10279
10280 * symfile.c (generic_load): Whitespace and long line cleanups.
10281 Remove duplicate variable, change several local variables to
10282 more appropriate data types.
10283 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10284
10285 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10286
10287 From Peter Schauer:
10288 * language.c (longest_local_hex_string_custom): Use phex_nz to
10289 convert NUM to a hex string.
10290
10291 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10292
10293 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10294 the function.
10295 Update Copyright year.
10296
10297 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10298
10299 * language.c (longest_raw_hex_string): Delete unused function.
10300
10301 2002-01-11 Petr Sorfa <petrs@caldera.com>
10302
10303 * MAINTAINERS (write-after-approval): Add myself.
10304 * dwarf2read.c (read_tag_string_type): Handling of
10305 DW_AT_byte_size.
10306 (read_tag_string_type): FORTRAN fix to prevent propagation of
10307 first string size.
10308 (set_cu_language): Handling of DW_LANG_Fortran95
10309
10310 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10311
10312 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10313 GETPID(inferior_ptid).
10314 (store_inferior_registers): Likewise.
10315
10316 2002-01-10 Jason Merrill <jason@redhat.com>
10317
10318 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10319 Fix DW_OP_minus.
10320
10321 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10322
10323 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10324 and bfd/elf32-sh-nbsd.c.
10325
10326 2002-01-10 Michael Snyder <msnyder@redhat.com>
10327
10328 * NEWS: Mention --pid and corefile/proc-id behavior change.
10329
10330 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10331 * gcore.c: Include cli/cli-decode.h instead of command.h.
10332
10333 * main.c (captured_main): Add new command line option "--pid".
10334 If the second command line argument (following the symbol-file)
10335 begins with a digit, try to attach to it before trying to open
10336 it as a corefile.
10337 (print_gdb_help): Document the "--pid" argument.
10338
10339 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10340
10341 * completer.c (command_completer): New function.
10342
10343 * completer.h <command_completer>: Add prototype.
10344
10345 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10346 completer for the "help" command.
10347
10348 2002-01-09 Jason Merrill <jason@redhat.com>
10349
10350 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10351
10352 2002-01-09 Michael Snyder <msnyder@redhat.com>
10353
10354 * i386-linux-nat.c (fill_fpxregset): Make global.
10355 (store_fpxregset): Ditto.
10356
10357 * gregset.h (gdb_fpxregset_t): Define.
10358 (supply_fpxregset): Prototype.
10359 (fill_fpxregset): Prototype.
10360
10361 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10362
10363 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10364
10365 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10366 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10367 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10368
10369 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10370
10371 * MAINTAINERS: Update target maintainer rules so that any
10372 Maintainer can approve a tested patch for a maintenance-only
10373 target.
10374
10375 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10376
10377 * MAINTAINERS (write-after-approval): Add myself.
10378
10379 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10380 IN_SIGTRAMP.
10381
10382 2002-01-08 Michael Snyder <msnyder@redhat.com>
10383
10384 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10385 real name of the executable, rather than the /proc name.
10386
10387 2002-01-03 Michael Snyder <msnyder@redhat.com>
10388
10389 Implement a "generate-core-file" command in gdb, save target state.
10390 * gcore.c: New file. Implement new command 'generate-core-file'.
10391 Save a corefile image of the current state of the inferior.
10392 * linux-proc.c: Add linux-specific code for saving corefiles.
10393 * target.h (struct target_ops): Add new target vectors for saving
10394 corefiles; to_find_memory_regions and to_make_corefile_notes.
10395 (target_find_memory_regions): New macro.
10396 (target_make_corefile_notes): New macro.
10397 * target.c (update_current_target): Inherit new target methods.
10398 (dummy_find_memory_regions): New place-holder method.
10399 (dummy_make_corefile_notes): New place-holder method.
10400 (init_dummy_target): Initialize new dummy target vectors.
10401 * exec.c (exec_set_find_memory_regions): New function.
10402 Allow the exec_ops vector for memory regions to be taken over.
10403 (exec_make_note_section): New function, target vector method.
10404 * defs.h (exec_set_find_memory_regions): Export prototype.
10405 * procfs.c (proc_find_memory_regions): New function, corefile method.
10406 (procfs_make_note_section): New function, corefile method.
10407 (init_procfs_ops): Set new target vector pointers.
10408 (find_memory_regions_callback): New function.
10409 (procfs_do_thread_registers): New function.
10410 (procfs_corefile_thread_callback): New function.
10411 * sol-thread.c (sol_find_memory_regions): New function.
10412 (sol_make_note_section): New function.
10413 (init_sol_thread_ops): Initialize new target vectors.
10414 * inftarg.c (inftarg_set_find_memory_regions): New function.
10415 Allow to_find_memory_regions vector to be taken over.
10416 (inftarg_set_make_corefile_notes): New function.
10417 Allow to_make_corefile_notes vector to be taken over.
10418 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10419 interface layer if not target_has_execution (may be a corefile).
10420 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10421 * config/sparc/sun4sol2.mh: Ditto.
10422 * config/alpha/alpha-linux.mh: Ditto.
10423 * config/arm/linux.mh: Ditto.
10424 * config/i386/x86-64linux.mh: Ditto.
10425 * config/ia64/linux.mh: Ditto.
10426 * config/m68k/linux.mh: Ditto.
10427 * config/mips/linux.mh: Ditto.
10428 * config/powerpc/linux.mh: Ditto.
10429 * config/sparc/linux.mh: Ditto.
10430
10431 2002-01-07 Michael Snyder <msnyder@redhat.com>
10432
10433 * arm-linux-nat.c: Remove references to regcache.c internal data
10434 (registers[] and register_valid[]).
10435
10436 2002-01-07 Michael Snyder <msnyder@redhat.com>
10437
10438 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10439 so that attaching to a pid will automatically read the process's
10440 symbol file and shlibs.
10441 * Makefile.in: Add rule for linux-proc.o.
10442 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10443 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10444 * config/arm/linux.mh: Ditto.
10445 * config/i386/linux.mh: Ditto.
10446 * config/i386/x86-64linux.mh: Ditto.
10447 * config/ia64/linux.mh: Ditto.
10448 * config/m68k/linux.mh: Ditto.
10449 * config/mips/linux.mh: Ditto.
10450 * config/powerpc/linux.mh: Ditto.
10451 * config/sparc/linux.mh: Ditto.
10452
10453 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10454
10455 * win32-nat.c: Add i386-tdep.h dependency.
10456
10457 2002-01-07 Michael Snyder <msnyder@redhat.com>
10458
10459 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10460 instead of bfd_get_arch_size. Don't bail out just because
10461 there's no exec_bfd.
10462
10463 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10464 * p-valprint.c (pascal_object_print_value): Ditto.
10465 * somread.c (som_symtab_read): Ditto.
10466 * symfile.c (simple_free_overlay_region_table): Ditto.
10467 * valops.c (value_assign): Ditto.
10468
10469 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10470 use tilde_expand and strerror for opening save-tracepoints file.
10471
10472 * thread-db.c (thread_db_new_objfile): Indendation fix.
10473
10474 * infptrace.c (GDB_MAX_ALLOCA): New define.
10475 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10476 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10477 can be overridden with whatever value is appropriate to the host).
10478 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10479 alloca to allocate potentially large buffer.
10480 * rs6000-nat.c (child_xfer_memory): Ditto.
10481 * symm-nat.c (child_xfer_memory): Ditto.
10482 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10483
10484 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10485
10486 From Nick Clifton <nickc@redhat.com>
10487 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10488
10489 2002-01-07 Michael Snyder <msnyder@redhat.com>
10490
10491 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10492 Don't use exec_bfd if it's NULL.
10493
10494 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10495
10496 * valops.c (value_arg_coerce): Fix formatting.
10497
10498 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10499
10500 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10501 * gnu-nat.c: Ditto.
10502
10503 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10504
10505 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10506 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10507 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10508 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10509 z8k-coff have not been multi-arched. Update z8k-coff build
10510 status.
10511
10512 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10513
10514 * MAINTAINERS: Mark a29k target as obsolete.
10515 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10516 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10517 comments.
10518 * NEWS: Note that a29k targets are obsolete.
10519 * a29k-tdep.c: Mark as obsolete.
10520 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10521 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10522 a29k-*-vxworks* targets as obsolete.
10523 * remote-adapt.c: Obsolete.
10524 * remote-eb.c: Obsolete.
10525 * remote-mm.c: Obsolete.
10526 * remote-udi.c: Obsolete.
10527 * config/a29k/a29k-udi.mt: Obsolete.
10528 * config/a29k/a29k.mt: Obsolete.
10529 * config/a29k/tm-a29k.h: Obsolete.
10530 * config/a29k/tm-vx29k.h: Obsolete.
10531 * config/a29k/vx29k.mt: Obsolete.
10532
10533 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10534
10535 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10536 with BFD_ENDIAN_BIG.
10537
10538 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10539
10540 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10541 * configure, config.in: Re-generate.
10542 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10543 * defs.h: Do not include <endian.h>.
10544
10545 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10546
10547 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10548 * config.in: Regenerate.
10549 * configure.in: Update copyright years.
10550 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10551 * configure: Regenerate.
10552 * i386bsd-nat.c: Update copyright years.
10553 (fill_gregset): Use regcache_collect.
10554 (fetch_inferior_registers): Only fetch integer registers
10555 if requested to do so. Add support for XMM registers
10556 using PT_GETXMMREGS.
10557 (store_inferior_registers): Only store integer registers
10558 if requested to do so. Add support for XMM registers
10559 using PT_SETXMMREGS.
10560 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10561 (store_inferior_registers): Remove.
10562 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10563 (fetch_elfcore_registers): New function.
10564 (i386nbsd_elfcore_fns): New.
10565 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10566 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10567 i386bsd-nat.o.
10568 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10569 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10570 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10571 * config/i386/tm-nbsd.h: Update copyright years.
10572 (HAVE_SSE_REGS): Define.
10573 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10574 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10575 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10576 (SIGCONTEXT_PC_OFFSET): Remove.
10577 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10578
10579 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10580
10581 * configure.tgt: Remove powerpc-*-macos* target.
10582 * config/m68k/xm-mpw.h: Delete file.
10583 * config/xm-mpw.h: Delete file.
10584 * ser-mac.c: Delete file.
10585 * mpw-make.sed: Delete file.
10586 * mpw-config.in: Delete file.
10587 * mac-xdep.c: Delete file.
10588 * mac-gdb.r: Delete file.
10589 * mac-defs.h: Delete file.
10590 * mac-nat.c: Delete file.
10591 * config/powerpc/macos.mh: Delete file.
10592 * config/powerpc/macos.mt: Delete file.
10593 * config/powerpc/nm-macos.h: Delete file.
10594 * config/powerpc/tm-macos.h: Delete file.
10595 * source.c (openp, open_source_file): Remove obsolete code.
10596 * top.c (gdb_readline): Ditto.
10597 * utils.c (query): Ditto.
10598 * event-top.c (display_gdb_prompt): Ditto.
10599 * Makefile.in (ser-mac.o): Delete obsolete target.
10600 * NEWS: Update.
10601
10602 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10603
10604 * defs.h (BIG_ENDIAN): Delete macro definition.
10605 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10606 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10607 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10608 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10609 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10610 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10611 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10612 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10613 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10614 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10615 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10616 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10617 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10618 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10619 * gdbarch.c: Re-generate.
10620
10621 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10624 for core files.
10625
10626 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10627
10628 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10629
10630 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10631
10632 * value.h (value_ptr): Delete typedef.
10633
10634 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10635
10636 * i386nbsd-nat.c: Update copyright years.
10637 Include i386-tdep.h.
10638
10639 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10640
10641 * stabsread.c: Update copyright years.
10642
10643 From Debashis Mahata <debashis.mahata@wipro.com>:
10644 (read_struct_fields): Deal with Sun C compiler erroneous stab
10645 output for structs and unions.
10646 Fix PR gdb/269.
10647
10648 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10649
10650 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10651 prototype.
10652
10653 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * cp-abi.c: Fix whitespace.
10656 (baseclass_offset): New wrapper function.
10657 * cp-abi.h (baseclass_offset): Add prototype.
10658 (struct cp_abi_ops): Add baseclass_offset pointer.
10659
10660 * valops.c (vb_match): Move to...
10661 * gnu-v2-abi.c (vb_match): here.
10662 * valops.c (baseclass_offset): Move to...
10663 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10664
10665 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10666
10667 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10668 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10669 * hpacc-abi.c (init_hpacc_ops): Likewise.
10670
10671 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * valops.c (find_overload_match): Accept obj as a
10674 reference parameter. Update it before returning.
10675 * value.h (find_overload_match): Update prototype.
10676 * eval.c (evaluate_subexp_standard): Pass object to
10677 find_overload_match by reference.
10678
10679 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10680
10681 * valarith.c: Replace value_ptr with struct value pointer. Remove
10682 register attribute from value declarations.
10683 * valops.c: Ditto.
10684 * value.h: Ditto.
10685 * scm-lang.c (scm_lookup_name): Ditto.
10686
10687 2002-01-03 Michael Snyder <msnyder@redhat.com>
10688
10689 Abstract the functionality of iterating over mapped memory
10690 regions into a general purpose iterator function.
10691 * procfs.c (iterate_over_mappings): New function, general purpose
10692 iterator for memory sections.
10693 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10694 (solib_mappings_callback): New function, callback for above.
10695 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10696 (info_mappings_callback): New function, callback for above.
10697
10698 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10699
10700 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10701
10702 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10703 * i386-tdep.c: Include "elf-bfd.h".
10704 (process_note_abi_tag_sections): New function.
10705 (i386_gdbarch_init): Add code to recognize various OS/ABI
10706 combinations.
10707
10708 * maint.c (_initialize_maint_cmds): Add missing \ in
10709 string-literal.
10710
10711 For older changes see ChangeLog-2001
10712 \f
10713 Local Variables:
10714 mode: change-log
10715 left-margin: 8
10716 fill-column: 74
10717 version-control: never
10718 End: