2002-08-22 Elena Zannoni <ezannoni@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2
3 * blockframe.c (generic_call_dummy_register_unwind): Use
4 regcache_cooked_read to catch cases in which the variable is
5 stored in a pseudo register.
6
7 2002-08-22 Andrew Cagney <cagney@redhat.com>
8
9 * NEWS: Mention that the i960 has been made obsolete.
10 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
11 i960-tdep.c
12 (remote-nrom.o): Obsolete target.
13 (remote-nindy.o, i960-tdep.o): Ditto.
14 * remote-nrom.c: Make file obsolete.
15 * remote-nindy.c, remote-vx960.c: Ditto.
16 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
17 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
18 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
19 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
20 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
21 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
22 i960-*-vxworks* obsolete.
23 * MAINTAINERS: Note that the i960 is obsolete.
24
25 2002-08-21 Corinna Vinschen <vinschen@redhat.com
26
27 * aix-thread.c (aix_thread_detach): Disable thread debugging on
28 detach to allow reinitialization.
29
30 2002-08-22 Andrew Cagney <ac131313@redhat.com>
31
32 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
33 attempt).
34
35 2002-08-22 Jim Blandy <jimb@redhat.com>
36
37 * coffread.c (coff_symfile_read): Don't try to read the line
38 number table from disk if the image file doesn't have a symbol
39 table; we'll never actually look at the info anyway, and Windows
40 ships DLL's with bogus file offsets for the line number data.
41
42 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
43
44 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
45 an e500 executable.
46
47 2002-08-21 Michael Snyder <msnyder@redhat.com>
48
49 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
50 (MSYMBOL_SIZE): Replace macro with function.
51 (DEFAULT_MIPS_TYPE): Delete unused macro.
52 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
53 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
54
55 2002-08-21 Jim Blandy <jimb@redhat.com>
56
57 * valops.c (value_cast): Simplify and correct logic for doing a
58 static cast from a pointer to a base class to a pointer to a
59 derived class.
60
61 2002-08-21 Andrew Cagney <ac131313@redhat.com>
62
63 * infcmd.c (default_print_registers_info): Replace
64 do_registers_info.
65 (registers_info): Use gdbarch_print_registers_info instead of
66 DO_REGISTERS_INFO.
67 * inferior.h (default_print_registers_info): Replace
68 do_registers_info.
69 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
70 (DO_REGISTERS_INFO): Change to a predicate function.
71 * gdbarch.h, gdbarch.c: Regenerate.
72
73 2002-08-21 Keith Seitz <keiths@redhat.com>
74
75 * gdb-events.sh: Add target-changed event.
76 * gdb-events.c: Regenerated.
77 * gdb-events.c: Regenerated.
78 * valops.c (value_assign): Add target-changed event notification
79 to inlval_register, lval_memory, and lval_reg_frame_relative.
80
81 2002-08-21 Joel Brobecker <brobecker@gnat.com>
82
83 * NEWS: Add an entry regarding the improvement of the next/step
84 operation on Alpha Tru64 multi-processor machines.
85
86 2002-08-21 Andrew Cagney <ac131313@redhat.com>
87
88 * Makefile.in: Update dependencies for mi/ cli/ and tui/
89 directores.
90 * Makefile.in: Update all _h macro definitions.
91 * Makefile.in (install-gdbtk): Move to install section.
92 (rdi-share/libangsd.a): Move to end of file.
93
94 2002-08-19 Andrew Cagney <ac131313@redhat.com>
95
96 * frame.c (frame_register_unwind): When a register, set addrp to
97 the register's byte.
98
99 2002-08-20 Michael Snyder <msnyder@redhat.com>
100
101 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
102 used locally, so move them from the target machine header to here.
103 (mips_set_processor_type, mips_register_name, mips32_next_pc,
104 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
105 Make static.
106 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
107
108 2002-08-20 Andrew Cagney <cagney@redhat.com>
109
110 * NEWS: Mention that the Apollo line was made obsolete.
111 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
112 m68*-hp-hpux* obsolete.
113 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
114 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
115 * buildsym.c (make_blockvector): Make static.
116 * buildsym.h (make_blockvector): Make extern declaration obsolete.
117 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
118 (ALLDEPFILES): Remove dstread.c.
119 (dstread.o): Obsolete make rule.
120 * dstread.c: Makefile obsolete.
121 * dst.h: Ditto.
122 * config/m68k/hp300hpux.mt: Ditto.
123 * config/m68k/hp300hpux.mh: Ditto.
124 * config/m68k/hp300bsd.mt: Ditto.
125 * config/m68k/hp300bsd.mh: Ditto.
126 * config/m68k/apollo68b.mt: Ditto.
127 * config/m68k/apollo68v.mh: Ditto.
128 * config/m68k/apollo68b.mh: Ditto.
129
130 2002-08-20 Michael Snyder <msnyder@redhat.com>
131
132 * mips-tdep.c (mips_in_return_stub): Make static.
133 (mips_gdbarch_init): Set in_solib_return_trampoline.
134 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
135
136 2002-08-20 Michael Snyder <msnyder@redhat.com>
137
138 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
139 * gdbarch.c, gdbarch.h: Regenerate.
140 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
141 Add.
142 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
143
144 2002-08-20 Michael Snyder <msnyder@redhat.com>
145
146 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
147 (mips_gdbarch_init): Set skip_trampoline_code,
148 in_solib_call_trampoline.
149 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
150 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
151
152 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
153
154 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
155
156 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
157 vector type for ev registers.
158 (e500_pseudo_register_read): New function.
159 (e500_pseudo_register_write): New function.
160 (e500_dwarf2_reg_to_regnum): New function.
161 (PPC_UISA_NOFP_SPRS): New macro.
162 (PPC_EV_REGS): New macro.
163 (PPC_GPRS_PSEUDO_REGS): New macro.
164 (registers_e500): New register set for e500.
165 (variants): Add e500 variant.
166 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
167 before setting architectural dependent variations. Initialize ev
168 registers numbers. Add case for e500 architecture. Set the
169 number of pseudo registers.
170
171 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
172
173 * rs6000-tdep.c: Clean up comments.
174
175 2002-08-20 Andrew Cagney <cagney@redhat.com>
176
177 * h8300-tdep.c: Re-indent file.
178
179 2002-08-20 Jim Blandy <jimb@redhat.com>
180
181 * Makefile.in (LDFLAGS): Allow the configure script to establish a
182 default for this.
183 * gdbserver/Makefile.in (LDFLAGS): Same.
184
185 2002-08-20 Keith Seitz <keiths@redhat.com>
186
187 * breakpoints.c (watch_command_1): Use internal breakpoint
188 when setting a watchpoint_scope breakpoint.
189
190 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
191
192 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
193 (build_builtin_type_vec64i): Ditto.
194 (build_builtin_type_vec128): Ditto.
195 (build_builtin_type_vec128i): Ditto.
196
197 2002-08-19 Michael Snyder <msnyder@redhat.com>
198
199 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
200 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
201 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
202 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
203 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
204 CALL_DUMMY_ADDRESS): Delete.
205 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
206 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
207 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
208 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
209 push_return_address.
210 (mips_register_raw_size, mips_eabi_use_struct_convention,
211 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
212 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
213 mips_init_extra_frame_info, mips_eabi_push_arguments,
214 mips_n32n64_push_arguments, mips_push_return_address,
215 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
216 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
217
218 2002-08-19 Michael Snyder <msnyder@redhat.com>
219
220 * mips-tdep.c (mips_frame_num_args): New function.
221 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
222 frame_saved_pc, frame_args_address, frame_locals_address,
223 frame_num_args, and frame_args_skip.
224 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
225 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
226 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
227 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
228
229 2002-08-20 Michael Snyder <msnyder@redhat.com>
230
231 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
232 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
233 * mips-tdep.c (mips_store_struct_return): New function.
234 (mips_extract_struct_value_address): New function.
235 (mips_gdbarch_init): Set store_struct_return and
236 extract_struct_value_address.
237
238 2002-08-20 David Carlton <carlton@math.stanford.edu>
239
240 * dwarf2read.c (dwarf2_build_psymtabs): Check that
241 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
242 (read_file_scope): Check that line_header is nonzero before
243 decoding macro information.
244
245 2002-08-20 Mark Kettenis <kettenis@gnu.org>
246
247 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
248 flag the general-purpose registers as floating-point on targets
249 that don't support the floating-point registers.
250
251 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
252
253 * rs6000-tdep.c (altivec_register_p): Delete.
254 (rs6000_do_altivec_registers): Delete.
255 (rs6000_altivec_registers_info): Delete.
256 (rs6000_do_registers_info): Delete.
257 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
258 (rs6000_gdbarch_init): Remove setting of do_registers_info.
259
260 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
261
262 * infcmd.c (do_registers_info): Print vector registers in hex
263 format only.
264 (print_vector_info): Check that printing registers
265 makes sense.
266 (print_float_info): Ditto.
267
268 2002-08-20 Andrew Cagney <ac131313@redhat.com>
269
270 * mips-tdep.c (mips_gdbarch_init): Update.
271 (mips_o32_extract_return_value): Rewrite.
272 (mips_o32_store_return_value): Rewrite.
273 (mips_o32_xfer_return_value): New function.
274 (mips_xfer_register): Tweak debug print message. Allow for
275 buf_offset when dumping the value transfered.
276
277 2002-08-20 Andrew Cagney <ac131313@redhat.com>
278
279 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
280 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
281 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
282 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
283 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
284
285 2002-08-14 Michael Snyder <msnyder@redhat.com>
286
287 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
288
289 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
290
291 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
292 register.
293 (P): New macro to define a register as a pseudo register.
294 (R, R4, R8, R16, FR32, R64, R0): Updated.
295 (struct variant): Add new fields for number of pseudo registers
296 and number of total registers.
297 (tot_num_registers): New macro replacing....
298 (num_registers): ...deleted macro.
299 (num_registers): New function.
300 (num_pseudo_registers): New function.
301 (variants): Update all variants to intialize new fields correctly.
302 Postpone initialization of number of pseudo regs and real regs.
303 (init_variants): New function.
304 (rs6000_gdbarch_init): Initialize variants. Update calculation of
305 registers offsets.
306
307 2002-08-19 David Carlton <carlton@math.stanford.edu>
308
309 * valops.c (search_struct_field): Change error message to treat
310 return value of 0 from value_static_field as meaning that field is
311 optimized out.
312 (value_struct_elt_for_reference): Ditto.
313 * values.c (value_static_field): Treat an unresolved location the
314 same as a nonexistent symbol. Fix PR gdb/635.
315 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
316 enclosed. Fix PR gdb/574.
317 * MAINTAINERS: Add self to Write After Approval list.
318
319 2002-08-19 Andrew Cagney <ac131313@redhat.com>
320
321 * mips-tdep.c (mips_xfer_register): New function.
322 (mips_n32n64_extract_return_value): Rewrite.
323 (mips_gdbarch_init): For N32 and N64, set extract_return_value
324 instead of deprecated_extract_return_value.
325
326 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
327
328 * rs6000-tdep.c (TDEP): Delete macro.
329 (branch_dest): Replace use of TDEP macro with its body.
330 (rs6000_pop_frame): Ditto.
331 (rs6000_push_arguments): Ditto.
332 (rs6000_skip_trampoline_code): Ditto.
333 (rs6000_frame_saved_pc): Ditto.
334 (rs6000_frame_chain): Ditto.
335 (rs6000_register_name): Ditto.
336 (rs6000_register_byte): Ditto.
337 (rs6000_register_raw_size): Ditto.
338 (rs6000_register_virtual_type): Ditto.
339 (rs6000_register_convertible): Ditto.
340 (rs6000_convert_from_func_ptr_addr): Ditto.
341
342 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
343
344 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
345 conditionally.
346 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
347 MIPS_LINUX_JB_ELEMENT_SIZE.
348 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
349 for MAX_REGISTER_RAW_SIZE arrays.
350 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
351 MIPS_LINUX_JB_ELEMENT_SIZE.
352
353 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
354
355 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
356
357 2002-08-19 Aidan Skinner <aidan@velvet.net>
358
359 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
360 ada-valprint.c ada-tasks.c.
361 (YYFILES): Add ada-exp.y.
362 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
363 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
364 (ada-exp.tab.o): New target.
365
366 2002-08-18 Andrew Cagney <ac131313@redhat.com>
367
368 * regcache.c (regcache_xfer_part): New function.
369 (regcache_raw_read_part): New function.
370 (regcache_raw_write_part): New function.
371 (regcache_cooked_read_part): New function.
372 (regcache_cooked_write_part): New function.
373 * regcache.h (regcache_raw_read_part): Declare.
374 (regcache_raw_write_part): Declare.
375 (regcache_cooked_read_part): Declare.
376 (regcache_cooked_write_part): Declare.
377
378 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
379
380 * remote.c (remote_open_1): Add async_p.
381 (remote_async_open_1): Delete.
382 (open_remote_target): Delete.
383 (remote_open, extended_remote_open): Update calls to remote_open_1.
384 (remote_async_open, extended_remote_async_open): Call
385 remote_open_1 instead of remote_async_open_1.
386
387 2002-08-19 Mark Kettenis <kettenis@gnu.org>
388
389 * blockframe.c: Fix a few coding standard violations.
390
391 2002-08-19 Mark Kettenis <kettenis@gnu.org>
392
393 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
394 here from ...
395 * config/i386/tm-i386sco5.h: ... here. File removed.
396 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
397
398 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
399 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
400 (TM_FILE): Set to tm-i386.h.
401 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
402 * config/i386/tm-i386v.h: Remove file.
403 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
404 instead of "i386/tm-i386v.h".
405 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
406 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
407 "i386/tm-i386v.h".
408 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
409 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
410 "i386/tm-i386.h".
411
412 2002-08-18 Mark Kettenis <kettenis@gnu.org>
413
414 * config/i386/nm-i386v.h: Add protection against
415 multiple-inclusion.
416 (i386_register_u_addr): Remove prototype.
417 (register_u_addr): New prototype.
418 (REGISTER_U_ADDR): Redefine accordingly.
419 * i386v-nat.c: Improve several comments.
420 (i386_register_u_addr): Change signature and rename to
421 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
422 ubase variable.
423
424 2002-08-18 Andrew Cagney <ac131313@redhat.com>
425
426 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
427 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
428 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
429 deprecated_extract_return_value.
430 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
431 rename mips_o32o64_push_arguments.
432 (mips_gdbarch_init): Update.
433 (mips_extract_return_value): Delete.
434 (mips_o32_extract_return_value): Clone mips_extract_return_value.
435 (mips_o64_extract_return_value): Clone mips_extract_return_value.
436 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
437 (mips_n32n64_extract_return_value): Clone
438 mips_extract_return_value.
439 (mips_store_return_value): Delete.
440 (mips_o32_store_return_value): Clone mips_store_return_value.
441 (mips_o64_store_return_value): Clone mips_store_return_value.
442 (mips_eabi_store_return_value): Clone mips_store_return_value.
443 (mips_n32n64_store_return_value): Clone mips_store_return_value.
444
445 2002-08-18 Aidan Skinner <aidan@velvet.net>
446
447 * ada-lang.c: Use gdb_string.h instead of <string.h>.
448 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
449
450 2002-08-18 Aidan Skinner <aidan@velvet.net>
451
452 * ada-lang.c: Run through gdb_indent.sh.
453 * ada-lang.h: Run through gdb_indent.sh.
454 * ada-tasks.c: Run through gdb_indent.sh.
455 * ada-typeprint.c: Run through gdb_indent.sh.
456 * ada-valprint.c: Run through gdb_indent.sh.
457
458 2002-08-18 Andrew Cagney <ac131313@redhat.com>
459
460 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
461 ABI.
462
463 2002-08-18 Mark Kettenis <kettenis@gnu.org>
464
465 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
466
467 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
468 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
469
470 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
471 write_register_gen instead of write_register_bytes.
472
473 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
474 i[3456]-*-osf1mk* configurations have been made obsolete.
475 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
476 i[3456]86-*-osf1mk* hosts obsolete.
477 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
478 targets obsolete.
479 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
480 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
481 config/i386/i386m3.mt, config/i386/nm-m3.h,
482 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
483 config/i386/i386mk.mh, config/i386/i386mk.mt,
484 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
485 obsolete.
486 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
487 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
488 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
489
490 2002-08-18 Andrew Cagney <ac131313@redhat.com>
491
492 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
493 (hppa_value_returned_from_stack): Declare.
494 (hppa_extract_return_value): Declare.
495 * config/pa/hppa.mt: New file.
496 * configure.tgt: Recognize hppa*-*-*.
497 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
498
499 2002-08-18 Mark Kettenis <kettenis@gnu.org>
500
501 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
502 comment.
503
504 2002-08-17 Mark Kettenis <kettenis@gnu.org>
505
506 * top.c (gdb_rl_operate_and_get_next): Make sure
507 operate-and-get-next functions correctly even when the history
508 list is completely filled.
509
510 2002-08-18 Andrew Cagney <ac131313@redhat.com>
511
512 * MAINTAINERS (Target Instruction Set Architectures): Rename
513 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
514 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
515 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
516 already listed under Host/Native.
517
518 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
519 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
520 mips*-*-*.
521
522 2002-08-17 Andrew Cagney <ac131313@redhat.com>
523
524 * config/ia64/ia64.mt: New file.
525 * config/alpha/alpha.mt: New file.
526 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
527 ia64-linux-gnu. Mention that ia64-elf is broken.
528 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
529
530 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
531
532 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
533 generic_func_frame_valid instead of func_frame_valid.
534
535 2002-08-16 Joel Brobecker <brobecker@gnat.com>
536
537 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
538 procfs appears to be broken when debugging on multi-processor
539 machines. So enable software single stepping in order to avoid
540 using the procfs interface to do next/step operations, using
541 internal breakpoints instead.
542
543 * infrun.c (handle_inferior_event): Readjust the stop_pc by
544 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
545 make this pc address equal to the value it would have if the
546 system stepping capability was used. Also set a new flag used
547 to ensure that we don't readjust the PC one more time later.
548
549 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
550 address by DECR_PC_AFTER_BREAK when software single step is
551 in use for this architecture, as this has already been taken
552 care of in handle_inferior_event().
553
554 2002-08-16 Joel Brobecker <brobecker@gnat.com>
555
556 * infrun.c (handle_inferior_event): Minor reformatting, to make
557 a rather long condition expression easier to read.
558
559 2002-08-16 Andrew Cagney <ac131313@redhat.com>
560
561 * Makefile.in (gdbtk.o): Move to end of file.
562 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
563 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
564 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
565 (gdbtk-wrapper.o, gdbres.o): Ditto.
566
567 2002-08-16 Andrew Cagney <ac131313@redhat.com>
568
569 * Makefile.in (copying.o): Separate out compile rule.
570 (hpux-thread.o, procfs.o, signals.o): Ditto.
571 (v850ice.o, z8k-tdep.o): Ditto.
572 (tui-file.o): Move to TUI section.
573 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
574 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
575
576 2002-08-16 Joel Brobecker <brobecker@gnat.com>
577
578 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
579 skip_trampoline_code, for better namespace-proofing.
580
581 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
582
583 2002-08-16 Joel Brobecker <brobecker@gnat.com>
584
585 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
586
587 2002-08-16 Joel Brobecker <brobecker@gnat.com>
588
589 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
590 signal, check whether we hit a breakpoint before checking for a
591 single step breakpoint. Otherwise, GDB fails to notice that a
592 breakpoint has been hit when stepping onto a breakpoint.
593
594 2002-08-16 Keith Seitz <keiths@redhat.com>
595
596 * gdb-events.sh (clear_gdb_event_hooks): New function.
597 * gdb-events.c: Regenerate.
598 * gdb-events.h: Regenerate.
599
600 2002-08-16 Andrew Cagney <ac131313@redhat.com>
601
602 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
603 not_a_sw_breakpoint.
604 * breakpoint.h (bpstat_stop_status): Add parameter names.
605
606 2002-08-16 Grace Sainsbury <graces@redhat.com>
607
608 * remote.c (remote_insert_hw_breakpoint)
609 (remote_remove_hw_breakpoint): Fix calculation of length field
610 for Z-packet.
611
612 2002-08-15 Michael Snyder <msnyder@redhat.com>
613
614 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
615 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
616 (supply_fpregset): Ditto.
617
618 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
619 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
620 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
621 (TARGET_READ_SP): Delete.
622 (DO_REGISTERS_INFO): Delete.
623 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
624 Delete.
625 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
626 from macros to functions.
627
628 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
629 (mips_register_convertible, mips_register_convert_to_virtual,
630 mips_register_convert_to_raw): Make static.
631 (mips_read_sp): New function.
632 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
633 (mips_do_registers_info): Make static.
634 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
635 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
636 (mips_register_convert_from_type, mips_register_convert_to_type):
637 New functions.
638 (mips_gdbarch_init): Set up function_start_offset,
639 register_virtual_size, pc_in_sigtramp.
640
641 2002-08-15 Andrew Cagney <ac131313@redhat.com>
642
643 * infcmd.c (vector_info): New function.
644 (_initialize_infcmd): Add command "info vector".
645 (print_vector_info): New function.
646
647 * gdbarch.sh (PRINT_VECTOR_INFO): New method
648 * gdbarch.h, gdbarch.c: Regenerate.
649
650 2002-08-15 Andrew Cagney <ac131313@redhat.com>
651
652 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
653 ``print_all''. Only print vector registers when ``print_all''.
654
655 2002-08-15 Andrew Cagney <ac131313@redhat.com>
656
657 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
658 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
659
660 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
661 Add `args' parameter.
662 * gdbarch.h, gdbarch.c: Regenerate.
663
664 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
665
666 * infcmd.c (float_info): Call print_float_info.
667 (print_float_info): New function. By default, print the
668 floating-point registers.
669
670 * arch-utils.h (default_print_float_info): Delete declaration.
671 * arch-utils.c (default_print_float_info): Delete function.
672
673 2002-08-16 Mark Kettenis <kettenis@gnu.org>
674
675 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
676 out define.
677
678 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
679 FRAME.
680
681 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
682 * configure.host: Make i[3456]86-*-aix host obsolete.
683 * configure.tgt: Make i[3456]86-*-aix target obsolete.
684 * config/i386/i386aix.mh, config/i386/i386aix.mt,
685 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
686 config/i386/xm-i386aix.h: Make files obsolete.
687 * i386aix-nat.c: Make file obsolete.
688 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
689 (i386aix-nat.o): Make target obsolete.
690
691 * config/i386/nm-gnu.h: Removed.
692 * config/i386/nm-i386gnu.h: New file.
693 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
694 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
695 Moved here from ...
696 * config/i386/tm-i386gnu.h: ... here. Removed.
697 * config/i386/xm-i386gnu.h: Removed.
698 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
699 (NAT_FILE): Set to nm-i386gnu.h.
700 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
701 * i386-tdep.c: New file.
702 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
703 (i386gnu-tdep.o): Specify dependencies.
704
705 2002-08-15 Mark Kettenis <kettenis@gnu.org>
706
707 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
708 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
709 Adjust a few comments to reflect reality a bit closer.
710 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
711 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
712 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
713 target_insert_watchpoint, target_remove_watchpoint):
714 Move defines to ...
715 * config/i386/nm-i386sco5.h: ... here.
716 (kernel_u_size): Add prototype. Improve a few comments and add
717 protection against multiple inclusion.
718
719 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
720 out define.
721
722 * uw-thread.c (SP_ARG0): Define if not already defined.
723 * config/i386/tm-i386.h (SO_ARG0): Remove define.
724
725 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
726
727 * config/i386/tm-i386.h: Don't include "regcache.h".
728
729 * i387-tdep.h (i387_print_float_info): New prototype.
730 * i387-tdep.c (print_i387_value, print_i387_ext,
731 print_i387_status_word, print_i387_control_word): Add `struct
732 ui_file *' argument and use it for output.
733 (i387_print_float_info): Renamed from i387_float_info. Add
734 `struct gdbarch *' and `struct ui_file *' arguments and use the
735 latter for output.
736 * i386-tdep.c: Include "i387-tdep.h".
737 (i386_gdbarch_init): Set print_float_info.
738 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
739 (FLOAT_INFO): Remove define.
740
741 2002-08-13 Michael Snyder <msnyder@redhat.com>
742
743 * mips-tdep.c (mips_push_arguments): Rename to
744 mips_eabi_push_arguments, and tune for EABI.
745 (MIPS_REGS_HAVE_HOME_P): Delete.
746 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
747 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
748 Delete references to mips_regs_have_home_p.
749
750 2002-08-14 Keith Seitz <keiths@redhat.com>
751
752 * Makefile.in (install-gdbtk): Create insight plugin directory.
753 Install plugins.tcl file.
754
755 2002-08-14 Keith Seitz <keiths@redhat.com>
756
757 * configure.in: Move SUBDIRS to near top of the file so that
758 --enable options may add things to it.
759 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
760 * configure: Regenerate.
761
762 2002-08-13 Michael Snyder <msnyder@redhat.com>
763
764 * mips-tdep.c (mips_o32o64_push_arguments): New function,
765 cloned from mips_push_arguments, tuned for o32/o64 ABI.
766 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
767
768 2002-08-13 Andrew Cagney <ac131313@redhat.com>
769
770 * vax-tdep.c (vax_get_saved_register): Delete function.
771 (vax_gdbarch_init): Update.
772 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
773 (ns32k_gdbarch_init): Update.
774 * alpha-tdep.c (alpha_get_saved_register): Delete function.
775 (alpha_gdbarch_init): Update.
776
777 2002-08-13 Andrew Cagney <cagney@redhat.com>
778
779 * regcache.c (init_regcache_descr): Overallocate the
780 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
781 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
782 nr_raw_registers.
783 (set_register_cached): Add range checking assertions. Use
784 current_regcache.
785
786 2002-08-13 Mark Kettenis <kettenis@gnu.org>
787
788 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
789 numbers for MMX registers.
790
791 2002-08-13 Andrew Cagney <cagney@redhat.com>
792
793 * i386-tdep.c (i386_gdbarch_init): Use
794 generic_unwind_get_saved_register.
795
796 2002-08-13 Kevin Buettner <kevinb@redhat.com>
797
798 * procfs.c (procfs_can_use_hw_breakpoint): New function.
799 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
800 target vector.
801 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
802 Delete. Add comment regarding this now-deleted target method.
803
804 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
805
806 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
807 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
808 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
809 real PC and the page number (if it's within the memory bank window).
810 (m68hc11_pseudo_register_write): Likewise when saving.
811 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
812 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
813 (m68hc11_register_raw_size): And use 32-bit for it.
814 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
815 16K memory bank is used by the prog; also use the virtual pc.
816
817 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
818
819 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
820 (m68hc11_gdbarch_init): Install it in gdbarch.
821 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
822 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
823 (MSYMBOL_SIZE): New for documentation.
824 (insn_return_kind): Enum to specify how a function returns.
825 (frame_extra_info): Cleanup and record the return mode.
826 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
827 register in address computation.
828 (m68hc11_get_return_insn): New to obtain the return instruction used
829 by the function.
830 (m68hc11_frame_init_saved_regs): Take into account the return
831 instruction used by the function for far and interrupt functions.
832 (m68hc11_init_extra_frame_info): Take into account page register.
833 (m68hc11_frame_args_address): Adjust according to the return mode.
834 (show_regs): Print page register only when it's used.
835
836 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
837
838 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
839 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
840 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
841 registers.
842 (m68hc11_register_raw_size): Likewise.
843
844 2002-08-13 Andrew Cagney <cagney@redhat.com>
845
846 * i386-tdep.c (i386_register_name): Handle mmx registers.
847 (mmx_regnum_p): New function.
848 (i386_mmx_names): New array.
849 (mmx_num_regs): New variable.
850 (i386_pseudo_register_read): New function.
851 (i386_pseudo_register_write): New function.
852 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
853
854 * regcache.c (regcache_raw_read_unsigned): New function.
855 (regcache_raw_read_signed): New function.
856 * regcache.h (regcache_raw_read_unsigned): Declare.
857 (regcache_raw_read_signed): Declare.
858
859 2002-08-13 Andrew Cagney <cagney@redhat.com>
860
861 * regcache.c (regcache_raw_read_as_address): Delete function.
862 (regcache_cooked_read_signed): New function.
863 (regcache_cooked_read_unsigned): New function.
864 * regcache.h (regcache_cooked_read_signed): Declare.
865 (regcache_cooked_read_unsigned): Declare.
866 (regcache_raw_read_as_address): Delete declaration.
867
868 * blockframe.c (generic_read_register_dummy): Use
869 regcache_cooked_read_unsigned.
870 * i386-tdep.c (i386_extract_struct_value_address): Use
871 regcache_cooked_read_unsigned.
872
873 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
874
875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
876 double sizes according to ELF ABI flags.
877 (gdbarch_tdep): Record elf_flags.
878
879 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
880
881 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
882 (m6812_prolog): They can appear in 68HC12 function prologue.
883 (m68hc11_frame_chain): Cleanup.
884
885 2002-08-12 Andrew Cagney <cagney@redhat.com>
886
887 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
888 declarations.
889 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
890 (i386_linux_register_raw_size): Delete function.
891 (i386_linux_init_abi): Update.
892 * i386-tdep.c (i386_register_raw_size): Delete function.
893 (i386_register_byte): Delete function.
894 (i386_gdbarch_init): Update.
895 (i386_register_size): Delete array.
896 (i386_register_offset): Delete array.
897
898 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
899 (REGISTER_RAW_SIZE): Delete macro.
900 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
901 (REGISTER_BYTE): Delete macro.
902
903 2002-08-11 Aidan Skinner <aidan@velvet.net>
904
905 * ada-lang.c (ada_lookup_partial_symbol)
906 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
907 prototype names so that grep ^func works properly.
908
909 * ada-lang.c (ada_array_element_type)
910 (ada_lookup_partial_symbol): Fix typos in parameter list.
911
912 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
913 Fix prototype names so that grep ^func works properly.
914
915 2002-08-10 Andrew Cagney <cagney@redhat.com>
916 Elena Zannoni <ezannoni@redhat.com>
917 Martin M. Hunt <hunt@redhat.com>
918
919 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
920 (build_builtin_type_vec128i): Set the vector bit.
921 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
922 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
923 (build_builtin_type_vec64): New function.
924 (build_builtin_type_vec64i): New function.
925 (build_gdbtypes): Initialize builtin_type_vec64 and
926 builtin_type_vec64i.
927
928 2002-08-09 Andrew Cagney <cagney@redhat.com>
929
930 * regcache.c (regcache_dump): Compare the register offset
931 with REGISTER_BYTE.
932 * arch-utils.c (generic_register_byte): New function.
933 * arch-utils.h (generic_register_byte): Declare.
934 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
935 * gdbarch.h, gdbarch.c: Regenerate.
936
937 2002-08-09 Andrew Cagney <cagney@redhat.com>
938
939 * regcache.c: Include "gdbcmd.h"
940 (_initialize_regcache): Add commands "maintenance print
941 registers", "maintenance print raw-registers" and "maintenance
942 print cooked-registers".
943 (enum regcache_dump_what): Define.
944 (dump_endian_bytes): New function.
945 (regcache_dump): New function.
946 (regcache_print): New function.
947 (maintenance_print_registers): New function.
948 (maintenance_print_raw_registers): New function.
949 (maintenance_print_cooked_registers): New function.
950 * Makefile.in (regcache.o): Update dependencies.
951
952 2002-08-09 Michael Snyder <msnyder@redhat.com>
953
954 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
955 (mips_push_arguments): Correct some comments. Use paddr_nz
956 for printing addresses in debug output. Replace static
957 allocation using MAX_REGISTER_RAW_SIZE with alloca.
958 (mips_n32n64_push_arguments): New function, cloned from
959 mips_push_arguments and tuned for the n32/n64 ABI.
960 (mips_push_register): Buffer needs dynamic allocation.
961 (mips_print_register): Ditto.
962 (do_gp_register_row): Ditto.
963 (mips_store_return_value): Ditto.
964 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
965
966 2002-08-09 Don Howard <dhoward@redhat.com>
967
968 * memattr.c (mem_info_command): Print special case of upper bound
969 as max CORE_ADDR + 1.
970
971 2002-08-08 Michael Snyder <msnyder@redhat.com>
972
973 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
974 returns structs by ref if they're too big to fit in two registers.
975
976 2002-08-09 Kevin Buettner <kevinb@redhat.com>
977
978 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
979 saved regs value.
980 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
981 mips_find_saved_regs().
982 (mips_pop_frame): Likewise.
983
984 2002-08-09 Kevin Buettner <kevinb@redhat.com>
985
986 * blockframe.c (frame_saved_regs_register_unwind): Revise
987 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
988 frames are in use.
989
990 2002-08-09 Grace Sainsbury <graces@redhat.com>
991
992 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
993 T-packets; the 'a' is not taken as a register number.
994 (remote_check_watch_resources, remote_stopped_by_watchpoint)
995 (remote_stopped_data_address): New functions; add to target
996 vector.
997 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
998 prototypes to match other implementations of this
999 function. replace integer argument with pointer -- the length
1000 field in the Z-packet is the length of what is pointed to or 1 if
1001 pointer is null. Add to target vector.
1002 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1003 target vector.
1004
1005 From Mark Salter:
1006 * remote.c (remote_wait): Add support to extract optional
1007 watchpoint information from T-packet. Ignore unrecognized
1008 optional info in T-packet.
1009 (remote_async_wait): Ditto.
1010
1011 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1012
1013 * cli/cli-dump.c: Change fopen modes to use binary open modes
1014 as defined in include/fopen-bin.h throughout.
1015
1016 2002-08-08 Michael Snyder <msnyder@redhat.com>
1017
1018 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1019
1020 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1021
1022 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1023 assertion failure by returning early after a warning.
1024
1025 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1026
1027 * mips-tdep.c (mips_find_saved_regs): Make static.
1028 (mips_frame_init_saved_regs): New function.
1029 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1030 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1031 (mips_find_saved_regs): Delete declaration.
1032
1033 2002-08-08 Grace Sainsbury <graces@redhat.com>
1034
1035 * remote.c (remote_wait, remote_async_wait): Change
1036 thread_num from int to ULONGEST.
1037 (unpack_varlen_hex): Change result parameter from
1038 int * to ULONGEST *.
1039
1040 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1041
1042 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1043 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1044 powerpc*-*-*.
1045 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1046
1047 2002-08-08 Andrew Cagney <cagney@redhat.com>
1048
1049 * gcore.c (override_derive_stack_segment): Delete variable.
1050 (preempt_derive_stack_segment): Delete function.
1051 (derive_stack_segment): Delete function.
1052 (default_derive_stack_segment): Renamed to derive_stack_segment.
1053 (override_derive_heap_segment): Delete variable.
1054 (preempt_derive_heap_segment): Delete function.
1055 (derive_heap_segment): Delete function.
1056 (default_derive_heap_segment): Rename to derive_heap_segment.
1057
1058 2002-08-06 Michael Snyder <msnyder@redhat.com>
1059
1060 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1061 * mips-tdep.c (mips_EABI_use_struct_convention,
1062 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1063 New functions. (mips_use_struct_convention): Delete.
1064 (mips_gdbarch_init): set use_gdbarch_convention.
1065
1066 2002-08-06 Michael Snyder <msnyder@redhat.com>
1067
1068 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1069 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1070 mips_o32_reg_struct_has_addr): New functions.
1071 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1072
1073 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1074
1075 * regcache.c (pseudo_register): Delete function.
1076 (fetch_register): Delete function.
1077 (store_register): Delete function.
1078 (regcache_raw_read, legacy_read_register_gen): Use
1079 target_fetch_registers instead of fetch_register.
1080 (legacy_write_register_gen, regcache_raw_write): Use
1081 target_store_register instead of store_register.
1082 (write_register_bytes): Ditto.
1083
1084 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1085 (STORE_PSEUDO_REGISTER): Delete.
1086 * gdbarch.h, gdbarch.c: Regenerate.
1087
1088 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1089
1090 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1091 write dump file binary.
1092
1093 2002-08-05 Michael Snyder <msnyder@redhat.com>
1094
1095 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1096 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1097 (mips_gdbarch_init): Set N32 target to be mips64.
1098
1099 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1100
1101 * frame.c (find_saved_register): Break out of loop once saved
1102 register address is found. Don't mention sparc in loop comment
1103 anymore.
1104
1105 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1106
1107 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1108 mips_default_saved_regsize to 8.
1109
1110 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1111
1112 * gcore.c: Do not include <sys/procfs.h>.
1113 * Makefile.in (gcore.o): Update dependencies.
1114
1115 2002-08-06 Andrew Cagney <cagney@redhat.com>
1116
1117 * configure.tgt: Make arc-*-* obsolete.
1118 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1119 * MAINTAINERS: Make arc-elf obsolete.
1120 * arc-tdep.c: Make file obsolete.
1121 * config/arc/arc.mt: Ditto.
1122 * config/arc/tm-arc.h: Ditto.
1123
1124 2002-08-05 Theodore A. Roth <troth@verinet.com>
1125
1126 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1127
1128 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1129
1130 * mcore-tdep.c (mcore_gdbarch_init): Use
1131 generic_unwind_get_saved_register instead of
1132 generic_get_saved_register.
1133 * v850-tdep.c (v850_gdbarch_init): Ditto.
1134 * frv-tdep.c (frv_gdbarch_init): Ditto.
1135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1136 * s390-tdep.c (s390_gdbarch_init): Ditto.
1137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1138 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1139 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1140
1141 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1142
1143 * objfiles.h: Add missing #include "symfile.h"
1144
1145 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1146
1147 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1148
1149 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1150 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1151 of FIELD_BITSIZE.
1152
1153 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1154
1155 * NEWS: Cleanup and nitpick.
1156
1157 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1158
1159 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1160
1161 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1162
1163 * Makefile.in (gdbtk-bp.o): Update dependencies.
1164 (gdbtk-register.o): Ditto.
1165 (gdbtk-varobj.o): Ditto.
1166
1167 2002-08-03 Andrew Cagney <cagney@redhat.com>
1168
1169 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1170 m68hc11_fetch_pseudo_register.
1171 (m68hc11_pseudo_register_write): Replace
1172 m68hc11_store_pseudo_register.
1173 (m68hc11_gdbarch_init): Update.
1174
1175 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1176
1177 * gdbarch.sh: Include "gdb_string.h".
1178 * gdbarch.c: Regenerate.
1179
1180 * regcache.c: Include "gdb_string.h".
1181 * ax-general.c: Ditto.
1182 * varobj.c: Ditto.
1183 * std-regs.c: Ditto.
1184 * fbsd-proc.c: Ditto.
1185 * thread.c: Ditto.
1186
1187 * Makefile.in (regcache.o): Update dependencies.
1188 (thread.o, gdbarch.o): Ditto.
1189 (ax-general.o, gdbarch.o): Ditto.
1190 (varobj.o, std-regs.o): Ditto.
1191 (fbsd-proc.o): Specify dependencies.
1192
1193 2002-08-02 Andrew Cagney <cagney@redhat.com>
1194
1195 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1196 regnum.
1197 (regcache_cooked_write): Ditto.
1198
1199 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1200
1201 * regcache.c (regcache_cooked_read): New function.
1202 (regcache_cooked_write): New function.
1203 (read_register_gen): Rewrite using regcache_cooked_read.
1204 (write_register_gen): Rewrite using regcache_cooked_write.
1205
1206 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1207 Declare.
1208
1209 2002-08-02 Andrew Cagney <cagney@redhat.com>
1210
1211 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1212 Replace the architecture methods register_read and register_write.
1213 * gdbarch.h, gdbarch.c: Regenerate.
1214 * regcache.c (init_regcache_descr): Update.
1215 (read_register_gen): Update.
1216 (write_register_gen): Update.
1217 (supply_register): Update comment.
1218
1219 * sh-tdep.c (sh_gdbarch_init): Update.
1220 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1221 `regcache' and `gdbarch' parameters. Make `buffer' a void
1222 pointer. Update code.
1223 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1224 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1225 void pointer. Update code.
1226 (sh64_register_write): Delete.
1227 (sh4_register_read): Delete.
1228 (sh64_register_read): Delete.
1229 (sh4_register_write): Delete.
1230 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1231 void pointer, `to' parameter a void pointer.
1232 (sh_sh64_register_convert_to_raw): Ditto.
1233
1234 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1235
1236 * mips-tdep.c (mips_register_virtual_type): Use architecture
1237 invariant return values.
1238
1239 2002-08-01 Andrew Cagney <cagney@redhat.com>
1240
1241 * linux-proc.c: Include "gdb_string.h".
1242 * Makefile.in (linux-proc.o): Update dependency list.
1243
1244 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1245
1246 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1247 comment.
1248
1249 2002-08-01 Grace Sainsbury <graces@redhat.com>
1250
1251 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1252 to_insert_watchpoint, to_remove_watchpoint,
1253 to_stopped_by_watchpoint, to_stopped_data_address,
1254 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1255 target vecctor. Define their corresponding macros so they call
1256 them.
1257
1258 * target.c: Add default and debug versions of for
1259 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1260 to_insert_watchpoint, to_remove_watchpoint,
1261 to_stopped_by_watchpoint, to_stopped_data_address,
1262 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1263
1264 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1265
1266 * mips-tdep.c (mips_register_virtual_type): New function.
1267 (mips_gdbarch_init): Register mips_register_virtual_type()
1268 with gdbarch machinery.
1269 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1270 this file instead of tm-bigmips.h.
1271 (MIPS_REGSIZE): Delete this macro.
1272 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1273 multiarch version in mips-tdep.c will be found.
1274
1275 2002-08-01 Andrew Cagney <cagney@redhat.com>
1276
1277 * NEWS: Menion that CHILL has been made obsolete.
1278
1279 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1280 * gdbserver/Makefile.in: Ditto.
1281 * stabsread.c (read_range_type): Ditto.
1282 * gdbtypes.h: Ditto.
1283 * language.c (binop_type_check): Ditto.
1284 (binop_result_type): Ditto.
1285 (integral_type): Ditto.
1286 (character_type): Ditto.
1287 (string_type): Ditto.
1288 (boolean_type): Ditto.
1289 (structured_type): Ditto.
1290 (lang_bool_type): Ditto.
1291 (binop_type_check): Ditto.
1292 * language.h (_LANG_chill): Ditto.
1293 * dwarfread.c (set_cu_language): Ditto.
1294 * dwarfread.c (CHILL_PRODUCER): Ditto.
1295 * dwarfread.c (handle_producer): Ditto.
1296 * expression.h (enum exp_opcode): Ditto.
1297 * eval.c: Ditto for comments.
1298 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1299 * expprint.c (print_subexp): Ditto.
1300 (print_subexp): Ditto.
1301 * valops.c (value_cast): Ditto.
1302 (search_struct_field): Ditto.
1303 * value.h (COERCE_VARYING_ARRAY): Ditto.
1304 * symfile.c (init_filename_language_table): Ditto.
1305 (add_psymbol_with_dem_name_to_list): Ditto.
1306 * valarith.c (value_binop): Ditto.
1307 (value_neg): Ditto.
1308 * valops.c (value_slice): Ditto.
1309 * symtab.h (union language_specific): Ditto.
1310 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1311 (SYMBOL_DEMANGLED_NAME): Ditto.
1312 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1313 * defs.h (enum language): Ditto.
1314 * symtab.c (got_symtab): Ditto.
1315 * utils.c (fprintf_symbol_filtered): Ditto.
1316
1317 * ch-typeprint.c: Make file obsolete.
1318 * ch-valprint.c: Make file obsolete.
1319 * ch-lang.h: Make file obsolete.
1320 * ch-exp.c: Make file obsolete.
1321 * ch-lang.c: Make file obsolete.
1322
1323 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1324 CHILL_LIB.
1325 (TARGET_FLAGS_TO_PASS): Ditto.
1326 (CHILLFLAGS): Obsolete.
1327 (CHILL): Obsolete.
1328 (CHILL_FOR_TARGET): Obsolete.
1329 (CHILL_LIB): Obsolete.
1330 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1331 ch-valprint.c.
1332 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1333 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1334 ch-lang.o.
1335 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1336 targets.
1337
1338 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1339
1340 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1341 This does not change anything at the moment, but will be helpful
1342 later when full Ada support is integrated.
1343
1344 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1345
1346 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1347 help message.
1348
1349 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1350
1351 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1352 and save it in a local variable. Use variable in later test.
1353
1354 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1355
1356 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1357 test. (Thanks to Daniel Jacobowitz.)
1358
1359 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1360
1361 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1362 (mips_abi_strings): Add "n64".
1363 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1364
1365 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1366
1367 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1368 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1369
1370 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1371
1372 * utils.c (host_pointer_to_address, address_to_host_pointer):
1373 Use gdb_assert() instead of explicit call to internal_error().
1374
1375 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1376
1377 * Makefile.in (rs6000-nat.o): Update dependencies.
1378
1379 From Nicholas Duffek:
1380 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1381 (aix-thread.o): New rule.
1382 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1383 * config/powerpc/aix432.mh: New file.
1384
1385 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1386
1387 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1388 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1389 (fetch_core_registers, ppc_linux_supply_gregset)
1390 (ppc_linux_supply_fpregset): New functions.
1391 (ppc_linux_regset_core_fns): New.
1392 (_initialize_ppc_linux_tdep): Call add_core_fns.
1393 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1394 and ppc_linux_supply_gregset.
1395 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1396 (supply_fpregset): Call ppc_linux_supply_fpregset.
1397 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1398 corelow.o.
1399 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1400
1401 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1402
1403 * symtab.c (lookup_symbol): Demangle before lowercasing.
1404
1405 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1406
1407 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1408 declaration.
1409 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1410 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1411 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1412 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1413 "gdb_string.h".
1414 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1415 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1416 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1417 (avr-tdep.o, mon960-rom.o): Ditto.
1418 (aout_stabs_gnu_h): Define.
1419 (symtab_h): Remove $(gdb_obstack_h).
1420
1421 2002-07-30 Jim Blandy <jimb@redhat.com>
1422
1423 Patch from David Carlton <carlton@math.stanford.edu>:
1424 * gdbinit.in: Move the `dir' commands that add GDB's own source
1425 directory to the search path to the end, so that the `gdb' source
1426 directory will be searched first.
1427
1428 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1429
1430 * gdb_obstack.h: New file.
1431 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1432 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1433 * objfiles.h: Include "gdb_obstack.h".
1434 * Makefile.in (gdb_obstack_h): Define.
1435 (symtab_h): Add $(gdb_obstack_h).
1436 (objfiles_h): Add $(gdb_obstack_h).
1437
1438 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1439 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1440 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1441 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1442 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1443 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1444 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1445 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1446
1447 * Makefile.in (bcache.o): Update dependencies.
1448 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1449 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1450 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1451 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1452 (stabsread.o, symfile.o, symmisc.o): Ditto.
1453 (symtab.o, typeprint.o, macroexp.o): Ditto.
1454 (macrotab.o, mdebugread.o): Ditto.
1455 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1456 (coff_ecoff_h, aout_aout64_h): Define.
1457 (aout_stabs_gnu_h, libaout_h): Define.
1458
1459 2002-07-29 Andrew Cagney <cagney@redhat.com>
1460
1461 * regcache.c (struct regcache_descr): Rename nr_registers to
1462 nr_cooked_registers. Revise comments describing the structure
1463 member fields.
1464 (init_regcache_descr): Update.
1465 (init_legacy_regcache_descr): Update.
1466 (read_register_gen, write_register_gen): When a cooked register in
1467 the raw register range, directly access the value from the raw
1468 register cache.
1469
1470 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1471
1472 * z8k-tdep.c: Do not include "obstack.h".
1473 * h8300-tdep.c, h8500-tdep.c: Ditto.
1474 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1475 * valprint.c, v850-tdep.c: Ditto.
1476 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1477 * mn10200-tdep.c: Ditto.
1478
1479 * Makefile.in (z8k-tdep.o): Update dependencies.
1480 (m68hc11-tdep.o, valprint.o): Ditto.
1481 (v850-tdep.o, d10v-tdep.o): Ditto.
1482 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1483 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1484 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1485 (sh_opc_h, gdb_sim_sh_h): Define.
1486 (elf_sh_h, elf_bfd_h): Define.
1487 (opcode_m68hc11_h): Define.
1488 (OPCODES_SRC, OPCODES_DIR): define.
1489 (OPCODES): Use $(OPCODES_DIR).
1490 (gdb_sim_d10v_h): Rename sim_d10v_h.
1491 (gdb_sim_arm_h): Rename sim_arm_h.
1492
1493 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1494
1495 * utils.c (host_pointer_to_address, address_to_host_pointer):
1496 Change internal_error() message to indicate function responsible
1497 for the error.
1498
1499 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1500
1501 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1502 calls to local_hex_string_custom().
1503
1504 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1505
1506 * irix5-nat.c: Move IRIX shared library support from here...
1507 * solib-irix.c: ...to here. Revised substantially to work with
1508 generic solib framework.
1509
1510 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1511 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1512 * mips-irix-tdep.c: New file.
1513
1514 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1515 (mips-irix-tdep.o, solib-irix.o): New rules.
1516 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1517 solib-irix.o.
1518 * config/mips/irix6.mt (TDEPFILES): Likewise.
1519 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1520
1521 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1522
1523 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1524 disabled (via ``#if 0'') includes.
1525
1526 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1527
1528 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1529 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1530 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1531 Add support for the fpscr register.
1532 * rs6000-nat.c (regmap, fetch_inferior_registers)
1533 (store_inferior_registers, fetch_core_registers): Likewise.
1534
1535 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1536
1537 * rs6000-nat.c (language.h): Include.
1538 (special_regs): Delete this array.
1539 (regmap): New function.
1540 (fetch_register, store_register): Use regmap() to map gdb
1541 register numbers to ptrace register numbers. Also, use
1542 outputs from regmap() to make decisions regarding type of
1543 ptrace() call to make. In particular, don't compare against
1544 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1545 (fetch_inferior_registers, store_inferior_registers): Where
1546 possible, obtain register numbers from tdep struct. Don't
1547 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1548 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1549 (LAST_UISA_SP_REGNUM): Delete.
1550
1551 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1552
1553 * rs6000-nat.c (ppc-tdep.h): Include.
1554 (fetch_registers, store_register, fetch_core_registers): Don't
1555 access registers[] directly. Instead, use supply_register() or
1556 regcache_collect() as appropriate.
1557 (find_toc_address): Format hex address with local_hex_string().
1558
1559 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1560
1561 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1562 bfd/elf32-frv.c.
1563
1564 2002-07-24 Tom Tromey <tromey@redhat.com>
1565
1566 * jv-exp.y: Marked all strings with _().
1567 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1568 internal_error.
1569 (MethodInvocation, CastExpression, parse_number, yyerror,
1570 java_type_from_name, push_expression_name, yylex): Typo fixes.
1571
1572 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1573
1574 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1575 (tee_file_flush, tee_file_write, tee_file_fputs)
1576 (tee_file_isatty): New.
1577 * ui-file.h (tee_file_new): Add prototype.
1578
1579 2002-07-24 Aidan Skinner <aidan@velvet.net>
1580
1581 * ada-lang.c: Change k&r style function definitions to prototyped
1582 form.
1583 * ada-typeprint.c: Change k&r style function definitions to prototyped
1584 form.
1585 * ada-valprint.c: Change k&r style function definitions to prototyped
1586 form.
1587
1588 2002-07-24 Andrew Cagney <cagney@redhat.com>
1589
1590 * README: Remove reference to remote-bug.
1591 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1592 remote-bug.c.
1593 (m88k-nat.o): Delete rule.
1594 (m88k-tdep.o): Delete rule.
1595 (remote-bug.o): Delete rule.
1596 * MAINTAINERS: Mark as obsolete.
1597 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1598 * m88k-tdep.c: Make file obsolete.
1599 * config/m88k/m88k.mh: Ditto.
1600 * config/m88k/delta88v4.mh: Ditto.
1601 * config/m88k/delta88v4.mt: Ditto.
1602 * config/m88k/delta88.mt: Ditto.
1603 * config/m88k/delta88.mh: Ditto.
1604 * remote-bug.c: Ditto.
1605 * config/m88k/tm-delta88.h: Ditto.
1606 * config/m88k/nm-delta88v4.h: Ditto.
1607 * config/m88k/xm-delta88.h: Ditto.
1608 * config/m88k/xm-dgux.h: Ditto.
1609 * config/m88k/tm-m88k.h: Ditto.
1610 * config/m88k/nm-m88k.h: Ditto.
1611 * config/m88k/tm-delta88v4.h: Ditto.
1612 * m88k-nat.c: Ditto.
1613 * cxux-nat.c: Ditto.
1614 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1615 and m88*-*-* obsolete.
1616 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1617 m88*-*-* obsolete.
1618
1619 2002-07-24 Andrew Cagney <cagney@redhat.com>
1620
1621 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1622 constant. Same for local pointer variables.
1623 (extract_signed_integer): Ditto.
1624 * defs.h (extract_unsigned_integer): Update.
1625 (extract_signed_integer): Update.
1626
1627 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1628
1629 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1630 * gdbserver/configure: Regenerate.
1631 * gdbserver/config.in: Regenerate.
1632
1633 2002-07-24 Andrew Cagney <cagney@redhat.com>
1634
1635 * regcache.c (regcache_raw_write): Change buf parameter to a
1636 constant void pointer.
1637 (regcache_raw_read): Change buf parameter to a void pointer.
1638 (legacy_write_register_gen): Change myaddr parameter a constant
1639 void pointer.
1640 (supply_register): Change val parameter to a const void pointer.
1641 * regcache.h (regcache_raw_write): Update declaration.
1642 (regcache_raw_read): Update declaration.
1643 (supply_register): Update declaration.
1644
1645 2002-07-24 Tom Tromey <tromey@redhat.com>
1646
1647 * defs.h (gdb_readline_wrapper): Declare.
1648 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1649 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1650 * top.c (gdb_readline_wrapper): New function.
1651 (command_line_input): Use it.
1652
1653 2002-07-24 Andrew Cagney <cagney@redhat.com>
1654
1655 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1656 regcache_read and regcache_write.
1657 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1658 * regcache.c: Update.
1659 * sh-tdep.c (sh64_push_arguments): Update comment.
1660 (sh_pseudo_register_read): Update.
1661 (sh_pseudo_register_write): Update.
1662 (sh4_register_read): Update.
1663 (sh4_register_write): Update.
1664 (sh64_pseudo_register_read): Update.
1665 (sh64_pseudo_register_write): Update.
1666 (sh64_register_read): Update.
1667 (sh64_register_write): Update.
1668 * i386-tdep.c (i386_extract_return_value): Update.
1669 (i386_extract_struct_value_address): Update.
1670 (i386_extract_return_value): Update.
1671 * blockframe.c (generic_read_register_dummy): Update.
1672 (generic_call_dummy_register_unwind): Update
1673 * infrun.c (write_inferior_status_register): Update.
1674
1675 2002-07-23 Jim Blandy <jimb@redhat.com>
1676
1677 * parser-defs.h (expression_context_pc): Make this extern.
1678 (Thanks to Michael Snyder.)
1679
1680 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1681
1682 GDB 5.2.1 released from 5.2 branch.
1683 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1684 * README: Update to mention 5.2.1.
1685
1686 2002-07-23 Mark Salter <msalter@redhat.com>
1687
1688 * remote.c (remote_read_bytes): Fix check for error.
1689
1690 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1691
1692 * aix-thread.c (language.h): Include.
1693 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1694 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1695 Print newlines at end of debug messages.
1696 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1697 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1698
1699 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1700
1701 * aix-thread.c (ppc-tdep.h): Include.
1702 (special_register_p): New function.
1703 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1704 (store_regs_user_thread): Use register number information from
1705 gdbarch_tdep struct instead of hardcoded offsets relative to
1706 FIRST_UISA_SP_REGNUM.
1707 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1708 special_register_p() instead of using FPLAST_REGNUM and
1709 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1710 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1711 will be MQ's register number.
1712
1713 2002-07-22 Michael Snyder <msnyder@redhat.com>
1714
1715 * aix-thread.c (ops): Rename to aix_thread_ops.
1716 (base_ops): Rename to base_target.
1717 (ops_attach): Rename to aix_thread_attach.
1718 (ops_detach): Rename to aix_thread_detach.
1719 (ops_resume): Rename to aix_thread_detach.
1720 (ops_wait): Rename to aix_thread_wait.
1721 (ops_kill): Rename to aix_thread_kill.
1722 (init_ops): Rename to init_aix_thread_ops.
1723 (ops_fetch_register): Rename to aix_thread_fetch_register.
1724 (ops_store_register): Rename to aix_thread_store_register.
1725 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1726 (ops_thread_alive): Rename to aix_thread_thread_alive.
1727 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1728 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1729 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1730 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1731 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1732 (store_regs_lib): Rename to store_regs_user_thread.
1733 (store_regs_kern): Rename to store_regs_kernel_thread.
1734
1735 2002-07-22 Michael Snyder <msnyder@redhat.com>
1736
1737 * aix-thread.c (ops_prepare_to_store): Eliminate.
1738 (init_ops): Don't initialize ops.prepare_to_store.
1739 (store_regs_kern): Pre-fetch register buffers from child,
1740 because some registers may not be in the cache. Copy
1741 regs from register cache only if they are cached.
1742 (store_regs_lib): Copy regs from register cache only
1743 if they are cached.
1744 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1745 fill_gprs64): Ditto.
1746
1747 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1748
1749 * aix-thread.c (gdb_assert.h): Include.
1750 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1751 register sizes (from register cache) match size of buffer holding
1752 register data.
1753 (fill_sprs32): Change parameter types to match those in the ptrace()
1754 buffer.
1755 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1756 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1757
1758 2002-07-22 Michael Snyder <msnyder@redhat.com>
1759
1760 * aix-thread.c (supply_sprs64): Cosmetic change.
1761 (supply_sprs32): Cosmetic change.
1762 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1763 (fill_sprs64): Use regcache_collect instead of read_register.
1764 (store_regs_lib): Use regcache_collect instead of
1765 read_register. Use fill_sprs32 instead of fill_sprs64,
1766 if debugging a 32-bit architecture.
1767 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1768 out of the register cache, instead of passing a pointer into
1769 the register cache directly to ptrace. Use regcache_collect
1770 insteaad of read_register.
1771 (ops_prepare_to_store): Use target_read_registers instead
1772 of read_register_bytes.
1773
1774 2002-07-20 Aidan Skinner <aidan@velvet.net>
1775
1776 * MAINTAINERS: Add self under write after approval.
1777
1778 2002-07-20 Aidan Skinner <aidan@velvet.net>
1779
1780 * ada-tasks.c: Change k&r style function definitions to prototyped
1781 form.
1782
1783 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1784
1785 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1786 * x86-64-tdep.c: Include "objfiles.h".
1787 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1788 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1789
1790 2002-07-17 Michal Ludvig <michal@suse.cz>
1791
1792 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1793 (update_context): Initialise cfa variable.
1794
1795 2002-07-17 Michael Snyder <msnyder@redhat.com>
1796
1797 * aix-thread.c: Shorten some long lines.
1798 Bring comments into line with code spec.
1799
1800 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1801
1802 * infrun.c: Re-indent using gdb_indent.sh.
1803
1804 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1805
1806 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1807 Leave the indentation temporarily untouched, to minimize the diffs.
1808
1809 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1810
1811 * stabsread.c: Make os9k sections of the code obsolete,
1812 for real this time.
1813 * stabsread.h: Make os9k sections of the code obsolete.
1814
1815 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1816
1817 * linux-low.c (regsets_store_inferior_registers): Add free()
1818 at the end of a loop to prevent memory leak.
1819 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1820 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1821 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1822 line a comment.
1823 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1824
1825 2002-07-17 Jim Blandy <jimb@redhat.com>
1826
1827 * macrocmd.c (info_macro_command): Remove newline from error
1828 message.
1829
1830 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1831
1832 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1833 (sh_gdbarch_init): Use it for sh-dsp.
1834
1835 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1836
1837 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1838 64-bit DWARF2 format.
1839
1840 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1841
1842 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1843 <sys/proc.h> when not available.
1844
1845 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1846
1847 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1848 * stabsread.c: Make os9k sections of the code obsolete.
1849 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1850 * config/i386/i386os9k.mt: Make file obsolete.
1851 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1852 (COMMON_OBS): Remove os9kread.o
1853 (SFILES): Remove os9kread.c.
1854 (os9kread.o, remote-os9k.o): Make target obsolete.
1855 * remote-os9k.c: Make file obsolete.
1856 * os9kread.c: Make file obsolete.
1857 * Makefile.in
1858
1859 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1860
1861 * NEWS: Mention that the FR30 has been made obsolete.
1862 * fr30-tdep.c: Make file obsolete.
1863 * config/fr30/tm-fr30.h: Ditto.
1864 * config/fr30/fr30.mt: Ditto.
1865 * configure.tgt: Make fr30-*-elf obsolete.
1866 * MAINTAINERS: Make fr30-elf obsolete.
1867
1868 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1869
1870 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1871 found is not inside a section.
1872
1873 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1874
1875 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1876 strerror().
1877 (pdc_realloc): Use xrealloc() instead of realloc().
1878
1879 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1880
1881 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1882 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1883 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1884 macros.
1885
1886 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1887
1888 * aix-thread.c (ptrace_check): Eliminate goto.
1889 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1890 problem.
1891
1892 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1893
1894 * aix-thread.c (gdbcmd.h): Include.
1895 (DEBUG, DBG, DBG2, dbg): Eliminate.
1896 (debug_aix_thread): New static global.
1897 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1898 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1899 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1900 invocations to DBG and DBG2 macros to test against
1901 ``debug_aix_thread'' and call fprintf_unfiltered().
1902 (_initialize_aix_thread): Add new command "set debug aix-thread".
1903
1904 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1905
1906 From Gerhard Tonn <TON@de.ibm.com>:
1907 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1908 instead of supply_register.
1909
1910 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1911
1912 * dwarf2cfi.c: Include "gdb_assert.h".
1913 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1914 non-NULL.
1915 (update_context): Do not use __func__. Add missing ``break''.
1916 (update_context): Do not use __func__.
1917
1918 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1919
1920 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1921 and its setting. Set gdbarch instruction printing functions
1922 directly. For non-rs6000 case use new function
1923 gdb_print_insn_powerpc.
1924 (gdb_print_insn_powerpc): New function.
1925
1926 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1927
1928 * NEWS: Mention that the d30v has been marked obsolete.
1929 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1930 * configure.tgt: Mark d30v-*-* as obsolete.
1931 * d30v-tdep.c: Mark file as obsolete.
1932 * config/d30v/d30v.mt: Ditto.
1933 * config/d30v/tm-d30v.h: Ditto.
1934
1935 2002-07-13 Aidan Skinner <aidan@velvet.net>
1936
1937 * ada-tasks.c (add_task_entry): replace calls to
1938 malloc() with xmalloc
1939 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1940
1941 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1942 ada_finish_decode_line_1, all_sals_for_line
1943 ada_breakpoint_rewrite): replace calls to free() with xfree()
1944
1945 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1946
1947 From Nicholas Duffek (with minor changes by Martin Hunt,
1948 Louis Hamilton, and Kevin Buettner):
1949 * aix-thread.c: New file.
1950
1951 2002-07-12 Petr Sorfa <petrs@caldera.com>
1952
1953 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1954 complaint for invalid attribute class or form.
1955 (read_func_scope): DW_AT_frame_base
1956 better handling of DW_AT_block*.
1957 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1958 better handling of DW_AT_block*.
1959 (read_common_block): DW_AT_location
1960 better handling of DW_AT_block*.
1961 (read_partial_die): DW_AT_location better handling
1962 of DW_AT_block*.
1963 (new_symbol): DW_AT_external better handling of
1964 DW_AT_block*. Proper initialization of variable
1965 "addr".
1966 (attr_form_is_block): New function that returns true
1967 if the attribute's form is of DW_FORM_block*.
1968
1969 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1970
1971 * valops.c (find_method_list): Remove comment about
1972 removed STATIC_MEMFUNCP argument.
1973 (value_find_oload_method_list): Likewise.
1974
1975 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1976
1977 From Nicholas Duffek:
1978 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1979 target_new_objfile_hook.
1980
1981 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1982
1983 From Nicholas Duffek:
1984 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1985 csect.
1986
1987 2002-07-12 Andrew Cagney <cagney@redhat.com>
1988
1989 * MAINTAINERS: Mention --enable-sim-build-warnings.
1990 (m68hc11-elf): Disable sim build warnings.
1991 (m32r-elf): Mark as broken obsolete candidate.
1992 (x86_64-linux-gnu): Mark as buildable with -Werror.
1993 (arm-elf): Change -w to ``,'' which enables warnings but not
1994 -Werror.
1995
1996 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1997
1998 * bcache.h: Update copyright.
1999 (struct bstring, struct bcache): Move definition to "bcache.c".
2000 Replaced by opaque declaration.
2001 (bcache_xfree): Replace free_bcache.
2002 (bcache_xmalloc, bcache_memory_used): Declare.
2003
2004 * bcache.c: Update copyright.
2005 (struct bstring, struct bcache): Moved to here from "bcache.h".
2006 Update comments.
2007 (bcache_xmalloc, bcache_memory_used): New functions.
2008 (bcache_xfree): Replace function free_bcache.
2009
2010 * Makefile.in (objfiles.o): Add $(bcache_h).
2011 (objfiles_h): Remove $(bcache_h).
2012 (symfile.o): Add $(bcache_h).
2013
2014 * symmisc.c: Update copyright.
2015 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2016 (print_objfile_statistics): Use bcache_memory_used.
2017
2018 * symfile.c: Include "bcache.h".
2019 (reread_symbols): Use bcache_xfree.
2020 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2021 (add_psymbol_to_list): Pass psymbol_cache by value.
2022 (add_psymbol_with_dem_name_to_list): Ditto.
2023
2024 * objfiles.h: Update copyright.
2025 (struct bcache): Declare opaque. Do not include "bcache.h".
2026 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2027 bcache'' pointers.
2028 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2029
2030 * objfiles.c: Include "bcache.h". Update copyright.
2031 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2032 macro_cache.
2033 (free_objfile): Use bcache_xfree.
2034
2035 2002-07-11 Grace Sainsbury <graces@redhat.com>
2036
2037 * monitor.c (monitor_fetch_register): Make name a constant.
2038 (monitor_store_register): Same.
2039
2040 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2041
2042 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2043 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2044 (finish_block) For non-function blocks, hash the symbol table. For
2045 function blocks, mark the symbol table as unhashed.
2046 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2047 (msymbol_hash_iw): Likewise.
2048 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2049 value.
2050 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2051 (lookup_minimal_symbol): Likewise for both.
2052 * symtab.h (struct block): Add `hashtable' flag. Comment the
2053 hashtable.
2054 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2055 (ALL_BLOCK_SYMBOLS): Update.
2056 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2057 (struct symbol): Add `hash_next' pointer.
2058 * symtab.c (lookup_block_symbol): Search using the hash table when
2059 possible.
2060 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2061 (search_symbols, find_addr_symbol): Likewise.
2062
2063 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2064 (read_dst_symtab): Likewise.
2065 * jv-lang.c (get_java_class_symtab): Likewise.
2066 * mdebugread.c: Include "gdb_assert.h".
2067 (shrink_block): Assert that the block being modified is not hashed.
2068 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2069 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2070 symbols.
2071 (dump_symtab): Recognize hashed blocks.
2072 * printcmd.c (print_frame_args): Assert that function blocks do not
2073 have hashed symbol tables.
2074 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2075 (fill_in_ada_prototype, debug_print_block): Likewise.
2076 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2077
2078 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2079
2080 * stack.c (print_frame): Use result of frame_address_in_block()
2081 instead of fi->pc when evaluating symbols.
2082 (backtrace_command_1): Ditto.
2083
2084 2002-07-11 Andrew Cagney <cagney@redhat.com>
2085
2086 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2087 Make static.
2088
2089 * arm-tdep.c (arm_register_name): Make return type constant.
2090
2091 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2092
2093 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2094 prototype.
2095 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2096 * s390-tdep.c (s390_fp_regnum): Ditto.
2097 (s390_read_fp): Ditto.
2098 (s390_pop_frame): Ditto.
2099 (_initialize_s390_tdep): Ditto.
2100 * remote.c (get_remote_state): Ditto.
2101 * procfs.c (mappingflags): Ditto.
2102 * memattr.c (_initialize_mem): Ditto.
2103 * mcore-tdep.c (mcore_pop_frame): Ditto.
2104 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2105 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2106 * language.c (set_case_str): Ditto.
2107 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2108 * frv-tdep.c (new_variant): Ditto.
2109 (frv_stopped_data_address): Ditto.
2110 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2111 (context_alloc): Ditto.
2112 (frame_state_alloc): Ditto.
2113 (unwind_tmp_obstack_init): Ditto.
2114 (unwind_tmp_obstack_free): Ditto.
2115 (cfi_read_fp): Ditto.
2116 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2117 (cris_pop_frame): Ditto.
2118 * c-lang.c (scanning_macro_expansion): Ditto.
2119 (finished_macro_expansion): Ditto.
2120 (c_preprocess_and_parse): Ditto.
2121 * gdbarch.sh: Ditto.
2122 * gdbarch.h, gdbarch.c: Regenerate.
2123 * config/mn10200/tm-mn10200.h: Adjust indentation.
2124 * target.c: Adjust indentation.
2125 * symtab.h: Adjust indentation.
2126 * stabsread.h: Adjust indentation.
2127 * remote-es.c: Adjust indentation.
2128 * os9kread.c: Adjust indentation.
2129
2130 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2131
2132 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2133 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2134
2135 2002-07-10 Grace Sainsbury <graces@redhat.com>
2136
2137 * NEWS: Mention m68k, mcore multi-arching.
2138 * MAINTAINERS: Change status of m68k, mcore to reflect
2139 multi-arching.
2140
2141 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * valops.c (find_overload_match): Free oload_syms.
2144
2145 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2146
2147 Define HAVE_SYS_PROC_H if sys/proc.h exists
2148 * configure.in: Add check for sys/proc.h
2149 * config.in: Regenerate.
2150 * configure: Regenerate.
2151
2152 2002-07-09 Grace Sainsbury <graces@redhat.com>
2153
2154 * config/m68k/tm-m68k.h: Remove macros wrapped in
2155 #if !GDB_MULTI_ARCH.
2156
2157 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2158
2159 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2160 (perror_with_name, remote_close, remote_open, expect, play): Static.
2161
2162 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2163
2164 * config.in, configure: Regenerate.
2165
2166 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2167
2168 * dwarf2cfi.c: Include "gcore.h".
2169 (execute_stack_op): Fix implementation of the
2170 DW_OP_deref and DW_OP_deref_size operators by letting do their
2171 lookup in the target.
2172
2173 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2174
2175 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2176 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2177 tdep->sc_sp_offset.
2178
2179 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2180
2181 Fix PR gdb/595, gdb/602
2182 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2183 Don't call value_cast, just read the vtable pointer; update comments
2184 to match.
2185
2186 2002-07-05 Grace Sainsbury <graces@redhat.com>
2187
2188 * config/mcore/tm-mcore.h: Remove file.
2189 * config/mcore/mcore.mt: Remove definition of TM_FILE
2190 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2191
2192 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2193
2194 * i386bsd-tdep.c: Include "gdb_string.h".
2195
2196 2002-07-04 Grace Sainsbury <graces@redhat.com>
2197
2198 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2199 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2200 mcore-tdep.
2201 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2202 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2203 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2204 (RETVAL_REGNUM): Move macros from tm-mcore.h
2205 (mcore_reg_struct_has_addr): New function.
2206 (mcore_gdbarch_init): Added initializations for the macros removed
2207 from tm-mcore.h.
2208
2209 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2210
2211 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2212 traditonal string branding within the ELF header.
2213
2214 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * symtab.c (remove_params): New function.
2217 (make_symbol_overload_list): Use it instead of cplus_demangle.
2218 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2219
2220 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2221
2222 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2223
2224 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2225 New variables.
2226 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2227 and tdep->sigtramp_end.
2228 * i386obsd-nat.c: New file.
2229 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2230
2231 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2232 Don't call get_current_frame().
2233
2234 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2235
2236 * i386-nat.c (child_post_startup_inferior): New function
2237 calling i386_cleanup_dregs if
2238 I386_USE_GENERIC_WATCHPOINTS is defined.
2239 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2240 conditional to acknowledge that i386-nat.c has its
2241 own child_post_startup_inferior function.
2242
2243 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2244
2245 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2246 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2247 instead of MAX_REGISTER_RAW_SIZE.
2248 (i386_extract_return_value, i386_extract_struct_value_address):
2249 Convert to use regcache.
2250 (i386_gdbarch_init): Set max_register_raw_size and
2251 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2252 Set extract_return_value and extract_struct_value_address instead
2253 of their deprecated variants.
2254
2255 Convert i386 target to generic dummy frames.
2256 * i386-tdep.c: Include "symfile.h".
2257 (i386_frameless_signal_p): Consider a function to be frameless if
2258 the pc points at the first instruction of the function.
2259 (i386_frame_chain): Handle (generic) call dummies.
2260 (i386_frame_saved_pc): Likewise.
2261 (i386_frame_init_saved_regs): Remove code dealing with call
2262 dummies on the stack.
2263 (i386_push_dummy_frame): Removed.
2264 (i386_call_dummy_words): Removed.
2265 (i386_fix_call_dummy): Removed.
2266 (i386_push_return_address): New function.
2267 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2268 parameter, and don't call get_current_frame.
2269 (i386_pop_frame): New function.
2270 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2271 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2272 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2273 call_dummy_length to 0, set call_dummy_words to NULL, set
2274 sizeof_call_dummy_words to 0, set fix_call_dummy to
2275 generic_fix_call_dummy, set pc_in_call_dummy to
2276 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2277 generic_push_dummy_frame, set push_return_address to
2278 i386_push_return_address and set frame_chain_valid to
2279 generic_file_frame_chain_valid.
2280
2281 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2282
2283 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2284 byte offsets instead of an array of indexes.
2285 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2286
2287 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2288
2289 * gdbarch.sh (struct regcache): Add opaque declaration.
2290 (EXTRACT_RETURN_VALUE): New architecture method.
2291 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2292 * gdbarch.h, gdbarch.c: Regenerate.
2293 * arch-utils.c (legacy_extract_return_value): New function.
2294 * arch-utils.h (legacy_extract_return_value): Declare.
2295 * values.c (value_being_returned): Re-enable code handling
2296 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2297 deprecated_grub_regcache_for_registers call to block handling
2298 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2299 (EXTRACT_RETURN_VALUE): Do not define.
2300
2301 2002-07-03 Grace Sainsbury <graces@redhat.com>
2302
2303 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2304 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2305 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2306 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2307 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2308 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2309 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2310 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2311 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2312 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2313 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2314 argument so the function fits the prototype in the architecture
2315 vector.
2316 (mcore_pop_frame): Remove argument so the function fits the
2317 prototype. Use get_current_frame instead of the argument.
2318 (mcore_push_arguments): Change type of struct_return so the
2319 function can be used in the architecture vector.
2320 (mcore_store_struct_return): Add.
2321 (mcore_frame_init_saved_regs): Add.
2322 (mcore_gdbarch_init): Add function calls to replace the macros
2323 removed from tm-mcore.h
2324
2325 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2326
2327 * infcmd.c (print_return_value): Remove compatibility code calling
2328 deprecated_grub_regcache_for_registers.
2329
2330 * values.c: Include "regcache.h".
2331 (value_being_returned): Update. Use
2332 deprecated_grub_regcache_for_registers to extract the register
2333 buffer address.
2334 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2335 ``struct regcache''.
2336 * Makefile.in (values.o): Add dependency on $(regcache_h).
2337
2338 * inferior.h (run_stack_dummy): Change type of second parameter to
2339 a ``struct regcache''.
2340 * valops.c (hand_function_call): Change type of retbuf to ``struct
2341 regcache''. Allocate using regcache_xmalloc, clean using
2342 make_cleanup_regcache_xfree.
2343 * infcmd.c (run_stack_dummy): Update. Use
2344 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2345
2346 * regcache.c (do_regcache_xfree): New function.
2347 (make_cleanup_regcache_xfree): New function.
2348 * regcache.h (make_cleanup_regcache_xfree): Declare.
2349
2350 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2351
2352 * event-top.c (command_line_handler): Don't read past
2353 beginning of buffer.
2354
2355 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2356
2357 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2358 struct frame_id.
2359 (varobj_create): Store frame_id for root.
2360 (varobj_gen_name): Use xasprintf.
2361 (varobj_update): Save and restore frame using get_frame_id() and
2362 frame_find_by_id().
2363 (create_child): Use xasprintf.
2364 (new_root_variable): Initialize frame_id.
2365 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2366 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2367 to prevent memory leak.
2368
2369 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2370
2371 * valops.c (hand_function_call): Move declaration of retbuf to
2372 start of function, allocate using malloc, add a cleanup but before
2373 the inf_status cleanup, cleanup the buffer. Rename local variable
2374 old_chain to inf_status_cleanup.
2375
2376 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2377
2378 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2379
2380 * cli/cli-decode.c (cmd_func_p): New function.
2381 (cmd_func): New function.
2382
2383 * command.h: Add cmd_func() and cmd_func_p().
2384
2385 2002-07-03 Grace Sainsbury <graces@redhat.com>
2386
2387 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2388 (REGISTER_SIZE): Remove.
2389 (MAX_REGISTER_RAW_SIZE): Remove.
2390 (REGISTER_VIRTUAL_TYPE): Remove.
2391 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2392 (REGISTER_NAME): Remove.
2393 (USE_GENERIC_DUMMY_FRAMES): Remove.
2394 (CALL_DUMMY): Remove.
2395 (CALL_DUMMY_START_OFFSET): Remove.
2396 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2397 (CALL_DUMMY_LOCATION): Remove.
2398 (FIX_CALL_DUMMY): Remove.
2399 (CALL_DUMMY_ADDRESS): Remove.
2400 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2401 (SAVE_DUMMY_FRAME_TOS): Remove.
2402 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2403 (mcore_register_virtual_type): New function.
2404 (mcore_register_byte): New function.
2405 (mcore_register_size): New function.
2406 (mcore_register_name): New function.
2407 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2408 macros removed from tm-mcore.h.
2409 (mcore_dump_tdep): Add.
2410 (_initialize_mcore_tdep): Add gdbarch_register call.
2411
2412 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2413
2414 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2415 frameless_look_for_prologue, such that we actually call this
2416 function.
2417
2418 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2419
2420 * frame.h (frame_address_in_block): New function.
2421
2422 * blockframe.c (frame_address_in_block): New function extracted
2423 from get_frame_block().
2424 (get_frame_block): Use frame_address_in_block().
2425 (block_innermost_frame): Use frame_address_in_block() to match
2426 the frame pc address against the block boundaries rather than
2427 the frame pc directly. This prevents a failure when a frame pc
2428 is actually a return-address pointing immediately after the end
2429 of the given block.
2430
2431 2002-07-02 Grace Sainsbury <graces@redhat.com>
2432
2433 * MAINTAINERS: Add self under write after approval.
2434
2435 2002-07-02 Grace Sainsbury <graces@redhat.com>
2436
2437 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2438 used in architecture vector. The default is
2439 m68k_local_breakpoint_from_pc.
2440 (m68k_local_breakpoint_from_pc): Add.
2441 (enum): Add register numbers from tm-m68k.h.
2442 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2443 vector.
2444 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2445 GDB_MULTI_ARCH_PARTIAL.
2446 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2447 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2448 m68k-tdep.c.
2449 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2450 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2451 to enum in m68k-tdep.c
2452
2453 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2454
2455 * solib-osf.c (open_map): Compute the list of shared libraries
2456 loaded by the inferior, rather than the list of libraries loaded
2457 by GDB itself. Otherwise, GDB ends up reading the symbols from
2458 the wrong shared libraries...
2459
2460 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2461
2462 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2463 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2464 macros.
2465 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2466 Remove functions.
2467 (FRAMELESS_SIGNAL): Remove function.
2468 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2469 i386_linux_saved_pc_after_call): Removed.
2470 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2471 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2472 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2473
2474 * i386-tdep.c (i386_frameless_signal_p): New function.
2475 (i386_frame_chain): Deal with frameless signals.
2476 (i386_sigtramp_saved_sp): New function.
2477 (i386_frame_saved_pc): Deal with frameless signals.
2478 (i386_saved_pc_after_call): Make sure the correct value is
2479 returned just after entry into a sigtramp.
2480 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2481 i386fbsd4_sc_sp_offset): New variables.
2482 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2483 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2484 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2485 similiar to what we already did for sc_pc_offset.
2486 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2487 tdep->sc_sp_offset.
2488
2489 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2490
2491 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2492
2493 * config/i386/tm-x86-64linux.h: New.
2494 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2495 definitions.
2496 * config/i386/nm-x86-64.h: Rename to ...
2497 * config/i386/nm-x86-64linux.h: ... this one.
2498 * config/i386/x86-64linux.mh: Reflect the above change.
2499
2500 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2501
2502 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2503 with sigcontext_addr. Add sc_sp_offset.
2504 (i386bsd_sigtramp_saved_pc): Remove prototype.
2505 (i386bsd_sicontext_addr): Add prototype.
2506 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2507 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2508 (i386_svr4_sigtramp_saved_pc): Removed.
2509 (i386_svr4_sigcontext_addr): New function.
2510 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2511 Initialize tdep->sigcontext_addr instead. Initialize
2512 tdep->sc_pc_offset and tdep->sc_sp_offset.
2513 (i386_gdbarch_init): Likewise.
2514 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2515 any more.
2516 (i386bsd_sigtramp_saved_pc): Remove function.
2517 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2518 Initialize tdep->sigcontext_addr instead. Initialize
2519 tdep->sc_pc_offset.
2520 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2521 of tdep->sigtramp_saved_pc.
2522 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2523 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2524 instead.
2525
2526 * i386-tdep.c (i386_frameless_function_invocation,
2527 i386_frame_num_args, i386_frame_init_saved_regs,
2528 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2529 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2530 i386_extract_return_value, i386_store_return_value,
2531 i386_extract_struct_value_address, i386_register_virtual_type,
2532 i386_register_convertible, i386_register_convert_to_virtual,
2533 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2534 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2535 static.
2536
2537 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2538
2539 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2540
2541 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2542 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2543 this macro. Include "value.h".
2544
2545 2002-06-30 Aidan Skinner <aidan@velvet.net>
2546
2547 * ada-exp.tab.c: remove as it's a generated file
2548 * ada-lex.c: remove as it's a generated file
2549
2550 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2551
2552 * config/i386/tm-i386.h (struct frame_info, struct
2553 frame_saved_regs, struct value, struct type): Remove forward
2554 declarations.
2555
2556 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2557 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2558 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2559 (FILL_FPXREGSET): Define.
2560
2561 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2562
2563 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2564 i[3456]86-*-netbsd* case.
2565 * config/i386/tm-obsd.h: Removed.
2566 * config/i386/obsd.mt: Removed.
2567 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2568 core-aout.o.
2569 (MH_CFLAGS): Add -DYYDEBUG=0.
2570
2571 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2572 i386nbsd_sc_pc_offset on OpenBSD too.
2573
2574 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2575 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2576 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2577 define.
2578 * i386bsd-tdep.c: Include "arch-utils.h".
2579 (i386bsd_aout_in_solib_call_trampoline): New function.
2580 (i386bsd_init_abi): Set in_solib_call_trampoline to
2581 i386bsd_aout_in_solib_call_trampoline.
2582 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2583 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2584
2585 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2586
2587 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2588 (struct obstack, struct bcache): Add opaque declarations.
2589 * Makefile.in (macrotab_h): Update
2590
2591 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2592
2593 * blockframe.c (generic_find_dummy_frame): Change return type to
2594 ``struct regcache''.
2595 (struct dummy_frame): Replace field ``registers'' with regcache, a
2596 struct regcache object.
2597 (generic_find_dummy_frame): Update.
2598 (generic_push_dummy_frame): Update. Use regcache_xfree,
2599 regcache_xmalloc and regcache_cpy.
2600 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2601 regcache_xfree.
2602 (deprecated_generic_find_dummy_frame): Update.
2603 (generic_read_register_dummy): Update. Use
2604 regcache_read_as_address.
2605 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2606 (generic_get_saved_register): Update. Use regcache_read.
2607
2608 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2609
2610 * Makefile.in (objfiles_h): Add $(bcache_h).
2611 * objfiles.h: Include "bcache.h".
2612
2613 * Makefile.in (symtab_h): Remove $(bcache_h).
2614 * symtab.h: Do not include "bcache.h".
2615
2616 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2617
2618 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2619 generic_func_frame_chain_valid.
2620
2621 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2622
2623 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2624 * config/i386/tm-fbsd.h: Likewise.
2625
2626 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2627
2628 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2629 generic_unwind_get_saved_register.
2630
2631 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2632
2633 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2634 * regcache.c (supply_register): Add missing argument to
2635 register_buffer call.
2636
2637 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2638
2639 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2640 Solaris /bin/grep does not not like it. From Peter Schauer.
2641
2642 2002-06-26 Tom Tromey <tromey@redhat.com>
2643
2644 * command.h (add_setshow_cmd): Declare.
2645 (add_setshow_cmd_full): Declare.
2646 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2647 returns void. Use add_setshow_cmd_full.
2648 (add_setshow_cmd_full): New function.
2649 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2650 (add_setshow_boolean_cmd): Likewise.
2651
2652 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2653
2654 * config/vax/tm-vax.h: Protect from multiple inclusion.
2655 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2656 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2657 * config/vax/tm-vaxbsd.h: ...here. New file.
2658 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2659
2660 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2661
2662 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2663 (BELIEVE_PCC_PROMOTION): Remove.
2664 (AP_REGNUM): Move to...
2665 * config/vax/nm-vax.h: ...here.
2666 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2667 (vax_breakpoint_from_pc): New function.
2668 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2669 and gdbarch_believe_pcc_promotion.
2670
2671 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2672
2673 * Makefile.in (vax_tdep_h): Define.
2674 (vax-tdep.o): Use $(vax_tdep_h).
2675 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2676 (vax_dump_tdep): New function.
2677 (_initialize_vax_tdep): Register vax_dump_tdep.
2678 * vax-tdep.h: Include osabi.h.
2679 (struct gdbarch_tdep): New.
2680
2681 2002-06-26 Andrew Cagney <cagney@redhat.com>
2682
2683 * frame.h (deprecated_generic_find_dummy_frame): Rename
2684 generic_find_dummy_frame.
2685 * blockframe.c (generic_find_dummy_frame): Make static.
2686 (deprecated_generic_find_dummy_frame): New function.
2687 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2688 generic_find_dummy_frame with deprecated_find_dummy_frame.
2689 (sh64_nofp_frame_init_saved_regs): Ditto.
2690 (sh_fp_frame_init_saved_regs): Ditto.
2691 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2692 (s390_frame_chain): Ditto.
2693 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2694
2695 2002-06-26 Grace Sainsbury <graces@redhat.com>
2696
2697 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2698 gdbarch vector are at the top.
2699 (NUM_REGS): Remove.
2700 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2701 (FRAME_ARGS_ADDRESS): Remove.
2702 (FRAME_LOCALS_ADDRESS): Remove.
2703 (FRAME_NUM_ARGS): Remove.
2704 (FRAME_ARGS_SKIP): Remove.
2705 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2706 (m68k_gdbarch_init): Add gdbarch initializations for macros
2707 undefined in tm-m68k.h
2708
2709 2002-06-26 Grace Sainsbury <graces@redhat.com>
2710
2711 * monitor.h: Add the function regname to monitor_ops
2712 structure. This way NUM_REGS does not have to be a constant.
2713 * monitor.c (monitor_fetch_register): Added support for regname
2714 function. The function is called if the array regnames is NULL.
2715 (monitor_store_register): Same.
2716 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2717 regnames array.
2718 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2719 cpu32bug_cmds.regname to point to new function.
2720 * abug-rom.c (abug_regname): Same as above.
2721 (init_abug_cmds): Same.
2722 * dbug-rom.c (dbug_regname): Same as above.
2723 (init_dbug_cmds): Same.
2724 * remote-est.c (est_regname): Same.
2725 (init_est_cmds): Same.
2726 * rom68k-rom.c (rom68k_regname): Same.
2727 (init_rom68k_cmds): Same.
2728
2729 2002-06-25 Tom Tromey <tromey@redhat.com>
2730
2731 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2732
2733 2002-06-25 Andrew Cagney <cagney@redhat.com>
2734
2735 * infrun.c (stop_registers): Change variable's type to ``struct
2736 regcache'''.
2737 (xmalloc_inferior_status): Delete function.
2738 (free_inferior_status): Delete function.
2739 (normal_stop): Use regcache_cpy.
2740 (struct inferior_status): Change type of fields ``stop_registers''
2741 and ``registers'' to ``struct regcache''.
2742 (write_inferior_status_register): Use regcache_write.
2743 (save_inferior_status): Instead of calling
2744 xmalloc_inferior_status, allocate the inf_status buffer directly.
2745 Use regcache_dup_no_passthrough and regcache_dup to save the
2746 buffers.
2747 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2748 Replace the stop_registers regcache instead of overriding it. Use
2749 regcache_xfree. Instead of calling free_inferior_status, xfree
2750 the buffer directly.
2751 (discard_inferior_status): Use regcache_xfree. Instead of calling
2752 free_inferior_status, xfree the buffer directly.
2753 (build_infrun): Use regcache_xmalloc.
2754 (_initialize_infrun): Delete redundant call to build_infrun.
2755
2756 * Makefile.in (infcmd.o): Add $(regcache_h).
2757
2758 * infcmd.c: Include "regcache.h".
2759 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2760 obtain the address of `stop_registers' register buffer.
2761 (print_return_value): Ditto.
2762
2763 * inferior.h (struct regcache): Add opaque declaration.
2764 (stop_registers): Change variable's declared type to ``struct
2765 regcache''.
2766
2767 2002-06-24 Tom Tromey <tromey@redhat.com>
2768
2769 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2770 * target.c (initialize_targets): Fixed typo in
2771 trust-readonly-sections `show' documentation.
2772
2773 * main.c: Marked all strings with _().
2774
2775 2002-06-24 Don Howard <dhoward@redhat.com>
2776
2777 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2778 that means max CORE_ADDR+1.
2779 (lookup_mem_region): Ditto.
2780 (mem_info_command): Ditto.
2781
2782 2002-06-24 Grace Sainsbury <graces@redhat.com>
2783
2784 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2785 (REGISTER_BYTES_OK): Remove.
2786 (REGISTER_BYTES): Remove.
2787 (STORE_STRUCT_RETURN): Remove.
2788 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2789 (STORE_RETURN_VALUE): Remove.
2790 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2791 (FRAME_CHAIN): Remove.
2792 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2793 (FRAME_SAVED_PC): Remove.
2794 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2795 (m68k_store_struct_return): Add.
2796 (m68k_deprecated_extract_return_value): Add.
2797 (m68k_deprecated_extract_struct_value_address): Add.
2798 (m68k_store_return_value): Add.
2799 (m68k_frame_chain): Add.
2800 (m68k_frameless_function_invocation): Add.
2801 (m68k_frame_saved_pc): Add.
2802 (m68k_gdbarch_init): added set_gdbarch calls for new
2803 functions and deleted macros.
2804
2805 2002-06-23 Tom Tromey <tromey@redhat.com>
2806
2807 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2808 (ALLDEPFILES): Likewise.
2809 (udiheaders): Removed.
2810 (udip2soc.o): Likewise.
2811 (udi2go32.o): Likewise.
2812 (udr.o): Likewise.
2813 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2814
2815 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2816
2817 * infrun.c (_initialize_infrun): Delete unnecessary call to
2818 build_infrun.
2819
2820 * regcache.h: Update comments describing the regcache_cpy family
2821 of functions.
2822 (regcache_save, regcache_restore): Delete declaration.
2823 (regcache_save_no_passthrough): Delete declaration.
2824 (regcache_restore_no_passthrough): Delete declaration.
2825 * regcache.c (regcache_save): Delete function.
2826 (regcache_save_no_passthrough): Delete function.
2827 (regcache_restore): Delete function.
2828 (regcache_restore_no_passthrough): Delete function.
2829
2830 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2831
2832 * config/m68k/tm-m68k.h: Fix typo.
2833 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2834 (m68k_frame_init_saved_regs): Declare.
2835
2836 2002-06-21 Jim Blandy <jimb@redhat.com>
2837
2838 Remove some vestiges of Harris 88k support.
2839 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2840 register numbering quirk.
2841 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2842 odd symbols occurring in Harris 88k ELF targets.
2843
2844 2002-06-21 Tom Tromey <tromey@redhat.com>
2845
2846 * gdb_locale.h: New file.
2847 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2848 (defs_h): Added gdb_locale.h.
2849 * configure, config.in: Rebuilt.
2850 * configure.in (PACKAGE): Define.
2851 * defs.h: Include gdb_locale.h.
2852 * main.c (captured_main): Call setlocale, bindtextdomain,
2853 textdomain.
2854
2855 2002-06-21 Dave Brolley <brolley@redhat.com>
2856
2857 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2858 * config/frv/frv.mt: New file.
2859 * config/frv/tm-frv.h: New file.
2860 * configure.tgt: Support frv-*-*.
2861 * Makefile.in (frv-tdep.o): New target.
2862 * frv-tdep.c: New file.
2863 * NEWS: Mention frv.
2864
2865 2002-06-21 Dave Brolley <brolley@redhat.com>
2866
2867 * MAINTAINERS: Add self to "Write After Approval" list.
2868
2869 2002-06-21 Grace Sainsbury <graces@redhat.com>
2870
2871 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2872 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2873 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2874 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2875 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2876
2877 * m68k-tdep.c: Include arch-utils.h
2878 (m68k_register_raw_size): Add.
2879 (m68k_register_virtual_size): Add.
2880 (m68k_register_virtual_type): Add.
2881 (m68k_register_name): Add.
2882 (m68k_stack_align): Add.
2883 (m68k_register_byte): Add.
2884 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2885 tm-m68k.h.
2886
2887 2002-06-21 Grace Sainsbury <graces@redhat.com>
2888
2889 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2890 m68k_find_saved_regs.
2891 (m68k_pop_frame): Removed saved_regs structure, and replaced
2892 references to it with frame->saved_regs.
2893 (m68k_gdbarch_init): Added function calls to initialize the
2894 gdbarch structure.
2895 (m68k_fix_call_dummy): Add.
2896 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2897 (CALL_DUMMY): Remove.
2898 (CALL_DUMMY_LENGTH): Remove.
2899 (CALL_DUMMY_START_OFFSET): Remove.
2900 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2901 (FIX_CALL_DUMMY): Remove.
2902 (PUSH_DUMMY_FRAME): Remove.
2903 (POP_FRAME): Remove.
2904
2905 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2906
2907 * parse.c (parse_fprintf): New function used to avoid calls to
2908 fprintf in bison parser generated debug code.
2909 * parser-defs.h: Declaration of new parse_fprintf function.
2910 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2911 Set YYDEBUG to 1 by default.
2912 Set YYFPRINTF as parse_fprintf.
2913
2914 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2915
2916 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2917 encoding anymore.
2918 (pointer_encoding, enum ptr_encoding): New.
2919 (execute_cfa_program): Take care about pointer encoding.
2920 (dwarf2_build_frame_info): Only call parse_frame_info for
2921 .debug_frame and .eh_frame.
2922 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2923 fixed augmentation handling, added relative addressing,
2924 ignore duplicate FDEs. Added comments.
2925 * dwarf2cfi.c: Reindented.
2926
2927 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2928
2929 * event-top.c (command_handler): Don't use space_at_cmd_start
2930 unless there is sbrk() on the host. Assign time and space data
2931 to union fields of the appropriate length.
2932
2933 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2934
2935 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2936 x86_64_register_name. Return type changed to 'const char *'.
2937 (x86_64_register_name2nr): Rename to x86_64_register_number.
2938 (x86_64_gdbarch_init): Update to reflect the change.
2939 * x86-64-tdep.h: Ditto.
2940 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2941 (supply_fpregset): Ditto.
2942
2943 2002-06-19 Andrew Cagney <cagney@redhat.com>
2944
2945 * regcache.h: Update copyright.
2946 (struct regcache, struct gdbarch): Add opaque declarations.
2947 (current_regcache): Declare global variable.
2948 (regcache_read, regcache_write): Add gdbarch parameter.
2949 (regcache_save, regcache_save_no_passthrough)
2950 (regcache_restore, regcache_restore_no_passthrough)
2951 (regcache_dup, regcache_dup_no_passthrough)
2952 (regcache_cpy, regcache_cpy_no_passthrough)
2953 (deprecated_grub_regcache_for_registers)
2954 (deprecated_grub_regcache_for_register_valid)
2955 (regcache_valid_p): Add function declarations.
2956
2957 * regcache.c: Update copyright.
2958 (regcache_descr_handle): New global variable.
2959 (struct regcache_descr): Define.
2960 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2961 (regcache_descr, xfree_regcache_descr): New functions.
2962 (struct regcache): Define.
2963 (regcache_xmalloc, regcache_xfree): New functions.
2964 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2965 (regcache_dup, regcache_dup_no_passthrough): New functions.
2966 (regcache_valid_p, regcache_read_as_address): New functions.
2967 (deprecated_grub_regcache_for_registers): New function.
2968 (deprecated_grub_regcache_for_register_valid): New function.
2969 (current_regcache): New global variable.
2970 (register_buffer): Add regcache parameter. Update calls.
2971 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2972 (read_register_gen, write_register_gen): Update register_buffer
2973 call. Test for legacy_p instead of gdbarch_register_read_p or
2974 gdbarch_register_write_p.
2975 (regcache_collect): Update register_buffer call.
2976 (build_regcache): Rewrite. Use deprecated grub functions.
2977 (regcache_save, regcache_save_no_passthrough): New functions.
2978 (regcache_restore, regcache_restore_no_passthrough): New
2979 functions.
2980 (_initialize_regcache): Create the regcache_data_handle. Swap
2981 current_regcache global variable.
2982
2983 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2984 parameter to regcache_read and regcache_write calls.
2985 (sh4_register_read): Ditto.
2986 (sh64_pseudo_register_read): Ditto.
2987 (sh64_register_read): Ditto.
2988 (sh_pseudo_register_write): Ditto.
2989 (sh4_register_write): Ditto.
2990 (sh64_pseudo_register_write): Ditto.
2991 (sh64_register_write): Ditto.
2992
2993 * defs.h (XCALLOC): Define.
2994
2995 2002-06-19 Grace Sainsbury <graces@redhat.com>
2996
2997 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2998 * m68k-tdep.c (m68k_gdbarch_init): Added.
2999 (m68k_dump_tdep): Added.
3000
3001 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * ada-lang.c (fill_in_ada_prototype): Update comment.
3004
3005 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3006
3007 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3008 MIPS_ABI_LAST.
3009 (mips_abi_string, mips_abi_strings): New.
3010 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3011 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3012 tdep->mips_abi_string. Honor mips_abi_string. Default to
3013 O32 if no ABI is found.
3014 (mips_dump_tdep): Use mips_abi_strings.
3015 (mips_abi_update): New function.
3016 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3017 ``set mips abi'' and ``show mips abi''. Check the size of
3018 mips_abi_strings.
3019
3020 2002-06-19 Andrew Cagney <cagney@redhat.com>
3021
3022 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3023 constant.
3024
3025 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3026
3027 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3028 current frame using only the first stack size adjustment. All
3029 subsequent size adjustments are not considered to be part of
3030 the "static" part of the current frame.
3031 Compute the address of the saved registers relative to the
3032 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3033 in use in this frame.
3034
3035 2002-06-18 Don Howard <dhoward@redhat.com>
3036
3037 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3038 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3039 suggesting this solution.
3040
3041 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3042
3043 * config/romp/xm-rtbsd.h: Delete file.
3044 * config/romp/rtbsd.mh: Delete file.
3045
3046 2002-06-18 Keith Seitz <keiths@redhat.com>
3047
3048 * breakpoint.c (condition_command): Post breakpoint_modify
3049 when a condition is added to an existing breakpoint.
3050 (commands_command): Likewise for commands.
3051 (set_ignore_count): Likewise for ignore counts.
3052 If no tty, do not simply return, still need to send event
3053 notification.
3054 (ignore_command): Only print a newline if the command came
3055 from a tty.
3056 Don't call breakpoints_changed, since this is now properly
3057 handled by set_ignore_count.
3058
3059 2002-06-18 Andrew Cagney <cagney@redhat.com>
3060
3061 * MAINTAINERS: Note that cris-elf target can be compiled with
3062 -Werror.
3063 * cris-tdep.c (cris_register_name): Make return type constant.
3064 (cris_breakpoint_from_pc): Ditto.
3065
3066 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3067
3068 * frame.h (struct frame_info): Change type of context to
3069 'struct context'.
3070
3071 2002-06-17 Andrew Cagney <cagney@redhat.com>
3072
3073 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3074 pointer.
3075 * gdbarch.h, gdbarch.c: Regenerate.
3076 * config/mips/tm-mips.h (mips_register_name): Update.
3077 * i386-tdep.h (i386_register_name): Update.
3078 * mips-tdep.c (mips_register_name): Update
3079 * alpha-tdep.c (alpha_register_name): Update.
3080 * arch-utils.c (legacy_register_name): Update.
3081 * arch-utils.h (legacy_register_name): Update.
3082 * avr-tdep.c (avr_register_name): Update.
3083 * ia64-tdep.c (ia64_register_name): Update.
3084 * i386-tdep.c (i386_register_name): Update.
3085 * sparc-tdep.c (sparc32_register_name): Update.
3086 (sparc64_register_name): Update.
3087 (sparclite_register_name): Update.
3088 (sparclet_register_name): Update.
3089 * sh-tdep.c (sh_generic_register_name): Update.
3090 (sh_sh_register_name): Update.
3091 (sh_sh3_register_name): Update.
3092 (sh_sh3e_register_name): Update.
3093 (sh_sh_dsp_register_name): Update.
3094 (sh_sh3_dsp_register_name): Update.
3095 (sh_sh4_register_name): Update.
3096 (sh_sh64_register_name): Update.
3097 * s390-tdep.c (s390_register_name): Update.
3098 * rs6000-tdep.c (rs6000_register_name): Update.
3099 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3100 (ns32k_register_name_32382): Update.
3101 * d10v-tdep.c (d10v_ts2_register_name): Update.
3102 (d10v_ts3_register_name): Update.
3103 * xstormy16-tdep.c (xstormy16_register_name): Update.
3104 * vax-tdep.c (vax_register_name): Update.
3105 * v850-tdep.c (v850_register_name): Update.
3106 * m68hc11-tdep.c (m68hc11_register_name): Update.
3107 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3108 (am33_register_name): Update.
3109
3110 2002-06-17 Grace Sainsbury <graces@redhat.com>
3111
3112 * m68k-tdep.c: Reindented.
3113
3114 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3115
3116 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3117 list of predefined types.
3118
3119 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3120
3121 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3122 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3123 REGISTER_CONVERT_TO_RAW): Remove defines.
3124 (i386_register_virtual_type, i386_register_convertible,
3125 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3126 Remove prototypes.
3127 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3128 macros mentioned above.
3129
3130 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3131 (i386lynx_saved_pc_after_call): Remove prototype.
3132 * i386ly-tdep.c: Include "i386-tdep.h".
3133 (i386lynx_saved_pc_after_call): Make static. Use
3134 read_memory_nobpt instead of read_memory. Use
3135 read_memory_unsigned_integer instead of read_memory_integer.
3136 (i386lynx_init_abi): New function.
3137 (i386lynx_coff_osabi_sniffer): New function.
3138 (_initialize_i386bsd_tdep): New function.
3139
3140 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3141 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3142 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3143 (i386_fix_call_dummy): Remove prototype.
3144 * i386-tdep.c (i386_call_dummy_words): New variable.
3145 (i386_gdbarch_init): Adjust for removal of the
3146 macros mentioned above.
3147
3148 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3149
3150 * command.h (add_setshow_auto_boolean_cmd): Replace
3151 add_set_auto_boolean_cmd.
3152 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3153 add_set_auto_boolean_cmd.
3154 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3155 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3156 mask-address'' command.
3157 (show_mask_address): Add cmd parameter.
3158 * remote.c (add_packet_config_cmd): Update. Change type of
3159 set_func and show_func to cmd_sfunc_ftype.
3160 (_initialize_remote): Update `set remote Z-packet'
3161 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3162 (show_remote_protocol_e_packet_cmd): Ditto.
3163 (show_remote_protocol_E_packet_cmd): Ditto.
3164 (show_remote_protocol_P_packet_cmd): Ditto.
3165 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3166 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3167 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3168 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3169 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3170 (show_remote_protocol_Z_packet_cmd): Ditto.
3171 (show_remote_protocol_binary_download_cmd): Ditto.
3172 (show_remote_cmd): Pass NULL to all of above.
3173
3174 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3175
3176 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3177 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3178 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3179 POP_FRAME): Remove defines.
3180 (i386_push_arguments, i386_store_struct_return,
3181 i386_extract_return_value, i386_store_return_value,
3182 i386_extract_struct_value_address, i386_push_dummy_frame,
3183 i386_pop_frame): Renove prototypes.
3184 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3185 macros mentioned above.
3186
3187 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3188
3189 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3190 add_set_boolean_cmd.
3191 (add_setshow_cmd): New function.
3192 * command.h (add_setshow_boolean_cmd): Replace
3193 add_set_boolean_cmd.
3194 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3195 and ``set rdiromatzero''.
3196 * maint.c (_initialize_maint_cmds): Update commented out code.
3197 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3198 * target.c (initialize_targets): Update `set
3199 trust-readonly-sections'.
3200 * remote.c (_initialize_remote): Update `set remotebreak'.
3201
3202 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3203
3204 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3205 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3206 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3207 fit into multi-arch framework.
3208 (i386_breakpoint_from_pc): New function.
3209 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3210 above.
3211
3212 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3213 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3214 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3215 (i386_frameless_function_invocation, i386_frame_num_args,
3216 i386_frame_init_saved_regs): Remove prototypes.
3217 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3218 macros mentioned above.
3219
3220 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3221
3222 * cli/cli-decode.c (set_cmd_cfunc): Update.
3223 (set_cmd_sfunc): Update.
3224 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3225 (set_cmd_sfunc, set_cmd_cfunc): Update.
3226 * cli/cli-decode.h: Update.
3227
3228 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3229
3230 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3231 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3232
3233 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3234
3235 * defs.h (auto_boolean): Declare enum.
3236 * command.h (cmd_auto_boolean): Delete enum.
3237 * mips-tdep.c (mask_address_var): Update.
3238 (mips_mask_address_p): Update.
3239 (show_mask_address): Update.
3240 * remote.c (struct packet_config): Update.
3241 (update_packet_config): Update.
3242 (show_packet_config_cmd): Update.
3243 (packet_ok): Update.
3244 (add_packet_config_cmd): Update.
3245 (_initialize_remote):
3246 * command.h: Update.
3247 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3248 (do_setshow_command): Update.
3249 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3250 * cli/cli-decode.h: Update.
3251
3252 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3253
3254 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3255 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3256 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3257 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3258 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3259 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3260
3261 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3262 list of DJGPP COFF targets.
3263
3264 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3265 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3266 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3267 (FP0_REGNUM): Remove define.
3268 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3269 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3270 (i386_register_virtual_size): Remove protoype.
3271 * i386-tdep.c (i386_register_virtual_size): Removed.
3272 (i386_extract_return_value, i386_store_return_value): Use
3273 FP0_REGNUM instead of NUM_FREGS to determine whether the
3274 floating-point registers are available.
3275 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3276 Adjust for removal of macros mentioned above.
3277
3278 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3279
3280 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3281 comments.
3282 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3283 Remove prototypes.
3284 (supply_gregset, fill_gregset): Remove use of register keyword and
3285 remove declaration for regmap. Use I386_NUM_GREGS instead of
3286 NUM_REGS and NUM_FREGS.
3287 (FPREGSET_FSAVE_OFFSET): Remove.
3288 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3289 NUM_FREGS to determine whether the floating-point registers are
3290 available.
3291
3292 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3293 gnu_store_registers): Replace usage of NUM_GREGS with
3294 I386_NUM_GREGS.
3295
3296 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3297 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3298 usage of NUM_GREGS with I386_NUM_GREGS.
3299
3300 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3301
3302 * i386bsd-nat.c: Include "i386-tdep.h".
3303 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3304 I386_NUM_GREGS.
3305
3306 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3307 and associated comment. They no longer make any sense, since we
3308 don't use this file anymore on Linux.
3309
3310 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3311 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3312 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3313 elements in these arrays.
3314 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3315 MAX_NUM_REGS.
3316
3317 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3318
3319 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3320 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3321
3322 2002-06-14 Andrew Cagney <cagney@redhat.com>
3323
3324 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3325 EXTRACT_RETURN_VALUE.
3326 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3327 EXTRACT_STRUCT_VALUE_ADDRESS.
3328 * gdbarch.h, gdbarch.c: Regenerate.
3329
3330 * values.c (value_being_returned): Handle
3331 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3332 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3333
3334 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3335 * arm-tdep.c (arm_gdbarch_init): Update.
3336 * avr-tdep.c (avr_gdbarch_init): Update.
3337 * cris-tdep.c (cris_gdbarch_init): Update.
3338 * d10v-tdep.c (d10v_gdbarch_init): Update.
3339 * ia64-tdep.c (ia64_gdbarch_init): Update.
3340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3342 * s390-tdep.c (s390_gdbarch_init): Update.
3343 * sh-tdep.c (sh_gdbarch_init): Update.
3344 * s390-tdep.c (s390_gdbarch_init): Update.
3345 * sparc-tdep.c (sparc_gdbarch_init): Update.
3346 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3347 * v850-tdep.c (v850_gdbarch_init): Update.
3348 * vax-tdep.c (vax_gdbarch_init): Update.
3349 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3351
3352 * config/arc/tm-arc.h: Update.
3353 * config/d30v/tm-d30v.h: Update.
3354 * config/fr30/tm-fr30.h: Update.
3355 * config/h8300/tm-h8300.h: Update.
3356 * config/h8500/tm-h8500.h: Update.
3357 * config/i386/tm-i386.h: Update.
3358 * config/i386/tm-ptx.h: Update.
3359 * config/i386/tm-symmetry.h: Update.
3360 * config/i960/tm-i960.h: Update.
3361 * config/m32r/tm-m32r.h: Update.
3362 * config/m68k/tm-delta68.h: Update.
3363 * config/m68k/tm-linux.h: Update.
3364 * config/m68k/tm-m68k.h: Update.
3365 * config/m88k/tm-m88k.h: Update.
3366 * config/mcore/tm-mcore.h: Update.
3367 * config/mips/tm-mips.h: Update.
3368 * config/mn10200/tm-mn10200.h: Update.
3369 * config/pa/tm-hppa.h: Update.
3370 * config/pa/tm-hppa64.h: Update.
3371 * config/sparc/tm-sp64.h: Update.
3372 * config/sparc/tm-sparc.h: Update.
3373 * config/sparc/tm-sparclet.h: Update.
3374 * config/z8k/tm-z8k.h: Update.
3375
3376 2002-06-14 Andrew Cagney <cagney@redhat.com>
3377
3378 * Makefile.in (i386_linux_tdep_h): Define.
3379 (i386_tdep_h, i387_tdep_h): Define.
3380 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3381 $(i386_tdep_h) and $(i387_tdep_h).
3382 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3383
3384 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3385
3386 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3387 Already covered by the default.
3388
3389 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3390 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3391 (i386_gdbarch_init): Initialize long_double_format and long_double
3392 bit.
3393
3394 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3395 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3396 Move these to ...
3397 * config/i386/i386sol2.mh: ... here.
3398 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3399 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3400 (SIGCONTEXT_PC_OFFSET): Remove define.
3401 (IN_SIGTRAMP): Remove define.
3402 * i386-sol2-tdep.c: New file.
3403
3404 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3405 * config/i386/tm-i386nw.h: Removed.
3406
3407 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3408 USE_STRUCT_CONVENTION): Remove defines.
3409 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3410 (get_longjmp_target): Remove prototype.
3411 (IN_SIGTRAMP): Remove define.
3412 (i386bsd_in_sigtramp): Remove prototype.
3413 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3414 function. Update comment accordingly
3415 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3416 (FRAME_SAVED_PC): Remove define.
3417 (i386bsd_frame_saved_pc): Remove prototype.
3418 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3419 GET_LONGJMP_TARGET): Remove defines.
3420 (get_longjmp_target): Remove prototype.
3421 (IN_SIGTRAMP): Remove define.
3422 (i386bsd_in_sigtramp): Remove prototype.
3423 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3424 function. Update comment accordingly
3425 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3426 (FRAME_SAVED_PC): Remove define.
3427 (i386bsd_frame_saved_pc): Remove prototype.
3428 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3429 Remove prototype.
3430 (USE_STRUCT_CONVENTION): Remove prototype.
3431 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3432 declaration.
3433 (_initialize_i386bsd_nat): Revise logic to determine some
3434 constants at compile time when compiling a native GDB. Warn if
3435 things don't match up with what we expect.
3436 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3437 Remove variables.
3438 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3439 to use date stored in `struct gdbarch_tdep'.
3440 (i386bsd_sigcontext_offset): Remove varaible.
3441 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3442 stored in `struct gdbarch_tdep'.
3443 (i386bsd_frame_saved_pc): Make static.
3444 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3445 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3446 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3447 i386fbsd4_sc_pc_offset): New variables.
3448 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3449 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3450 functions.
3451 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3452 functions.
3453 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3454 Modify the value of i386fbsd_sigtramp_start and
3455 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3456 i386fbsd_sigtramp_end.
3457 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3458 function.
3459
3460 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3461 define to i386-linux-tdep.h.
3462 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3463 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3464 defines.
3465 (i386_linux_register_name, i386_linux_register_byte,
3466 i386_linux_register_raw_size): Remove prototypes.
3467 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3468 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3469 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3470 TARGET_WRITE_PC): Remove defines.
3471 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3472 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3473 i386_linux_write_pc): Remove prototypes.
3474 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3475 (get_longjmp_target): Remove prototype.
3476 * i386-linux-tdep.h: New file.
3477 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3478 * i386-linux-tdep.c: Include "i386-tdep.h" and
3479 "i386-linux-tdep.h".
3480 (i386_linux_register_name, i386_linux_register_byte,
3481 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3482 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3483 Make static.
3484 (i386_linux_init_abi): New function.
3485 (_initialize_i386_linux_tdep): New function.
3486
3487 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3488 (i386_saved_pc_after_call): Remove prototype.
3489 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3490 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3491 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3492 (i386_register_name, i386_stab_reg_to_regnum,
3493 i386_dwarf_reg_to_regnum): Remove prototypes.
3494 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3495 SIZEOF_SSE_REGS): Remove defines.
3496 (REGISTER_BYTES): Remove define.
3497 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3498 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3499 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3500 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3501 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3502 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3503 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3504 (get_longjmp_target): Remove prototype.
3505 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3506 (sigtramp_saved_pc): Remove define.
3507 (i386v4_sigtramp_saved_pc): Remove prototype.
3508 * config/i386/tm-go32.h (FRAME_CHAIN,
3509 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3510 (i386go32_frame_saved_pc): Remove prototype.
3511 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3512 (get_longjmp_target): Remove prototype.
3513 * i386-tdep.h: Include "osabi.h".
3514 (enum i386_abi): Removed.
3515 (enum struct_return): New enum.
3516 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3517 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3518 sc_pc_offset members.
3519 (i386_gdbarch_register_os_abi): Remove prototype.
3520 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3521 I386_SSE_NUM_REGS): New defines.
3522 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3523 I386_SSE_SIZEOF_REGS): New defines.
3524 (i386_register_name, i386_register_byte, i386_register_raw_size):
3525 New prototypes.
3526 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3527 (i386bsd_sigtramp_saved_pc): New prototype.
3528 * i386-tdep.c: Don't include "elf-bfd.h".
3529 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3530 i386_frame_chain, i386_saved_pc_after_call): Make static.
3531 (i386_frame_saved_pc): Rewrite to call architecture dependent
3532 function to deal with signal handlers. Make static.
3533 (i386go32_frame_saved_pc): Removed.
3534 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3535 Removed.
3536 (i386_get_longjmp_target): New function.
3537 (default_struct_convention, pcc_struct_convention,
3538 reg_struct_convention, valid_conventions, struct_convention): New
3539 variables.
3540 (i386_use_struct_convention): New function.
3541 (i386v4_sigtramp_saved_pc): Renamed to
3542 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3543 (i386_pc_in_sigtramp): New function.
3544 (i386_abi_names): Removed.
3545 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3546 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3547 Removed.
3548 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3549 i386_gdbarch_register_os_abi): Removed.
3550 (struct i386_abi_handler): Removed.
3551 (i386_abi_handler_list): Removed.
3552 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3553 functions.
3554 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3555 i386_nw_init_abi): New functions.
3556 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3557 Use set_gdbarch_xxx() calls instead of relying on macros for a
3558 number of calls.
3559 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3560 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3561 Register the various architecture variants defined in this file.
3562
3563 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3564
3565 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3566 (struct main_type): Remove arg_types member. Update comments for
3567 struct field.
3568 (TYPE_ARG_TYPES): Remove.
3569 (TYPE_FN_FIELD_ARGS): Update.
3570 (smash_to_method_type): Update prototype.
3571
3572 * c-typeprint.c (cp_type_print_method_args): Take method type
3573 instead of argument list. Use new argument layout. Simplify.
3574 (c_type_print_args): Use new argument layout. Simplify.
3575 (c_type_print_base): Update call to cp_type_print_method_args.
3576 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3577 argument; use die->type instead. Update call to
3578 smash_to_method_type.
3579 (read_structure_scope): Update call to dwarf2_add_member_fn.
3580 * gdbtypes.c (allocate_stub_method): Update comment.
3581 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3582 Use new argument layout.
3583 (check_stub_method): Use new argument layout. Don't count
3584 void as an argument.
3585 (print_arg_types): Update comments. Use new argument layout.
3586 (recursive_dump_type): Don't print arg_types member.
3587 * hpread.c (hpread_read_struct_type): Use new argument layout.
3588 (fixup_class_method_type): Likewise.
3589 (hpread_type_lookup): Likewise.
3590 * stabsread.c (read_type): Update calls to read_args and
3591 smash_to_method_type.
3592 (read_args): Use new argument layout. Simplify.
3593 * valops.c (typecmp): Use new argument layout. Update parameters
3594 and comments. Simplify.
3595 (hand_function_call): Use new argument layout.
3596 (search_struct_method): Update call to typecmp.
3597 (find_overload_match): Use new argument layout.
3598
3599 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3600
3601 * NEWS: Mention multithreaded debug support for gdbserver.
3602
3603 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3604
3605 * MAINTAINERS: Mention NEWS.
3606
3607 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3608
3609 * gdbserver/regcache.c: Add comment.
3610
3611 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3612
3613 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3614 (struct mips_objfile_private, compare_pdr_entries): New.
3615 (non_heuristic_proc_desc): Read the ".pdr" section if it
3616 is present.
3617
3618 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3619
3620 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3621 (arm_debug): New static variable.
3622 (_initialize_arm_tdep): Add ``set debug arm'' command.
3623
3624 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3625
3626 * Makefile.in (sim_arm_h): Define.
3627 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3628 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3629 (arm_register_sim_regno): New function, map an internal REGNUM
3630 onto a simulator register number.
3631 (arm_gdbarch_init): Set register_sim_regno.
3632
3633 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3634
3635 * MAINTAINERS: Add self.
3636
3637 2002-06-11 Jim Blandy <jimb@redhat.com>
3638
3639 * source.c (source_info): Mention whether the symtab has
3640 information about preprocessor macros.
3641
3642 Call the command `info macro', not `show macro'.
3643 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3644 Fix error message.
3645 (_initialize_macrocmd): Register `info_macro_command' in
3646 `infolist', not `showlist'.
3647
3648 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3649
3650 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3651 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3652 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3653 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3654 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3655 unconditionally.
3656 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3657 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3658 (_initialize_mips_tdep): Remove dead code.
3659 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3660 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3661 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3662 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3663 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3664 MIPS_LAST_FP_ARG_REGNUM): Remove.
3665
3666 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3667
3668 * gdbserver/thread-db.c: New file.
3669 * gdbserver/proc-service.c: New file.
3670 * gdbserver/acinclude.m4: New file.
3671 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3672 proc-service.o, and thread-db.o.
3673 (linux-low.o): Add USE_THREAD_DB.
3674 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3675 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3676 * gdbserver/aclocal.m4: Regenerated.
3677 * gdbserver/config.in: Regenerated.
3678 * gdbserver/configure: Regenerated.
3679 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3680 thread_db.h, and linux/elf.h headrs.
3681 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3682 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3683 Check for -lthread_db and thread support.
3684 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3685 PowerPC, and SuperH.
3686 * gdbserver/i387-fp.c: Constify arguments.
3687 * gdbserver/i387-fp.h: Likewise.
3688 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3689 `struct inferior_info'. Remove PID member. Use generic inferior
3690 list header. All uses updated.
3691 (inferiors, signal_pid): Removed.
3692 (all_threads): New variable.
3693 (get_thread): Define.
3694 (add_inferior_to_list): New function.
3695 (for_each_inferior): New function.
3696 (change_inferior_id): New function.
3697 (add_inferior): Removed.
3698 (remove_inferior): New function.
3699 (add_thread): New function.
3700 (free_one_thread): New function.
3701 (remove_thread): New function.
3702 (clear_inferiors): Use for_each_inferior and free_one_thread.
3703 (find_inferior): New function.
3704 (find_inferior_id): New function.
3705 (inferior_target_data): Update argument type.
3706 (set_inferior_target_data): Likewise.
3707 (inferior_regcache_data): Likewise.
3708 (set_inferior_regcache_data): Likewise.
3709 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3710 (all_processes, stopping_threads, using_thrads)
3711 (struct pending_signals, debug_threads, pid_of): New.
3712 (inferior_pid): Replace with macro.
3713 (struct inferior_linux_data): Remove.
3714 (get_stop_pc, add_process): New functions.
3715 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3716 Use add_process and add_thread.
3717 (linux_attach_lwp): New function, based on old linux_attach. Use
3718 add_process and add_thread. Set stop_expected for new threads.
3719 (linux_attach): New function.
3720 (linux_kill_one_process): New function.
3721 (linux_kill): Kill all LWPs.
3722 (linux_thread_alive): Use find_inferior_id.
3723 (check_removed_breakpoints, status_pending_p): New functions.
3724 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3725 Update. Use WNOHANG. Wait for cloned processes also. Update process
3726 struct for the found process.
3727 (linux_wait_for_event): New function.
3728 (linux_wait): Use it. Support LWPs.
3729 (send_sigstop, wait_for_sigstop, stop_all_processes)
3730 (linux_resume_one_process, linux_continue_one_process): New functions.
3731 (linux_resume): Support LWPs.
3732 (REGISTER_RAW_SIZE): Remove.
3733 (fetch_register): Use register_size instead. Call supply_register.
3734 (usr_store_inferior_registers): Likewise. Call collect_register.
3735 Fix recursive case.
3736 (regsets_fetch_inferior_registers): Improve error message.
3737 (regsets_store_inferior_registers): Add debugging.
3738 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3739 (unstopped_p, linux_signal_pid): New functions.
3740 (linux_target_ops): Add linux_signal_pid.
3741 (linux_init_signals): New function.
3742 (initialize_low): Call it. Initialize using_threads.
3743 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3744 flag.
3745 (get_regcache): Fetch registers lazily. Add fetch argument
3746 and update all callers.
3747 (regcache_invalidate_one, regcache_invalidate): New
3748 functions.
3749 (new_register_cache): Renamed from create_register_cache.
3750 Return the new regcache.
3751 (free_register_cache): Change argument to a void *.
3752 (registers_to_string, registers_from_string): Call get_regcache
3753 with fetch flag set.
3754 (register_data): Make static. Pass fetch flag to get_regcache.
3755 (supply_register): Call get_regcache with fetch flag clear.
3756 (collect_register): Call get_regcache with fetch flag set.
3757 (collect_register_as_string): New function.
3758 * gdbserver/regcache.h: Update.
3759 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3760 stderr.
3761 Handle input interrupts while waiting for an ACK.
3762 (input_interrupt): Use signal_pid method.
3763 (getpkt): Flush after debug output and use stderr.
3764 (outreg): Use collect_register_as_string.
3765 (new_thread_notify, dead_thread_notify): New functions.
3766 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3767 and general_thread.
3768 (look_up_one_symbol): Flush after debug output.
3769 * gdbserver/server.c (step_thread, server_waiting): New variables.
3770 (start_inferior): Don't use signal_pid. Update call to mywait.
3771 (attach_inferior): Update call to mywait.
3772 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3773 (main): Don't fetch/store registers explicitly. Use
3774 set_desired_inferior. Support proposed ``Hs'' packet. Update
3775 calls to mywait.
3776 * gdbserver/server.h: Update.
3777 (struct inferior_list, struct_inferior_list_entry): New.
3778 * gdbserver/target.c (set_desired_inferior): New.
3779 (write_inferior_memory): Constify.
3780 (mywait): New function.
3781 * gdbserver/target.h: Update.
3782 (struct target_ops): New signal_pid method.
3783 (mywait): Removed macro, added prototype.
3784
3785 * gdbserver/linux-low.h (regset_func): Removed.
3786 (regset_fill_func, regset_store_func): New.
3787 (enum regset_type): New.
3788 (struct regset_info): Add type field. Use new operation types.
3789 (struct linux_target_ops): stop_pc renamed to get_pc.
3790 Add decr_pc_after_break and breakpoint_at.
3791 (get_process, get_thread_proess, get_process_thread)
3792 (strut process_info, all_processes, linux_attach_lwp)
3793 (thread_db_init): New.
3794
3795 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3796 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3797 (the_low_target): Add new members.
3798 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3799 (i386_store_fpxregset): Constify.
3800 (target_regsets): Add new kind identifier.
3801 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3802 (i386_set_pc): Add debugging.
3803 (i386_breakpoint_at): New function.
3804 (the_low_target): Add new members.
3805 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3806 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3807 (mips_breakpoint_at): New.
3808 (the_low_target): Add new members.
3809 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3810 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3811 (the_low_target): Add new members.
3812 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3813 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3814 (the_low_target): Add new members.
3815 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3816 identifier.
3817
3818 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3819
3820 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3821 (unwind_tmp_obstack_free, parse_frame_info)
3822 (update_context, cfi_read_fp, cfi_write_fp)
3823 (cfi_frame_chain, cfi_init_extra_frame_info)
3824 (cfi_virtual_frame_pointer): Use the above function.
3825 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3826
3827 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3828
3829 * v850-tdep.c (v850_type_is_scalar): New function.
3830 (v850_use_struct_convention): Match current gcc implementation
3831 as close as possible.
3832 (v850_push_arguments): Fix stack_offset handling. Don't write
3833 struct_addr into register. This is done by v850_store_struct_return.
3834 (v850_extract_return_value): Care for structs.
3835 (v850_store_return_value): Ditto.
3836 (v850_store_struct_return): Actually write address.
3837
3838 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3839
3840 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3841 without debug information too.
3842
3843 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3844
3845 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3846 Make multi-arch pure.
3847 * gdbarch.h, gdbarch.c: Re-generate.
3848 * arm-tdep.c (arm_print_float_info): Update.
3849 * arch-utils.h (default_print_float_info): Update.
3850 * arch-utils.c (default_print_float_info): Update.
3851 * infcmd.c (float_info): Update call.
3852
3853 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3854
3855 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3856 the front of the initialize list.
3857
3858 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3859
3860 * infrun.c (struct inferior_status): Replace fields
3861 selected_frame_address and selected_level with field
3862 selected_frame_id.
3863 (save_inferior_status): Update. Use get_frame_id.
3864 (struct restore_selected_frame_args): Delete.
3865 (restore_selected_frame): Update. Use frame_find_by_id.
3866 (restore_inferior_status): Update.
3867
3868 * breakpoint.h (struct breakpoint): Change type of
3869 watchpoint_frame to frame_id.
3870 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3871 call to get_current_frame.
3872 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3873 get_current_frame.
3874 (watchpoint_check): Use frame_find_by_id.
3875
3876 * frame.h (record_selected_frame): Delete declaration.
3877 * stack.c (record_selected_frame): Delete function.
3878
3879 * frame.h (struct frame_id): Define.
3880 (get_frame_id): Declare.
3881 (frame_find_by_id): Declare.
3882 * frame.c (frame_find_by_id): New function.
3883 (get_frame_id): New function.
3884
3885 2002-06-10 Andrey Volkov <avolkov@transas.com>
3886
3887 * ser-e7kpc.c: Fix duplicated define and call of
3888 _initialize_ser_e7000pc
3889
3890 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3891
3892 * signals/signals.c (target_signal_from_host): Fix #ifdef
3893 SIGRTMIN case.
3894 (do_target_signal_to_host): Likewise.
3895
3896 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3897
3898 * mips-tdep.c (mips_find_abi_section): New function.
3899 (mips_gdbarch_init): Call it.
3900
3901 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3902
3903 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3904 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3905 after Andrew's 2002-06-08 gdbarch change.
3906
3907 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3908
3909 * i386-linux-nat.c (suppy_gregset): Don't supply
3910 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3911 register cache.
3912 (fill_gregset): Don't fetch it under the same circumstances.
3913
3914 2002-06-09 Andrew Cagney <cagney@redhat.com>
3915
3916 * Makefile.in (callback_h): Define.
3917 (remote_sim_h): Update path to remote-sim.h.
3918 (remote-rdp.o): Add $(callback_h).
3919 (remote-sim.o): Use $(callback_h).
3920 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3921 * remote-rdp.c: Include "gdb/callback.h".
3922
3923 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3924
3925 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3926 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3927
3928 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3929
3930 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3931 * rdi-share/serpardr.c: Ditto.
3932 * rdi-share/unixcomm.c: Ditto.
3933 * rdi-share/serdrv.c: Ditto.
3934 * rdi-share/hostchan.h: Ditto.
3935 * rdi-share/hostchan.c: Ditto.
3936 * rdi-share/host.h: Ditto.
3937 * rdi-share/devsw.c: Ditto.
3938
3939 * objfiles.h: Change type of obj_private to void pointer.
3940 * pa64solib.c: Update copyright. Don't include "assert.h", use
3941 strcmp instead of STREQ, use LONGEST, do not use PTR
3942 * somsolib.c: Ditto.
3943
3944 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3945 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3946 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3947
3948 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3949
3950 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3951 (default_get_saved_register): Delete function.
3952 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3953 generic_unwind_get_saved_register.
3954 * gdbarch.h, gdbarch.c: Re-generate.
3955
3956 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3957
3958 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3959 generic_func_frame_chain_valid.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961 * blockframe.c (generic_func_frame_chain_valid): Only check
3962 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3963 passing FP to PC_IN_CALL_DUMMY.
3964 Fix PR gdb/360.
3965
3966 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3967
3968 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3969 (register_gdbarch_data): Initialize init_p.
3970 (gdbarch_data): Initialize data pointer using the init function.
3971 (init_gdbarch_data): Delete function.
3972 (gdbarch_update_p): Update.
3973 (initialize_non_multiarch): Update.
3974 (struct gdbarch): Add field initialized_p.
3975 * gdbarch.h, gdbarch.c: Re-generate.
3976
3977 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3978
3979 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3980 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3981 better do the things actually here.
3982 * x86-64-tdep.c (x86_64_register_name2nr): New.
3983 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3984 (x86_64_gdbarch_init): Respect the above change.
3985 * x86-64-tdep.h (x86_64_register_name2nr)
3986 (x86_64_register_nr2name): Add prototypes.
3987 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3988
3989 2002-06-06 Michael Snyder <msnyder@redhat.com>
3990
3991 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3992 Delete extra braces and re-indent.
3993 (d10v_store_return_value): Char return values
3994 must be shifted over by one byte in R0.
3995 (d10v_extract_return_value): Delete extra braces, re-indent.
3996
3997 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3998
3999 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4000 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4001 (d10v_integer_to_address): Rewrite.
4002 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4003 the d10v specific functions which take care of converting to the
4004 correct space.
4005
4006 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4007
4008 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4009 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4010
4011 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4012
4013 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4014 includes.
4015 * config/tm-linux.h: Ditto.
4016 * config/alpha/tm-alphalinux.h: Ditto.
4017 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4018 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4019 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4020 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4021 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4022 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4023 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4024 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4025 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4026 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4027 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4028 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4029 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4030 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4031 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4032 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4033 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4034 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4035 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4036 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4037 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4038 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4039 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4040 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4041 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4042 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4043 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4044 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4045 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4046 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4047 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4048 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4049 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4050 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4051 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4052 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4053 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4054
4055 2002-05-04 Aidan Skinner <aidan@velvet.net>
4056
4057 * ada-exp.tab.c: New file
4058 * ada-exp.y: New file
4059 * ada-lang.c: New file
4060 * ada-lang.h: New file
4061 * ada-lex.c: New file
4062 * ada-lex.l: New file
4063 * ada-tasks.c: New file
4064 * ada-typeprint.c: New file
4065 * ada-valprint.c: New file
4066
4067 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4068
4069 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4070 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4071
4072 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4073
4074 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4075 insetead of ppc-linux-tdep.o.
4076 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4077 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4078
4079 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4080
4081 2002-05-07 Christian Groessler <chris@groessler.org>
4082 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4083 bit register contents for little endian hosts.
4084
4085 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4086
4087 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4088 any maintainer.
4089
4090 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4091
4092 * gdbarch.h: Regenerate.
4093
4094 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4095
4096 * MAINTAINERS: Add everyone to write-after-approval list.
4097
4098 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4099
4100 * stack.c (frame_info): Use frame_register_unwind instead of
4101 saved_regs. Mention when the SP is on the stack or in a register.
4102
4103 * frame.h (frame_register_unwind_ftype): Define. Document.
4104 (struct frame_info): Add field register_unwind and
4105 register_unwind_cache.
4106 (frame_register_unwind): Declare.
4107 (generic_unwind_get_saved_register): Declare.
4108
4109 * frame.c (frame_register_unwind): New function.
4110 (generic_unwind_get_saved_register): New function.
4111
4112 * blockframe.c (generic_call_dummy_register_unwind): New function.
4113 (frame_saved_regs_register_unwind): New function.
4114 (set_unwind_by_pc): New function.
4115 (create_new_frame): New function.
4116 (get_prev_frame): New function.
4117
4118 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4119
4120 * a29k-share/: Delete directory.
4121 * remote-vx29k.c: Delete file.
4122
4123 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4124
4125 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4126 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4127
4128 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4129
4130 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4131 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4132 (sparc64nbsd-nat.o)
4133 (sparcnbsd-nat.o)
4134 (sparcnbsd-tdep.o): New dependency lists.
4135 * NEWS: Note new UltraSPARC NetBSD native configuration.
4136 * configure.host (sparc64-*-netbsd*): New host.
4137 * configure.tgt (sparc-*-netbsdelf*)
4138 (sparc-*-netbsd*): Set gdb_target to nbsd.
4139 (sparc64-*-netbsd*): New target.
4140 * sparc64nbsd-nat.c: New file.
4141 * sparcnbsd-nat.c: New file.
4142 * sparcnbsd-tdep.c: New file.
4143 * sparcnbsd-tdep.h: New file.
4144 * config/sparc/nbsd.mt: New file.
4145 * config/sparc/nbsd64.mh: New file.
4146 * config/sparc/nbsd64.mt: New file.
4147 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4148 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4149 (HOST_IPC): Remove.
4150 * config/sparc/nbsdaout.mt: Remove.
4151 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4152 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4153 (HOST_IPC): Remove.
4154 * config/sparc/nbsdelf.mt: Remove.
4155 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4156 sparc-nat.c compatiblity defines.
4157 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4158 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4159 * config/sparc/tm-nbsd64.h: New file.
4160 * config/sparc/tm-nbsdaout.h: Remove.
4161 * config/sparc/xm-nbsd.h: Remove.
4162
4163 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4164
4165 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4166 * sparc-tdep.c: Include osabi.h.
4167 (gdbarch_tdep): Add osabi member.
4168 (_initialize_sparc_tdep): Use gdbarch_register.
4169 (sparc_gdbarch_init): Use generic OS ABI framework.
4170 (sparc_dump_tdep): New function.
4171
4172 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4173
4174 * corefile.c (do_captured_read_memory_integer): Return non-zero
4175 result.
4176 (safe_read_memory_integer): Copy result of memory read when
4177 status is non-zero. Also, add comments.
4178
4179 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4180
4181 * Makefile.in (ppc_tdep_h): Define.
4182 (ppc-linux-nat.o)
4183 (ppc-linux-tdep.o)
4184 (rs6000-tdep.o): Use $(ppc_tdep_h).
4185 (ppc-sysv-tdep.o)
4186 (ppcnbsd-nat.o)
4187 (ppcnbsd-tdep.o): New dependency lists.
4188 * ppc-tdep.h: Use generic OS ABI framework.
4189 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4190 (ppc_linux_init_abi): New functions.
4191 (ppc_sysv_abi_broken_use_struct_convention)
4192 (ppc_sysv_abi_use_struct_convention)
4193 (ppc_sysv_abi_push_arguments): Move to...
4194 * ppc-sysv-tdep.c: ...here.
4195 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4196 * rs6000-tdep.c (process_note_abi_tag_sections)
4197 (get_elfosabi): Remove.
4198 (rs6000_gdbarch_init): Use generic OS ABI framework.
4199 (rs6000_dump_tdep): New function.
4200 (_initialize_rs6000_tdep): Use gdbarch_register.
4201 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4202 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4203 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4204 of ppc-linux-tdep.o.
4205 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4206 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4207 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4208 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4209 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4210 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4211
4212 2002-05-29 Jim Blandy <jimb@redhat.com>
4213
4214 * macroscope.c (default_macro_scope): Put `void' in empty argument
4215 list.
4216
4217 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4218
4219 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4220 * arch-utils.c: Include "sim-regno.h".
4221 * gdbarch.sh: Don't include "sim-regno.h".
4222 * gdbarch.h, gdbarch.c: Regenerate.
4223 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4224 here.
4225 * arch-utils.h (legacy_register_sim_regno): To here.
4226 * remote-sim.c (legacy_register_sim_regno): Move function from
4227 here.
4228 * arch-utils.c (legacy_register_sim_regno): To here.
4229
4230 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4231
4232 * sim-regno.h: New file.
4233 * Makefile.in (sim_regno_h): Define.
4234 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4235 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4236 (legacy_register_sim_regno): New function.
4237 (one2one_register_sim_regno): New function.
4238 (gdbsim_fetch_register): Rewrite.
4239 (gdbsim_store_register): Only store a register when
4240 REGISTER_SIM_REGNO is valid.
4241 * d10v-tdep.c: Include "sim-regno.h".
4242 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4243 (d10v_ts3_register_sim_regno): Ditto.
4244 * gdbarch.sh: Include "sim-regno.h".
4245 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4246 * gdbarch.h, gdbarch.c: Regenerate.
4247 * arch-utils.h (default_register_sim_regno): Delete declaration.
4248 * arch-utils.c (default_register_sim_regno): Delete function.
4249
4250 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4251
4252 * ppcnbsd-nat.c: Rewrite.
4253 * ppcnbsd-tdep.c: New file.
4254 * ppcnbsd-tdep.h: New file.
4255 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4256 solib.o, and solib-svr4.o.
4257 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4258 nbsd-tdep.o, and corelow.o.
4259
4260 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4261
4262 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4263 `tr' and `sed'. Mention that `broken' targets are not expected to
4264 build.
4265
4266 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4267
4268 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4269 Let PC point right after the prologue before looking up symbols.
4270
4271 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4272
4273 * i386-tdep.c (i386_register_virtual_type): Return
4274 builtin_type_vec128i for SSE registers.
4275
4276 * gdbtypes.h (builtin_type_vec128i): Declare.
4277
4278 * gdbtypes.c (build_builtin_type_vec128i): New function.
4279 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4280 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4281 (build_gdbtypes): Initialize new builtin vector types.
4282 (_initialize_gdbtypes): Register new vector types with gdbarch.
4283
4284 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4285
4286 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4287 since it has been multi-arch'd.
4288 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4289 Move Alpha and VAX multi-arch news entries to same section
4290 as other multi-arch news.
4291
4292 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4293
4294 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4295 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4296 static. Rename some register numbers to put them in ns32k-tdep
4297 private namespace.
4298 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4299 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4300 functions.
4301 (_initialize_ns32k_tdep): Use gdbarch_register.
4302 * ns32k-tdep.h: New file.
4303 * ns32knbsd-tdep.c: New file.
4304 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4305 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4306 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4307 REGISTER_BYTES, REGISTER_BYTE): Remove.
4308 * config/ns32k/tm-ns32k.h: New file.
4309 * config/ns32k/tm-umax.h: Remove.
4310
4311 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4314 ns32k_store_struct_return, ns32k_extract_return_value,
4315 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4316 functions.
4317 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4318 ns32k_saved_pc_after_call.
4319 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4320 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4321 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4322 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4323 ns32k_extract_struct_value_address.
4324
4325 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4326
4327 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4328 ns32k_fix_call_dummy): New.
4329 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4330 ns32k_call_dummy_words.
4331 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4332 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4333 CALL_DUMMY_NARGS): Remove.
4334 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4335
4336 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4337
4338 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4339 ns32k_frame_saved_pc, ns32k_frame_args_address,
4340 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4341 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4342 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4343 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4344 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4345 (BREAKPOINT): Remove..
4346 (FRAME_CHAIN): Define as ns32k_frame_chain.
4347 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4348 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4349 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4350 (FRAME_FIND_SAVED_REGS): Remove.
4351 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4352 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4353 (POP_FRAME): Define as ns32k_pop_frame.
4354
4355 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4356
4357 * ns32k-tdep.c (ns32k_register_byte_32082,
4358 ns32k_register_byte_32382, ns32k_register_raw_size,
4359 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4360 functions.
4361 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4362 ns32k_register_byte_32382.
4363 * config/ns32k/tm-umax.h: Update copyright years.
4364 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4365 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4366 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4367 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4368 (ns32k_get_enter_addr): Fix prototype.
4369
4370 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4371
4372 * ns32k-tdep.c: Update copyright years.
4373 (ns32k_register_name_32082): New function.
4374 (ns32k_register_name_32382): Ditto.
4375 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4376 (REGISTER_NAME): Define as ns32k_register_name_32382.
4377 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4378 (REGISTER_NAME): Define as ns32k_register_name_32082.
4379
4380 2002-05-24 Jim Blandy <jimb@redhat.com>
4381
4382 * dwarf2read.c (free_line_header): Use xfree, not free.
4383
4384 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4387 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4388
4389 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4390
4391 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4392
4393 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4394
4395 From Ross Alexander at NEC Europe:
4396 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4397
4398 2002-05-23 Michael Snyder <msnyder@redhat.com>
4399
4400 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4401 for input, rather than parse_and_eval_address.
4402
4403 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4404
4405 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4406 * Makefile.in (sim_d10v_h): Update definition.
4407
4408 2002-05-24 Andrew Cagney <cagney@redhat.com>
4409
4410 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4411 change `2002-05-22 Michael Snyder' below.
4412 (d10v_push_arguments): Ditto.
4413 (d10v_extract_return_value): Ditto.
4414
4415 2002-05-23 Jim Blandy <jimb@redhat.com>
4416
4417 * macrotab.c (check_for_redefinition): Don't complain if the new
4418 definition is the same as the previous one. Take more arguments
4419 to allow the comparison.
4420 (macro_define_object, macro_define_function): Pass more arguments
4421 to check_for_redefinition.
4422
4423 2002-05-22 Michael Snyder <msnyder@redhat.com>
4424
4425 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4426 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4427 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4428 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4429 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4430 Add a temp variable to save a call (and a memory read).
4431 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4432 if possible (so that PC_IN_CALL_DUMMY will work).
4433
4434 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4435
4436 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4437
4438 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4439
4440 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4441 fde->cie_ptr.
4442 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4443 (dwarf2_build_frame_info): Add offset to fde->initial_location
4444 so that frames of shared libraries are mapped correctly.
4445 (execute_stack_op): Change type of 'result' from ULONGEST to
4446 CORE_ADDR.
4447
4448 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4449
4450 * config/alpha/tm-nbsd.h: Include solib.h.
4451
4452 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4453
4454 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4455 assumptions about the host's byte order.
4456
4457 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4460 to dependency list.
4461 * alphanbsd-tdep.c: Include solib-svr4.h.
4462 * shnbsd-tdep.c: Ditto.
4463
4464 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4465
4466 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4467 nbsd-tdep.h to dependency list.
4468 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4469 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4470 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4471 nbsdaout.mh and nbsdelf.mh consistently.
4472 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4473 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4474 nbsdaout.mt and nbsdelf.mh consistently.
4475 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4476 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4477 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4478 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4479 a.out shared library stuff from here...
4480 * config/nm-nbsdaout.h: ...to here.
4481 * config/tm-nbsd.h: Remove.
4482 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4483 * config/arm/nbsd.mh: Remove.
4484 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4485 nbsd-tdep.o.
4486 * config/arm/nbsdaout.mh: New file.
4487 * config/arm/nbsdelf.mh: New file.
4488 * config/arm/nm-nbsdaout.h: New file.
4489 * config/i386/nbsd.mh: Remove.
4490 * config/i386/nbsd.mt: Remove.
4491 * config/i386/nbsdaout.mh: New file.
4492 * config/i386/nbsdaout.mt: New file.
4493 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4494 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4495 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4496 i386_register_u_addr): Remove.
4497 * config/i386/nm-nbsdaout.h: New file.
4498 * config/i386/nm-nbsdelf.h: Remove.
4499 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4500 (USE_STRUCT_CONVENTION): Remove.
4501 * config/i386/tm-nbsdaout.h: New file.
4502 * config/i386/tm-nbsdelf.h: Remove.
4503 * config/m68k/nbsd.mh: Remove.
4504 * config/m68k/nbsd.mt: Remove.
4505 * config/m68k/nbsdaout.mh: New file.
4506 * config/m68k/nbsdaout.mt: New file.
4507 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4508 * config/m68k/nm-nbsdaout.h: New file.
4509 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4510 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4511 * config/ns32k/nbsd.mh: Remove.
4512 * config/ns32k/nbsd.mt: Remove.
4513 * config/ns32k/nbsdaout.mh: New file.
4514 * config/ns32k/nbsdaout.mt: New file.
4515 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4516 * config/ns32k/nm-nbsdaout.h: New file.
4517 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4518 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4519 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4520 (SVR4_SHARED_LIBS): Remove.
4521 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4522 * config/sparc/nbsd.mh: Remove.
4523 * config/sparc/nbsd.mt: Remove.
4524 * config/sparc/nbsdaout.mh: New file.
4525 * config/sparc/nbsdaout.mt: New file.
4526 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4527 * config/sparc/nbsdelf.mt: New file.
4528 * config/sparc/nm-nbsdaout.h: New file.
4529 * config/sparc/nm-nbsdelf.h: Remove.
4530 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4531 * config/sparc/tm-nbsdaout.h: New file.
4532
4533 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4534
4535 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4536 mipsnbsd-tdep.c
4537 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4538
4539 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4540
4541 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4542 shnbsd-nat.c.
4543 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4544
4545 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4546
4547 * NEWS: Note new MIPS NetBSD native configuration.
4548 * configure.host (mips*-*-netbsd*): New host.
4549 * configure.tgt (mips*-*-netbsd*): New target.
4550 * mipsnbsd-nat.c: New file.
4551 * mipsnbsd-tdep.c: New file.
4552 * mipsnbsd-tdep.h: New file.
4553 * config/mips/nbsd.mh: New file.
4554 * config/mips/nbsd.mt: New file.
4555 * config/mips/nm-nbsd.h: New file.
4556 * config/mips/tm-nbsd.h: New file.
4557
4558 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4559
4560 * Makefile.in (SFILES): Add osabi.c.
4561 (COMMON_OBS): Add osabi.o.
4562 (osabi.o): New dependency list.
4563 * osabi.c: New file.
4564 * osabi.h: New file.
4565 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4566
4567 * Makefile.in (alpha_tdep_h): Define and use instead of
4568 alpha-tdep.h.
4569 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4570 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4571 Remove.
4572 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4573 * alpha-tdep.h: Include osabi.h.
4574 (alpha_abi): Remove.
4575 (gdbarch_tdep): Use generic OS ABI framework.
4576 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4577 gdbarch_register_osabi.
4578 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4579 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4580 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4581
4582 * Makefile.in (sh_tdep_h): Add osabi.h.
4583 * sh-tdep.h (sh_osabi): Remove.
4584 (gdbarch_tdep): Use generic OS ABI framework.
4585 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4586 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4587 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4588 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4589
4590 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4591 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4592 gdbarch_register_osabi.
4593 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4594 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4595 (get_elfosabi): Rename to...
4596 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4597 ABI framework support routines.
4598 (arm_gdbarch_init): Use generic OS ABI framework.
4599 (arm_dump_tdep): Likewise.
4600 (_initialize_arm_tdep): Likewise.
4601 * arm-tdep.h: Include osabi.h.
4602 (arm_abi): Remove.
4603 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4604 osabi member.
4605 (arm_gdbarch_register_os_abi): Remove prototype.
4606 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4607 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4608
4609 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4610 * mips-tdep.c: Include osabi.h.
4611 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4612 OS ABI framework.
4613
4614 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4615
4616 * h8300-tdep.c: Fix formatting.
4617
4618 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4619
4620 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4621 printing vector registers.
4622
4623 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4624
4625 From Fernando Nasser:
4626 * remote.c (remote_async_open_1): Re-throw the exception when the
4627 connection fails.
4628 (remote_cisco_open): Ditto.
4629 (remote_open_1): Ditto.
4630
4631 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4632
4633 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4634 (remote_start_remote): Add uiout parameter. Pass through to
4635 remote_start_remote_dummy.
4636 (remote_open_1): Use catch_exception instead of catch_errors.
4637 (remote_async_open_1): Ditto.
4638 (remote_cisco_open): Ditto.
4639
4640 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4641
4642 * remote.c (remote_start_remote): Replace PTR with void pointer.
4643 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4644 static.
4645
4646 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4647
4648 * gdb_indent.sh: Allow the script to be run in the sim directory.
4649
4650 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4651
4652 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4653 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4654
4655 * corelow.c (core_open): Only call set_gdbarch_from_file if
4656 exec_bfd is NULL.
4657
4658 2002-05-17 Andrey Volkov <avolkov@transas.com>
4659
4660 * h8300-tdep.c: Add support of EXR register
4661 * config/h8300/tm-h8300.h: Ditto.
4662
4663 2002-05-17 Andrey Volkov <avolkov@transas.com>
4664
4665 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4666
4667 2002-05-17 Andrey Volkov <avolkov@transas.com>
4668
4669 * h8300-tdep.c: Change literal regnums to REGNO.
4670
4671 2002-05-17 Jim Blandy <jimb@redhat.com>
4672
4673 * NEWS: Note addition of macro support.
4674
4675 Expand preprocessor macros in C expressions.
4676 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4677 (scan_macro_expansion, scanning_macro_expansion,
4678 finished_macro_expansion): New function declarations.
4679 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4680 variable declarations.
4681 * parser-defs.h (expression_context_pc): New declaration.
4682 * parse.c (expression_context_pc): New variable.
4683 (parse_exp_1): Set expression_context_pc, as well as
4684 expression_context_block.
4685 * c-exp.y (yylex): If we're not already reading the result of a
4686 macro expansion, try to macro-expand the next token. When we're
4687 done scanning a macro expansion, switch back to the mainline text.
4688 Commas and `if's in a macro's expansion don't terminate the input.
4689 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4690 (macro_original_text, macro_expanded_text,
4691 expression_macro_lookup_func, expression_macro_lookup_baton): New
4692 variables.
4693 (scan_macro_expansion, scanning_macro_expansion,
4694 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4695 c_preprocess_and_parse): New functions.
4696 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4697 c_preprocess_and_parse, instead of c_parse.
4698 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4699 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4700
4701 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4702
4703 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4704 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4705 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4706
4707 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4708
4709 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4710
4711 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * Makefile.in (sh_tdep_h): Define and use.
4714 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4715 register enum): Move to...
4716 * * sh-tdep.h: ...here.
4717 * sh-tdep.c: Include sh-tdep.h.
4718 * sh3-rom.c: Likewise.
4719 * shnbsd-tdep.c: Likewise.
4720
4721 2002-05-16 Michael Snyder <msnyder@redhat.com>
4722
4723 * arm-tdep.c: Spelling fix in comment.
4724
4725 2002-05-16 Jim Blandy <jimb@redhat.com>
4726
4727 Add commands for manually expanding macros and showing their
4728 definitions.
4729 * macrocmd.c, macroscope.c, macroscope.h: New files.
4730 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4731 (macroscope_h): New variable.
4732 (HFILES_NO_SRCDIR): Add macroscope.h.
4733 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4734 (macroscope.o, macrocmd.o): New rules.
4735
4736 Teach the Dwarf 2 reader to read macro information.
4737 * dwarf2read.c: #include "macrotab.h".
4738 (dwarf_macinfo_buffer): New variable.
4739 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4740 dwarf_macinfo_size.
4741 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4742 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4743 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4744 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4745 dwarf2_macro_spaces_in_definition): New complaints.
4746 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4747 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4748 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4749 the partial symbol table.
4750 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4751 from what's recorded in the partial symbol table.
4752 (read_file_scope): If the compilation unit has a
4753 `DW_AT_macro_info' attribute, read its macro information.
4754 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4755
4756 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4757
4758 Fix PR gdb/546
4759 * ser-tcp.c: Don't include <netinet/udp.h>.
4760
4761 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4762
4763 * MAINTAINERS: Update my email address.
4764
4765 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4766
4767 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4768 include file of the same name.
4769
4770 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4771
4772 * configure.tgt: Mark v850 as multi-arched.
4773 * config/v850/tm-v850.h: Remove file.
4774 * config/v850/v850.mt: Eliminate TM_FILE.
4775
4776 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4777
4778 * v850-tdep.c: Full multi-arch.
4779 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4780 Define GDB_MULTI_ARCH to 2.
4781
4782 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4783
4784 * p-exp.y (current_type): New static variable.
4785 Carries the type of the expression at the position that is parsed.
4786 (push_current_type, pop_current_type): Two new functions. Used
4787 to store/restore current_type in expression on specific tokens.
4788 (search_field): New static variable. Set to one after parsing a point
4789 as at that point only a FIELDNAME token should be searched.
4790 (FIELDNAME): New token. After a point only a token belonging to
4791 current_type type definition is allowed.
4792 (all over token rules): reset and change current_type according
4793 to rules.
4794 (exp '[' rule): insert implicit array index field if
4795 exp is a pascal string type.
4796
4797 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4798
4799 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4800 frame info. Use frame_info's saved_regs instead of matching member
4801 in extra_frame_info throughout.
4802 (v850_frame_init_saved_regs): New function.
4803 (v850_init_extra_frame_info): Move most functionality into
4804 v850_frame_init_saved_regs().
4805 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4806 (v850_frame_find_saved_regs): Remove declaration.
4807 (FRAME_FIND_SAVED_REGS): Remove definition.
4808 (v850_frame_init_saved_regs): Add declaration.
4809 (FRAME_INIT_SAVED_REGS): Add definition.
4810
4811 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4812
4813 * v850-tdep.c: Begin multi-arch'ing v850.
4814 (v850_target_architecture_hook): Remove function.
4815 (v850_gdbarch_init): New function. Add code previously in
4816 v850_target_architecture_hook().
4817 (_initialize_v850_tdep): Don't set target_architecture_hook.
4818 Call register_gdbarch_init() instead.
4819
4820 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4821
4822 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4823 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4824 (fixup_class_method_type): Likewise.
4825
4826 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4827
4828 From Martin Pool <mbp@samba.org>:
4829 * gdbserver/server.c (gdbserver_usage): New function.
4830 (main): Call it.
4831
4832 2002-05-15 Jim Blandy <jimb@redhat.com>
4833
4834 Add macro structures to GDB's symbol tables. Nobody puts anything
4835 in them yet.
4836 * symtab.h (struct symtab): New member: `macro_table'.
4837 * buildsym.h (pending_macros): New global variable.
4838 * buildsym.c: #include "macrotab.h".
4839 (buildsym_init): Initialize `pending_macros'.
4840 (end_symtab): If we found macro information while reading a CU's
4841 debugging info, do build a symtab structure for it. Make the
4842 symtab point to the macro information, and clear the
4843 `pending_macros' pointer which held it while we were reading the
4844 debug info.
4845 (really_free_pendings): Free any pending macro table.
4846 * objfiles.h (struct objfile): New member: `macro_cache'.
4847 * objfiles.c (allocate_objfile): Set allocate and free functions
4848 for the macro cache's objstack.
4849 (free_objfile): Empty the macro cache's obstack.
4850 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4851 set new allocate and free functions for it.
4852 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4853 free functions for the macro cache's objstack. (Why is this
4854 function building its own objfile?)
4855 * symmisc.c (print_objfile_statistics): Print statistics on the
4856 macro bcache.
4857 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4858
4859 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4860
4861 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4862 (REGISTER_U_ADDR): Delete definition.
4863 (arm_register_u_addr): Delete declaration.
4864
4865 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4866
4867 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4868 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4869
4870 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4871
4872 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4873 stop_at -> stop_pc.
4874
4875 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4876
4877 * regcache.c (register_valid): Revise comments refering to "Not
4878 available" and "unavailable".
4879 * frame.c (frame_register_read): Ditto.
4880 * findvar.c (value_of_register): Ditto.
4881
4882 2002-05-15 Andrew Cagney <cagney@redhat.com>
4883
4884 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4885 (remote-sim.o): Update dependencies.
4886 (d10v-tdep.o): Specify dependencies.
4887 (sim_d10v_h): Define.
4888
4889 2002-05-14 Jim Blandy <jimb@redhat.com>
4890
4891 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4892 * macrotab.c (macro_lookup_inclusion, find_definition,
4893 new_macro_table): Same.
4894
4895 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4896 not `! strcmp ()'. This is a dubious improvement.
4897 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4898
4899 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4900 although it's not necessary, to avoid a warning.
4901
4902 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4903
4904 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4905 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4906 TYPE_INSTANCE_FLAGS.
4907 (struct main_type): New.
4908 (struct type): Move most members to struct main_type. Change
4909 cv_type and as_type to new type_chain member. Add instance_flags.
4910 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4911 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4912 (finish_cv_type): Remove prototype.
4913 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4914 Set TYPE_CHAIN.
4915 (alloc_type_instance): New function.
4916 (smash_type): New function.
4917 (make_pointer_type, make_reference_type, make_function_type)
4918 (smash_to_member_type, smash_to_method_type): Call smash_type.
4919 (make_qualified_type): New function.
4920 (make_type_with_address_space): Call make_qualified_type.
4921 (make_cv_type): Likewise.
4922 (finish_cv_type): Remove unnecessary function.
4923 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4924 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4925 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4926 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4927 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4928 * hpread.c (hpread_read_struct_type): Likewise.
4929 * stabsread.c (read_struct_type): Likewise.
4930
4931 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4932
4933 * configure.tgt: Add a catch all sh* target, for cases like
4934 sh[2,3,4]-elf and sh-hms.
4935
4936 2002-05-14 Keith Seitz <keiths@redhat.com>
4937
4938 * event-loop.c (create_file_handler): Don't do anything but
4939 update data when we are given a fd which we are already
4940 monitoring.
4941
4942 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4943
4944 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4945 (update_context): Use __func__ in warnings.
4946
4947 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4948
4949 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4950 and tcp_close to net_open and net_close.
4951 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4952 using UDP if requested. Don't try to disable Nagle on UDP
4953 sockets.
4954 * remote.c (remote_serial_open): New function. Warn about UDP.
4955 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4956
4957 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4958
4959 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4960
4961 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4962
4963 * configure.tgt: Remove sh-hms target.
4964 * MAINTAINERS: Don't list sh-hms as a separate target.
4965
4966 2002-05-13 Jim Blandy <jimb@redhat.com>
4967
4968 Add first preprocessor macro-expansion files.
4969 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4970 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4971 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4972 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4973 (COMMON_OBS): Add macrotab.o, macroexp.o.
4974 (macroexp.o, macrotab.o): New rules.
4975
4976 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4977
4978 * config/m88k/tm-m88k.h: Update copyright.
4979 (m88k_target_write_pc): Declare
4980 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4981 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4982 (SHIFT_INST_REGS): Update definition.
4983 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4984 using old definition of TARGET_WRITE_PC.
4985 * regcache.c (generic_target_write_pc): Delete code handling
4986 NNPC_REGNUM.
4987 * gdbarch.sh (NNPC_REGNUM): Delete.
4988 * gdbarch.h, gdbarch.c: Regenerate.
4989
4990 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4991
4992 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4993 builtin reg number.
4994
4995 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4996
4997 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4998 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4999 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5000 access macros.
5001 * c-typeprint.c (cp_type_print_method_args): Likewise.
5002 (c_type_print_args): Likewise.
5003 * d10v-tdep.c (d10v_push_arguments): Likewise.
5004 (d10v_extract_return_value): Likewise.
5005 * expprint.c (print_subexp): Likewise.
5006 * gdbtypes.c (lookup_primitive_typename): Likewise.
5007 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5008 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5009 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5010 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5011 (TYPE_VECTOR): Likewise.
5012 * hpread.c (hpread_read_struct_type)
5013 (fix_static_member_physnames, fixup_class_method_type)
5014 (hpread_type_lookup): Likewise.
5015 * mdebugread.c (parse_symbol, parse_type): Likewise.
5016 * p-lang.c (is_pascal_string_type): Likewise.
5017 * valops.c (hand_function_call): Likewise.
5018 * x86-64-tdep.c (classify_argument): Likewise.
5019
5020 * hpread.c (hpread_read_function_type)
5021 (hpread_read_doc_function_type): Call replace_type.
5022 * dstread.c (create_new_type): Delete.
5023 (decode_dst_structure, process_dst_function): Call alloc_type.
5024 Use type access macros.
5025
5026 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5027
5028 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5029 the're not supported by the current architecture.
5030 (i387_fill_fxsave): Likewise.
5031
5032 2002-05-12 Fred Fish <fnf@redhat.com>
5033
5034 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5035 sect_index_xxx members to index the first slot in section_offsets
5036 if all of the section_offsets are zero.
5037
5038 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5039
5040 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5041 checked in with last change.
5042
5043 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5044
5045 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5046 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5047 config.sub.
5048
5049 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5050
5051 * Makefile.in: Update dependencies.
5052
5053 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5054
5055 * language.c (local_hex_string_custom): Simplify. Do not depend
5056 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5057
5058 * memattr.c (mem_info_command): Replace calls to
5059 longest_local_hex_string and longest_local_hex_string_custom.
5060 * buildsym.c (make_blockvector): Ditto.
5061 * solib.c (info_sharedlibrary_command): Ditto.
5062 * tracepoint.c (tracepoints_info): Ditto.
5063 * symtab.c (print_msymbol_info): Ditto.
5064
5065 * language.c (local_hex_string): Delete.
5066 (local_hex_string_custom): Delete.
5067 (longest_local_hex_string): Rename to local_hex_string.
5068 (longest_local_hex_string_custom): Rename to
5069 local_hex_string_custom.
5070 * language.h (local_hex_string): Change parameter type to LONGEST.
5071 (local_hex_string_custom): Ditto.
5072 (longest_local_hex_string): Delete declaration.
5073 (longest_local_hex_string_custom): Ditto.
5074
5075 * solib.c: Update copyright.
5076 * memattr.c: Update copyright.
5077
5078 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5079
5080 * arch-utils.h (legacy_register_to_value): Declare.
5081 (legacy_value_to_register): Declare.
5082 (legacy_convert_register_p): Declare.
5083 * arch-utils.c (legacy_register_to_value): New function.
5084 (legacy_value_to_register): New function.
5085 (legacy_convert_register_p): New function.
5086
5087 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5088 (VALUE_TO_REGISTER): Define.
5089 (CONVERT_REGISTER_P): Define.
5090 * gdbarch.h, gdbarch.c: Regenerate.
5091
5092 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5093 VALUE_TO_REGISTER.
5094 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5095 CONVERT_REGISTER_P.
5096
5097 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5098 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5099
5100 * Makefile.in: Update dependencies for valops.c.
5101 * valops.c: Include "gdb_assert.h".
5102 (typecmp): Skip THIS parameter to methods.
5103 (find_method_list): Remove static_memfuncp argument,
5104 update callers. Check for stub methods.
5105 (find_value_oload_method_list): Don't set *static_memfuncp.
5106 (find_overload_match): Don't check for stub methods. Assert
5107 that methods are not stubbed. Handle static methods.
5108 (value_find_oload_method_list): Remove static_memfuncp argument.
5109 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5110 to the argument list for static stub methods.
5111 * value.h (value_find_oload_method_list): Update prototype.
5112
5113 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5114
5115 * arch-utils.h (generic_register_size): Declare.
5116 (generic_register_raw_size, generic_register_virtual_size): Delete
5117 declarations.
5118 * arch-utils.c (generic_register_raw_size): Delete.
5119 (generic_register_size): New function.
5120 (generic_register_virtual_size): Delete.
5121
5122 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5123 default generic_register_size.
5124 * gdbarch.h, gdbarch.c: Re-generate.
5125
5126 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5127 register_virtual_size.
5128 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5130
5131 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5132
5133 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5134 * gdbarch.h, gdbarch.c: Regenerate.
5135 * gnu-v3-abi.c: Update copyright.
5136 (vtable_address_point_offset): Update.
5137 (gnuv3_rtti_type): Update.
5138 (gnuv3_baseclass_offset): Update.
5139 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5140 (init_fetch_link_map_offsets): Update.
5141 * remote.c (get_remote_state): Update.
5142
5143 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5144
5145 * TODO: Remove value_headof/value_from_vtable_info comment.
5146 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5147 * values.c (value_headof, value_from_vtable_info): Delete.
5148 * value.h (value_from_vtable_info): Delete prototype.
5149
5150 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5151
5152 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5153 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5154 $(gdb_regex_h).
5155 (gdb_assert_h): Define.
5156 (gdb_wait_h): Define.
5157 (gdb_regex_h): Define.
5158
5159 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5160
5161 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5162 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5163
5164 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5165
5166 * nbsd-tdep.c: Fix comment.
5167
5168 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5169
5170 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5171 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5172 (nbsd-tdep.o): New dependency list.
5173 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5174 nbsd-tdep.h.
5175 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5176 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5177 * nbsd-tdep.c: New file.
5178 * nbsd-tdep.h: New file.
5179 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5180 nbsd-tdep.h.
5181 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5182 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5183 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5184 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5185
5186 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5187
5188 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5189 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5190 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5191 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5192 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5193 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5194
5195 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5196
5197 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5198 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5199 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5200 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5201 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5202 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5203 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5204
5205 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5206
5207 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5208 fetch_elfcore_registers to...
5209 * i386nbsd-tdep.c: ...here.
5210 (i386nbsd_use_struct_convention): Rename to...
5211 (i386nbsd_aout_use_struct_convention): ...this.
5212 (i386nbsd_supply_reg): New function.
5213 (i386nbsd_fill_reg): New function.
5214 (fetch_core_registers): Use i386nbsd_supply_reg.
5215 (fetch_elfcore_registers): Likewise.
5216 (_initialize_i386nbsd_tdep): New function.
5217 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5218 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5219 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5220 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5221 (i386nbsd_aout_use_struct_convention): ...this.
5222
5223 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5224
5225 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5226 (store_inferior_registers): Use shnbsd_fill_reg.
5227 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5228 sh_nbsd_supply_register): Collapse into...
5229 (shnbsd_supply_reg): ...this.
5230 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5231 (shnbsd_fill_reg): ...this.
5232 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5233 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5234 (fetch_core_registers): Use shnbsd_supply_reg.
5235 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5236 (sh_nbsd_core_fns): Rename to...
5237 (shnbsd_core_fns): ...this.
5238 (sh_nbsd_elfcore_fns): Rename to...
5239 (shnbsd_elfcore_fns): ...this.
5240 (sh_nbsd_init_abi): Rename to...
5241 (shnbsd_init_abi): ...this.
5242 (_initialize_sh_nbsd_tdep): Rename to...
5243 (_initialize_shnbsd_tdep): ...this.
5244 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5245 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5246 sh_nbsd_fill_register): Remove prototypes.
5247 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5248
5249 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5250
5251 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5252 (i387-nat.o): Delete dependency list.
5253 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5254 (x86-64-linux-nat.o): Likewise.
5255 * i387-nat.c: Delete file, moving contents to...
5256 * i387-tdep.c: ...here.
5257 * i387-nat.h: Rename...
5258 * i387-tdep.h: ...to this.
5259 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5260 * i386-linux-nat.c: Likewise.
5261 * i386bsd-nat.c: Likewise.
5262 * i386gnu-nat.c: Likewise.
5263 * i386nbsd-nat.c: Likewise.
5264 * i386v4-nat.c: Likewise.
5265 * x86-64-linux-nat.c: Likewise.
5266 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5267 * config/i386/go32.mh (NATDEPFILES): Likewise.
5268 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5269 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5270 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5271 * config/i386/linux.mh (NATDEPFILES): Likewise.
5272 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5273 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5274 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5275 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5276
5277 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5278
5279 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5280 (alphanbsd-nat.o): Remove dependency list.
5281 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5282 * alphanbsd-nat.c: Delete. Contents moved to...
5283 * alphanbsd-tdep.c: ...here.
5284 (_initialize_alphanbsd_tdep): Register core functions.
5285 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5286
5287 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5288
5289 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5290 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5291 (alphanbsd-nat.o): Likewise.
5292 (alphabsd-tdep.o): New dependency list.
5293 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5294 (fill_gregset): Use alphabsd_fill_reg.
5295 (supply_fpregset): Use alphabsd_supply_fpreg.
5296 (fill_fpregset): Use alphabsd_fill_fpreg.
5297 (fetch_inferior_registers): Use struct reg and struct fpreg
5298 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5299 and alphabsd_supply_fpreg.
5300 (store_inferior_registers): Use struct reg and struct fpreg
5301 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5302 and alphabsd_fill_fpreg.
5303 * alphabsd-tdep.c: New file.
5304 * alphabsd-tdep.h: New file.
5305 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5306 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5307 alphabsd_supply_fpreg.
5308 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5309 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5310
5311 2002-05-11 Eric Christopher <echristo@redhat.com>
5312
5313 * mips-tdep.c (mips_double_register_type): Fix thinko.
5314 (mips_single_register_type): Ditto.
5315 * MAINTAINERS: Add self.
5316
5317 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5318
5319 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5320 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5321 right thing on architectures with different endianness and/or
5322 integer sizes.
5323
5324 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5325
5326 From Christian Limpach <chris@Pin.LU>
5327 * configure.in: Change sed expression which comments out
5328 NATDEPFILES to also comment out continuation lines.
5329 * configure: Regenerate.
5330
5331 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5334 big patch.
5335
5336 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5337
5338 * sh-tdep.c: Include correct file.
5339
5340 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5341
5342 New support for sh64-elf (sh5) target.
5343
5344 * configure.tgt: For sh64-elf target, default to sh-elf.
5345
5346 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5347 (struct gdbarch_tdep): Add new fields for new registers and ABI
5348 info.
5349
5350 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5351 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5352 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5353 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5354 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5355 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5356 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5357 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5358 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5359 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5360 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5361 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5362 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5363 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5364 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5365 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5366 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5367 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5368 sign_extend, sh64_nofp_frame_init_saved_regs,
5369 sh64_init_extra_frame_info, sh64_get_saved_register,
5370 sh64_extract_struct_value_address, sh64_pop_frame,
5371 sh64_push_arguments, sh64_extract_return_value,
5372 sh64_store_return_value, sh64_show_media_regs,
5373 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5374 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5375 sh_sh64_register_virtual_type,
5376 sh_sh64_register_convert_to_virtual,
5377 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5378 sh64_register_read, sh64_pseudo_register_write,
5379 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5380 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5381 sh64_do_pseudo_register, sh_compact_do_registers_info,
5382 sh64_do_registers_info, sh_gdbarch_init): New functions.
5383
5384 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5385
5386 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5387
5388 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5389
5390 * linespec.c (decode_line_1): Check for a double quote after
5391 a filename correctly.
5392
5393 2002-05-10 Jim Blandy <jimb@redhat.com>
5394
5395 Properly track the size of the current objfile's .debug_line section.
5396 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5397 (DWARF_LINE_SIZE): New macro.
5398 (dwarf2_build_psymtabs_hard): Record the line section's size in
5399 the partial symbol table.
5400 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5401 symbol table.
5402
5403 2002-05-10 Petr Sorfa <petrs@caldera.com>
5404
5405 * ia64-tdep.c: Handle breakpoints on L instruction type
5406 in MLX instruction bundle by moving the breakpoint to
5407 the third slot (X instruction type) as L holds only data.
5408
5409 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5410
5411 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5412 (process_one_symbol): Complain about discarding local symbols
5413 due to a misplaced N_LBRAC entry.
5414
5415 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5416
5417 From Daniel Berlin <dan@cgsoftware.com>
5418 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5419 decrease the depth we are at, in the case of templates.
5420
5421 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5422
5423 * mips-tdep.c (mips_float_register_type): New function.
5424 (mips_double_register_type): New function.
5425 (mips_print_register): Use them.
5426 (do_fp_register_row): Likewise.
5427
5428 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * signals/signals.c (signals): Remove conditional compilation around
5431 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5432 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5433
5434 2002-05-09 Michael Snyder <msnyder@redhat.com>
5435
5436 * remote-rdp.c (remote_rdp_can_run): Remove.
5437
5438 2002-05-09 Tom Tromey <tromey@redhat.com>
5439
5440 * jv-valprint.c (java_val_print): Handle `char' as a special case
5441 of TYPE_CODE_INT.
5442
5443 2002-05-09 Michael Snyder <msnyder@redhat.com>
5444
5445 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5446 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5447 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5448 str r(0123),[sp,#nn].
5449 (arm_skip_prologue): Ditto. Also make disassembly
5450 order-independent by placing it in a loop.
5451
5452 2002-05-06 Michael Snyder <msnyder@redhat.com>
5453
5454 * stabsread.c (read_type): Add recognition for new attribute:
5455 "@V;" means that an array type is actually a vector.
5456 This is analogous to the vector flag that's been added to dwarf2.
5457
5458 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5459
5460 * i386-tdep.h (i386_abi): New enum.
5461 (struct gdbarch_tdep): Replace os_ident member with abi.
5462 (i386_gdbarch_register_os_abi): New prototype.
5463 * i386-tdep.c (i386_abi_names): New array.
5464 (process_note_abi_tag_sections): Removed.
5465 (process_note_sections): New function.
5466 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5467 (struct i386_abi_handler): New struct.
5468 (i386_abi_handler_list): New variable.
5469 (i386_gdbarch_register_os_abi): New function.
5470 (i386_gdbarch_init): Adapt for the changes given above.
5471
5472 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5473
5474 * gregset.h: Say "GNU/Linux".
5475
5476 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5477
5478 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5479 (build_gdbtypes): Build builtin_type_v2_float.
5480 (_initialize_gdbtypes): Register new builtin type.
5481
5482 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5483
5484 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5485 (clear_gdbarch_swap): New function.
5486 (initialize_non_multiarch): Call.
5487 (gdbarch_update_p): Before calling init(), swap out and clear the
5488 existing architecture.
5489 * gdbarch.c: Regenerate.
5490
5491 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5492
5493 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5494 alphanbsd-tdep.c.
5495
5496 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5497
5498 * sh-nbsd-nat.c: Rename to...
5499 * shnbsd-nat.c: ...this.
5500 * sh-nbsd-tdep.c: Rename to...
5501 * shnbsd-tdep.c: ...this.
5502 * sh-nbsd-tdep.h: Rename to...
5503 * shnbsd-tdep.h: ...this.
5504 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5505 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5506
5507 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5508
5509 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5510 concatenation for command help messages.
5511
5512 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * NEWS: Note new sh*-*-netbsdelf* configuration.
5515 * configure.host: Set gdb_host_cpu to sh for all sh*.
5516 (sh*-*-netbsdelf*): New host.
5517 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5518 (sh*-*-netbsdelf*): New target.
5519 * sh-nbsd-nat.c: New file.
5520 * sh-nbsd-tdep.c: New file.
5521 * sh-nbsd-tdep.h: New file.
5522 * config/sh/nbsd.mh: New file.
5523 * config/sh/nbsd.mt: New file.
5524 * config/sh/nm-nbsd.h: New file.
5525 * config/sh/tm-nbsd.h: New file.
5526
5527 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5528
5529 * sh-tdep.c (sh_osabi_names): Declare.
5530 (process_note_abi_tag_sections): New function.
5531 (get_elfosabi): Ditto.
5532 (sh_gdbarch_register_os_abi): Ditto.
5533 (sh_dump_tdep): Ditto.
5534 _initialize_sh_tdep): Use gdbarch_register to register
5535 sh_gdbarch_init and sh_dump_tdep.
5536 * config/sh/tm-sh.h (sh_osabi): Declare.
5537 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5538
5539 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5540
5541 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5542 (thumb_scan_prologue): Ditto.
5543 (arm_find_callers_reg): Ditto.
5544 (arm_frame_chain): Ditto.
5545 (arm_init_extra_frame_info): Ditto.
5546 (arm_frame_saved_pc): Ditto.
5547 (arm_pop_frame): Ditto.
5548 (arm_push_return_address): New function.
5549 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5550 call_dummy_location, call_dummy_breakpoint_offset_p,
5551 call_dummy_breakpoint_offset, call_dummy_p,
5552 call_dummy_stack_adjust_p, call_dummy_words,
5553 sizeof_call_dummy_words, call_dummy_start_offset,
5554 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5555 call_dummy_address, push_return_address and push_dummy_frame for
5556 generic dummy frames.
5557
5558 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5559
5560 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5561 size computation for alloca.
5562 (sh_fp_frame_init_saved_regs): Likewise.
5563
5564 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5565
5566 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5567 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5568 * arm-tdep.c (arm_store_return_value): Use them.
5569 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5570 * remote-rdp.c (remote_rdp_fetch_register): Use
5571 ARM_MAX_REGISTER_RAW_SIZE.
5572 (remote_rdp_store_register): Likewise.
5573
5574 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5575
5576 * dwarf2cfi.c: Code cleanup, removed unused variables,
5577 added default labels to switch {} statements.
5578 * x86-64-tdep.c: Ditto.
5579 * x86-64-linux-nat.c: Ditto.
5580
5581 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 * solib.h: Protect against multiple inclusion.
5584
5585 2002-05-06 Jim Blandy <jimb@redhat.com>
5586
5587 Add first preprocessor macro-expansion files.
5588 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5589 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5590 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5591 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5592 (COMMON_OBS): Add macrotab.o, macroexp.o.
5593 (macroexp.o, macrotab.o): New rules.
5594
5595 Separate the job of reading the line number info statement program
5596 header (...expialidocious) out into its own function.
5597 * dwarf2read.c (struct line_head, struct filenames, struct
5598 directories): Replace with...
5599 (struct line_header): New structure, containing the full
5600 contents of the statement program header, including the
5601 include directory and file name tables.
5602 (read_file_scope): If we have line number info, instead of just
5603 calling dwarf_decode_lines to do all the work, call
5604 dwarf_decode_line_header first to get a `struct line_header'
5605 containing the data in the statement program header, and then
5606 pass that to dwarf_decode_lines, which will pick up where that
5607 left off. Be sure to clean up the `struct line_header' object.
5608 (dwarf_decode_line_header, free_line_header, add_include_dir,
5609 add_file_name): New functions.
5610 (dwarf_decode_lines): Move all the code to read the statement
5611 program header into dwarf_decode_line_header. Take the line
5612 header it built as the first argument, instead of the offset to
5613 the compilation unit's line number info. Use the new `struct
5614 line_header' type instead of the old structures. No need to do
5615 cleanups here now, since we don't allocate anything.
5616 (dwarf2_statement_list_fits_in_line_number_section,
5617 dwarf2_line_header_too_long): New complaints.
5618
5619 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5620
5621 * gdbtypes.c (init_vector_type): New function.
5622 (build_builtin_type_vec128): Simplify the representation of SIMD
5623 registers.
5624 (build_gdbtypes): Initialize new builtin vector types.
5625 (_initialize_gdbtypes): Register new vector types with gdbarch.
5626 (builtin_type_v4_float, builtin_type_v4_int32,
5627 builtin_type_v8_int16, builtin_type_v16_int8,
5628 builtin_type_v2_int32, builtin_type_v4_int16,
5629 builtin_type_v8_int8): New (renamed) SIMD types.
5630
5631 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5632
5633 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5634 (i387_fill_fxsave): Likewise.
5635
5636 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5637
5638 * alpha-tdep.c (alpha_extract_return_value): Don't use
5639 non-constant array size in prototype.
5640
5641 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5642
5643 From Brian Taylor <briant at model dot com>:
5644 * ui-out.c (ui_out_field_core_addr): Use the function
5645 longest_local_hex_string_custom'to format addresses > 32 bits
5646 wide.
5647
5648 * ui-out.c (ui_out_field_core_addr): Update comment.
5649
5650 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5651
5652 * stack.c (select_and_print_frame): Make static. Delete the
5653 parameter `level'.
5654 (func_command): Update call.
5655 (select_frame_command): Delete code computing the frame level.
5656 * frame.h (select_and_print_frame): Delete declaration.
5657
5658 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5659
5660 * sparc-tdep.c (sparc_get_saved_register): Comment why
5661 get_prev_frame call is safe.
5662
5663 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5664
5665 * frame.h (select_frame): Delete level parameter.
5666 * stack.c (select_frame): Update. Use frame_relative_level to
5667 obtain the frame's level.
5668 (select_and_print_frame): Update call.
5669 (select_frame_command): Ditto.
5670 (up_silently_base): Ditto.
5671 (down_silently_base): Ditto.
5672 * ocd.c (ocd_start_remote): Ditto.
5673 * remote-rdp.c (remote_rdp_open): Ditto.
5674 * remote-mips.c (mips_initialize): Ditto.
5675 (common_open): Ditto.
5676 * remote-e7000.c (e7000_start_remote): Ditto.
5677 * m3-nat.c (select_thread): Ditto.
5678 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5679 (child_get_current_exception_event): Ditto.
5680 * varobj.c (varobj_create): Ditto.
5681 (varobj_update): Ditto.
5682 (c_value_of_root): Ditto.
5683 * tracepoint.c (finish_tfind_command): Ditto.
5684 * corelow.c (core_open): Ditto.
5685 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5686 * thread.c (info_threads_command): Ditto.
5687 (switch_to_thread): Ditto.
5688 * infrun.c (normal_stop): Ditto.
5689 (restore_selected_frame): Ditto.
5690 (restore_inferior_status): Ditto.
5691 * breakpoint.c (insert_breakpoints): Ditto.
5692 (watchpoint_check): Ditto.
5693 (bpstat_stop_status): Ditto.
5694 (do_enable_breakpoint): Ditto.
5695 * blockframe.c (flush_cached_frames): Ditto.
5696 (reinit_frame_cache): Ditto.
5697
5698 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5699
5700 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5701 maintainer.
5702
5703 2002-05-04 Jim Blandy <jimb@redhat.com>
5704
5705 * gdbtypes.c (replace_type): Doc fix.
5706
5707 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5708
5709 * valprint.c (strcat_longest): Delete commented out function.
5710 Update copyright.
5711
5712 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5713
5714 * MAINTAINERS: Mark a29k as deleted.
5715 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5716 Move new configurations to the top.
5717 * configure.tgt: Remove a29k.
5718 * config/a29k/tm-vx29k.h: Delete.
5719 * config/a29k/vx29k.mt: Delete.
5720 * config/a29k/tm-a29k.h: Delete.
5721 * config/a29k/a29k-udi.mt: Delete.
5722 * config/a29k/a29k.mt: Delete.
5723 * a29k-tdep.c: Delete.
5724 * remote-udi.c: Delete.
5725 * remote-mm.c: Delete.
5726 * remote-eb.c: Delete.
5727 * remote-adapt.c: Delete.
5728 * Makefile.in: Remove obsolete code.
5729 * gdbserver/Makefile.in: Ditto.
5730 * config/s390/s390x.mt: Ditto.
5731 * config/s390/s390.mt: Ditto.
5732 * config/sparc/sparclynx.mh: Ditto.
5733 * config/sparc/linux.mh: Ditto.
5734 * config/pa/hppaosf.mh: Ditto.
5735 * config/pa/hppabsd.mh: Ditto.
5736 * config/ns32k/nbsd.mt: Ditto.
5737 * config/mips/vr5000.mt: Ditto.
5738 * config/m68k/sun3os4.mh: Ditto.
5739 * config/m68k/nbsd.mt: Ditto.
5740 * config/m68k/m68klynx.mh: Ditto.
5741 * config/m32r/m32r.mt: Ditto.
5742 * config/i386/x86-64linux.mt: Ditto.
5743 * config/i386/nbsdelf.mt: Ditto.
5744 * config/i386/nbsd.mt: Ditto.
5745 * config/i386/i386lynx.mh: Ditto.
5746
5747 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5748
5749 * target.c (debug_print_register): New function. Handle oversize
5750 registers.
5751 (debug_to_fetch_registers): Call.
5752 (debug_to_store_registers): Call.
5753
5754 2002-05-03 Jim Blandy <jimb@redhat.com>
5755
5756 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5757 (read_type): Doc fix.
5758 * gdbtypes.c (replace_type): Doc fix.
5759
5760 * stabsread.c (multiply_defined_struct): New complaint.
5761 (read_struct_type): If the type we were passed isn't empty, or
5762 incomplete, don't read the new struct type into it; complain,
5763 and return the original type unchanged. Take a new `type_code'
5764 argument, which is the type code for the new type.
5765 (read_type): Rather than storing the type's type code here, pass
5766 it as an argument to read_struct_type, and let that take care of
5767 storing it. That way, we don't overwrite the original type code,
5768 so read_struct_type can use it to decide whether we're overwriting
5769 something we shouldn't.
5770 (complain_about_struct_wipeout): New function.
5771
5772 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5773
5774 * gdbarch.sh: Assert that gdbarch is non-NULL.
5775 * gdbarch.c: Regenerate.
5776
5777 2002-05-03 Jason Merrill <jason@redhat.com>
5778
5779 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5780 and return NULL.
5781
5782 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5783
5784 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5785 (x86_64_dwarf2gdb_regno_map_length),
5786 (x86_64_dwarf2_reg_to_regnum): Added.
5787 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5788 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5789 (_initialize_x86_64_tdep): Synced with the change above.
5790 (x86_64_skip_prologue): Reformulated message.
5791
5792 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5793
5794 * f-exp.y: Also use new prev_lexptr variable
5795 to improve error reporting. Based on Michael Snyder
5796 2002-04-24 dated patch to c-exp.y.
5797 * jv-exp.y: Likewise.
5798 * m2-exp.y: Likewise.
5799
5800 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5801
5802 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5803 we are dealing with vectors.
5804
5805 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5806
5807 * config/m68k/tm-nbsd.h: Obvious fix,
5808 correct machine name.
5809
5810 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5811
5812 * p-typeprint.c (pascal_type_print_base): Add support
5813 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5814
5815 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5816
5817 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5818 for fondamental pascal 'char' type.
5819
5820 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5821
5822 * p-lang.h (is_pascal_string_type): Declaration changed,
5823 new sixth argument of type char ** added.
5824 * p-lang.c (is_pascal_string_type): Implementation
5825 changed. Args length_pos, length_size, string_pos, char_size
5826 can now be NULL. New argument arrayname set to the field
5827 name of the char array. Return value set to char array
5828 field index plus one.
5829 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5830 is_pascal_string_type function.
5831
5832 2002-05-02 Andrew Cagney <cagney@redhat.com>
5833
5834 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5835 <cagney@redhat.com> change.
5836 * gdbarch.c: Regenerate.
5837
5838 2002-05-02 Andrew Cagney <cagney@redhat.com>
5839
5840 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5841 before probing for a new one. Detect errorenous gdbarch_init
5842 functions.
5843 * gdbarch.c: Regenerate.
5844
5845 2002-05-01 Andrew Cagney <cagney@redhat.com>
5846
5847 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5848 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5849 * config/v850/tm-v850.h: Ditto. Update copyright.
5850
5851 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5852
5853 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5854 current_gdbarch.
5855
5856 2002-04-30 Michael Snyder <msnyder@redhat.com>
5857
5858 * arm-tdep.c: Whitespace clean-ups.
5859 (arm_skip_prologue): Fix thinko; two lines
5860 should have been removed as part of 4/24 change.
5861
5862 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5863
5864 * rs6000-tdep.c: Added comment describing how fpscr register
5865 numbers were chosen.
5866
5867 2002-04-30 Michael Snyder <msnyder@redhat.com>
5868
5869 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5870
5871 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5872
5873 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5874 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5875 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5876
5877 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5878
5879 From Louis Hamilton <hamilton@redhat.com>:
5880 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5881 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5882 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5883 not bfd-private xcoff data, to determine wordsize.
5884 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5885
5886 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5887
5888 GDB 5.2 released from 5.2 branch.
5889
5890 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5891
5892 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5893 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5894 (x86_64_register_info_table): Added comments with register numbers.
5895
5896 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5897
5898 * rs6000-tdep.c (rs6000_extract_return_value,
5899 rs6000_store_return_value): Handle returning vectors.
5900 (rs6000_gdbarch_init): Use
5901 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5902 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5903 New function.
5904 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5905 vectors.
5906 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5907 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5908
5909 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5910
5911 * hpread.c (hpread_psymtab_to_symtab_1,
5912 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5913 with fprintf_unfiltered (gdb_stderr,...).
5914
5915 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5916
5917 * remote-array.c (printf_monitor, write_monitor,
5918 array_insert_breakpoint, array_remove_breakpoint ):
5919 Replace fprintf (stderr,...
5920 with fprintf_unfiltered (gdb_stderr,....
5921 * remote-es.c: Likewise.
5922 * remote-os9k.c: Likewise.
5923 * remote-st.c: Likewise.
5924
5925 2002-04-28 Andreas Schwab <schwab@suse.de>
5926
5927 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5928 linux-proc.o and gcore.o.
5929
5930 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5931
5932 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5933 code without frame pointers.
5934
5935 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5936
5937 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5938 ON_STACK is needed.
5939
5940 2002-04-26 Ben Elliston <bje@redhat.com>
5941
5942 * target.c (do_xfer_memory): Correct reference to the new option
5943 "trust-readonly-sections".
5944
5945 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5946
5947 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5948 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5949 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5950 vectors.
5951 (read_array_type): Record the fact that this array type is really a
5952 vector (i.e. are passed in by value).
5953
5954 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5955
5956 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5957 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5958 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5959 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5960 * alpha-linux-tdep.c: Include frame.h.
5961 (alpha_linux_sigcontext_addr): New function.
5962 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5963 alpha_linux_sigcontext_addr.
5964 * alpha-osf1-tdep.c: Include gdbcore.h.
5965 (alpha_osf1_sigcontext_addr): New function.
5966 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5967 alpha_osf1_sigcontext_addr.
5968 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5969 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5970
5971 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5972
5973 * stack.c (selected_frame_level):
5974 (select_frame): Do not set selected_frame_level.
5975 * frame.h (selected_frame_level): Delete declaration.
5976
5977 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5978
5979 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5980 convert_from_func_ptr-addr when AIX / PowerOpen.
5981
5982 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5983
5984 * valops.c (hand_function_call): Call
5985 generic_save_call_dummy_addr.
5986 * frame.h (generic_save_call_dummy_addr): Declare.
5987 * blockframe.c (struct dummy_frame): Add fields call_lo and
5988 call_hi.
5989 (generic_find_dummy_frame): Check for PC in range call_lo to
5990 call_hi instead of entry_point_address.
5991 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5992 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5993 (generic_save_call_dummy_addr): New function.
5994
5995 2002-04-24 David S. Miller <davem@redhat.com>
5996
5997 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5998 sparc_skip_prologue.
5999 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6000 information to find prologue when possible.
6001 (sparc_prologue_frameless_p): Call examine_prologue directly.
6002 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6003 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6004 second argument.
6005 (SKIP_PROLOGUE): Likewise.
6006
6007 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6008
6009 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6010 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6011 indicate that the condition it was testing is always true.
6012 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6013 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6014 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6015
6016 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6017
6018 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6019 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6020 tdep->jb_pc and tdep->jb_elt_size.
6021 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6022 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6023 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6024 * alpha-nat.c (get_longjmp_target): Remove.
6025 (JB_ELEMENT_SIZE): Ditto.
6026 (JB_PC): Ditto.
6027 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6028 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6029 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6030 to alpha_get_longjmp_target.
6031 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6032 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6033 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6034
6035 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6036
6037 * README: Update to GDB 5.2.
6038
6039 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6040
6041 * gdbarch.sh (LC_ALL): Set to `c'.
6042
6043 2002-04-25 Theodore A. Roth <troth@verinet.com>
6044
6045 * avr-tdep.c: Ran through gdb_indent.sh.
6046
6047 2002-04-25 Theodore A. Roth <troth@verinet.com>
6048
6049 * MAINTAINERS: Add myself as AVR maintainer.
6050 * NEWS: Note new target avr.
6051
6052 2002-04-25 Theodore A. Roth <troth@verinet.com>
6053
6054 * Makefile.in: Add support for AVR target.
6055 * configure.tgt: Add support for AVR target.
6056 * avr-tdep.c: New file
6057 * config/avr/avr.mt: New file.
6058
6059 2002-04-25 Theodore A. Roth <troth@verinet.com>
6060
6061 * MAINTAINERS: Add myself to write-after-approval.
6062
6063 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6064
6065 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6066 with fprintf_unfiltered (gdb_stderr,....
6067
6068 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6069
6070 Fix PR gdb/508.
6071 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6072
6073 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6074
6075 * p-exp.y: Also use new prev_lexptr variable
6076 to improve error reporting. Based on Michael Snyder
6077 2002-04-24 dated patch to c-exp.y.
6078
6079 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6080
6081 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6082 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6083 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6084 to 0.
6085 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6086 and struct value.
6087 (FUNCTION_START_OFFSET): Remove.
6088 (BREAKPOINT): Ditto.
6089
6090 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6093 * NEWS: Ditto.
6094
6095 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6096
6097 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6098 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6099 alpha_linux_pc_in_sigtramp.
6100 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6101 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6102 alpha_osf1_pc_in_sigtramp.
6103 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6104 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6105 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6106 alphafbsd_pc_in_sigtramp.
6107 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6108 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6109 alphanbsd_pc_in_sigtramp.
6110 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6111 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6112
6113 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6114
6115 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6116
6117 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6118
6119 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6120 alphanbsd-tdep.c.
6121 (alphanbsd-nat.o): New dependency list.
6122 (alphanbsd-tdep.o): Ditto.
6123 * NEWS: Note new native NetBSD/alpha configuration.
6124 * alphanbsd-nat.c: New file.
6125 * alphanbsd-tdep.c: Ditto.
6126 * configure.host (alpha*-*-netbsd*): New host.
6127 * configure.tgt (alpha*-*-netbsd*): New target.
6128 * config/alpha/nbsd.mh: New file.
6129 * config/alpha/nbsd.mt: Ditto.
6130 * config/alpha/nm-nbsd.h: Ditto.
6131 * config/alpha/tm-nbsd.h: Ditto.
6132
6133 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6134
6135 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6136 (alpha-osf1-tdep.o): New dependency list.
6137 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6138 and skip_sigtramp_frame members.
6139 * alpha-linux-tdep.c: Include gdbcore.h.
6140 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6141 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6142 * alpha-osf1-tdep.c: New file.
6143 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6144 alpha-osf1-dep.c.
6145 (alpha_frame_past_sigtramp_frame): New function.
6146 (alpha_dynamic_sigtramp_offset): Ditto.
6147 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6148 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6149 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6150 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6151 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6152 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6153 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6154 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6155 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6156 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6157 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6158 to find_solib_trampoline_target.
6159 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6160 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6161 (SKIP_TRAMPOLINE_CODE): Remove.
6162 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6163 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6164 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6165 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6166 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6167 (PROC_SIGTRAMP_MAGIC): Ditto.
6168 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6169 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6170 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6171 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6172 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6173
6174 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6175
6176 * NEWS: Note that Alpha targets are now multi-arch.
6177
6178 2002-04-24 Michael Snyder <msnyder@redhat.com>
6179
6180 * parser-defs.h (prev_lexptr): New external variable.
6181 * parse.c (parse_exp_1): Set prev_lexptr to null before
6182 calling the language-specific parser.
6183 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6184 (yyerror): Use prev_lexptr in error reporting.
6185
6186 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6187
6188 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6189 * gregset.h: If FILL_FPXREGSET is defined, provide
6190 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6191 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6192 is defined, call fill_fpxregset.
6193
6194 2002-04-24 Roland McGrath <roland@frob.com>
6195
6196 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6197 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6198 (supply_gregset, supply_fpregset): New functions.
6199
6200 * gnu-nat.c (gnu_find_memory_regions): New function.
6201 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6202 (gnu_xfer_memory): Add a cast.
6203
6204 2002-04-24 Michael Snyder <msnyder@redhat.com>
6205
6206 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6207 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6208 of argument regs ("str r(0123), [r11, #-nn"]).
6209 (arm_skip_prologue): Better handling for frameless functions.
6210 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6211 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6212
6213 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6214
6215 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6216 NUM_PSEUDO_REGS can be used.
6217
6218 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6219
6220 * arch-utils.h: Update copyright.
6221
6222 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6223 * gdbarch.h, gdbarch.c: Re-generate.
6224
6225 * inferior.h (IN_SIGTRAMP): Delete definition.
6226 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6227 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6228
6229 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6230 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6231 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6232 (find_proc_framesize): Ditto.
6233 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6234 (alpha_init_extra_frame_info): Ditto.
6235 * infrun.c (handle_inferior_event): Ditto.
6236 (handle_inferior_event): Ditto.
6237 (check_sigtramp2): Ditto.
6238 * blockframe.c (create_new_frame): Ditto.
6239 (get_prev_frame): Ditto.
6240 * ppc-linux-tdep.c: Update comments.
6241 * i386-linux-tdep.c: Update comments.
6242 * breakpoint.c (bpstat_what): Update comment.
6243
6244 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6245
6246 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6247 (regsets_store_inferior_registers): Removed cast to int from
6248 ptrace() calls.
6249 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6250
6251 2002-04-24 David S. Miller <davem@redhat.com>
6252
6253 * i960-tdep.c (register_in_window_p): New function.
6254 (i960_find_saved_register): Use it instead of
6255 REGISTER_IN_WINDOW_P.
6256 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6257
6258 * symtab.h (find_stab_function_addr): Kill extern.
6259 * minsyms.c (find_stab_function_addr): Remove from here...
6260 * dbxread.c: ... to here, and mark it static.
6261
6262 2002-04-20 David S. Miller <davem@redhat.com>
6263
6264 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6265 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6266
6267 2002-04-21 David S. Miller <davem@redhat.com>
6268
6269 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6270 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6271 (vx_write_register): Likewise.
6272
6273 2002-04-23 J. Brobecker <brobecker@gnat.com>
6274
6275 * source.c (is_regular_file): New function.
6276 (openp): Check wether file to open is a regular file
6277 to avoid opening directories.
6278
6279 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * findvar.c (extract_signed_integer): Cast printf argument
6282 to suppress format warning.
6283 (extract_unsigned_integer): Likewise.
6284 * infcmd.c (registers_info): Likewise.
6285 * top.c (get_prompt_1): Likewise.
6286 * valops.c (value_assign): Likewise.
6287 * valprint.c (print_decimal): Likewise.
6288
6289 2002-04-22 H.J. Lu (hjl@gnu.org)
6290
6291 * c-exp.y (typebase): Support
6292
6293 [long|long long|short] [signed|unsigned] [int|]
6294
6295 and
6296
6297 signed [long|long long|short] int
6298
6299 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6300
6301 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6302 and vax-tdep.h.
6303 * vax-tdep.h: New file.
6304 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6305 Make several routines static.
6306 (vax_get_saved_register): New function.
6307 (vax_gdbarch_init): New function.
6308 (_initialize_vax_tdep): Register vax_gdbarch_init.
6309 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6310 Remove macros now under the control of gdbarch.
6311
6312 2002-04-22 Michael Snyder <msnyder@redhat.com>
6313
6314 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6315 Some whitespace and coding standards tweaks.
6316
6317 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6318
6319 * vax-tdep.c: Include regcache.h.
6320 (vax_call_dummy_words): New.
6321 (sizeof_vax_call_dummy_words): New.
6322 (vax_fix_call_dummy): New function.
6323 (vax_saved_pc_after_call): Ditto.
6324 * config/vax/tm-vax.h: Don't include regcache.h.
6325 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6326 (CALL_DUMMY): Remove.
6327 (CALL_DUMMY_WORDS): Define.
6328 (SIZEOF_CALL_DUMMY_WORDS): Define.
6329 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6330
6331 2002-04-18 Michael Snyder <msnyder@redhat.com>
6332
6333 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6334
6335 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6336
6337 * vax-tdep.c (vax_frame_chain): New function.
6338 (vax_push_dummy_frame): Ditto.
6339 (vax_pop_frame): Ditto.
6340 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6341 (FRAMELESS_FUNCTION_INVOCATION): Use
6342 generic_frameless_function_invocation_not.
6343 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6344 (POP_FRAME): Use vax_pop_frame.
6345
6346 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6347
6348 * vax-tdep.c (vax_store_struct_return): New function.
6349 (vax_extract_return_value): Ditto.
6350 (vax_store_return_value): Ditto.
6351 (vax_extract_struct_value_address): Ditto.
6352 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6353 vax_store_struct_return.
6354 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6355 (STORE_RETURN_VALUE): Use vax_store_return_value.
6356 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6357
6358 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6359
6360 * vax-tdep.c (vax_frame_saved_pc): New function.
6361 (vax_frame_args_address_correct): Ditto.
6362 (vax_frame_args_address): Ditto.
6363 (vax_frame_locals_address): Ditto.
6364 (vax_frame_num_args): Move code to be in proximity to
6365 other frame-related functions.
6366 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6367 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6368 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6369 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6370 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6371
6372 2002-04-22 H.J. Lu (hjl@gnu.org)
6373
6374 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6375 includedir.
6376
6377 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6378
6379 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6380 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6381 (FRAME_INIT_SAVED_REGS): New macro.
6382
6383 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6384
6385 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6386
6387 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6390 where needed.
6391 (fetch_osf_core_registers): Likewise.
6392 (supply_gregset): Likewise.
6393
6394 2002-04-22 J. Brobecker <brobecker@gnat.com>
6395
6396 * symfile.h (get_section_index): Define.
6397 * symfile.c (get_section_index): New function.
6398 * mdebugread.c (SC_IS_SBSS): New macro.
6399 (SC_IS_BSS): Return true for the scBss storage class only, as
6400 the scSBss storage class refers to the .sbss section.
6401 (parse_partial_symbols): Discard the symbols which associated
6402 section does not exist.
6403 Make sure to use the .sbss section index for symbols which
6404 storage class is scBss, rather than using the .bss section index.
6405
6406 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6407
6408 * vax-tdep.c: Update copyright years.
6409 (vax_register_name): New function.
6410 (vax_register_byte): Ditto.
6411 (vax_register_raw_size): Ditto.
6412 (vax_register_virtual_size): Ditto.
6413 (vax_register_virtual_type): Ditto.
6414 * config/vax/tm-vax.h: Update copyright years.
6415 (REGISTER_NAMES): Remove.
6416 (REGISTER_NAME): Define.
6417 (REGISTER_BYTE): Use vax_register_byte.
6418 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6419 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6420 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6421
6422 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6423
6424 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6425 declaration
6426 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6427
6428 2002-04-21 David S. Miller <davem@redhat.com>
6429
6430 * arch-utils.c (generic_prologue_frameless_p): Kill
6431 SKIP_PROLOGUE_FRAMELESS_P code.
6432 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6433 references.
6434 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6435 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6436 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6437 references.
6438 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6439 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6440 (sparc_gdbarch_init): Pass it to
6441 set_gdbarch_prologue_frameless_p.
6442
6443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6444
6445 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6446 (alphabsd-nat.o): New dependency list.
6447
6448 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6451 alphafbsd-tdep.c.
6452 (alpha-linux-tdep.o): New dependency list.
6453 (alphafbsd-tdep.o): Likewise.
6454
6455 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6458 to here...
6459 * alpha-tdep.c: ...from here.
6460 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6461
6462 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6463
6464 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6465 prototype from here...
6466 * alpha-tdep.h: ...to here.
6467
6468 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6469
6470 * frame.h (selected_frame_level): Document as deprecated.
6471 (frame_relative_level): Declare.
6472 * stack.c (frame_relative_level): New function.
6473 (selected_frame_level): Document as deprecated.
6474 (select_frame): Do not set the selected_frame_level.
6475
6476 * stack.c (frame_info, record_selected_frame): Update.
6477 (frame_command, current_frame_command): Update.
6478 (up_silently_base, up_command, down_silently_base): Update.
6479 (down_command): Update.
6480 * inflow.c (kill_command): Update.
6481 * tracepoint.c (finish_tfind_command): Update.
6482 * corelow.c (core_open): Update.
6483 * thread.c (info_threads_command): Update.
6484 (do_captured_thread_select): Update.
6485 * infcmd.c (finish_command): Update.
6486 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6487
6488 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6491
6492 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6493
6494 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6495 type const.
6496
6497 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6498
6499 * alphafbsd-tdep.c: Update copyright years. Include
6500 alpha-tdep.h.
6501 (alphafbsd_use_struct_convention): Make static.
6502 (alphafbsd_init_abi): New function.
6503 (_initialize_alphafbsd_tdep): New function.
6504 * config/alpha/tm-fbsd.h: Update copyright years.
6505 (USE_STRUCT_CONVENTION): Remove.
6506
6507 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6508
6509 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6510 an Alpha ABI variant.
6511 (alpha_abi_handler_list): Declare.
6512 (alpha_gdbarch_register_os_abi): New function.
6513 (alpha_gdbarch_init): Give registered ABI variant handlers a
6514 chance to tweak the gdbarch once we have set up defaults.
6515 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6516
6517 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6518
6519 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6520 to standard_coerce_float_to_double.
6521 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6522
6523 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6524
6525 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6526 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6527 from gdbarch_tdep rather than a constant.
6528 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6529 the default text address for all Alpha Unix ABIs.
6530 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6531 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6532
6533 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 * alpha-tdep.h: New file. Includes several Alpha target constants
6536 taken from...
6537 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6538 let gdbarch deal with.
6539 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6540 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6541 to dependency list.
6542 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6543 Alpha target register names.
6544 * alphabsd-nat.c: Likewise.
6545 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6546 Alpha target register names. Make serveral routines static.
6547 (alpha_get_saved_register): New function.
6548 (alpha_abi_names): New.
6549 (process_note_abi_tag_sections): New function.
6550 (get_elfosabi): New function.
6551 (alpha_gdbarch_init): New function.
6552 (alpha_dump_tdep): New function.
6553 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6554
6555 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6556
6557 * frame.c (find_saved_register): Delete #ifdef
6558 HAVE_REGISTER_WINDOWS code.
6559 * config/sparc/tm-sparc.h: Update comments.
6560 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6561
6562 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6563
6564 * i960-tdep.c (i960_find_saved_register): New function.
6565 (i960_get_saved_register): New function.
6566 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6567 (i960_get_saved_register): Declare.
6568 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6569
6570 2002-04-20 David S. Miller <davem@redhat.com>
6571
6572 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6573
6574 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6575
6576 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6577 instead of NUM_PSEUDO_REGS.
6578
6579 2002-04-20 David S. Miller <davem@redhat.com>
6580
6581 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6582 GDB_MULTI_ARCH_PARTIAL
6583 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6584 define, let tm-sp64.h do it.
6585
6586 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * frame.c (find_saved_register): Avoid a NULL pointer
6589 dereference and actually walk the frame list.
6590
6591 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6592
6593 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6594 sorted in most most-recent-used order. Document.
6595 * gdbarch.h, gdbarch.c: Regenerate.
6596
6597 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6600 (add_inferior): Call create_register_cache.
6601 (clear_inferiors): Call free_register_cache.
6602 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6603 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6604 (registers): Remove.
6605 (get_regcache): New function.
6606 (create_register_cache, free_register_cache): New functions.
6607 (set_register_cache): Don't initialize the register cache here.
6608 (registers_to_string, registers_from_string, register_data): Call
6609 get_regcache.
6610 * gdbserver/regcache.h: Add prototypes.
6611 * gdbserver/server.h: Likewise.
6612
6613 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * gdbserver/mem-break.c: New file.
6616 * gdbserver/mem-break.h: New file.
6617 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6618 dependencies.
6619 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6620 member.
6621 (clear_inferiors): Free target_data member if set.
6622 (inferior_target_data, set_inferior_target_data): New functions.
6623 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6624 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6625 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6626 (struct inferior_linux_data): New.
6627 (linux_create_inferior): Use set_inferior_target_data.
6628 (linux_attach): Likewise. Call add_inferior.
6629 (linux_wait_for_one_inferior): New function.
6630 (linux_wait): Call it.
6631 (linux_write_memory): Add const.
6632 (initialize_low): Call set_breakpoint_data.
6633 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6634 handling members.
6635 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6636 call.
6637 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6638 prototypes.
6639 * gdbserver/target.c (read_inferior_memory)
6640 (write_inferior_memory): New functions.
6641 * gdbserver/target.h (read_inferior_memory)
6642 (write_inferior_memory): Change macros to prototypes.
6643 (struct target_ops): Update comments. Add const to write_memory
6644 definition.
6645
6646 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6647
6648 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6649 instead of ->prev.
6650 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6651 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6652 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6653 instead of ->prev.
6654
6655 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6656
6657 Fix PR gdb/471.
6658 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6659 (build_builtin_type_vec128): Ditto.
6660 (append_composite_type_field): Fix calculation of type length in
6661 union case.
6662
6663 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6664
6665 * config/djgpp/README: Update.
6666
6667 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6668 compiler warnings.
6669
6670 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6671
6672 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6673 (alpha_setup_arbitrary_frame): ...to this.
6674 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6675 for alpha_setup_arbitrary_frame.
6676
6677 2002-04-18 Andrew Cagney <cagney@redhat.com>
6678
6679 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681
6682 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6683 * target.h (memory_breakpoint_from_pc): Update declaration.
6684 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6685
6686 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6687 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6688 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6689 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6690 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6691 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6692 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6693 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6694 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6695 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6696 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6697 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6698
6699 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6700 const pointer.
6701 * monitor.c (monitor_insert_breakpoint): Ditto.
6702 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6703
6704 * config/mcore/tm-mcore.h: Update copyright.
6705 * mem-break.c: Ditto.
6706 * xstormy16-tdep.c: Ditto.
6707
6708 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6709
6710 * p-exp.y: Add precedence rule for '^' token.
6711 This removes the shift/reduce conflicts.
6712 Remove the comment concerning these shift/reduce conflicts.
6713
6714 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6715
6716 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6717 (registers_powerpc_nofp): New register set for processors
6718 without floating point unit.
6719
6720 2002-04-18 David S. Miller <davem@redhat.com>
6721
6722 * MAINTAINERS: Add myself to write-after-approval.
6723
6724 2002-04-17 Michael Snyder <msnyder@redhat.com>
6725
6726 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6727
6728 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6729
6730 * rs6000-tdep.c (frame_initial_stack_address): Use
6731 frame_register_read to read the alloca_reg.
6732
6733 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6734
6735 * frame.c (find_saved_register): Find saved registers in the next
6736 not prev frame.
6737 Fix PR gdb/365.
6738
6739 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6740
6741 * gdbarch.sh (LANG): Set to ``c''.
6742
6743 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6744
6745 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6746
6747 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6748
6749 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6750 Update copyright.
6751
6752 * hpread.c (hpread_get_lntt): Add declaration.
6753 Also fix PR gdb/391.
6754
6755 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6756
6757 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6758 * aclocal.m4, configure: Re-generate.
6759 Fix PR gdb/391.
6760
6761 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6762
6763 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6764 instead of tm_print_insn.
6765
6766 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6767
6768 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6769
6770 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6771
6772 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6773 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6774 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6775
6776 2002-04-12 Don Howard <dhoward@redhat.com>
6777
6778 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6779 max_user_call_depth.
6780 (init_cmd_lists): Initialize the new value;
6781 * cli/cli-script.c (execute_user_command): Limit the call depth of
6782 user defined commands. This avoids a core-dump when user commands
6783 are infinitly recursive.
6784
6785 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6786
6787 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6788 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6789 from tdep struct instead of DEFAULT_LR_SAVE.
6790 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6791 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6792 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6793
6794 2002-04-12 Michael Snyder <msnyder@redhat.com>
6795
6796 * Remote.c: Spelling fix.
6797 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6798 If no symbol found for "sbrk", try "_sbrk".
6799 (make_output_phdrs): Use bfd_section_name.
6800 (gcore_copy_callback): Use bfd_section_name.
6801 * eval.c: Indentation fix-ups.
6802 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6803 in case it gets applied to an address that is already
6804 in the instruction space.
6805 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6806 * symfile.c: Fix indentation, long lines.
6807 * source.c: White space fix-up.
6808
6809 2002-04-12 Andrew Cagney <cagney@redhat.com>
6810
6811 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6812 * frame.c (frame_register_read): New function. Return non-zero on
6813 success.
6814 (read_relative_register_raw_bytes_for_frame): Delete.
6815 (read_relative_register_raw_bytes): Delete.
6816 * frame.h (frame_register_read): Declare.
6817 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6818 * sh-tdep.c: Ditto.
6819 * infcmd.c (do_registers_info): Ditto.
6820 * hppa-tdep.c: Ditto.
6821 * rs6000-tdep.c: Ditto.
6822 * h8500-tdep.c: Ditto.
6823 * mips-tdep.c: Ditto.
6824 * h8300-tdep.c: Ditto.
6825 * z8k-tdep.c: Ditto.
6826
6827 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6828
6829 From Jimi X <jimix@watson.ibm.com>:
6830 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6831 64-bit SysV ABI.
6832
6833 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6834
6835 From Jimi X <jimix@watson.ibm.com>:
6836 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6837 bfd info.
6838
6839 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6840
6841 From Jimi X <jimix@watson.ibm.com>:
6842 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6843 register sets for these processor variants.
6844
6845 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6846
6847 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6848 registers which are allowed to fail to store.
6849 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6850 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6851 (ppc_cannot_store_register): FPSCR may not be storable.
6852 * regformats/reg-ppc.dat: Support FPSCR.
6853
6854 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6855
6856 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6857 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6858 Add fpscr as an invalid/unfetchable register.
6859 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6860 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6861 (fill_fpregset): Add support for register fpscr.
6862 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6863 (fill_gregset): Account for the fact that register ``mq'' might
6864 not exist.
6865 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6866 (registers_power): Add fpscr to register set at slot 71.
6867 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6868 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6869
6870 2002-04-11 Michael Snyder <msnyder@redhat.com>
6871
6872 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6873 * configure: Regenerate.
6874 * config.in: Regenerate.
6875 * acconfig.h: Add define for _SYSCALL32.
6876 * core-sol2.c: Remove #define _SYSCALL32.
6877 * solib-legacy.c: Remove #define _SYSCALL32.
6878
6879 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6880
6881 * stack.c (select_frame): Cleanup internal error message, do not
6882 use %p.
6883
6884 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6885
6886 * stack.c (select_frame): Check that selected_frame and the
6887 specified level are as expected.
6888 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6889 Update copyright.
6890 * frame.h (struct frame_info): Add field `level'. Update
6891 copyright.
6892 Work-in-progress PR gdb/464.
6893
6894 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6895
6896 * maint.c (maint_print_section_info): Rename print_section_info.
6897 (print_bfd_section_info, print_objfile_section_info): Update.
6898 * inferior.h (struct gdbarch): Add opaque declaration.
6899 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6900 * gdbarch.h: Regenerate.
6901
6902 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6903
6904 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6905 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6906 (kernel_u_size): Added.
6907 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6908 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6909
6910 2002-04-04 Jim Ingham <jingham@apple.com>
6911
6912 * valarith.c (find_size_for_pointer_math): New function, either returns
6913 the size for a pointer's target, returns 1 for void *, or errors for
6914 incomplete types.
6915 (value_add, value_sub): use find_size_for_pointer_math.
6916
6917 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6918
6919 * linux-low.c (linux_look_up_symbols): New hook.
6920 (linux_target_ops): Add linux_look_up_symbols.
6921 * remote-utils.c (decode_address): New function.
6922 (look_up_one_symbol): New function.
6923 * server.c (handle_query): Call target look_up_symbols hook.
6924 * server.h (look_up_one_symbol): Add prototype.
6925 * target.h (struct target_ops): Add look_up_symbols hook.
6926
6927 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6928
6929 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6930 * ChangeLog: Correct paths in last ChangeLog entry.
6931
6932 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6933
6934 * gdbserver/linux-low.h: Remove obsolete prototypes.
6935 (struct linux_target_ops): New.
6936 (extern the_low_target): New.
6937 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6938 (register_addr): Use the_low_target explicitly.
6939 (fetch_register): Likewise.
6940 (usr_fetch_inferior_registers): Likewise.
6941 (usr_store_inferior_registers): Likewise.
6942 * gdbserver/linux-arm-low.c (num_regs): Remove.
6943 (arm_num_regs): Define.
6944 (arm_regmap): Renamed from regmap, made static.
6945 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6946 made static.
6947 (arm_cannot_store_register): Renamed from cannot_store_register,
6948 made static.
6949 (the_low_target): New.
6950 * gdbserver/linux-i386-low.c (num_regs): Remove.
6951 (i386_num_regs): Define.
6952 (i386_regmap): Renamed from regmap, made static.
6953 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6954 made static.
6955 (i386_cannot_store_register): Renamed from cannot_store_register,
6956 made static.
6957 (the_low_target): New.
6958 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6959 (ia64_num_regs): Define.
6960 (ia64_regmap): Renamed from regmap, made static.
6961 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6962 made static.
6963 (ia64_cannot_store_register): Renamed from cannot_store_register,
6964 made static.
6965 (the_low_target): New.
6966 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6967 (m68k_num_regs): Define.
6968 (m68k_regmap): Renamed from regmap, made static.
6969 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6970 made static.
6971 (m68k_cannot_store_register): Renamed from cannot_store_register,
6972 made static.
6973 (the_low_target): New.
6974 * gdbserver/linux-mips-low.c (num_regs): Remove.
6975 (mips_num_regs): Define.
6976 (mips_regmap): Renamed from regmap, made static.
6977 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6978 made static.
6979 (mips_cannot_store_register): Renamed from cannot_store_register,
6980 made static.
6981 (the_low_target): New.
6982 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6983 (ppc_num_regs): Define.
6984 (ppc_regmap): Renamed from regmap, made static.
6985 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6986 made static.
6987 (ppc_cannot_store_register): Renamed from cannot_store_register,
6988 made static.
6989 (the_low_target): New.
6990 * gdbserver/linux-s390-low.c (num_regs): Remove.
6991 (s390_num_regs): Define.
6992 (s390_regmap): Renamed from regmap, made static.
6993 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6994 made static.
6995 (s390_cannot_store_register): Renamed from cannot_store_register,
6996 made static.
6997 (the_low_target): New.
6998 * gdbserver/linux-sh-low.c (num_regs): Remove.
6999 (sh_num_regs): Define.
7000 (sh_regmap): Renamed from regmap, made static.
7001 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
7002 made static.
7003 (sh_cannot_store_register): Renamed from cannot_store_register,
7004 made static.
7005 (the_low_target): New.
7006 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
7007 (the_low_target): New.
7008
7009 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7010
7011 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7012 override FP_REGNUM with frame->fp. Update copyright.
7013 * parse.c (num_std_regs, std_regs): Delete.
7014 (target_map_name_to_register): Do not search std_regs. Update
7015 function description.
7016 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7017 declarations. Update copyright.
7018 Fix PR gdb/251.
7019
7020 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7021
7022 * gdbserver/Makefile.in: Add stamp-h target.
7023 * gdbserver/configure.in: Create stamp-h.
7024 * gdbserver/configure: Regenerated.
7025
7026 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7027
7028 * gdbserver/inferiors.c: New file.
7029 * gdbserver/target.c: New file.
7030 * gdbserver/target.h: New file.
7031 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
7032 dependencies.
7033 * gdbserver/linux-low.c (inferior_pid): New static variable,
7034 moved from server.c.
7035 (linux_create_inferior): Renamed from create_inferior.
7036 Call add_inferior. Return 0 on success instead of a PID.
7037 (linux_attach): Renamed from myattach.
7038 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
7039 (linux_thread_alive): Renamed from mythread_alive.
7040 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
7041 child dies.
7042 (linux_resume): Renamed from myresume. Add missing ``return 0''.
7043 (regsets_store_inferior_registers): Correct error message.
7044 Add missing ``return 0''.
7045 (linux_fetch_registers): Renamed from fetch_inferior_registers.
7046 (linux_store_registers): Renamed from store_inferior_registers.
7047 (linux_read_memory): Renamed from read_inferior_memory.
7048 (linux_write_memory): Renamed from write_inferior_memory.
7049 (linux_target_ops): New structure.
7050 (initialize_low): Call set_target_ops ().
7051 * gdbserver/remote-utils.c (unhexify): New function.
7052 (hexify): New function.
7053 (input_interrupt): Send signals to ``signal_pid''.
7054 * gdbserver/server.c (inferior_pid): Remove.
7055 (start_inferior): Update create_inferior call.
7056 (attach_inferior): Call add_inferior.
7057 (handle_query): New function.
7058 (main): Call handle_query for `q' packets.
7059 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
7060 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
7061
7062 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
7065 dependencies.
7066 * gdbserver/configure.in: Check for <string.h>
7067 * gdbserver/configure: Regenerate.
7068 * gdbserver/config.in: Regenerate.
7069 * gdbserver/gdbreplay.c: Include needed system headers.
7070 (remote_open): Remove strchr prototype.
7071 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
7072 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
7073 (supply_register_by_name): Likewise.
7074 (collect_register): Change buf argument to void *.
7075 (collect_register_by_name): Likewise.
7076 * gdbserver/regcache.h: Add missing prototypes.
7077 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
7078 * gdbserver/server.c (handle_query): New function.
7079 (attached): New static variable, moved out of main.
7080 (main): Quiet longjmp clobber warnings.
7081 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
7082 * gdbserver/utils.c (error): Remove NORETURN.
7083 (fatal): Likewise.
7084
7085 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7086
7087 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7088 after the last symbol in a block.
7089
7090 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7091
7092 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7093 is non zero as a found symbol.
7094
7095 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7096
7097 * findvar.c: Include "builtin-regs.h".
7098 (value_of_register): Call value_of_builtin_reg when applicable.
7099 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7100 (target_map_name_to_register): Call
7101 builtin_reg_map_name_to_regnum.
7102 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7103 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7104 (builtin_regs_h): Define.
7105 (builtin-regs.o): New target.
7106 (findvar.o): Add $(builtin_regs_h).
7107 * builtin-regs.c, builtin-regs.h: New files.
7108 * std-regs.c: New file.
7109 Partial fix for PR gdb/251.
7110
7111 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7112
7113 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7114 it's no longer required.
7115
7116 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7117
7118 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7119
7120 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7121
7122 From Jimi X <jimix@watson.ibm.com>:
7123 * rs6000-tdep.c (rs6000_software_single_step): Use
7124 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7125 and size. Use target_insert_breakpoint() and
7126 target_remove_breakpoint() to insert and remove breakpoints
7127 instead of explicit memory reads and writes.
7128
7129 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7130
7131 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7132 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7133 ELF_OBJECT_FORMAT ifdef.
7134
7135 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7136
7137 From Jimi X <jimix@watson.ibm.com>:
7138 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7139
7140 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7141
7142 From Jimi X <jimix@watson.ibm.com>:
7143 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7144 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7145
7146 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7147
7148 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7149 s/asprintf/xasprintf/.
7150 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7151
7152 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7153
7154 I believe Jeff Law denies responsability for this one:
7155 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7156 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7157 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7158 Work-around for PR gdb/366.
7159
7160 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7161
7162 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7163 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7164 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7165
7166 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7167
7168 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7169 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7170 information.
7171
7172 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7173
7174 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7175 maintainer.
7176
7177 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7178
7179 * README (Reporting Bugs in GDB): Document the bug web page as the
7180 prefered way of submitting bugs.
7181 Fix PR gdb/402.
7182
7183 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7184
7185 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7186 -1. Update comment.
7187 * gdbarch.h, gdbarch.c: Re-generate.
7188
7189 2002-04-07 Andreas Schwab <schwab@suse.de>
7190
7191 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7192 buffer to regcache_collect.
7193
7194 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7195
7196 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7197 * gdbarch.c, gdbarch.h: Re-generate.
7198
7199 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7200
7201 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7202 declaration. Fix -Werror.
7203
7204 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7205
7206 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7207 * gdbarch.c: Regenerate.
7208
7209 2002-04-05 Michael Snyder <msnyder@redhat.com>
7210
7211 * breakpoint.c (clear_command): Rewrite middle section to
7212 combine two loops with identical control conditions.
7213 Add a cleanup to eliminate a memory leak.
7214 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7215
7216 2002-04-05 H.J. Lu (hjl@gnu.org)
7217
7218 * solib-svr4.c (bkpt_names): Add "__start".
7219
7220 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7221
7222 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7223 as test for 64 bit target.
7224
7225 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7226
7227 * h8500-tdep.c (h8500_write_fp): Delete function.
7228 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7229 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7230 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7232 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7233 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7234 (s390_write_fp):
7235 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7236 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7237 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7238 (d10v_write_fp): Delete function.
7239 * inferior.h (write_fp, generic_target_write_fp): Delete
7240 declarations.
7241 * regcache.c (generic_target_write_fp): Delete function.
7242 (write_fp): Delete function.
7243 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7244 * gdbarch.h, gdbarch.c: Regenerate.
7245 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7246 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7247 (sparc64_write_fp): Delete declaration.
7248 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7249 (h8500_write_fp): Delete declaration.
7250
7251 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7252
7253 * sparc-tdep.c (sparc64_write_fp): Delete.
7254 (sparc_push_dummy_frame): Replace write_fp call with code to store
7255 the FP directly.
7256 (sparc_gdbarch_init): Do not initialize write_fp.
7257
7258 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7259
7260 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7261 clause.
7262
7263 2002-03-29 Jim Blandy <jimb@redhat.com>
7264
7265 * stack.c (get_selected_block): Add new argument `addr_in_block',
7266 used to return the exact code address we used to select the block,
7267 not just the block.
7268 * blockframe.c (get_frame_block, get_current_block): Same.
7269 * frame.h (get_frame_block, get_current_block,
7270 get_selected_block): Update declarations.
7271 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7272 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7273
7274 2002-04-05 Michael Snyder <msnyder@redhat.com>
7275
7276 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7277 warning message.
7278
7279 2002-04-05 J. Brobecker <brobecker@gnat.com>
7280
7281 * utils.c (xfullpath): New function.
7282 * defs.h (xfullpath): Add declaration.
7283 * source.c (openp): Use xfullpath in place of gdb_realpath to
7284 avoid resolving the basename part of filenames when the
7285 associated file is a symbolic link. This fixes a potential
7286 inconsistency between the filenames known to GDB and the
7287 filenames it prints in the annotations.
7288 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7289 to be able to match a filename with either the real filename, or
7290 the name of any symbolic link to this file.
7291 (lookup_partial_symtab): Ditto.
7292
7293 2002-04-04 Michael Snyder <msnyder@redhat.com>
7294
7295 * breakpoint.c: Add support for hardware breakpoints in overlays.
7296 (overlay_events_enabled): New state variable.
7297 (insert_breakpoints): Use overlay_events_enabled to decide
7298 whether to attempt to set a breakpoint at the overlay load addr.
7299 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7300 (remove_breakpoint): Use overlay_events_enabled to decide
7301 whether breakpoints need to be removed from overlay load addr.
7302 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7303 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7304 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7305 disable_overlay_breakpoints): Update overlay_events_enabled.
7306
7307 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7308
7309 * dwarf2read.c (struct function_range): New.
7310 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7311 (check_cu_functions): New.
7312 (read_file_scope): Initialize global function lists.
7313 Call dwarf_decode_line after processing children.
7314 (read_func_scope): Add to global function list.
7315 (dwarf_decode_lines): Call check_cu_functions everywhere
7316 record_line is called. Call record_line with a linenumber
7317 of 0 to mark sequence ends.
7318
7319 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7320
7321 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7322 change sync with glibc.
7323
7324 2002-04-03 Jim Blandy <jimb@redhat.com>
7325
7326 * configure.in: Call AC_C_INLINE.
7327 * configure: Regenerated.
7328
7329 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7330
7331 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7332 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7333
7334 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7335
7336 * NEWS: Mention gcore support on FreeBSD/i386.
7337
7338 * fbsd-proc.c: New file.
7339 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7340 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7341
7342 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7343 while statement.
7344
7345 2002-03-29 Jim Blandy <jimb@redhat.com>
7346
7347 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7348 unescaped newlines in string literals, but newer ones don't. So
7349 escape them.
7350
7351 2002-03-26 Michael Snyder <msnyder@redhat.com>
7352 Andrew Cagney <cagney@redhat.com>
7353
7354 * cli/cli-dump.c: New file. Dump memory to file,
7355 restore file to memory.
7356 * cli/cli-dump.h: New file.
7357 * Makefile.in: Add rules, dependencies for cli-dump.o.
7358 * NEWS: Mention new commands.
7359
7360 2002-03-28 Michael Snyder <msnyder@redhat.com>
7361
7362 * symfile.c (symbol_file_add): Move test for null symbols to later.
7363
7364 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7365
7366 From veksler at il.ibm.com:
7367 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7368 the xstrduped original path.
7369 Fix PR gdb/417.
7370
7371 2002-03-27 Michael Snyder <msnyder@redhat.com>
7372
7373 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7374 * infcmd.c (_initialize_infcmd): Ditto.
7375 * language.c (_initialize_language): Ditto.
7376 * symfile.c (_initialize_symfile): Ditto.
7377 * top.c (_init_main): Ditto.
7378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7379
7380 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7381
7382 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7383 vector registers handling.
7384 (skip_prologue): Handle new AltiVec instructions. Fill in new
7385 fields of frame data.
7386 (frame_get_saved_regs): Fill in information for AltiVec registers.
7387
7388 2002-03-27 Jim Blandy <jimb@redhat.com>
7389
7390 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7391 a function; leave this macro here to invoke that function.
7392 (symbol_init_mangled_name): Declaration for that function.
7393 * symtab.c (symbol_init_mangled_name): New function.
7394
7395 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7396
7397 * valarith.c: Replace strerror with safe_strerror.
7398 * tracepoint.c: Ditto.
7399 * lin-lwp.c: Ditto.
7400 * go32-nat.c: Ditto.
7401 * inflow.c: Ditto.
7402 * gnu-nat.c: Ditto.
7403
7404 2002-03-27 Andreas Schwab <schwab@suse.de>
7405
7406 * event-top.c (command_line_handler): Remove useless if.
7407
7408 2002-03-27 Andreas Jaeger <aj@suse.de>
7409
7410 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7411 comment.
7412
7413 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7414
7415 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7416 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7417 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7418 (x86_64_linux_dr_get_status, supply_gregset),
7419 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7420 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7421 (x86_64_register_info_table): Add.
7422 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7423 (x86_64_register_raw_size, x86_64_register_virtual_type),
7424 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7425 general x86_64_register_info_table.
7426 (i386_gdbarch_init): gdbarch_register_bytes is now set
7427 dynamicaly during initialization.
7428 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7429 * gdbserver/linux-x86-64-low.c: Ditto.
7430
7431 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7432
7433 * gdbserver/server.c (main): Call target_signal_to_host_p
7434 and target_signal_to_host on signals received from the remote.
7435 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7436 target_signal_from_host on signals sent to the remote.
7437 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7438 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7439
7440 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7441
7442 * signals/signals.c: Include "server.h" in gdbserver build.
7443 (target_signal_from_name): Don't use STREQ.
7444 (_initialize_signals): Likewise. Don't include function in
7445 gdbserver build.
7446
7447 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7448
7449 * signals.c: Moved to...
7450 * signals/signals.c: Here.
7451 * Makefile (signals.o): Update.
7452
7453 2002-03-26 Jeff Law (law@redhat.com)
7454
7455 * somread.c (som_symtab_read): Remove some commented out code and
7456 updated related comments. Do not set the minimal symbol table to
7457 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7458 in a dynamic executable.
7459 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7460 where we are unable to find the minimal symbol for the given
7461 PC value.
7462
7463 2002-03-25 Jeff Law (law@redhat.com)
7464
7465 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7466
7467 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7468
7469 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7470
7471 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7472
7473 * command.h: Update copyright.
7474 (struct cmd_list_element): Replace definition with opaque
7475 declaration.
7476 (enum cmd_types): Document that it will eventually be moved to
7477 cli/cli-decode.h
7478 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7479 (MALLOCED_REPLACEMENT): Delete macro.
7480 * Makefile.in (cli_decode_h): Add $(command_h).
7481 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7482 * top.c: Include "cli/cli-decode.h".
7483 * completer.c: Include "cli/cli-decode.h".
7484 * maint.c: Include "cli/cli-decode.h".
7485 * cli/cli-decode.h: Include "command.h".
7486 (enum command_class): Delete.
7487 (enum cmd_types): Comment out.
7488 (enum cmd_auto_boolean): Delete.
7489 (enum var_types): Delete.
7490
7491 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7492
7493 * cli/cli-decode.c: Include "gdb_assert.h".
7494 (add_set_or_show_cmd): New static function.
7495 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7496 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7497 all fields, such as func, from the set command.
7498
7499 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7500
7501 * MAINTAINERS (sh-elf): Change warning flag to -w.
7502
7503 2002-03-23 Andrew Cagney <cagney@redhat.com>
7504
7505 * defs.h (error): Add printf format attribute.
7506 * thread-db.c (thread_from_lwp): Fix error format string.
7507 * stack.c (parse_frame_specification): Ditto.
7508 * cli/cli-decode.c (undef_cmd_error): Ditto.
7509 * scm-lang.c (scm_lookup_name): Ditto.
7510 * tracepoint.c (trace_error): Ditto.
7511 * remote-utils.c (usage): Ditto.
7512 * remote.c (compare_sections_command): Ditto.
7513 Fix PR gdb/328.
7514
7515 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7516
7517 * gdbtypes.c (append_composite_type_field): New function.
7518 (init_composite_type): New function.
7519 * gdbtypes.h (append_composite_type_field): Declare.
7520 (init_composite_type): Ditto.
7521
7522 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7523
7524 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7525 function.
7526 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7527 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7528 structure returning convention for SYSV ABI case, but not
7529 for GNU/Linux, FreeBSD, or NetBSD.
7530
7531 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7532
7533 * symtab.h (lookup_block_symbol): Add mangled_name argument
7534 to prototype.
7535
7536 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7537 with new mangled_name argument.
7538 * linespec.c (decode_line_1): Likewise.
7539 * valops (value_of_this): Likewise.
7540 * symtab.c (lookup_transparent_type): Likewise.
7541 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7542 (lookup_symbol): If we are given a mangled name, pass it down
7543 to lookup_symbol_aux.
7544 (lookup_block_symbol): If we are given a mangled name to check
7545 against, only return symbols which match it.
7546
7547 2002-03-22 Christopher Faylor <cgf@redhat.com>
7548
7549 * win32-nat.c (child_create_inferior): Check for proper shell to use
7550 here, in case the user changes it on the fly.
7551 (_initialize_inftarg): Remove shell path considerations.
7552
7553 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7554
7555 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7556 for gdbarch_max_register_raw_size and max_register_virtual_size.
7557 Adjust copyright year.
7558
7559 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7560
7561 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7562 in a function to cover the entire beginning of the function
7563 as well if it does not already.
7564
7565 2002-03-21 Tom Rix <trix@redhat.com>
7566
7567 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7568 (rs6000_ptrace64): Renamed from ptrace64.
7569
7570 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7571
7572 * gdbserver/remote-utils.c (remote_open): Don't call
7573 getprotobyname, we're all using TCP here so just use
7574 IPPROTO_TCP.
7575 * gdbserver/gdbreplay.c (remote_open): Ditto.
7576
7577 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7578
7579 * regcache.c (_initialize_regcache): No need to call
7580 build_regcache() at this time; it gets called whenever
7581 the gdbarch changes.
7582
7583 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7584
7585 * sparc-nat.c: Include sys/param.h where possible.
7586
7587 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7588
7589 Fix PR gdb/422.
7590 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7591 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7592 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7593 complex types.
7594 * stabsread.c (rs6000_builtin_type): Likewise.
7595 (read_sun_floating_type): Likewise.
7596
7597 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7598
7599 * stabsread.c (read_member_functions): Remove skip code for duplicate
7600 constructor/destructor methods. Use standard parsing for these
7601 methods and just do not chain them to the list of methods after
7602 parsing.
7603
7604 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7605
7606 * coffread.c: Remove redundant static declarations. Replace
7607 occurrences of `PTR' with `void *'.
7608 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7609 * top.h (quit_cover): Likewise.
7610 * defs.h (catch_errors): Likewise.
7611
7612 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7613
7614 * defs.h (XMALLOC): Define.
7615 * gdb-events.sh (XMALLOC): Delete macro.
7616 * gdb-events.c, gdb-events.h: Regenerate.
7617 * gdbarch.sh (XMALLOC): Delete macro.
7618 * gdbarch.c: Regenerate.
7619 * serial.c (XMALLOC): Delete macro.
7620 * ui-file.c (XMALLOC): Ditto.
7621 * ser-unix.h (XMALLOC): Ditto.
7622 * sh-tdep.c (XMALLOC): Ditto.
7623 * ui-out.c (XMALLOC): Ditto.
7624 * utils.c (XMALLOC): Ditto.
7625 * i386-tdep.c (XMALLOC): Ditto.
7626 * gdb-events.c (XMALLOC): Ditto.
7627 * d10v-tdep.c (XMALLOC): Ditto.
7628 * cli-out.c (XMALLOC): Ditto.
7629
7630 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7631 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7632 * ui-file.c, ui-out.c: Ditto.
7633
7634 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7635
7636 * command.h (struct cmd_list_element): Add field context.
7637 (set_cmd_context, get_cmd_context): Declare.
7638 * cli/cli-decode.h: Ditto.
7639 * cli/cli-decode.c (get_cmd_context): New function.
7640 (set_cmd_context): New function.
7641 (add_cmd): Initialize context.
7642 Part of fixing PR gdb/145 and PR gdb/146.
7643
7644 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7645
7646 * cli/cli-decode.c (cmd_type): New function.
7647 * command.h (cmd_type): Declare.
7648 * infrun.c (set_schedlock_func): Call function cmd_type.
7649 * kod.c (kod_set_os): Call cmd_type.
7650 * cris-tdep.c (cris_version_update): Use function cmd_type.
7651 (cris_mode_update, cris_abi_update): Ditto.
7652
7653 * command.h: (execute_cmd_post_hook): Declare.
7654 (execute_cmd_pre_hook): Declare.
7655 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7656 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7657 functions. Execute pre/post hook while ensuring that afterwords
7658 hook_in is cleared.
7659 * top.c (execute_command): Use execute_cmd_post_hook, and
7660 execute_cmd_pre_hook to execute pre/post commands.
7661 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7662 hook_stop_stub.
7663 (hook_stop_stub): Call execute_cmd_pre_hook.
7664
7665 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7666
7667 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7668 set'' and this leads to a core dump. Move xstrdup of
7669 operating_system to after check that it is not NULL.
7670
7671 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7672
7673 * kod.c (kod_set_os): Remove unnecessary check that
7674 ``command->type'' is set_cmd.
7675
7676 * valprint.c (set_input_radix): Use input_radix.
7677 (set_output_radix): Use output_radix.
7678 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7679 isn't reverted.
7680
7681 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7682
7683 * value.h (struct value): Delete field ``substring_addr''. Change
7684 aligner fields to force_doublest_align, force_longest_align,
7685 force_core_addr_align and force_pointer_aligh.
7686
7687 * value.h (struct value): Fix typo in above change.
7688
7689 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7690
7691 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7692 to fix internal_error from ``maintenance print architecture''.
7693
7694 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7695
7696 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7697 for gcc versions after gcc-2.8.1.
7698
7699 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7700
7701 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7702 for method resolution. Restore adjustment of ``this'' pointer after
7703 calling value_struct_elt, which was accidentally removed during the
7704 HP merge.
7705
7706 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7707
7708 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7709 value_of_register.
7710 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7711 get_saved_register.
7712 * value.h (value_of_register): Update.
7713
7714 2002-03-14 Richard Henderson <rth@redhat.com>
7715
7716 * configure.in: Detect declaration for canonicalize_file_name.
7717 * utils.c (canonicalize_file_name): Declare, if needed.
7718 (gdb_realpath): Prefer realpath if available and usable.
7719 * config.in, configure: Rebuild.
7720
7721 2002-03-14 Richard Henderson <rth@redhat.com>
7722
7723 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7724 a constant array bound.
7725
7726 * MAINTAINERS: Add myself to write-after-approval.
7727
7728 2002-03-14 Michael Snyder <msnyder@redhat.com>
7729
7730 * symfile.c (syms_from_objfile): Return immediately if no syms.
7731 (symbol_file_add): Return immediately if no syms.
7732 (find_sym_fns): Return immediately if no syms.
7733
7734 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7735
7736 * gdbserver/remote-util.c (remote_open): Print remote-side's
7737 IP address when remote debugging over the network.
7738
7739 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7740
7741 * config/sparc/fbsd.mh: Fix copyright.
7742 * config/sparc/fbsd.mt: Likewise.
7743
7744 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7745
7746 * MAINTAINERS: Fix typo in name of gdb warnings option.
7747 (x86-64): Fix formating so that this can be parsed by awk.
7748
7749 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7750
7751 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7752 * defs.h: Include "gdb/signals.h".
7753 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7754
7755 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7756
7757 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7758 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7759 from x86-64-tdep.h
7760
7761 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7762 Don Howard <dhoward@redhat.com>
7763
7764 * mips-tdep.c (ST0_FR): Define.
7765 (mips2_fp_compat): New function, temporarily disabled.
7766 (mips_read_fp_register_single): New function.
7767 (mips_read_fp_register_double): New function.
7768 (mips_print_register): Use them.
7769 (do_fp_register_row): Likewise.
7770
7771 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7772
7773 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7774 approval''.
7775
7776 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7777
7778 * stabsread.c (read_member_functions): Fix is_stub test for
7779 static member functions, improve comment.
7780
7781 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7782
7783 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7784 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7785 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7786 commands that set boolean values.
7787 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7788 (arm_rdi_resume): Always initialize PC.
7789 (arm_rdi_open): Don't use rslt as a boolean.
7790 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7791 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7792 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7793 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7794
7795 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7796
7797 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7798 * configure: Rebuilt.
7799
7800 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7801
7802 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7803 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7804
7805 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7806
7807 * cli/cli-decode.c (set_cmd_completer): New function.
7808 * command.h (set_cmd_completer): Declare.
7809 * cli/cli-decode.h (set_cmd_completer): Ditto.
7810
7811 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7812 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7813 * win32-nat.c (_initialize_inftarg): Ditto.
7814 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7815 * proc-api.c (_initialize_proc_api): Ditto.
7816 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7817 * source.c (_initialize_source): Ditto.
7818 * exec.c (_initialize_exec): Ditto.
7819 * solib.c (_initialize_solib): Ditto.
7820 * top.c (init_main): Ditto.
7821 * tracepoint.c (_initialize_tracepoint): Ditto.
7822 * symfile.c (_initialize_symfile): Ditto.
7823 * printcmd.c (_initialize_printcmd): Ditto.
7824 * infcmd.c (_initialize_infcmd): Ditto.
7825 * corefile.c (_initialize_core): Ditto.
7826
7827 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7828
7829 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7830
7831 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7832
7833 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7834
7835 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7836
7837 * NEWS: Update headings, 5.2 has branched.
7838
7839 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7840
7841 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7842 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7843 (register_addr, REGISTER_RAW_SIZE): Likewise.
7844 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7845 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7846
7847 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7848
7849 * MAINTAINERS (x86-64): Add myself.
7850 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7851 changed value_ptr -> struct value *
7852
7853 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7854
7855 * configure.host (sparc64-*-freebsd): Add.
7856 * configure.tgt: Likewise.
7857 * config/sparc/fbsd.mh: New file.
7858 * config/sparc/fbsd.mt: Likewise.
7859 * config/sparc/nm-fbsd.h: Likewise.
7860 * config/sparc/tm-fbsd.h: Likewise.
7861
7862 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7863
7864 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7865 regformats/reg-s390x.dat.
7866
7867 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7868
7869 * utils.c: Add FIXME explaining true/false problem.
7870
7871 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7872
7873 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7874
7875 2002-02-28 Michael Chastain <mec@shout.net>
7876
7877 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7878
7879 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7880
7881 * gdbserver/linux-s390-low.c: New file.
7882 * regformats/reg-s390.dat: New file.
7883 * regformats/reg-s390x.dat: New file.
7884 * gdbserver/configure.srv: Add S/390.
7885 * gdbserver/Makefile.in: Add S/390.
7886 * configure.tgt: Enable gdbserver for S/390.
7887
7888 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7889
7890 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7891 first line of the doc string for "info dos", except at the end of
7892 the sentence, since the short help stops at the first period.
7893
7894 2002-02-28 Jason Merrill <jason@redhat.com>
7895
7896 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7897
7898 2002-02-27 Fred Fish <fnf@redhat.com>
7899
7900 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7901 comment (dumy -> dummy).
7902
7903 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7904
7905 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7906
7907 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7908
7909 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7910
7911 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7912
7913 * gdbserver/acconfig.h: New file.
7914 * gdbserver/i387-fp.c: New file.
7915 * gdbserver/i387-fp.h: New file.
7916 * gdbserver/linux-x86-64.c: New file.
7917 * regformats/reg-x86-64.dat: New file.
7918 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7919 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7920 * gdbserver/configure.in: Add support for regsets.
7921 * gdbserver/config.in: Regenerate.
7922 * gdbserver/configure: Regenerate.
7923 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7924 * gdbserver/linux-low.h: New file.
7925 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7926 for regsets.
7927 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7928 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7929 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7930 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7931 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7932 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7933 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7934 "i387-fp.h". Add PTRACE_GETREGS and friends.
7935 * gdbserver/regcache.c (supply_register): New function.
7936 (supply_register_by_name): New function.
7937 (collect_register): New function.
7938 (collect_register_by_name): New function.
7939
7940 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7941
7942 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7943 (config.status): Add configure.srv dependency.
7944 (server_h): Add config.h dependency.
7945
7946 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7947
7948 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7949 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7950 * gdbserver/configure.srv: Change i386-*-linux* to use
7951 reg-i386-linux.o.
7952
7953 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7954
7955 * x86-64-tdep.c: Re-indent. Update copyright date.
7956
7957 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7958
7959 From Michal Ludvig <mludvig@suse.cz>:
7960 * x86-64-tdep.c (value.h): Delete.
7961 (gdb_assert.h): Include.
7962 (x86_64_register_convert_to_virtual,
7963 x86_64_register_convert_to_raw ): Add check which lets only
7964 floating-point values to be converted.
7965 (value_push): Delete.
7966 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7967 (i386_gdbarch_init): Number of register_bytes fixed.
7968
7969 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7970
7971 * MAINTAINERS: Add x86-64 target.
7972
7973 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7974
7975 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7976 * osfsolib.c (solib_map_sections): Ditto.
7977 * irix5-nat.c (solib_map_sections): Ditto.
7978 * corelow.c (gdb_check_format): Ditto.
7979 * symfile.c (symfile_bfd_open): Ditto.
7980 * solib.c (solib_map_sections): Ditto.
7981 Fix PR gdb/354.
7982
7983 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7984
7985 * remote.c (_initialize_remote): By default, disable ``e'' and
7986 ``E'' step out-of-range packets.
7987
7988 2002-02-26 Andreas Schwab <schwab@suse.de>
7989
7990 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7991 m68k_linux_frame_saved_pc.
7992 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7993 in_sigtramp.
7994 (SIGCONTEXT_PC_OFFSET): Remove.
7995 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7996 m68k_linux_sigtramp_saved_pc): New functions.
7997 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7998 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7999 (UCONTEXT_PC_OFFSET): Define.
8000 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8001 non-RT and RT signal trampolines.
8002
8003 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8004
8005 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8006 (TARGET_NBPG, STACK_END_ADDR): Delete
8007 (VARIABLES_INSIDE_BLOCK): Delete.
8008
8009 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8010
8011 * utils.c (perror_with_name): Make string parameter constant.
8012 (print_sys_errmsg): Ditto.
8013 (query): Ditto.
8014 * defs.h (perror_with_name): Update.
8015 (print_sys_errmsg): Update.
8016 (query): Update.
8017
8018 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8019
8020 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8021 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8022
8023 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8024
8025 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8026 if it already matches the current architecture from the exec file.
8027 Include arch-utils.h for gdbarch_info_init prototype.
8028 * Makefile.in (rs6000-nat.o): Update dependencies.
8029
8030 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8031
8032 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8033 list of exported variables.
8034
8035 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * gdbserver/configure.srv: New file.
8038 * gdbserver/configure.in: Use configure.srv instead
8039 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8040 from it.
8041 * gdbserver/configure: Regenerated.
8042 * gdbserver/terminal.h: New file.
8043 * gdbserver/Makefile.in: Update for configure changes. Remove
8044 more unneeded include paths.
8045
8046 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8047
8048 From wiz at danbala:
8049 * config/sparc/tm-sp64.h: Fix grammar and typos.
8050 Fix PR gdb/287.
8051
8052 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8053
8054 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8055 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8056 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8057 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8058 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8059 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8060 * s390-tdep.c: Ditto.
8061 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8062 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8063 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8064 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8065 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8066 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8067 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8068 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8069 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8070 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8071 Fix PR gdb/378.
8072
8073 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8074
8075 * lin-thread.c: Delete file.
8076 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8077 to gdb_proc_service.h.
8078 * configure: Re-generate.
8079
8080 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8081 * serial.c (serial_open): Delete check for "ocd".
8082 Fix PR gdb/349.
8083
8084 * Makefile.in (linux-thread.o): Delete target.
8085 * linux-thread.c: Delete file.
8086
8087 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8088 renamed SH files to be consistent.
8089
8090 * symtab.c (sort_search_symbols): Use xfree.
8091
8092 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8093
8094 * arm-linux-tdep.c (arm_linux_init_abi): Register
8095 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8096 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8097 definition with undef, since we don't want the sysvr4 definition.
8098 (SKIP_TRAMPOLINE_CODE): Likewise.
8099
8100 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8101
8102 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8103
8104 * configure.in: (AC_CHECK_FUNCS) Added test for
8105 canonicalize_file_name Regenerated.
8106 * config.in, configure: Regenerated.
8107 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8108 defined use canonicalize_file_name.
8109
8110 2002-02-23 Michael Chastain <mec@shout.net>
8111
8112 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8113
8114 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8115
8116 * README: Remove references to cygnus.com.
8117 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8118 dot com'' form. Remove references to cygnus.com and sourceware.
8119
8120 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8121
8122 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8123 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8124 1003.1-2001 no longer allows "head -1".
8125 * gdb/Makefile.in (version.c): Likewise.
8126 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8127 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8128 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8129
8130 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8131
8132 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8133 * command.h (cmd_cfunc_eq): Declare.
8134 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8135
8136 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8137 ``struct cmd_list_element *''.
8138 * cli/cli-cmds.c (is_complete_command): Update. Use
8139 cmd_cfunc_eq.
8140 * top.c (execute_command): Pass the command to
8141 is_complete_command.
8142 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8143
8144 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8145
8146 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8147 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8148 architecture defines.
8149 * s390-tdep.c (s390_gdbarch_init): Likewise.
8150
8151 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8152
8153 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8154 (arm_linux_push_arguments): Likewise.
8155 (arm_linux_init_abi): Register them. Also register linux-specific
8156 call_dummy_words.
8157 (find_minsym_and_objfile): Use strcmp, not STREQ.
8158 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8159 (arm_linux_call_dummy_words): Delete declaration.
8160 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8161 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8162 declarations.
8163 (LOWEST_PC): Delete.
8164
8165 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8166
8167 * maint.c (print_section_info): Do not prepend `0x' to filepos
8168 output, it will be handled by local_hex_string_custom.
8169
8170 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8171
8172 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8173 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8174 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8175
8176 2002-02-22 Jim Blandy <jimb@redhat.com>
8177
8178 Indicate that the bcache functions don't change the strings
8179 they're passed.
8180 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8181 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8182
8183 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8184
8185 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8186
8187 2002-02-21 Christopher Faylor <cgf@redhat.com>
8188
8189 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8190 find the complete path to a loaded DLL.
8191
8192 2002-02-21 Fred Fish <fnf@redhat.com>
8193
8194 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8195 that marks the end of the range of a function, enter a line number
8196 entry that has a line number of zero and a PC offset that matches
8197 the end of the function. This starts a range of PC's for which no
8198 line number information is known.
8199 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8200 PC's for which no line number info is found (line number is zero)
8201 then we didn't find any valid line information.
8202 * symtab.h: Document use of zero line number entry.
8203
8204 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8205
8206 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8207 (have_ptrace_getvrregs): Define for run time checks.
8208 (gdb_vrregset_t): New type for Altivec register handling.
8209 (fetch_register, store_register): Fetch/store altivec register
8210 when needed.
8211 (fetch_altivec_register, store_altivec_register): New functions.
8212 (supply_vrregset, fill_vrregset): New functions.
8213 (fetch_altivec_registers, store_altivec_registers): New functions.
8214 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8215 registers as well.
8216
8217 2002-02-21 Jiri Smid <smid@suse.cz>
8218
8219 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8220
8221 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8222
8223 * Makefile.in (armnbsd-nat.o): Update dependencies.
8224 * armnbsd-nat.c (supply_gregset): New function. Common code to
8225 supply the integer register set.
8226 (supply_fparegset): New function. Similar for FPA registers.
8227 (fetch_regs, fetch_fp_regs): Use them.
8228 (fetch_core_registers): Likewise.
8229 (fetch_elfcore_registers): New function.
8230 (arm_netbsd_elfcore_fns): New core-file type specification.
8231 (_initialize_arm_netbsd_nat): Register it.
8232
8233 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8234
8235 * armnbsd-nat.c: Include gdbcore.h.
8236 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8237 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8238 'void' to declaration, to shut up ARI.
8239 (fetch_core_registers): Make static. Rewrite using supply_register.
8240 (arm_netbsd_core_fns): New core-file type specification.
8241 (_initialize_arm_netbsd_nat): New function.
8242
8243 2002-02-21 Christopher Faylor <cgf@redhat.com>
8244
8245 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8246 value.
8247
8248 2002-02-20 Christopher Faylor <cgf@redhat.com>
8249
8250 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8251 fails.
8252
8253 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * jv-exp.y (parse_number): Change type of implicit longs
8256 to builtin_type_uint64.
8257
8258 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8261 to be an integer instead of a `union wait'.
8262
8263 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8264
8265 * mips-linux-nat.c: Call the operating system GNU/Linux.
8266 * mips-linux-tdep.c: Likewise.
8267 * mips-tdep.c: Likewise.
8268
8269 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8270
8271 Fix PR gdb/265.
8272 * jv-exp.y (parse_number): Handle 64-bit integers.
8273
8274 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8277 AC_STDC_HEADERS to AC_HEADER_STDC.
8278 * gdbserver/configure: Regenerated.
8279
8280 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8281
8282 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8283 is defined.
8284 * sparc-tdep.c (get_longjmp_target): Likewise.
8285
8286 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8287
8288 * News: Add news about ARM and Multi-arch. Mention the new target
8289 arm*-*-netbsd*.
8290
8291 2002-02-19 Jim Blandy <jimb@redhat.com>
8292
8293 * stabsread.c (error_type_complaint): Improve error message.
8294
8295 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * gdbserver/README: Update documentation.
8298 * gdbserver/configure.in: Update configury to match documentation.
8299 * gdbserver/Makefile.in: Likewise.
8300 * gdbserver/configure: Regenerated.
8301 * gdbserver/aclocal.m4: New file, generated by aclocal.
8302 * gdbserver/config.in: New file, generated by autoheader.
8303
8304 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8305
8306 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8307 armnbsd-nat.c.
8308
8309 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8310
8311 * arm-tdep.h (enum arm_float_model): New enum.
8312 (struct gdbarch_tdep): Add fp_model.
8313 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8314 up floating-point conversions until we know the floating-point model
8315 in use by the inferior. Don't complain about being unable to
8316 determine the ABI of the inferior when we don't have one.
8317 (arm_extract_return_value): Support different floating-point models.
8318 (arm_store_return_value): Likewise.
8319 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8320 ARM_FLOAT_SOFT.
8321 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8322
8323 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8324
8325 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8326 of ``current_gdbarch''.
8327
8328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8329
8330 * armnbsd-nat.c : ANSIfy all function declarations.
8331 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8332 (fetch_inferior_registers): Re-implement in terms of above.
8333 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8334 (store_inferior_registers): Re-implement in terms of above.
8335
8336 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8337
8338 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8339 kernel.
8340 * arm-linux-tdep.c: Likewise.
8341 * config/arm/tm-linux.h: Likewise.
8342
8343 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8344
8345 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8346 * config/arm/nbsd.mt (TM_FILE): Delete.
8347 * config/arm/tm-nbsd.h: Delete.
8348
8349 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8350
8351 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8352 Initialize CALL_DUMMY_LENGTH.
8353
8354 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8355
8356 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8357 function.
8358 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8359 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8360 defines one thing and that is incorrect for this port.
8361 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8362
8363 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8364
8365 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8366
8367 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8368
8369 * win32-nat.c (display_selector): New function. Displays information
8370 about the information returned by GetThreadSelectorEntry API function.
8371 (display_selectors): New function. Displays the infomation of
8372 the selector given as argument, or of CS, DS ans FS selectors
8373 if no argument is given.
8374 ( _initialize_inftarg): Add "w32" as info prefix command.
8375 Add "info w32 selector" as command calling display_selectors.
8376
8377 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8378
8379 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8380 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8381 if not defined.
8382
8383 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8384
8385 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8386
8387 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8388
8389 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8390 (arm_fix_call_dummy): Call it.
8391 (arm_call_dummy_breakpoint_offset): Delete.
8392 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8393 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8394
8395 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8396
8397 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8398 Default to func_frame_chain_valid.
8399 * gdbarch.h, gdbarch.c: Re-generate.
8400 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8401
8402 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8403
8404 * ppc-linux-nat.c: Update copyright.
8405 (fetch_register, store_register): Add tid parameter, don't compute
8406 tid here.
8407 (fetch_ppc_registers, store_ppc_registers): Add tid
8408 parameter. Pass it along to callees.
8409 (fetch_inferior_registers, store_inferior_registers): Compute tid
8410 here, and pass it to calleed functions.
8411 (fill_gregset, supply_fpregset): Clean up formatting.
8412
8413 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8414
8415 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8416 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8417
8418 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8419
8420 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8421 * gdbarch.c gdbarch.h: Regenerate.
8422 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8423 function.
8424 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8425 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8426 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8427
8428 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8429 * arm-tdep.c (arm_get_longjmp_target): New function.
8430 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8431 this to a positive value register arm_get_longjmp_target as the
8432 longjmp handler.
8433 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8434 (arm_linux_init_abi): Set up longjmp description in tdep.
8435 * armnbsd-nat.c (get_longjmp_target): Delete.
8436 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8437 description in tdep.
8438 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8439 (get_longjmp_target): Delete declaration.
8440 (GET_LONGJMP_TARGET): Delete.
8441 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8442 (GET_LONGJMP_TARGET): Delete.
8443
8444 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8445
8446 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8447 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8448 of ``current_gdbarch''.
8449
8450 2002-02-17 Tom Tromey <tromey@redhat.com>
8451
8452 * cli/cli-cmds.c (compare_strings): New function.
8453 (complete_command): Only print each unique item once.
8454 * completer.h (complete_line): Declare.
8455 * completer.c (complete_line): New function.
8456 (line_completion_function): Use it.
8457
8458 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8459
8460 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8461 * gdbarch.h, gdbarch.c: Re-generate.
8462
8463 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8466
8467 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8468
8469 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8470 * valops.c (value_arg_coerce): Don't take the address of a reference
8471 to convert an argument to a reference.
8472
8473 2002-02-15 Christopher Faylor <cgf@redhat.com>
8474
8475 * win32-nat.c (get_image_name): New function.
8476 (handle_load_dll): Use get_image_name function.
8477 (get_child_debug_event): Avoid registering debug events until possibly
8478 execed process is started.
8479 (child_create_inferior): Allow invocation via shell so that command
8480 line redirection, etc. works ok.
8481 (_initialize_inftarg): Add new command: "set shell" to control whether
8482 a shell is used to start a process.
8483
8484 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8485
8486 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8487 instead of find_register_by_number.
8488 (cannot_store_register): Likewise.
8489
8490 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8491
8492 * dwarf2read.c: Replace fprintf (stderr, ...) by
8493 fprintf_unfiltered (gdb_stderr, ...).
8494
8495 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8496
8497 * gdbserver/gdbserver.1: Document --attach.
8498
8499 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8500
8501 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8502 descriptions.
8503 * arm-tdep.c (arm_default_arm_le_breakpoint)
8504 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8505 (arm_default_thumb_be_breakpoint): New. Initialize them from
8506 traditional breakpoint defines.
8507 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8508 (arm_gdbarch_init): Initialize new breakpoint variables.
8509 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8510 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8511 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8512 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8513 code out to ...
8514 (arm_netbsd_init_abi_common): ... here; new function.
8515 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8516 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8517 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8518 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8519
8520 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8521
8522 * arm-tdep.h (enum arm_abi): New enum.
8523 (struct gdbarch_tdep): New structure.
8524 (LOWEST_PC): Provide a default.
8525 (arm_gdbarch_register_os_abi): Declare new function.
8526 * arm-tdep.c (arm_abi_names): New array.
8527 (process_note_abi_tag_sections): New function.
8528 (get_elfosabi): New function.
8529 (arm_gdbarch_register_os_abi): New function.
8530 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8531 support for that ABI has been built in, then call the appropriate
8532 configuration routine. Use gdbarch_num_regs() to get the number
8533 of registers.
8534 (arm_dump_tdep): New function.
8535 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8536 place-holder functions.
8537 (_initialize_arm_tdep): Register them.
8538 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8539
8540 * armnbsd-tdep.c: New file.
8541 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8542 * config/arm/nbsd.mt (TDEPFILES): Add it.
8543 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8544
8545 * armnbsd-nat.c: Include regcache.h.
8546 * Makefile.in (armnbsd-nat.o): Update dependency list.
8547
8548 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8549
8550 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8551
8552 * gdbserver/Makefile.in: Fix typos in target rules.
8553
8554 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8555
8556 Fix part of PR gdb/267.
8557 * linespec.c (find_methods): Handle constructors specially for now.
8558
8559 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8560
8561 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8562 handling.
8563 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8564 standard_coerce_float_to_double().
8565
8566 2002-02-14 Christopher Faylor <cgf@redhat.com>
8567
8568 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8569 GDBINIT_FILENAME.
8570
8571 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8572
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8574 find_variant_by_name, because it confuses the multiarch
8575 framework. Return NULL if there isn't an architecture with the
8576 user supplied name, instead of forcing a different one without
8577 recording the change with the multiarch machinery.
8578 (find_variant_by_name): Delete.
8579
8580 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8581
8582 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8583 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8584
8585 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8586
8587 * stack.c (print_frame_info_base): When calling
8588 print_frame_info_listing_hook, set current_source_symtab.
8589
8590 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8591
8592 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8593 and remove unused $(INCLUDE_DIR).
8594 Add regcache.c to OBS.
8595 Add generated register protocol files to clean target.
8596 Update dependencies for new objects, obsolete old target code.
8597
8598 * gdbserver/linux-low.c: Remove all platform-specific code to
8599 new files. Remove various dead code. Update to use regcache
8600 functionality.
8601 * gdbserver/remote-utils.c (fromhex): Add return statement
8602 to quiet warning.
8603 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8604 constant.
8605 (input_interrupt): Add integer parameter to match prototype
8606 of a signal handler.
8607 (outreg): Use register_data ().
8608 (prepare_resume_reply): Use gdbserver_expedite_regs.
8609 * gdbserver/server.c (main): Dynamically allocate own_buf because
8610 PBUFSIZ is no longer constant. Use registers_to_string () and
8611 registers_from_string ().
8612 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8613 for error (), fatal (), and warning (). Update definition of
8614 PBUFSIZ to use regcache functionality. Add include guard.
8615 * gdbserver/utils.c (fatal): Add missing ``const''.
8616 (warning): New function.
8617
8618 * regformats/regdat.sh: Include "regcache.h" in generated files.
8619 Provide init_registers () function.
8620 * regformats/regdef.h: Add prototype for set_register_cache ().
8621 Add include guard.
8622
8623 * gdbserver/linux-arm-low.c: New file.
8624 * gdbserver/linux-i386-low.c: New file.
8625 * gdbserver/linux-ia64-low.c: New file.
8626 * gdbserver/linux-m68k-low.c: New file.
8627 * gdbserver/linux-mips-low.c: New file.
8628 * gdbserver/linux-ppc-low.c: New file.
8629 * gdbserver/linux-sh-low.c: New file.
8630
8631 * gdbserver/regcache.c: New file.
8632 * gdbserver/regcache.h: New file.
8633
8634 * gdbserver/low-linux.c: Removed obsolete file.
8635
8636 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8637
8638 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8639 * config/i386/linux.mt: Likewise.
8640 * config/ia64/linux.mt: Likewise.
8641 * config/m68k/linux.mh: Likewise.
8642 * config/powerpc/linux.mh: Likewise.
8643 * config/mips/linux.mt: Likewise.
8644
8645 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8646
8647 * config/i386/i386lynx.mh: Mark gdbserver variables
8648 as (currently) obsolete for this target.
8649 * config/i386/nbsd.mt: Likewise.
8650 * config/i386/nbsdelf.mt: Likewise.
8651 * config/m32r/m32r.mt: Likewise.
8652 * config/m68k/m68klynx.mh: Likewise.
8653 * config/m68k/nbsd.mt: Likewise.
8654 * config/m68k/sun3os4.mh: Likewise.
8655 * config/mips/vr5000.mt: Likewise.
8656 * config/ns32k/nbsd.mt: Likewise.
8657 * config/pa/hppabsd.mh: Likewise.
8658 * config/pa/hppaosf.mh: Likewise.
8659 * config/powerpc/nbsd.mt: Likewise.
8660 * config/rs6000/rs6000lynx.mh: Likewise.
8661 * config/s390/s390.mt: Likewise.
8662 * config/s390/s390x.mt: Likewise.
8663 * config/sparc/sparclynx.mh: Likewise.
8664 * config/sparc/sun4os4.mh: Likewise.
8665 * config/i386/x86-64linux.mt: Likewise.
8666 * config/sparc/linux.mh: Likewise.
8667
8668 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8669
8670 * configure.tgt: Configure gdbserver only for known working
8671 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8672 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8673 SUBDIRS if it is configured. Update comment for ${nativefile}.
8674 * configure: Regenerated.
8675
8676 2002-02-13 Michael Snyder <msnyder@redhat.com>
8677
8678 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8679
8680 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8681 (default_gcore_mach): Just return 0, work around a problem in bfd.
8682 (default_gcore_target): OK to return NULL if exec_bfd is null.
8683 (make_mem_sec): Use a cast, avoid a warning.
8684
8685 * procfs.c (find_memory_regions_callback): Use a cast instead of
8686 calling host_pointer_to_address (which complains if
8687 sizeof (host pointer) != sizeof (target pointer)).
8688 (procfs_make_note_section): Avoid overflow in psargs string.
8689
8690 * procfs.c (procfs_make_note_section): Make the default
8691 implementation return an error.
8692
8693 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8694
8695 * procfs.c (procfs_make_note_section): Provide a default definition
8696 (for alpha-dec-osf4.0f). Fix typos.
8697
8698 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8699
8700 * linux-proc.c: Add include of regcache.h.
8701 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8702
8703 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8704
8705 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8706 * memattr.c (create_mem_region): Disallow useless empty region.
8707 Regions are half-open intervals, so allow [A..B) [B..C) as
8708 non-overlapping.
8709
8710 2002-02-13 Michael Chastain <mec@shout.net>
8711
8712 * defs.h: Kill CONST_PTR.
8713 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8714 * c-lang.c (c_builtin_types): Likewise.
8715 * ch-lang.c (ch_builtin_types): Likewise.
8716 * f-lang.c (f_builtin_types): Likewise.
8717 * language.c (unknown_builtin_types): Likewise.
8718 * m2-lang.c (m2_builtin_types): Likewise.
8719 * p-lang.c (pascal_builtin_types): Likewise.
8720 * scm-lang.c (c_builtin_types): Likewise.
8721
8722 2002-02-13 Keith Seitz <keiths@redhat.com>
8723
8724 * arm-tdep.h (arm_get_next_pc): Add declaration.
8725
8726 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8727
8728 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8729 with other related struct-returning functions.
8730 (arm_extract_struct_value_address): New function.
8731 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8732 initialize float_format, double_format and long_double_format as
8733 appropriate to the endianness of the target.
8734 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8735 (arm_use_struct_convention): Delete declaration.
8736 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8737
8738 2002-02-13 Keith Seitz <keiths@redhat.com>
8739
8740 * defs.h (core_addr_to_string_nz): New function.
8741
8742 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8743
8744 Apply missing bits of 2002-01-15 patch.
8745 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8746 (fill_fpregset): Use i387_fill_fsave.
8747
8748 2002-02-12 Keith Seitz <keiths@redhat.com>
8749
8750 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8751 (core_addr_to_string_nz): New function.
8752
8753 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8754
8755 * arm-linux-nat.c: Really include arm-tdep.h.
8756 * config/arm/tm-linux.h (struct type, struct value): Declare.
8757
8758 2002-02-11 Michael Snyder <msnyder@redhat.com>
8759
8760 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8761 (gcore section): Ifdef for Solaris and Unixware only.
8762 (procfs_do_thread_registers): Unixware needs one lwpstatus
8763 per thread (not one prstatus or pstatus).
8764 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8765 not over all gdb threads. For unixware, call elfcore_write_pstatus
8766 once before iterating over threads.
8767
8768 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8769
8770 * arm-tdep.h: New file.
8771 * arm-tdep.c: Include arm-tdep.h.
8772 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8773 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8774 (arm_print_float_info, arm_register_type, convert_to_extended)
8775 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8776 (arm_extract_return_value, arm_register_name): Make static.
8777 (arm_software_single_step): Similarly. Fix types in declaration.
8778 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8779 (arm_store_return_value, arm_store_struct_return): New functions.
8780 (arm_gdbarch_init): Register the above functions. Also register
8781 call_dummy_start_offset, sizeof_call_dummy_words,
8782 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8783 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8784 max_register_virtual_size, register_size. Set up
8785 prologue_cache.saved_regs here, rather than ...
8786 (_initialize_arm_tdep): ... here.
8787 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8788 declarations.
8789 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8790 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8791 (arm_print_float_info, arm_register_type, convert_to_extended)
8792 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8793 (arm_extract_return_value, arm_register_name): Delete declarations.
8794 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8795 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8796 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8797 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8798 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8799 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8800 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8801 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8802 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8803 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8804 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8805 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8806 interface.
8807 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8808 * remote-rdi.c remote-rdp.c: Likewise.
8809 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8810 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8811 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8812 definition.
8813
8814 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8815 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8816 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8817 from non-ARM_ prefixed definitions.
8818 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8819 all uses of above.
8820 * remote-rdi.c remote-rdp.c: Likewise.
8821 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8822
8823 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8824
8825 * arm-tdep.c (arm_frameless_function_invocation)
8826 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8827 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8828 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8829 (arm_pop_frame, arm_get_next_pc): Make static.
8830 (arm_gdbarch_init): Register above in gdbarch structure.
8831 (arm_read_fp): Renamed from arm_target_read_fp.
8832 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8833 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8834 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8835 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8836 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8837 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8838 (arm_pc_is_thumb_dummy): Delete declarations.
8839 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8840 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8841 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8842 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8843
8844 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * symtab.c (compare_search_syms): New function.
8847 (sort_search_symbols): New function.
8848 (search_symbols): Sort symbols after searching rather than
8849 before.
8850
8851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8852
8853 * NEWS: Linux -> GNU/Linux.
8854
8855 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8856
8857 * gdbarch.sh: For for level one methods, disallow a definition
8858 when partially multi-arched. Add comments explaining rationale.
8859 * gdbarch.h: Re-generate.
8860
8861 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8862
8863 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8864 multi-arch partial.
8865
8866 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8867
8868 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8869 field. Use diff -u.
8870 * gdbarch.c: Re-generate.
8871
8872 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8873
8874 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8875 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8876 partial.
8877
8878 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8879
8880 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8881 multi-arch partial.
8882 (PUSH_ARGUMENTS): Switch to using predefault.
8883 * gdbarch.c: Regenerate.
8884
8885 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8886
8887 * valops.c (PUSH_ARGUMENTS): Delete definition.
8888 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8889 partial. Default to default_push_arguments.
8890 * gdbarch.h, gdbarch.c: Regenerate.
8891
8892 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8893
8894 * defs.h (throw_exception): Rename return_to_top_level. Update
8895 comments.
8896 * utils.c (error_stream, internal_verror, quit): Ditto.
8897 * top.c (throw_exception, catcher): Ditto.
8898 * sparclet-rom.c (sparclet_load): Ditto.
8899 * remote.c (interrupt_query, minitelnet): Ditto.
8900 * remote-sds.c (interrupt_query): Ditto.
8901 * remote-mips.c (mips_error, mips_kill): Ditto.
8902 * ocd.c (interrupt_query): Ditto.
8903 * monitor.c (monitor_interrupt_query): Ditto.
8904 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8905 * target.h: Update comment.
8906
8907 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8908
8909 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8910
8911 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8912 default_double_format.
8913 * gdbarch.h, gdbarch.c: Re-generate.
8914 * findvar.c (floatformat_unknown): Delete variable definition.
8915 * doublest.h (floatformat_unknown): Delete variable declaration.
8916
8917 2002-02-09 Jim Blandy <jimb@redhat.com>
8918
8919 * stabsread.c (read_type): Add code to parse Sun's syntax for
8920 prototyped function types.
8921
8922 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8923
8924 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8925 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8926
8927 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8928
8929 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8930 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8931 now _initialize_xcoffsolib gets called again and overrides the
8932 commands from solib.c in a native configuration.
8933
8934 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8935
8936 * doublest.c (store_typed_floating): Don't try to return a value.
8937 Fixes PR gdb/290.
8938
8939 2002-02-08 Jim Blandy <jimb@redhat.com>
8940
8941 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8942 is prototyped and has no arguments, print its argument list as
8943 `(void)'.
8944
8945 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8946
8947 * MAINTAINERS (write-after-approval): Add myself.
8948 (paper-trail): I've escaped!
8949
8950 2002-02-08 Christopher Faylor <cgf@redhat.com>
8951
8952 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8953 changes.
8954 (_initialize_check_for_gdb_ini): Ditto.
8955
8956 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8957
8958 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8959 xaprintf -> xasprintf.
8960
8961 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8962
8963 * win32-nat.c: Remove use of printf and sprintf functions.
8964
8965 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8966
8967 * arm-tdep.c (arm_frame_chain_valid): Make static.
8968 (arm_push_arguments): Likewise.
8969 (arm_gdbarch_init): New function.
8970 (_initialize_arm_tdep): Call it.
8971 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8972 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8973 (FRAME_CHAIN_VALID): Delete.
8974 (arm_frame_chain_valid): Delete declaration.
8975 (PUSH_ARGUMENTS): Delete.
8976 (arm_push_arguments): Delete declaration.
8977 (CALL_DUMMY_P): Delete.
8978
8979 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8980 Corinna Vinschen <vinschen@redhat.com>
8981
8982 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8983 on builtin float types.
8984
8985 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8986
8987 * utils.c: Include <curses.h> before "bfd.h".
8988 * tui/tui-hooks.c: Likewise.
8989 * tui/tui.c: Likewise.
8990 * tui/tuiCommand.c: Likewise.
8991 * tui/tuiData.c: Likewise.
8992 * tui/tuiDataWin.c: Likewise.
8993 * tui/tuiDisassem.c: Likewise.
8994 * tui/tuiGeneralWin.c: Likewise.
8995 * tui/tuiIO.c: Likewise.
8996 * tui/tuiLayout.c: Likewise.
8997 * tui/tuiRegs.c: Likewise.
8998 * tui/tuiSource.c: Likewise.
8999 * tui/tuiSourceWin.c: Likewise.
9000 * tui/tuiStack.c: Likewise.
9001 * tui/tuiWin.c: Likewise.
9002
9003 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9004
9005 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9006 to include space for pseudoregs as well. Update loops accordingly.
9007 (sh_fp_frame_init_saved_regs): Ditto.
9008 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9009
9010 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9011
9012 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9013 Add Richard Earnshaw to Arm maintainers.
9014
9015 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9016
9017 * defs.h (warning_begin): Delete declaration.
9018
9019 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9020 Delete macro.
9021
9022 2002-02-07 Michael Snyder <msnyder@redhat.com>
9023
9024 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9025 Logic bug, remove misplaced else.
9026
9027 2002-02-07 Klee Dienes <klee@apple.com>
9028
9029 * fork-inferior.c (fork_inferior): Add '!' to the list of
9030 characters that need to be quoted when building a string for the
9031 shell. Quote '!' specifically with a backslash, since CSH chokes
9032 when trying to evaluate "str!str".
9033
9034 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9035
9036 * rdi-share/host.h: Only provide a typedef for bool if it is not
9037 defined.
9038
9039 2002-02-04 Michael Snyder <msnyder@redhat.com>
9040
9041 * breakpoint.h (enum bptype): Add new overlay event bp type.
9042 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9043
9044 * breakpoint.c (create_internal_breakpoint): New function.
9045 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9046 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9047 (create_thread_event_breakpoint): Ditto.
9048 (create_solib_event_breakpoint): Ditto.
9049 (create_overlay_event_breakpoint): New function.
9050 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9051 (update_breakpoints_after_exec): Delete and re-initialize
9052 overlay event breakpoints after an exec. Add FIXME comment
9053 about longjmp breakpoint.
9054 (print_it_typical): Ignore overlay event breakpoints.
9055 (print_one_breakpoint): Ditto.
9056 (mention): Ditto.
9057 (bpstat_what): Do not stop for overlay event breakpoints.
9058 (delete_breakpoint): Don't delete overlay event breakpoints.
9059 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9060 (breakpoint_re_set): Re-create overlay event breakpoint.
9061
9062 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9063 (overlay_manual_command): Disable overlay breakpoints.
9064 (overlay_off_command): Disable overlay breakpoints.
9065
9066 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9067
9068 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9069 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9070 to here from config/tm-arm.h.
9071 (coff_sym_is_thumb): Make static.
9072 (arm_elf_make_msymbol_special): New function.
9073 (arm_coff_make_msymbol_special): New function.
9074 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9075 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9076 (coff_sym_is_thumb): Delete declaration.
9077 (arm_elf_make_msymbol_special): Declare.
9078 (arm_coff_make_msymbol_special): Declare.
9079 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9080 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9081
9082 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9083
9084 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9085
9086 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9087
9088 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9089 * gdbarch.c gdbarch.h: Regenerate.
9090 * arch-utils.c (default_print_float_info): New function.
9091 * arch-utils.h (default_print_float_info): Prototype it.
9092 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9093 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9094 (PRINT_FLOAT_INFO): Document it.
9095
9096 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9097 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9098 (PRINT_FLOAT_INFO): Define.
9099
9100 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9101
9102 * win32-nat.c (_initialize_check_for_gdb_ini):
9103 Add typecast to sprintf argument to suppress a warning.
9104
9105 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9106
9107 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9108 to allow easier handling of pass state.
9109 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9110 that gives exception name and address.
9111 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9112 and set last_sig value to ourstatus->value.sig. Some missing
9113 exceptions added.
9114 (child_continue): Correctly report continue_status.
9115 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9116 TARGET_SIGNAL_0 (new default value).
9117 (child_resume): consider sig argument passed to decide if
9118 the exception should be passed to debuggee or not.
9119
9120 2002-02-05 Michael Snyder <msnyder@redhat.com>
9121
9122 * regcache.c (fetch_register): Call target_fetch_register
9123 only if we don't call FETCH_PSEUDO_REGISTER.
9124 (store_register): Call target_store_register only if we
9125 don't call STORE_PSEUDO_REGISTER.
9126
9127 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9128
9129 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9130 ELF_MAKE_MSYMBOL_SPECIAL.
9131 * gdbarch.c, gdbarch.h: Regenerate.
9132 * arch-utils.c (default_make_msymbol_special): New function.
9133 * arch-utils.h (default_make_msymbol_special): Export.
9134 * elfread.c (elf_symtab_read): Compile use of
9135 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9136 multiarched.
9137 * coffread.c (coff_symtab_read): Ditto, for
9138 COFF_MAKE_MSYMBOL_SPECIAL.
9139
9140 2002-02-05 Jim Blandy <jimb@redhat.com>
9141
9142 * solib-svr4.c (svr4_truncate_ptr): New function.
9143 (svr4_relocate_section_addresses): Do the address arithmetic with
9144 the appropriate truncation for target addresses, even when
9145 CORE_ADDR is larger than a target address.
9146
9147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9150 to (int *).
9151
9152 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9153
9154 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9155 code.
9156
9157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9158
9159 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9160
9161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9162
9163 * gdbserver/linux-low.c: Remove unused include files.
9164
9165 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9166
9167 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9168 (read_inferior_memory): Use it.
9169 (write_inferior_memory): Likewise.
9170
9171 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9174 grubbing through sys_errlist.
9175
9176 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9177
9178 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9179
9180 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9181 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9182
9183 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9184
9185 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9186 (do_sfunc, set_cmd_sfunc): New functions.
9187
9188 * command.h (struct cmd_list_element): Add field func.
9189 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9190 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9191 * cli/cli-decode.h: Ditto.
9192
9193 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9194 (help_all, help_cmd_list): Ditto.
9195 (find_cmd, complete_on_cmdlist): Ditto.
9196 * top.c (execute_command): Ditto.
9197
9198 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9199 function.sfunc.
9200
9201 * infcmd.c (notice_args_read): Fix function signature.
9202
9203 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9204 * cli/cli-decode.c (add_set_cmd): Ditto.
9205 * utils.c (initialize_utils): Ditto.
9206 * maint.c (_initialize_maint_cmds): Ditto.
9207 * infrun.c (_initialize_infrun): Ditto.
9208 * demangle.c (_initialize_demangler): Ditto.
9209 * remote.c (add_packet_config_cmd): Ditto.
9210 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9211 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9212 * proc-api.c (_initialize_proc_api): Ditto.
9213 * kod.c (_initialize_kod): Ditto.
9214 * valprint.c (_initialize_valprint): Ditto.
9215 * top.c (init_main): Ditto.
9216 * infcmd.c (_initialize_infcmd): Ditto.
9217 * corefile.c (_initialize_core): Ditto.
9218 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9219 * arch-utils.c (initialize_current_architecture): Ditto.
9220 (_initialize_gdbarch_utils): Ditto.
9221 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9222
9223 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9224 * wince.c (_initialize_inftarg): Ditto.
9225 * symfile.c (_initialize_symfile): Ditto.
9226 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9227 * language.c (_initialize_language): Ditto.
9228 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9229
9230 2002-02-04 Michael Snyder <msnyder@redhat.com>
9231
9232 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9233
9234 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9235
9236 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9237 Add rules for building the register data files.
9238
9239 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9240
9241 * regformats/regdat.sh: Add braces to the definition of
9242 expedite_regs_${arch}.
9243
9244 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * regformats/regdef.h (struct reg): Add comment describing the
9247 requirements for offset and size fields.
9248
9249 2002-02-04 Andreas Schwab <schwab@suse.de>
9250
9251 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9252 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9253
9254 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9255
9256 * gdbarch.sh (copyright): Update years in generated header.
9257 (SMASH_TEXT_ADDRESS): Add rule.
9258 * gdbarch.h, gdbarch.c: Re-generate.
9259 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9260 * dbxread.c: Likewise.
9261 * dwarfread.c: Likewise.
9262 * elfread.c: Likewise.
9263 * somread.c: Likewise.
9264
9265 * arm-tdep.c (arm_smash_text_address): New function.
9266 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9267
9268 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9269
9270 Add support for hardware watchpoints on win32 native.
9271 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9272 CONTEXT_DEBUG_REGISTERS.
9273 (dr variable): New variable. Static array containing a local copy
9274 of debug registers.
9275 (debug_registers_changed): New variable. Reflects when debug registers
9276 are changed and need to be written to inferior.
9277 (debug_registers_used): New variable. Reflects when any debug register
9278 was set, used when new threads are created.
9279 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9280 i386-nat code.
9281 (thread_rec): Set dr array if id is the thread of current_event .
9282 (child_continue, child_resume): Change the debug registers for all
9283 threads if debug_registers_changed.
9284 (child_add_thread): Change the debug registers if debug_registers_used.
9285 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9286 Link nm.h to new nm-cygwin.h file.
9287 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9288 of hardware registers.
9289
9290 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9291
9292 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9293 Restore behavour broken by 2002-01-20 Andrew Cagney
9294 <ac131313@redhat.com> IEEE_FLOAT removal.
9295
9296 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * c-valprint.c (c_val_print): Pass a proper valaddr to
9299 cp_print_class_method.
9300 * valops.c (search_struct_method): If there is only one method
9301 and args is NULL, return that method.
9302
9303 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9306 accessing tag_name directly.
9307
9308 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9309
9310 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9311 of accessing tag_name directly.
9312
9313 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9314
9315 PR gdb/280
9316 * gdbtypes.c (replace_type): New function.
9317 * gdbtypes.h (replace_type): Add prototype.
9318 * stabsread.c (read_type): Use replace_type.
9319
9320 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9321
9322 * Makefile.in (memattr.o): Add missing dependencies rule.
9323
9324 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9325
9326 * breakpoint.c (break_at_finish_command): Really export.
9327 (break_at_finish_at_depth_command): Ditto.
9328 (tbreak_at_finish_command): Ditto.
9329 * hppa-tdep.c: Include completer.h.
9330 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9331 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9332
9333 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9334
9335 * utils.c (do_write): New function.
9336 (error_stream): Rewrite combining the code from error_begin and
9337 verror.
9338 (verror): Rewrite using error_stream.
9339 (error_begin): Delete function.
9340
9341 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9342
9343 * utils.c (error_begin): Make static.
9344 * defs.h (error_begin): Delete declaration.
9345
9346 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9347 (decode_line_1): Use cplusplus_error instead of error_begin,
9348 cplusplus_hint and return_to_top_level.
9349 * coffread.c (coff_symfile_read): Use error instead of error_begin
9350 and return_to_top_level.
9351 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9352
9353 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9354
9355 * language.h (type_error, range_error): Make string parameter
9356 constant.
9357 * language.c (warning_pre_print): Delete extern declaration.
9358 * dwarfread.c (warning_pre_print): Ditto.
9359 * language.c (type_error, range_error): Rewrite to use verror and
9360 vwarning instead of warning_begin.
9361
9362 2002-02-01 Michael Snyder <msnyder@redhat.com>
9363
9364 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9365 (set_ignore_count): Move misplaced comment back where it belongs.
9366
9367 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9368
9369 * command.h (NO_FUNCTION): Delete macro.
9370 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9371 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9372 * tracepoint.c (_initialize_tracepoint): Ditto.
9373 * cli/cli-decode.c (add_set_cmd): Ditto.
9374 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9375
9376 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9377
9378 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9379 Update ``this'' pointer when calling virtual functions.
9380
9381 2002-02-01 Michael Snyder <msnyder@redhat.com>
9382
9383 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9384 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9385
9386 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9387
9388 * regformats/reg-arm.dat: New file.
9389 * regformats/reg-i386.dat: New file.
9390 * regformats/reg-ia64.dat: New file.
9391 * regformats/reg-m68k.dat: New file.
9392 * regformats/reg-mips.dat: New file.
9393 * regformats/reg-ppc.dat: New file.
9394 * regformats/reg-sh.dat: New file.
9395 * regformats/regdef.h: New file.
9396 * regformats/regdat.sh: New file.
9397
9398 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9399
9400 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9401 (arm_frame_args_address, arm_frame_locals_address): New functions.
9402 (arm_frame_num_args): New function.
9403 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9404 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9405 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9406
9407 2002-01-31 Michael Snyder <msnyder@redhat.com>
9408
9409 * breakpoint.c (break_at_finish_command): Export.
9410 (break_at_finish_at_depth_command): Export.
9411 (tbreak_at_finish_command): Export.
9412 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9413 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9414 "tbreak" commands, which are HPPA specific.
9415
9416 * printcmd.c (disassemble_command): Remove an ancient
9417 artifact of an old merge.
9418
9419 * symfile.h (enum overlay_debugging_state):
9420 Define enum constant values for overlay mode.
9421 * symfile.c (overlay_debugging): Use enums instead of literals.
9422 (overlay_is_mapped, overlay_auto_command,
9423 overlay_manual_command): Ditto.
9424
9425 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9426 breakpoint_here_p, breakpoint_inserted_here_p,
9427 breakpoint_thread_match, bpstat_stop_status,
9428 describe_other_breakpoints, check_duplicates, clear_command):
9429 Coding standard fixes.
9430
9431 * target.c (target_xfer_memory): Add spaces, coding standard.
9432 (do_xfer_memory): Add missing line to trust-readonly
9433 code: check bfd SEC_READONLY flag for section.
9434
9435 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9436
9437 * PROBLEMS: Fix typo, 5.1->5.1.1.
9438
9439 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9440
9441 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9442 data symbols, since we search based on textlow and texthigh.
9443 (find_pc_sect_symtab): Likewise.
9444
9445 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9446
9447 * defs.h (vwarning): Declare.
9448 * utils.c (vwarning): New function.
9449 (warning): Call vwarning.
9450 (warning_begin): Delete function.
9451
9452 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9453 the warning message.
9454 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9455 warning_begin.
9456
9457 2002-01-30 Michael Snyder <msnyder@redhat.com>
9458
9459 * NEWS: Mention "set trust-readonly-sections" command.
9460 Mention generate-core-file command.
9461
9462 2002-01-15 Michael Snyder <msnyder@redhat.com>
9463
9464 * target.c: New command, "set trust-readonly-sections on".
9465 (do_xfer_memory): Honor the suggestion to trust readonly sections
9466 by reading them from the object file instead of from the target.
9467 (initialize_targets): Register command "set trust-readonly-sections".
9468
9469 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9470
9471 * parse.c (target_map_name_to_register): Simplify, search regs and
9472 pseudo-regs using a single loop.
9473
9474 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9475
9476 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9477
9478 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9479
9480 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9481 * config/i386/i386v42mp.mh: Add i387-nat.o .
9482 * i386v4-nat.c: Include i387-nat.h.
9483 (supply_fpregset): Use i387_supply_fsave.
9484 (fill_fpregset): Use i387_fill_fsave.
9485
9486 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9487
9488 * arm-tdep.c (arm_call_dummy_words): Define.
9489 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9490 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9491 (CALL_DUMMY_WORDS): Define.
9492 (arm_call_dummy_words): Declare.
9493 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9494 (arm_linux_call_dummy_words): Declare.
9495
9496 2002-01-30 Andreas Schwab <schwab@suse.de>
9497
9498 * m68klinux-nat.c: Fix last change to use regcache_collect
9499 instead of referencing registers[] directly.
9500
9501 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9502
9503 * parse.c (target_map_name_to_register): Delete code wrapped in
9504 #ifdef REGISTER_NAME_ALIAS_HOOK.
9505
9506 2002-01-28 Michael Snyder <msnyder@redhat.com>
9507
9508 * regcache.c (legacy_read_register_gen): Need to be able to
9509 read pseudo-register as well as real register.
9510 (legacy_write_register_gen): Ditto.
9511
9512 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9513
9514 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9515 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9516 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9517 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9518 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9519 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9520 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9521 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9522 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9523 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9524 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9525 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9526 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9527 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9528 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9529 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9530 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9531 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9532 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9533 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9534
9535 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9536
9537 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9538 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9539 (initialize_current_architecture): Update target_byte_order using
9540 information from BFD.
9541 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9542 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9543
9544 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9545
9546 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9547 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9548
9549 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9550 #ifdef INVALID_FLOAT.
9551 * infcmd.c (do_registers_info): Ditto.
9552 * values.c (unpack_double): Ditto. Add comment.
9553
9554 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9555 already commented out.
9556
9557 2002-01-26 Andreas Schwab <schwab@suse.de>
9558
9559 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9560 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9561 registers and add support for PTRACE_GETREGS.
9562
9563 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9564
9565 GDB 5.1.1 released from 5.1 branch.
9566 * NEWS: Add 5.1.1 news.
9567 * README: Sync with 5.1 branch.
9568
9569 2002-01-23 Fred Fish <fnf@redhat.com>
9570
9571 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9572 stabstring on initial malloc. Reallocing will copy it for us,
9573 if necessary.
9574
9575 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9576
9577 * Makefile.in (hpread_h): Delete.
9578 (HFILES_NO_SRCDIR): Remove hpread.h.
9579 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9580 (hpread.o): Update dependencies.
9581 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9582
9583 * hp-psymtab-read.c: Remove file.
9584 * hp-symtab-read.c: Remove file.
9585 * hpread.h: Remove file.
9586
9587 * hpread.c: Merge all contents of hp-psymtab-read.c,
9588 hp-symtab-read.c and hpread.h into this file, as it was prior to
9589 January 1999.
9590
9591 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9592 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9593 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9594 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9595
9596 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9597
9598 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9599 fill_gregset): Call gdbarch_tdep() just once, assign result to
9600 variable and use that, instead of calling the function several
9601 times.
9602
9603 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9604
9605 * configure.host: Accept sparcv9 as alias for sparc64.
9606 * configure.tgt: Likewise.
9607
9608 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9609
9610 * solib-aix5.c (build_so_list_from_mapfile)
9611 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9612 arguments is not reversed.
9613 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9614 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9615
9616 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9617
9618 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9619 modified version of obsolete sh_fetch_pseudo_register.
9620 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9621 (sh4_register_read): New function.
9622 (sh_pseudo_register_write): New function. Renamed and modified
9623 version of obsolete sh_store_pseudo_register.
9624 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9625 (sh4_register_write): New function.
9626 (sh_gdbarch_init): Remove setting of gdbarch function
9627 fetch_pseudo_register and store_pseudo_register. Remove setting of
9628 register_convert_to_raw, register_convert_to_virtual,
9629 register_convertible.
9630 (sh_sh4_register_convertible): Delete. No longer needed. All is
9631 taken care by architecture specific functions
9632 register_read/register_write.
9633 (sh_sh4_register_convert_to_virtual): Make static.
9634 (sh_sh4_register_convert_to_raw): Ditto.
9635
9636 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9637
9638 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9639 (floatformat_is_nan, floatformat_mantissa): Ditto.
9640
9641 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9642 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9643 builtin_type_ieee_double_little,
9644 builtin_type_ieee_double_littlebyte_bigword,
9645 builtin_type_m68881_ext, builtin_type_i960_ext,
9646 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9647 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9648 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9649 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9650
9651 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9652
9653 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9654 parameter. Set frameless flag if it exists and depended of
9655 whether the scanned function is frameless or not.
9656 (xstormy16_skip_prologue): If function is frameless, return
9657 result of xstormy16_scan_prologue().
9658 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9659 call.
9660
9661 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9662
9663 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9664 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9665 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9666 sh_sh4_register_byte, sh_sh4_register_raw_size,
9667 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9668 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9669 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9670 sh_store_pseudo_register, sh_do_pseudo_register): Call
9671 gdbarch_tdep() just once, assign result to variable and use that,
9672 instead of calling the function several times.
9673
9674 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9675
9676 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9677 macros instead of LAST_FPU_CTRL_REGNUM.
9678 (store_register): Likewise.
9679
9680 2002-01-21 Jim Blandy <jimb@redhat.com>
9681
9682 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9683 is up-to-date before running the program, not just when a program
9684 exits.
9685
9686 2002-01-21 Fred Fish <fnf@redhat.com>
9687
9688 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9689 when we have found all instructions we are looking for.
9690
9691 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * arm-tdep.c (arm_register_name): New function.
9694 (arm_registers_names): Make static.
9695 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9696 (arm_register_name): Declare.
9697 (REGISTER_NAME): Use it.
9698
9699 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9700 Kevin Buettner <kevinb@redhat.com>
9701
9702 Convert arm targets to new FRAME interface.
9703 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9704 (arm_frame_find_save_regs): Delete.
9705 (arm_frame_init_saved_regs): New.
9706 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9707 Allocate extra_info as required. Convert all uses of fsr.regs
9708 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9709 to use extra_info.
9710 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9711 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9712 (check_prologue_cache, save_prologue_cache): Likewise.
9713 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9714 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9715 (FRAME_FIND_SAVED_REGS): Delete.
9716 (arm_frame_find_saved_regs): Delete prototype.
9717 (arm_frame_init_saved_regs): New prototype.
9718 (FRAME_INIT_SAVED_REGS): Define.
9719
9720 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9721
9722 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9723
9724 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9725
9726 From Jeff Law <law@redhat.com>:
9727 * infttrace.c: Include <sys/pstat.h>.
9728 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9729 exec file if the ttrace equivalent fails.
9730
9731 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9732
9733 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9734 (closeLogFile): Ditto.
9735
9736 2002-01-20 Michael Chastain <mec@shout.net>
9737
9738 * top.c (print_gdb_version): Bump copyright year to 2002.
9739
9740 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9741
9742 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9743 Zannoni and Eli Zaretskii.
9744
9745 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9746
9747 * buildsym.c: Update copyright years.
9748 * c-typeprint.c: Likewise.
9749 * dwarf2read.c: Likewise.
9750 * f-typeprint.c: Likewise.
9751 * gdbtypes.c: Likewise.
9752 * gdbtypes.h: Likewise.
9753 * hp-symtab-read.c: Likewise.
9754 * hpread.c: Likewise.
9755 * mdebugread.c: Likewise.
9756 * p-typeprint.c: Likewise.
9757
9758 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9759
9760 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9761 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9762 byte-order selectable.
9763 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9764 * arch-utils.c: Ditto.
9765 (set_endian): Ditto.
9766 (set_endian_from_file): Ditto.
9767 * gdbserver/low-sim.c (create_inferior): Ditto.
9768 * gdbarch.sh: Ditto.
9769 * gdbarch.h: Re-generate.
9770 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9771 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9772 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9773 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9774 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9775 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9776 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9777 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9778 macro definition.
9779 * config/mips/tm-wince.h: Remove #undef of macro
9780 TARGET_BYTE_ORDER_SELECTABLE.
9781 * config/sh/tm-wince.h: Ditto.
9782
9783 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9784
9785 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9786 member function fields. Add accessor macro
9787 TYPE_FN_FIELD_ARTIFICIAL.
9788 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9789 * c-typeprint.c (c_type_print_base): Skip artificial member
9790 functions.
9791
9792 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * f-typeprint.c: Delete unused function f_type_print_args.
9795 * p-typeprint.c: Delete unused function pascal_type_print_args.
9796
9797 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9798
9799 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9800 comment. Add ``artificial'' to ``union field_location''.
9801
9802 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9803
9804 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9805 * mdebugread.c (parse_symbol): Likewise.
9806 * stabsread.c (define_symbol): Likewise.
9807 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9808 initializing TYPE_FIELD_BITPOS to n (obsolete).
9809 (hpread_doc_function_type): Likewise.
9810 * hpread.c (hpread_function_type): Likewise.
9811
9812 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9813
9814 * configure.in (host_makefile_frag): Only require a host makefile
9815 fragment when a native build.
9816 * configure: Re-generate.
9817
9818 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9819
9820 * doublest.h (floatformat_from_type): Declare.
9821 * doublest.c (floatformat_from_type): New function.
9822 (convert_typed_floating): Use.
9823
9824 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9825 call to function floatformat_from_type.
9826
9827 * gdbarch.sh (IEEE_FLOAT): Delete.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9829 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9830 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9831 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9832 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9833 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9834 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9835 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9836 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9837 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9838 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9839 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9840 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9841
9842 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9843 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9845 * sh-tdep.c (sh_gdbarch_init): Ditto.
9846 * mips-tdep.c (mips_gdbarch_init): Ditto.
9847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9848 * cris-tdep.c (cris_gdbarch_init): Ditto.
9849
9850 2002-01-20 Jiri Smid <smid@suse.cz>
9851
9852 * configure.host, configure.tgt: Support x86-64.
9853 * NEWS: Note new target x86-64.
9854
9855 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9856 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9857 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9858 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9859 x86-64-linux-nat.o): Fix dependencies.
9860
9861 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9862
9863 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9864 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9865 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9866 * config/sparc/xm-sun4os4.h: Delete file.
9867 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9868
9869 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9870
9871 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9872 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9873 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9874 * config/i386/i386lynx.mh (XM_FILE): Delete.
9875 * config/rs6000/xm-rs6000ly.h: Delete file.
9876 * config/sparc/xm-sparclynx.h: Delete file.
9877 * config/m68k/xm-m68klynx.h: Delete file.
9878 * config/i386/xm-i386lynx.h: Delete file.
9879 * config/xm-lynx.h: Delete file.
9880 * config/djgpp/fnchange.lst: Update.
9881
9882 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9883
9884 * alpha-tdep.c (alpha_register_byte): New function.
9885 (alpha_register_raw_size): Ditto.
9886 (alpha_register_virtual_size): Ditto.
9887 (alpha_skip_prologue_internal): Renamed from
9888 alpha_skip_prologue.
9889 (alpha_skip_prologue): New version that calls
9890 alpha_skip_prologue_internal.
9891 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9892 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9893 second argument from alpha_skip_prologue.
9894 (REGISTER_BYTE): Use alpha_register_byte.
9895 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9896 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9897 (FRAMELESS_FUNCTION_INVOCATION): Use
9898 generic_frameless_function_invocation_not.
9899 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9900 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9901
9902 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9903
9904 * config/mips/xm-news-mips.h: Delete file.
9905 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9906
9907 * config/m88k/xm-m88k.h: Delete file.
9908 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9909 * config/m88k/xm-delta88v4.h: Ditto.
9910 * config/m88k/xm-delta88.h: Ditto.
9911
9912 * config/alpha/xm-fbsd.h: Delete file.
9913 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9914
9915 * config/sparc/xm-sparc.h: Delete file.
9916 * Makefile.in (xm-sun4os4.h): Delete dependency.
9917 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9918 * config/sparc/xm-sun4os4.h: Ditto.
9919 * config/sparc/xm-linux.h: Ditto.
9920
9921 * config/i386/xm-windows.h: Delete file.
9922
9923 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9924
9925 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9926 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9927
9928 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9929
9930 * alpha-tdep.c (alpha_call_dummy_words): New.
9931 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9932 (CALL_DUMMY_P): Define.
9933 (CALL_DUMMY_WORDS): Define.
9934 (SIZEOF_CALL_DUMMY_WORDS): Define.
9935
9936 2002-01-19 Per Bothner <per@bothner.com>
9937
9938 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9939 isn't NULL, which can happen with some gcj-3.x-produced code.
9940
9941 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9942
9943 * alpha-tdep.c (alpha_register_virtual_type): New function.
9944 (alpha_init_frame_pc_first): Ditto.
9945 (alpha_fix_call_dummy): Ditto.
9946 (alpha_store_struct_return): Ditto.
9947 (alpha_extract_struct_value_address): Ditto.
9948 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9949 alpha_register_virtual_type.
9950 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9951 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9952 alpha_extract_struct_value_address.
9953 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9954 (INIT_FRAME_PC): Use init_frame_pc_noop.
9955 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9956
9957 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9958
9959 * i386gnu-nat.c: Include "i386-tdep.h".
9960 (fetch_fpregs): Simplify code dealing with uninitialized floating
9961 point states such that it doesn't require FP7_REGNUM.
9962
9963 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9964
9965 * alpha-tdep.c (frame_extra_info): New.
9966 (alpha_find_saved_regs): Make static. Use
9967 frame->extra_info.
9968 (alpha_frame_init_saved_regs): New function.
9969 (alpha_frame_saved_pc): Use frame->extra_info.
9970 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9971 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9972 (init_extra_frame_info): Rename to...
9973 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9974 (alpha_print_extra_frame_info): New function.
9975 (alpha_frame_locals_address): Ditto.
9976 (alpha_frame_args_address): Ditto.
9977 (alpha_pop_frame): Use frame->extra_info.
9978 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9979 alpha_frame_args_address.
9980 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9981 (alpha_find_saved_regs): Remove prototype.
9982 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9983 (EXTRA_FRAME_INFO): Remove.
9984 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9985 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9986
9987 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9988
9989 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9990 (alpha_cannot_fetch_register): Ditto.
9991 (alpha_cannot_store_register): Ditto.
9992 (alpha_register_convertible): Ditto.
9993 (alpha_use_struct_convention): Ditto.
9994 * config/alpha/tm-alpha.h: Update copyright years.
9995 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9996 (INNER_THAN): Use core_addr_lessthan.
9997 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9998 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9999 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10000 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10001 (FRAME_CHAIN): Remove unnecessary cast.
10002
10003 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10004
10005 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10006 obsolete.
10007
10008 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10009
10010 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10011 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10012 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10013 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10014 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10015 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10016 * x86-64-linux-nat.c: Ditto.
10017
10018 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10019
10020 * alpha-tdep.c (alpha_register_name): New function.
10021 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10022 (REGISTER_NAME): Define.
10023
10024 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10025
10026 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10027
10028 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10029
10030 * alpha-tdep.c: Update copyright years.
10031 (alpha_next_pc): New function.
10032 (alpha_software_single_step): Ditto.
10033 * config/alpha/tm-alpha.h: Add prototype for
10034 alpha_software_single_step.
10035
10036 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10037
10038 * alphabsd-nat.c: Update copyright years.
10039 (fill_gregset): Use regcache_collect.
10040 (fill_fpregset): Likewise.
10041 (fetch_inferior_registers): Only fetch integer registers
10042 if requested to do so.
10043 (store_inferior_registers): Only store integer registers
10044 if requested to do so.
10045
10046 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10047
10048 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10049 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10050 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10051 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10052 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10053 * config/arm/linux.mh (XDEPFILES): Delete.
10054 * config/arm/nbsd.mh (XDEPFILES): Delete.
10055 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10056 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10057 * config/i386/i386m3.mh (XDEPFILES): Delete.
10058 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10059 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10060 * config/i386/fbsd.mh (XDEPFILES): Delete.
10061 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10062 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10063 * config/i386/i386v4.mh (XDEPFILES): Delete.
10064 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10065 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10066 * config/i386/i386aix.mh (XDEPFILES): Delete.
10067 * config/i386/go32.mh (XDEPFILES): Delete.
10068 * config/i386/cygwin.mh (XDEPFILES): Delete.
10069 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10070 * config/i386/i386mach.mh (XDEPFILES): Delete.
10071 * config/i386/i386v32.mh (XDEPFILES): Delete.
10072 * config/i386/linux.mh (XDEPFILES): Delete.
10073 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10074 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10075 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10076 * config/i386/i386sco.mh (XDEPFILES): Delete.
10077 * config/i386/i386v.mh (XDEPFILES): Delete.
10078 * config/i386/nbsd.mh (XDEPFILES): Delete.
10079 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10080 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10081 * config/i386/symmetry.mh (XDEPFILES): Delete.
10082 * config/i386/obsd.mh (XDEPFILES): Delete.
10083 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10084 * config/ia64/linux.mh (XDEPFILES): Delete.
10085 * config/ia64/aix.mh (XDEPFILES): Delete.
10086 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10087 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10088 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10089 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10090 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10091 * config/m68k/linux.mh (XDEPFILES): Delete.
10092 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10093 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10094 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10095 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10096 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10097 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10098 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10099 * config/m88k/delta88.mh (XDEPFILES): Delete.
10100 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10101 * config/m88k/m88k.mh (XDEPFILES): Delete.
10102 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10103 * config/mips/linux.mh (XDEPFILES): Delete.
10104 * config/mips/irix6.mh (XDEPFILES): Delete.
10105 * config/mips/irix5.mh (XDEPFILES): Delete.
10106 * config/mips/irix4.mh (XDEPFILES): Delete.
10107 * config/mips/irix3.mh (XDEPFILES): Delete.
10108 * config/mips/decstation.mh (XDEPFILES): Delete.
10109 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10110 (NATDEPFILES): Move core-aout.o to here.
10111 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10112 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10113 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10114 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10115 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10116 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10117 * config/pa/hpux11.mh (XDEPFILES): Delete.
10118 * config/powerpc/aix.mh (XDEPFILES): Delete.
10119 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10120 * config/powerpc/linux.mh (XDEPFILES): Delete.
10121 * config/romp/rtbsd.mh: Rename XDEPFILES.
10122 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10123 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10124 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10125 * config/s390/s390.mh (XDEPFILES): Delete.
10126 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10127 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10128 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10129 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10130 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10131 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10132 * config/sparc/linux.mh (XDEPFILES): Delete.
10133 * config/vax/vaxult.mh (XDEPFILES): Delete.
10134 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10135 * Makefile.in (DEPFILES): Remove XDEPFILES.
10136
10137 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10138
10139 * utils.c (internal_verror): Fix comments, default is yes not no.
10140 Update queries to match. Default to quit and dump core.
10141
10142 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10143
10144 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10145 copyright.
10146 * defs.h, event-top.c, gdbcmd.h: Ditto.
10147 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10148 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10149 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10150 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10151 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10152 * mi/mi-main.c:Ditto.
10153
10154 * stack.c, symfile.c: Update copyright.
10155
10156 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10159 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10160 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10161 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10162
10163 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10164
10165 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10166 * gdbserver/low-lynx.c (myattach): Likewise.
10167 * gdbserver/low-nbsd.c (myattach): Likewise.
10168 * gdbserver/low-sim.c (myattach): Likewise.
10169 * gdbserver/low-sparc.c (myattach): Likewise.
10170 * gdbserver/low-sun3.c (myattach): Likewise.
10171
10172 * gdbserver/low-linux.c (myattach): New function.
10173
10174 * gdbserver/server.c (attach_inferior): New function.
10175 (main): Handle "--attach".
10176
10177 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10178
10179 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10180 maintainer.
10181
10182 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * c-typeprint.c (is_type_conversion_operator): Add additional
10185 check for non-conversion operators.
10186
10187 2002-01-15 Michael Snyder <msnyder@redhat.com>
10188
10189 * linux-proc.c: Add "info proc" command, a la procfs.c.
10190 (read_mapping): New function, abstract and re-use code.
10191 (linux_find_memory_regions): Use new func read_mapping.
10192 (linux_info_proc_cmd): New function, implement "info proc".
10193 (_initialize_linux_proc): Add new command "info proc".
10194
10195 2002-01-15 Michael Snyder <msnyder@redhat.com>
10196
10197 * symfile.c (generic_load): Use bfd_map_over_sections method
10198 instead of manipulating bfd structure members directly.
10199 (add_section_size_callback): New function, bfd sections callback
10200 used by generic_load.
10201 (load_sections_callback): New function, bfd sections callback
10202 used by generic_load.
10203
10204 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10205
10206 [Based on work by Jim Blandy]
10207 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10208 (builtin_type_vec128): Export.
10209 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10210 types.
10211 (builtin_type_vec128): New builtin type for 128 bit vector
10212 registers.
10213 (build_gdbtypes): Initialize builtin_type_v16qi and
10214 builtin_type_v8hi. Create the vec128 register builtin type
10215 structure.
10216 (build_builtin_type_vec128): New function.
10217 (_initialize_gdbtypes): Register builtin_type_v16qi and
10218 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10219 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10220 AltiVec register to new builtin type.
10221
10222 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10225 to make_cv_type.
10226
10227 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10228
10229 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10230 CLEAN_UP_REGISTER_VALUE.
10231 * regcache.c (supply_register): Update only call.
10232
10233 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10234
10235 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10236 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10237 a29k-*-vxworks* targets as obsolete.
10238
10239 2002-01-14 Michael Snyder <msnyder@redhat.com>
10240
10241 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10242 until we can resolve portability issues.
10243 * gregset.h: Remove references to fpxregs.
10244 * gcore.c (gcore_command): Initialize note_sec to NULL.
10245
10246 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10247
10248 * signals.c (target_signal_to_name): Rewrite. Only use
10249 signals[].name when in bounds and non-NULL.
10250
10251 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10252
10253 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10254 * signals.c (target_signal_to_name): Verify that SIG is within the
10255 bounds of the signals array.
10256
10257 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10258
10259 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10260
10261 2002-01-13 Keith Seitz <keiths@redhat.com>
10262
10263 * stack.c (print_frame_info_base): Print the frame's pc
10264 only if when print_frame_info_listing_hook is not defined.
10265
10266 2002-01-13 Keith Seitz <keiths@redhat.com>
10267
10268 * varobj.c (varobj_set_value): Make sure that there were no
10269 errors evaluating the object before attempting to set its
10270 value.
10271 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10272 so this offset adjustment is no longer necessary.
10273 (create_child): Don't set the error flag if the child is
10274 a CPLUS_FAKE_CHILD.
10275 (value_of_child): If value_fetch_lazy fails, return NULL
10276 so that callers will be notified that an error occurred.
10277 (c_value_of_variable): Delay check of variable's validity
10278 until later. We actually want all structs and unions to have
10279 the value "{...}".
10280 Do not return "???" for variables which could not be evaluated.
10281 This error condition must be returned to the caller so that it
10282 can get the error condition from gdb.
10283 (cplus_name_of_child): Adjust index for vptr before figuring
10284 out the name of the child.
10285 (cplus_value_of_child): If a child's (real) parent is not valid,
10286 don't even bother trying to give a value for it. Just return
10287 an error. Change all instances in this function.
10288 (cplus_type_of_child): If our parent is one of the "fake"
10289 parents, we need to get at the type of the real parent, and
10290 derive the child's true type using this information.
10291
10292 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10293
10294 From 2002-01-09 John Marshall <johnm@falch.net>:
10295 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10296 sources.redhat.com, and tweak some related URLs which had
10297 suffered from linkrot.
10298
10299 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10300
10301 From Jeff law:
10302 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10303 structures passed in registers.
10304
10305 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10306
10307 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10308 white space which prevented compilation. Reported by DSK
10309 <dsk@student.unsw.edu.au>.
10310
10311 2002-01-11 Michael Snyder <msnyder@redhat.com>
10312
10313 * symfile.c (build_section_addr_info_from_section_tab):
10314 Use bfd access method instead of manipulating bfd directly.
10315 (syms_from_objfile): Ditto.
10316 (simple_overlay_update_1): Ditto.
10317 (simple_overlay_update): Ditto.
10318 (generic_load): Ditto.
10319 (overlay_unmapped_address): FIXME comment, bfd access methods.
10320 (sections_overlap): FIXME comment, bfd access methods.
10321 (pc_in_mapped_range): FIXME comment, bfd access methods.
10322 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10323 (section_is_mapped): FIXME comment, bfd access methods.
10324 (section_is_overlay): FIXME comment, bfd access methods.
10325
10326 * symfile.c (generic_load): Whitespace and long line cleanups.
10327 Remove duplicate variable, change several local variables to
10328 more appropriate data types.
10329 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10330
10331 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10332
10333 From Peter Schauer:
10334 * language.c (longest_local_hex_string_custom): Use phex_nz to
10335 convert NUM to a hex string.
10336
10337 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10338
10339 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10340 the function.
10341 Update Copyright year.
10342
10343 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10344
10345 * language.c (longest_raw_hex_string): Delete unused function.
10346
10347 2002-01-11 Petr Sorfa <petrs@caldera.com>
10348
10349 * MAINTAINERS (write-after-approval): Add myself.
10350 * dwarf2read.c (read_tag_string_type): Handling of
10351 DW_AT_byte_size.
10352 (read_tag_string_type): FORTRAN fix to prevent propagation of
10353 first string size.
10354 (set_cu_language): Handling of DW_LANG_Fortran95
10355
10356 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10357
10358 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10359 GETPID(inferior_ptid).
10360 (store_inferior_registers): Likewise.
10361
10362 2002-01-10 Jason Merrill <jason@redhat.com>
10363
10364 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10365 Fix DW_OP_minus.
10366
10367 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10368
10369 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10370 and bfd/elf32-sh-nbsd.c.
10371
10372 2002-01-10 Michael Snyder <msnyder@redhat.com>
10373
10374 * NEWS: Mention --pid and corefile/proc-id behavior change.
10375
10376 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10377 * gcore.c: Include cli/cli-decode.h instead of command.h.
10378
10379 * main.c (captured_main): Add new command line option "--pid".
10380 If the second command line argument (following the symbol-file)
10381 begins with a digit, try to attach to it before trying to open
10382 it as a corefile.
10383 (print_gdb_help): Document the "--pid" argument.
10384
10385 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10386
10387 * completer.c (command_completer): New function.
10388
10389 * completer.h <command_completer>: Add prototype.
10390
10391 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10392 completer for the "help" command.
10393
10394 2002-01-09 Jason Merrill <jason@redhat.com>
10395
10396 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10397
10398 2002-01-09 Michael Snyder <msnyder@redhat.com>
10399
10400 * i386-linux-nat.c (fill_fpxregset): Make global.
10401 (store_fpxregset): Ditto.
10402
10403 * gregset.h (gdb_fpxregset_t): Define.
10404 (supply_fpxregset): Prototype.
10405 (fill_fpxregset): Prototype.
10406
10407 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10408
10409 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10410
10411 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10412 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10413 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10414
10415 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10416
10417 * MAINTAINERS: Update target maintainer rules so that any
10418 Maintainer can approve a tested patch for a maintenance-only
10419 target.
10420
10421 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10422
10423 * MAINTAINERS (write-after-approval): Add myself.
10424
10425 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10426 IN_SIGTRAMP.
10427
10428 2002-01-08 Michael Snyder <msnyder@redhat.com>
10429
10430 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10431 real name of the executable, rather than the /proc name.
10432
10433 2002-01-03 Michael Snyder <msnyder@redhat.com>
10434
10435 Implement a "generate-core-file" command in gdb, save target state.
10436 * gcore.c: New file. Implement new command 'generate-core-file'.
10437 Save a corefile image of the current state of the inferior.
10438 * linux-proc.c: Add linux-specific code for saving corefiles.
10439 * target.h (struct target_ops): Add new target vectors for saving
10440 corefiles; to_find_memory_regions and to_make_corefile_notes.
10441 (target_find_memory_regions): New macro.
10442 (target_make_corefile_notes): New macro.
10443 * target.c (update_current_target): Inherit new target methods.
10444 (dummy_find_memory_regions): New place-holder method.
10445 (dummy_make_corefile_notes): New place-holder method.
10446 (init_dummy_target): Initialize new dummy target vectors.
10447 * exec.c (exec_set_find_memory_regions): New function.
10448 Allow the exec_ops vector for memory regions to be taken over.
10449 (exec_make_note_section): New function, target vector method.
10450 * defs.h (exec_set_find_memory_regions): Export prototype.
10451 * procfs.c (proc_find_memory_regions): New function, corefile method.
10452 (procfs_make_note_section): New function, corefile method.
10453 (init_procfs_ops): Set new target vector pointers.
10454 (find_memory_regions_callback): New function.
10455 (procfs_do_thread_registers): New function.
10456 (procfs_corefile_thread_callback): New function.
10457 * sol-thread.c (sol_find_memory_regions): New function.
10458 (sol_make_note_section): New function.
10459 (init_sol_thread_ops): Initialize new target vectors.
10460 * inftarg.c (inftarg_set_find_memory_regions): New function.
10461 Allow to_find_memory_regions vector to be taken over.
10462 (inftarg_set_make_corefile_notes): New function.
10463 Allow to_make_corefile_notes vector to be taken over.
10464 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10465 interface layer if not target_has_execution (may be a corefile).
10466 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10467 * config/sparc/sun4sol2.mh: Ditto.
10468 * config/alpha/alpha-linux.mh: Ditto.
10469 * config/arm/linux.mh: Ditto.
10470 * config/i386/x86-64linux.mh: Ditto.
10471 * config/ia64/linux.mh: Ditto.
10472 * config/m68k/linux.mh: Ditto.
10473 * config/mips/linux.mh: Ditto.
10474 * config/powerpc/linux.mh: Ditto.
10475 * config/sparc/linux.mh: Ditto.
10476
10477 2002-01-07 Michael Snyder <msnyder@redhat.com>
10478
10479 * arm-linux-nat.c: Remove references to regcache.c internal data
10480 (registers[] and register_valid[]).
10481
10482 2002-01-07 Michael Snyder <msnyder@redhat.com>
10483
10484 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10485 so that attaching to a pid will automatically read the process's
10486 symbol file and shlibs.
10487 * Makefile.in: Add rule for linux-proc.o.
10488 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10489 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10490 * config/arm/linux.mh: Ditto.
10491 * config/i386/linux.mh: Ditto.
10492 * config/i386/x86-64linux.mh: Ditto.
10493 * config/ia64/linux.mh: Ditto.
10494 * config/m68k/linux.mh: Ditto.
10495 * config/mips/linux.mh: Ditto.
10496 * config/powerpc/linux.mh: Ditto.
10497 * config/sparc/linux.mh: Ditto.
10498
10499 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10500
10501 * win32-nat.c: Add i386-tdep.h dependency.
10502
10503 2002-01-07 Michael Snyder <msnyder@redhat.com>
10504
10505 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10506 instead of bfd_get_arch_size. Don't bail out just because
10507 there's no exec_bfd.
10508
10509 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10510 * p-valprint.c (pascal_object_print_value): Ditto.
10511 * somread.c (som_symtab_read): Ditto.
10512 * symfile.c (simple_free_overlay_region_table): Ditto.
10513 * valops.c (value_assign): Ditto.
10514
10515 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10516 use tilde_expand and strerror for opening save-tracepoints file.
10517
10518 * thread-db.c (thread_db_new_objfile): Indendation fix.
10519
10520 * infptrace.c (GDB_MAX_ALLOCA): New define.
10521 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10522 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10523 can be overridden with whatever value is appropriate to the host).
10524 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10525 alloca to allocate potentially large buffer.
10526 * rs6000-nat.c (child_xfer_memory): Ditto.
10527 * symm-nat.c (child_xfer_memory): Ditto.
10528 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10529
10530 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10531
10532 From Nick Clifton <nickc@redhat.com>
10533 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10534
10535 2002-01-07 Michael Snyder <msnyder@redhat.com>
10536
10537 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10538 Don't use exec_bfd if it's NULL.
10539
10540 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10541
10542 * valops.c (value_arg_coerce): Fix formatting.
10543
10544 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10545
10546 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10547 * gnu-nat.c: Ditto.
10548
10549 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10550
10551 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10552 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10553 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10554 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10555 z8k-coff have not been multi-arched. Update z8k-coff build
10556 status.
10557
10558 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10559
10560 * MAINTAINERS: Mark a29k target as obsolete.
10561 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10562 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10563 comments.
10564 * NEWS: Note that a29k targets are obsolete.
10565 * a29k-tdep.c: Mark as obsolete.
10566 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10567 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10568 a29k-*-vxworks* targets as obsolete.
10569 * remote-adapt.c: Obsolete.
10570 * remote-eb.c: Obsolete.
10571 * remote-mm.c: Obsolete.
10572 * remote-udi.c: Obsolete.
10573 * config/a29k/a29k-udi.mt: Obsolete.
10574 * config/a29k/a29k.mt: Obsolete.
10575 * config/a29k/tm-a29k.h: Obsolete.
10576 * config/a29k/tm-vx29k.h: Obsolete.
10577 * config/a29k/vx29k.mt: Obsolete.
10578
10579 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10580
10581 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10582 with BFD_ENDIAN_BIG.
10583
10584 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10585
10586 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10587 * configure, config.in: Re-generate.
10588 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10589 * defs.h: Do not include <endian.h>.
10590
10591 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10592
10593 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10594 * config.in: Regenerate.
10595 * configure.in: Update copyright years.
10596 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10597 * configure: Regenerate.
10598 * i386bsd-nat.c: Update copyright years.
10599 (fill_gregset): Use regcache_collect.
10600 (fetch_inferior_registers): Only fetch integer registers
10601 if requested to do so. Add support for XMM registers
10602 using PT_GETXMMREGS.
10603 (store_inferior_registers): Only store integer registers
10604 if requested to do so. Add support for XMM registers
10605 using PT_SETXMMREGS.
10606 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10607 (store_inferior_registers): Remove.
10608 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10609 (fetch_elfcore_registers): New function.
10610 (i386nbsd_elfcore_fns): New.
10611 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10612 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10613 i386bsd-nat.o.
10614 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10615 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10616 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10617 * config/i386/tm-nbsd.h: Update copyright years.
10618 (HAVE_SSE_REGS): Define.
10619 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10620 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10621 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10622 (SIGCONTEXT_PC_OFFSET): Remove.
10623 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10624
10625 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10626
10627 * configure.tgt: Remove powerpc-*-macos* target.
10628 * config/m68k/xm-mpw.h: Delete file.
10629 * config/xm-mpw.h: Delete file.
10630 * ser-mac.c: Delete file.
10631 * mpw-make.sed: Delete file.
10632 * mpw-config.in: Delete file.
10633 * mac-xdep.c: Delete file.
10634 * mac-gdb.r: Delete file.
10635 * mac-defs.h: Delete file.
10636 * mac-nat.c: Delete file.
10637 * config/powerpc/macos.mh: Delete file.
10638 * config/powerpc/macos.mt: Delete file.
10639 * config/powerpc/nm-macos.h: Delete file.
10640 * config/powerpc/tm-macos.h: Delete file.
10641 * source.c (openp, open_source_file): Remove obsolete code.
10642 * top.c (gdb_readline): Ditto.
10643 * utils.c (query): Ditto.
10644 * event-top.c (display_gdb_prompt): Ditto.
10645 * Makefile.in (ser-mac.o): Delete obsolete target.
10646 * NEWS: Update.
10647
10648 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10649
10650 * defs.h (BIG_ENDIAN): Delete macro definition.
10651 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10652 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10653 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10654 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10655 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10656 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10657 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10658 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10659 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10660 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10661 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10662 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10663 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10664 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10665 * gdbarch.c: Re-generate.
10666
10667 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10670 for core files.
10671
10672 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10673
10674 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10675
10676 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10677
10678 * value.h (value_ptr): Delete typedef.
10679
10680 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10681
10682 * i386nbsd-nat.c: Update copyright years.
10683 Include i386-tdep.h.
10684
10685 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10686
10687 * stabsread.c: Update copyright years.
10688
10689 From Debashis Mahata <debashis.mahata@wipro.com>:
10690 (read_struct_fields): Deal with Sun C compiler erroneous stab
10691 output for structs and unions.
10692 Fix PR gdb/269.
10693
10694 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10697 prototype.
10698
10699 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * cp-abi.c: Fix whitespace.
10702 (baseclass_offset): New wrapper function.
10703 * cp-abi.h (baseclass_offset): Add prototype.
10704 (struct cp_abi_ops): Add baseclass_offset pointer.
10705
10706 * valops.c (vb_match): Move to...
10707 * gnu-v2-abi.c (vb_match): here.
10708 * valops.c (baseclass_offset): Move to...
10709 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10710
10711 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10712
10713 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10714 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10715 * hpacc-abi.c (init_hpacc_ops): Likewise.
10716
10717 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * valops.c (find_overload_match): Accept obj as a
10720 reference parameter. Update it before returning.
10721 * value.h (find_overload_match): Update prototype.
10722 * eval.c (evaluate_subexp_standard): Pass object to
10723 find_overload_match by reference.
10724
10725 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10726
10727 * valarith.c: Replace value_ptr with struct value pointer. Remove
10728 register attribute from value declarations.
10729 * valops.c: Ditto.
10730 * value.h: Ditto.
10731 * scm-lang.c (scm_lookup_name): Ditto.
10732
10733 2002-01-03 Michael Snyder <msnyder@redhat.com>
10734
10735 Abstract the functionality of iterating over mapped memory
10736 regions into a general purpose iterator function.
10737 * procfs.c (iterate_over_mappings): New function, general purpose
10738 iterator for memory sections.
10739 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10740 (solib_mappings_callback): New function, callback for above.
10741 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10742 (info_mappings_callback): New function, callback for above.
10743
10744 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10745
10746 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10747
10748 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10749 * i386-tdep.c: Include "elf-bfd.h".
10750 (process_note_abi_tag_sections): New function.
10751 (i386_gdbarch_init): Add code to recognize various OS/ABI
10752 combinations.
10753
10754 * maint.c (_initialize_maint_cmds): Add missing \ in
10755 string-literal.
10756
10757 For older changes see ChangeLog-2001
10758 \f
10759 Local Variables:
10760 mode: change-log
10761 left-margin: 8
10762 fill-column: 74
10763 version-control: never
10764 End: